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

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 (217) 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 +20 -20
  69. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +18 -18
  70. package/deployments/sui-sandbox-local/call.json +18 -19
  71. package/deployments/sui-sandbox-local/counter.json +29 -29
  72. package/deployments/sui-sandbox-local/dvn.json +14 -14
  73. package/deployments/sui-sandbox-local/dvn_call_type.json +28 -28
  74. package/deployments/sui-sandbox-local/dvn_fee_lib.json +19 -19
  75. package/deployments/sui-sandbox-local/dvn_layerzero.json +25 -25
  76. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +21 -21
  77. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +26 -26
  78. package/deployments/sui-sandbox-local/endpoint_v2.json +16 -16
  79. package/deployments/sui-sandbox-local/executor.json +22 -22
  80. package/deployments/sui-sandbox-local/executor_call_type.json +21 -21
  81. package/deployments/sui-sandbox-local/executor_fee_lib.json +27 -27
  82. package/deployments/sui-sandbox-local/executor_layerzero.json +25 -25
  83. package/deployments/sui-sandbox-local/executor_ptb_builder.json +21 -21
  84. package/deployments/sui-sandbox-local/layerzero_views.json +10 -10
  85. package/deployments/sui-sandbox-local/message_lib_common.json +10 -10
  86. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +10 -10
  87. package/deployments/sui-sandbox-local/{sequential_multi_call.json → multi_call.json} +18 -18
  88. package/deployments/sui-sandbox-local/oapp.json +19 -19
  89. package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +4 -4
  90. package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +4 -4
  91. package/deployments/sui-sandbox-local/object-Counter.json +4 -4
  92. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +4 -4
  93. package/deployments/sui-sandbox-local/object-CounterOApp.json +4 -4
  94. package/deployments/sui-sandbox-local/object-DVN.json +2 -2
  95. package/deployments/sui-sandbox-local/object-DVNCap.json +5 -5
  96. package/deployments/sui-sandbox-local/object-DVNFeeLib.json +5 -5
  97. package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +4 -4
  98. package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +4 -4
  99. package/deployments/sui-sandbox-local/object-EndpointV2.json +4 -4
  100. package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +4 -4
  101. package/deployments/sui-sandbox-local/object-Executor.json +2 -2
  102. package/deployments/sui-sandbox-local/object-ExecutorCap.json +5 -5
  103. package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
  104. package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
  105. package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +4 -4
  106. package/deployments/sui-sandbox-local/object-PriceFeed.json +5 -5
  107. package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +5 -5
  108. package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +4 -4
  109. package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +4 -4
  110. package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +4 -4
  111. package/deployments/sui-sandbox-local/object-Treasury.json +5 -5
  112. package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +5 -5
  113. package/deployments/sui-sandbox-local/object-ULN302.json +4 -4
  114. package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +4 -4
  115. package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +4 -4
  116. package/deployments/sui-sandbox-local/object-Uln302Verification.json +4 -4
  117. package/deployments/sui-sandbox-local/object-WorkerRegistry.json +4 -4
  118. package/deployments/sui-sandbox-local/package_whitelist_validator.json +42 -42
  119. package/deployments/sui-sandbox-local/price_feed.json +39 -39
  120. package/deployments/sui-sandbox-local/price_feed_call_types.json +9 -9
  121. package/deployments/sui-sandbox-local/ptb_move_call.json +18 -18
  122. package/deployments/sui-sandbox-local/simple_message_lib.json +24 -24
  123. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +22 -22
  124. package/deployments/sui-sandbox-local/treasury.json +37 -37
  125. package/deployments/sui-sandbox-local/uln_302.json +36 -36
  126. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +20 -20
  127. package/deployments/sui-sandbox-local/uln_common.json +9 -9
  128. package/deployments/sui-sandbox-local/worker_common.json +18 -18
  129. package/deployments/sui-sandbox-local/worker_registry.json +23 -23
  130. package/deployments/sui-testnet/blocked_message_lib.json +26 -26
  131. package/deployments/sui-testnet/blocked_msglib_ptb_builder.json +22 -22
  132. package/deployments/sui-testnet/call.json +21 -22
  133. package/deployments/sui-testnet/counter.json +46 -39
  134. package/deployments/sui-testnet/dvn.json +13 -13
  135. package/deployments/sui-testnet/dvn_call_type.json +12 -12
  136. package/deployments/sui-testnet/dvn_fee_lib.json +22 -22
  137. package/deployments/sui-testnet/dvn_layerzero.json +17 -17
  138. package/deployments/sui-testnet/dvn_ptb_builder.json +20 -20
  139. package/deployments/sui-testnet/endpoint_ptb_builder.json +33 -33
  140. package/deployments/sui-testnet/endpoint_v2.json +30 -30
  141. package/deployments/sui-testnet/executor.json +21 -21
  142. package/deployments/sui-testnet/executor_call_type.json +19 -19
  143. package/deployments/sui-testnet/executor_fee_lib.json +26 -26
  144. package/deployments/sui-testnet/executor_layerzero.json +17 -17
  145. package/deployments/sui-testnet/executor_ptb_builder.json +20 -20
  146. package/deployments/sui-testnet/layerzero_views.json +13 -13
  147. package/deployments/sui-testnet/message_lib_common.json +13 -13
  148. package/deployments/sui-testnet/msglib_ptb_builder_call_types.json +13 -13
  149. package/deployments/sui-testnet/multi_call.json +45 -0
  150. package/deployments/sui-testnet/oapp.json +21 -21
  151. package/deployments/sui-testnet/object-BlockedMessageLib.json +5 -5
  152. package/deployments/sui-testnet/object-BlockedMsglibPtbBuilder.json +5 -5
  153. package/deployments/sui-testnet/object-Counter.json +5 -5
  154. package/deployments/sui-testnet/object-CounterAdminCap.json +5 -5
  155. package/deployments/sui-testnet/object-CounterOApp.json +5 -5
  156. package/deployments/sui-testnet/object-DVN.json +2 -2
  157. package/deployments/sui-testnet/object-DVNCap.json +5 -5
  158. package/deployments/sui-testnet/object-DVNFeeLib.json +5 -5
  159. package/deployments/sui-testnet/object-EndpointPtbBuilder.json +5 -5
  160. package/deployments/sui-testnet/object-EndpointPtbBuilderAdminCap.json +5 -5
  161. package/deployments/sui-testnet/object-EndpointV2.json +5 -5
  162. package/deployments/sui-testnet/object-EndpointV2AdminCap.json +5 -5
  163. package/deployments/sui-testnet/object-Executor.json +2 -2
  164. package/deployments/sui-testnet/object-ExecutorCap.json +5 -5
  165. package/deployments/sui-testnet/object-ExecutorFeeLib.json +5 -5
  166. package/deployments/sui-testnet/object-ExecutorOwnerCap.json +2 -2
  167. package/deployments/sui-testnet/object-OFT-TokenTwo.json +5 -0
  168. package/deployments/sui-testnet/object-OFTComposerManager.json +9 -0
  169. package/deployments/sui-testnet/object-OFTInitTicket-TokenTwo.json +9 -0
  170. package/deployments/sui-testnet/object-OFTOApp-TokenTwo.json +9 -0
  171. package/deployments/sui-testnet/object-PackageWhitelistValidator.json +5 -5
  172. package/deployments/sui-testnet/object-PriceFeed.json +5 -5
  173. package/deployments/sui-testnet/object-PriceFeedOwnerCap.json +5 -5
  174. package/deployments/sui-testnet/object-SimpleMessageLib.json +5 -5
  175. package/deployments/sui-testnet/object-SimpleMessageLibAdminCap.json +5 -5
  176. package/deployments/sui-testnet/object-SmlPtbBuilder.json +5 -5
  177. package/deployments/sui-testnet/object-TestCoinMetadata.json +9 -0
  178. package/deployments/sui-testnet/object-TestCoinTreasuryCap.json +9 -0
  179. package/deployments/sui-testnet/object-Treasury.json +5 -5
  180. package/deployments/sui-testnet/object-TreasuryAdminCap.json +5 -5
  181. package/deployments/sui-testnet/object-ULN302.json +5 -5
  182. package/deployments/sui-testnet/object-ULN302AdminCap.json +5 -5
  183. package/deployments/sui-testnet/object-Uln302PtbBuilder.json +5 -5
  184. package/deployments/sui-testnet/object-Uln302Verification.json +5 -5
  185. package/deployments/sui-testnet/object-WorkerRegistry.json +5 -5
  186. package/deployments/sui-testnet/object-ZroCoinMetadata.json +5 -5
  187. package/deployments/sui-testnet/object-ZroTreasuryCap.json +5 -5
  188. package/deployments/sui-testnet/oft-TokenTwo.json +82 -0
  189. package/deployments/sui-testnet/oft_common.json +61 -0
  190. package/deployments/sui-testnet/package_whitelist_validator.json +50 -50
  191. package/deployments/sui-testnet/price_feed.json +31 -31
  192. package/deployments/sui-testnet/price_feed_call_types.json +19 -19
  193. package/deployments/sui-testnet/ptb_move_call.json +13 -13
  194. package/deployments/sui-testnet/simple_message_lib.json +22 -22
  195. package/deployments/sui-testnet/simple_msglib_ptb_builder.json +25 -25
  196. package/deployments/sui-testnet/test_coin.json +69 -0
  197. package/deployments/sui-testnet/treasury.json +29 -29
  198. package/deployments/sui-testnet/uln_302.json +46 -46
  199. package/deployments/sui-testnet/uln_302_ptb_builder.json +18 -18
  200. package/deployments/sui-testnet/uln_common.json +21 -21
  201. package/deployments/sui-testnet/utils.json +20 -20
  202. package/deployments/sui-testnet/worker_common.json +13 -13
  203. package/deployments/sui-testnet/worker_registry.json +26 -26
  204. package/deployments/sui-testnet/zro.json +27 -27
  205. package/dist/index.cjs +253 -252
  206. package/dist/index.cjs.map +1 -1
  207. package/dist/index.d.mts +52 -50
  208. package/dist/index.d.ts +52 -50
  209. package/dist/index.mjs +253 -252
  210. package/dist/index.mjs.map +1 -1
  211. package/package.json +7 -7
  212. package/src/generated/addresses.ts +169 -169
  213. package/src/modules/call.ts +2 -2
  214. package/src/modules/endpoint.ts +46 -53
  215. package/src/modules/oapps/counter.ts +5 -8
  216. package/src/modules/oapps/oapp.ts +42 -28
  217. 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
@@ -4523,8 +4522,6 @@ declare class OApp {
4523
4522
  /**
4524
4523
  * Set enforced options for OApp messaging
4525
4524
  * @param tx - The transaction to add the move call to
4526
- * @param oapp - The OApp object ID or transaction argument
4527
- * @param adminCap - The admin capability object ID or transaction argument
4528
4525
  * @param eid - Endpoint ID or transaction argument
4529
4526
  * @param msgType - Message type or transaction argument
4530
4527
  * @param options - Enforced options as bytes or transaction argument
@@ -4533,8 +4530,6 @@ declare class OApp {
4533
4530
  /**
4534
4531
  * Set peer OApp on another chain
4535
4532
  * @param tx - The transaction to add the move call to
4536
- * @param oapp - The OApp object ID or transaction argument
4537
- * @param adminCap - The admin capability object ID or transaction argument
4538
4533
  * @param eid - Peer endpoint ID or transaction argument
4539
4534
  * @param peer - Peer OApp address as bytes or transaction argument
4540
4535
  */
@@ -4555,20 +4550,17 @@ declare class OApp {
4555
4550
  /**
4556
4551
  * Get OApp CallCap identifier
4557
4552
  * @param tx - The transaction to add the move call to
4558
- * @param oapp - The OApp object ID or transaction argument
4559
4553
  * @returns Transaction result containing the OApp CallCap identifier
4560
4554
  */
4561
4555
  getOAppCapIdMoveCall(tx: Transaction): Promise<TransactionResult>;
4562
4556
  /**
4563
4557
  * Get OApp CallCap identifier
4564
- * @param oapp - The OApp object ID (optional, uses configured oapp if not provided)
4565
4558
  * @returns Promise<string> - The OApp CallCap identifier
4566
4559
  */
4567
4560
  getOAppCapId(): Promise<string>;
4568
4561
  /**
4569
4562
  * Combine enforced options with extra options for message execution
4570
4563
  * @param tx - The transaction to add the move call to
4571
- * @param oapp - The OApp object ID or transaction argument
4572
4564
  * @param eid - Destination endpoint ID or transaction argument
4573
4565
  * @param msgType - Message type or transaction argument
4574
4566
  * @param extraOptions - Extra options to combine with enforced options or transaction argument
@@ -4577,7 +4569,6 @@ declare class OApp {
4577
4569
  combineOptionsMoveCall(tx: Transaction, eid: number | TransactionArgument, msgType: number | TransactionArgument, extraOptions: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4578
4570
  /**
4579
4571
  * Combine enforced options with extra options for message execution
4580
- * @param oapp - The OApp object ID
4581
4572
  * @param eid - Destination endpoint ID
4582
4573
  * @param msgType - Message type
4583
4574
  * @param extraOptions - Extra options to combine with enforced options
@@ -4587,7 +4578,6 @@ declare class OApp {
4587
4578
  /**
4588
4579
  * Get enforced options for a specific destination and message type
4589
4580
  * @param tx - The transaction to add the move call to
4590
- * @param oapp - The OApp object ID or transaction argument
4591
4581
  * @param eid - Destination endpoint ID or transaction argument
4592
4582
  * @param msgType - Message type or transaction argument
4593
4583
  * @returns Transaction result containing enforced options
@@ -4595,7 +4585,6 @@ declare class OApp {
4595
4585
  getEnforcedOptionsMoveCall(tx: Transaction, eid: number | TransactionArgument, msgType: number | TransactionArgument): Promise<TransactionResult>;
4596
4586
  /**
4597
4587
  * Get enforced options for a specific destination and message type
4598
- * @param oapp - The OApp object ID
4599
4588
  * @param eid - Destination endpoint ID
4600
4589
  * @param msgType - Message type
4601
4590
  * @returns Promise<Uint8Array> - Enforced options as bytes
@@ -4604,14 +4593,12 @@ declare class OApp {
4604
4593
  /**
4605
4594
  * Check if a peer is configured for a specific destination chain
4606
4595
  * @param tx - The transaction to add the move call to
4607
- * @param oapp - The OApp object ID or transaction argument
4608
4596
  * @param dstEid - Destination endpoint ID or transaction argument
4609
4597
  * @returns Transaction result containing boolean result
4610
4598
  */
4611
4599
  hasPeerMoveCall(tx: Transaction, dstEid: number | TransactionArgument): Promise<TransactionResult>;
4612
4600
  /**
4613
4601
  * Check if a peer is configured for a specific destination chain
4614
- * @param oapp - The OApp object ID
4615
4602
  * @param dstEid - Destination endpoint ID
4616
4603
  * @returns Promise<boolean> - True if peer is configured, false otherwise
4617
4604
  */
@@ -4619,27 +4606,36 @@ declare class OApp {
4619
4606
  /**
4620
4607
  * Get the configured peer address for a specific destination chain
4621
4608
  * @param tx - The transaction to add the move call to
4622
- * @param oapp - The OApp object ID or transaction argument
4623
4609
  * @param dstEid - Destination endpoint ID or transaction argument
4624
4610
  * @returns Transaction result containing peer address
4625
4611
  */
4626
4612
  getPeerMoveCall(tx: Transaction, dstEid: number | TransactionArgument): Promise<TransactionResult>;
4627
4613
  /**
4628
4614
  * Get the configured peer address for a specific destination chain
4629
- * @param oapp - The OApp object ID
4630
4615
  * @param dstEid - Destination endpoint ID
4631
4616
  * @returns Promise<Uint8Array> - Peer address as bytes32
4632
4617
  */
4633
4618
  getPeer(dstEid: number): Promise<Uint8Array>;
4619
+ /**
4620
+ * Get OApp information V1 structure
4621
+ * @param tx - The transaction to add the move call to
4622
+ * @returns Transaction result containing the OApp information V1
4623
+ */
4634
4624
  getOAppInfoV1MoveCall(tx: Transaction): TransactionResult;
4625
+ /**
4626
+ * Get OApp information V1 structure
4627
+ * @returns Promise<OAppInfoV1> - The OApp information V1
4628
+ */
4635
4629
  getOAppInfoV1(): Promise<OAppInfoV1>;
4630
+ getOAppInfoV1ExtraInfoMoveCall(tx: Transaction, oappInfo: string | TransactionArgument): TransactionResult;
4636
4631
  /**
4637
4632
  * Register OApp with the endpoint
4638
4633
  * @param tx - The transaction to add the move call to
4634
+ * @param oappObjectId - The OApp object ID
4639
4635
  * @param oappInfo - OApp information as bytes (optional)
4640
4636
  * @returns Transaction result containing the messaging channel address
4641
4637
  */
4642
- registerOAppMoveCall(tx: Transaction, oappInfo?: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4638
+ registerOAppMoveCall(tx: Transaction, oappObjectId: string, oappInfo?: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4643
4639
  /**
4644
4640
  * Set delegate for OApp
4645
4641
  * @param tx - The transaction to add the move call to
@@ -4650,8 +4646,9 @@ declare class OApp {
4650
4646
  * Set OApp information in the endpoint
4651
4647
  * @param tx - The transaction to add the move call to
4652
4648
  * @param oappInfo - OApp information as bytes
4649
+ * @param oappObjectId - Optional OApp object ID (uses configured oapp if not provided)
4653
4650
  */
4654
- setOAppInfoMoveCall(tx: Transaction, oappInfo: Uint8Array | TransactionArgument): Promise<void>;
4651
+ setOAppInfoMoveCall(tx: Transaction, oappInfo: Uint8Array | TransactionArgument, oappObjectId?: string): Promise<void>;
4655
4652
  /**
4656
4653
  * Initialize channel with remote OApp
4657
4654
  * @param tx - The transaction to add the move call to
@@ -4728,6 +4725,11 @@ declare class OApp {
4728
4725
  * @returns Transaction result containing Call<MessageLibSetConfigParam, Void>
4729
4726
  */
4730
4727
  setConfigMoveCall(tx: Transaction, lib: string | TransactionArgument, eid: number | TransactionArgument, configType: number | TransactionArgument, config: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4728
+ /**
4729
+ * Refresh the cached OApp information by fetching the latest data
4730
+ * @returns Promise<void> - Completes when the OApp info is refreshed
4731
+ */
4732
+ refreshOAppInfo(): Promise<void>;
4731
4733
  }
4732
4734
 
4733
4735
  /**
@@ -4797,7 +4799,7 @@ declare const CallErrorCode: {
4797
4799
  readonly Call_EParameterNotMutable: 9;
4798
4800
  readonly Call_EUnauthorized: 10;
4799
4801
  readonly CallCap_EBadWitness: 1;
4800
- readonly MultiCall_ECalleeNotFound: 1;
4802
+ readonly MultiCall_ENoMoreCalls: 1;
4801
4803
  readonly MultiCall_EUnauthorized: 2;
4802
4804
  };
4803
4805
  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
@@ -4523,8 +4522,6 @@ declare class OApp {
4523
4522
  /**
4524
4523
  * Set enforced options for OApp messaging
4525
4524
  * @param tx - The transaction to add the move call to
4526
- * @param oapp - The OApp object ID or transaction argument
4527
- * @param adminCap - The admin capability object ID or transaction argument
4528
4525
  * @param eid - Endpoint ID or transaction argument
4529
4526
  * @param msgType - Message type or transaction argument
4530
4527
  * @param options - Enforced options as bytes or transaction argument
@@ -4533,8 +4530,6 @@ declare class OApp {
4533
4530
  /**
4534
4531
  * Set peer OApp on another chain
4535
4532
  * @param tx - The transaction to add the move call to
4536
- * @param oapp - The OApp object ID or transaction argument
4537
- * @param adminCap - The admin capability object ID or transaction argument
4538
4533
  * @param eid - Peer endpoint ID or transaction argument
4539
4534
  * @param peer - Peer OApp address as bytes or transaction argument
4540
4535
  */
@@ -4555,20 +4550,17 @@ declare class OApp {
4555
4550
  /**
4556
4551
  * Get OApp CallCap identifier
4557
4552
  * @param tx - The transaction to add the move call to
4558
- * @param oapp - The OApp object ID or transaction argument
4559
4553
  * @returns Transaction result containing the OApp CallCap identifier
4560
4554
  */
4561
4555
  getOAppCapIdMoveCall(tx: Transaction): Promise<TransactionResult>;
4562
4556
  /**
4563
4557
  * Get OApp CallCap identifier
4564
- * @param oapp - The OApp object ID (optional, uses configured oapp if not provided)
4565
4558
  * @returns Promise<string> - The OApp CallCap identifier
4566
4559
  */
4567
4560
  getOAppCapId(): Promise<string>;
4568
4561
  /**
4569
4562
  * Combine enforced options with extra options for message execution
4570
4563
  * @param tx - The transaction to add the move call to
4571
- * @param oapp - The OApp object ID or transaction argument
4572
4564
  * @param eid - Destination endpoint ID or transaction argument
4573
4565
  * @param msgType - Message type or transaction argument
4574
4566
  * @param extraOptions - Extra options to combine with enforced options or transaction argument
@@ -4577,7 +4569,6 @@ declare class OApp {
4577
4569
  combineOptionsMoveCall(tx: Transaction, eid: number | TransactionArgument, msgType: number | TransactionArgument, extraOptions: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4578
4570
  /**
4579
4571
  * Combine enforced options with extra options for message execution
4580
- * @param oapp - The OApp object ID
4581
4572
  * @param eid - Destination endpoint ID
4582
4573
  * @param msgType - Message type
4583
4574
  * @param extraOptions - Extra options to combine with enforced options
@@ -4587,7 +4578,6 @@ declare class OApp {
4587
4578
  /**
4588
4579
  * Get enforced options for a specific destination and message type
4589
4580
  * @param tx - The transaction to add the move call to
4590
- * @param oapp - The OApp object ID or transaction argument
4591
4581
  * @param eid - Destination endpoint ID or transaction argument
4592
4582
  * @param msgType - Message type or transaction argument
4593
4583
  * @returns Transaction result containing enforced options
@@ -4595,7 +4585,6 @@ declare class OApp {
4595
4585
  getEnforcedOptionsMoveCall(tx: Transaction, eid: number | TransactionArgument, msgType: number | TransactionArgument): Promise<TransactionResult>;
4596
4586
  /**
4597
4587
  * Get enforced options for a specific destination and message type
4598
- * @param oapp - The OApp object ID
4599
4588
  * @param eid - Destination endpoint ID
4600
4589
  * @param msgType - Message type
4601
4590
  * @returns Promise<Uint8Array> - Enforced options as bytes
@@ -4604,14 +4593,12 @@ declare class OApp {
4604
4593
  /**
4605
4594
  * Check if a peer is configured for a specific destination chain
4606
4595
  * @param tx - The transaction to add the move call to
4607
- * @param oapp - The OApp object ID or transaction argument
4608
4596
  * @param dstEid - Destination endpoint ID or transaction argument
4609
4597
  * @returns Transaction result containing boolean result
4610
4598
  */
4611
4599
  hasPeerMoveCall(tx: Transaction, dstEid: number | TransactionArgument): Promise<TransactionResult>;
4612
4600
  /**
4613
4601
  * Check if a peer is configured for a specific destination chain
4614
- * @param oapp - The OApp object ID
4615
4602
  * @param dstEid - Destination endpoint ID
4616
4603
  * @returns Promise<boolean> - True if peer is configured, false otherwise
4617
4604
  */
@@ -4619,27 +4606,36 @@ declare class OApp {
4619
4606
  /**
4620
4607
  * Get the configured peer address for a specific destination chain
4621
4608
  * @param tx - The transaction to add the move call to
4622
- * @param oapp - The OApp object ID or transaction argument
4623
4609
  * @param dstEid - Destination endpoint ID or transaction argument
4624
4610
  * @returns Transaction result containing peer address
4625
4611
  */
4626
4612
  getPeerMoveCall(tx: Transaction, dstEid: number | TransactionArgument): Promise<TransactionResult>;
4627
4613
  /**
4628
4614
  * Get the configured peer address for a specific destination chain
4629
- * @param oapp - The OApp object ID
4630
4615
  * @param dstEid - Destination endpoint ID
4631
4616
  * @returns Promise<Uint8Array> - Peer address as bytes32
4632
4617
  */
4633
4618
  getPeer(dstEid: number): Promise<Uint8Array>;
4619
+ /**
4620
+ * Get OApp information V1 structure
4621
+ * @param tx - The transaction to add the move call to
4622
+ * @returns Transaction result containing the OApp information V1
4623
+ */
4634
4624
  getOAppInfoV1MoveCall(tx: Transaction): TransactionResult;
4625
+ /**
4626
+ * Get OApp information V1 structure
4627
+ * @returns Promise<OAppInfoV1> - The OApp information V1
4628
+ */
4635
4629
  getOAppInfoV1(): Promise<OAppInfoV1>;
4630
+ getOAppInfoV1ExtraInfoMoveCall(tx: Transaction, oappInfo: string | TransactionArgument): TransactionResult;
4636
4631
  /**
4637
4632
  * Register OApp with the endpoint
4638
4633
  * @param tx - The transaction to add the move call to
4634
+ * @param oappObjectId - The OApp object ID
4639
4635
  * @param oappInfo - OApp information as bytes (optional)
4640
4636
  * @returns Transaction result containing the messaging channel address
4641
4637
  */
4642
- registerOAppMoveCall(tx: Transaction, oappInfo?: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4638
+ registerOAppMoveCall(tx: Transaction, oappObjectId: string, oappInfo?: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4643
4639
  /**
4644
4640
  * Set delegate for OApp
4645
4641
  * @param tx - The transaction to add the move call to
@@ -4650,8 +4646,9 @@ declare class OApp {
4650
4646
  * Set OApp information in the endpoint
4651
4647
  * @param tx - The transaction to add the move call to
4652
4648
  * @param oappInfo - OApp information as bytes
4649
+ * @param oappObjectId - Optional OApp object ID (uses configured oapp if not provided)
4653
4650
  */
4654
- setOAppInfoMoveCall(tx: Transaction, oappInfo: Uint8Array | TransactionArgument): Promise<void>;
4651
+ setOAppInfoMoveCall(tx: Transaction, oappInfo: Uint8Array | TransactionArgument, oappObjectId?: string): Promise<void>;
4655
4652
  /**
4656
4653
  * Initialize channel with remote OApp
4657
4654
  * @param tx - The transaction to add the move call to
@@ -4728,6 +4725,11 @@ declare class OApp {
4728
4725
  * @returns Transaction result containing Call<MessageLibSetConfigParam, Void>
4729
4726
  */
4730
4727
  setConfigMoveCall(tx: Transaction, lib: string | TransactionArgument, eid: number | TransactionArgument, configType: number | TransactionArgument, config: Uint8Array | TransactionArgument): Promise<TransactionResult>;
4728
+ /**
4729
+ * Refresh the cached OApp information by fetching the latest data
4730
+ * @returns Promise<void> - Completes when the OApp info is refreshed
4731
+ */
4732
+ refreshOAppInfo(): Promise<void>;
4731
4733
  }
4732
4734
 
4733
4735
  /**
@@ -4797,7 +4799,7 @@ declare const CallErrorCode: {
4797
4799
  readonly Call_EParameterNotMutable: 9;
4798
4800
  readonly Call_EUnauthorized: 10;
4799
4801
  readonly CallCap_EBadWitness: 1;
4800
- readonly MultiCall_ECalleeNotFound: 1;
4802
+ readonly MultiCall_ENoMoreCalls: 1;
4801
4803
  readonly MultiCall_EUnauthorized: 2;
4802
4804
  };
4803
4805
  declare class Call {