@layerzerolabs/lz-sui-sdk-v2 3.0.134 → 3.0.135-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 (164) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/deployments/sui-sandbox-local/blocked_message_lib.json +18 -18
  3. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +22 -22
  4. package/deployments/sui-sandbox-local/call.json +18 -19
  5. package/deployments/sui-sandbox-local/counter.json +79 -44
  6. package/deployments/sui-sandbox-local/dvn.json +15 -14
  7. package/deployments/sui-sandbox-local/dvn_call_type.json +28 -28
  8. package/deployments/sui-sandbox-local/dvn_fee_lib.json +27 -27
  9. package/deployments/sui-sandbox-local/dvn_layerzero.json +19 -19
  10. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +14 -14
  11. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +31 -31
  12. package/deployments/sui-sandbox-local/endpoint_v2.json +26 -26
  13. package/deployments/sui-sandbox-local/executor.json +23 -22
  14. package/deployments/sui-sandbox-local/executor_call_type.json +28 -28
  15. package/deployments/sui-sandbox-local/executor_fee_lib.json +32 -32
  16. package/deployments/sui-sandbox-local/executor_layerzero.json +25 -25
  17. package/deployments/sui-sandbox-local/executor_ptb_builder.json +21 -21
  18. package/deployments/sui-sandbox-local/layerzero_views.json +21 -21
  19. package/deployments/sui-sandbox-local/message_lib_common.json +21 -21
  20. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +13 -13
  21. package/deployments/sui-sandbox-local/multi_call.json +45 -0
  22. package/deployments/sui-sandbox-local/oapp.json +23 -21
  23. package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +5 -5
  24. package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +5 -5
  25. package/deployments/sui-sandbox-local/object-Counter.json +5 -5
  26. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +5 -5
  27. package/deployments/sui-sandbox-local/object-CounterOApp.json +5 -5
  28. package/deployments/sui-sandbox-local/object-DVN.json +2 -2
  29. package/deployments/sui-sandbox-local/object-DVNCap.json +5 -5
  30. package/deployments/sui-sandbox-local/object-DVNFeeLib.json +5 -5
  31. package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +5 -5
  32. package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +5 -5
  33. package/deployments/sui-sandbox-local/object-EndpointV2.json +5 -5
  34. package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +5 -5
  35. package/deployments/sui-sandbox-local/object-Executor.json +2 -2
  36. package/deployments/sui-sandbox-local/object-ExecutorCap.json +5 -5
  37. package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
  38. package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
  39. package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +5 -5
  40. package/deployments/sui-sandbox-local/object-PriceFeed.json +5 -5
  41. package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +5 -5
  42. package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +5 -5
  43. package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +5 -5
  44. package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +5 -5
  45. package/deployments/sui-sandbox-local/object-Treasury.json +5 -5
  46. package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +5 -5
  47. package/deployments/sui-sandbox-local/object-ULN302.json +5 -5
  48. package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +5 -5
  49. package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +5 -5
  50. package/deployments/sui-sandbox-local/object-Uln302Verification.json +5 -5
  51. package/deployments/sui-sandbox-local/object-WorkerRegistry.json +9 -0
  52. package/deployments/sui-sandbox-local/package_whitelist_validator.json +45 -45
  53. package/deployments/sui-sandbox-local/price_feed.json +39 -39
  54. package/deployments/sui-sandbox-local/price_feed_call_types.json +19 -19
  55. package/deployments/sui-sandbox-local/ptb_move_call.json +20 -20
  56. package/deployments/sui-sandbox-local/simple_message_lib.json +29 -29
  57. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +18 -18
  58. package/deployments/sui-sandbox-local/treasury.json +38 -38
  59. package/deployments/sui-sandbox-local/uln_302.json +43 -47
  60. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +25 -25
  61. package/deployments/sui-sandbox-local/uln_common.json +49 -0
  62. package/deployments/sui-sandbox-local/worker_common.json +21 -20
  63. package/deployments/sui-sandbox-local/worker_registry.json +58 -0
  64. package/deployments/sui-testnet/blocked_message_lib.json +25 -25
  65. package/deployments/sui-testnet/blocked_msglib_ptb_builder.json +25 -25
  66. package/deployments/sui-testnet/call.json +14 -15
  67. package/deployments/sui-testnet/counter.json +41 -34
  68. package/deployments/sui-testnet/dvn.json +22 -21
  69. package/deployments/sui-testnet/dvn_call_type.json +19 -19
  70. package/deployments/sui-testnet/dvn_fee_lib.json +26 -26
  71. package/deployments/sui-testnet/dvn_layerzero.json +24 -24
  72. package/deployments/sui-testnet/dvn_ptb_builder.json +13 -13
  73. package/deployments/sui-testnet/endpoint_ptb_builder.json +25 -25
  74. package/deployments/sui-testnet/endpoint_v2.json +30 -30
  75. package/deployments/sui-testnet/executor.json +14 -13
  76. package/deployments/sui-testnet/executor_call_type.json +12 -12
  77. package/deployments/sui-testnet/executor_fee_lib.json +26 -26
  78. package/deployments/sui-testnet/executor_layerzero.json +25 -25
  79. package/deployments/sui-testnet/executor_ptb_builder.json +13 -13
  80. package/deployments/sui-testnet/layerzero_views.json +13 -13
  81. package/deployments/sui-testnet/message_lib_common.json +21 -21
  82. package/deployments/sui-testnet/msglib_ptb_builder_call_types.json +13 -13
  83. package/deployments/sui-testnet/multi_call.json +45 -0
  84. package/deployments/sui-testnet/oapp.json +23 -21
  85. package/deployments/sui-testnet/object-BlockedMessageLib.json +5 -5
  86. package/deployments/sui-testnet/object-BlockedMsglibPtbBuilder.json +5 -5
  87. package/deployments/sui-testnet/object-Counter.json +5 -5
  88. package/deployments/sui-testnet/object-CounterAdminCap.json +5 -5
  89. package/deployments/sui-testnet/object-CounterOApp.json +5 -5
  90. package/deployments/sui-testnet/object-DVN.json +2 -2
  91. package/deployments/sui-testnet/object-DVNCap.json +5 -5
  92. package/deployments/sui-testnet/object-DVNFeeLib.json +5 -5
  93. package/deployments/sui-testnet/object-EndpointPtbBuilder.json +5 -5
  94. package/deployments/sui-testnet/object-EndpointPtbBuilderAdminCap.json +5 -5
  95. package/deployments/sui-testnet/object-EndpointV2.json +5 -5
  96. package/deployments/sui-testnet/object-EndpointV2AdminCap.json +5 -5
  97. package/deployments/sui-testnet/object-Executor.json +2 -2
  98. package/deployments/sui-testnet/object-ExecutorCap.json +5 -5
  99. package/deployments/sui-testnet/object-ExecutorFeeLib.json +5 -5
  100. package/deployments/sui-testnet/object-ExecutorOwnerCap.json +2 -2
  101. package/deployments/sui-testnet/object-PackageWhitelistValidator.json +5 -5
  102. package/deployments/sui-testnet/object-PriceFeed.json +5 -5
  103. package/deployments/sui-testnet/object-PriceFeedOwnerCap.json +5 -5
  104. package/deployments/sui-testnet/object-SimpleMessageLib.json +5 -5
  105. package/deployments/sui-testnet/object-SimpleMessageLibAdminCap.json +5 -5
  106. package/deployments/sui-testnet/object-SmlPtbBuilder.json +5 -5
  107. package/deployments/sui-testnet/object-Treasury.json +5 -5
  108. package/deployments/sui-testnet/object-TreasuryAdminCap.json +5 -5
  109. package/deployments/sui-testnet/object-ULN302.json +5 -5
  110. package/deployments/sui-testnet/object-ULN302AdminCap.json +5 -5
  111. package/deployments/sui-testnet/object-Uln302PtbBuilder.json +5 -5
  112. package/deployments/sui-testnet/object-Uln302Verification.json +5 -5
  113. package/deployments/sui-testnet/object-WorkerRegistry.json +9 -0
  114. package/deployments/sui-testnet/object-ZroCoinMetadata.json +5 -5
  115. package/deployments/sui-testnet/object-ZroTreasuryCap.json +5 -5
  116. package/deployments/sui-testnet/package_whitelist_validator.json +51 -51
  117. package/deployments/sui-testnet/price_feed.json +34 -34
  118. package/deployments/sui-testnet/price_feed_call_types.json +19 -19
  119. package/deployments/sui-testnet/ptb_move_call.json +21 -21
  120. package/deployments/sui-testnet/simple_message_lib.json +29 -29
  121. package/deployments/sui-testnet/simple_msglib_ptb_builder.json +22 -22
  122. package/deployments/sui-testnet/treasury.json +30 -58
  123. package/deployments/sui-testnet/uln_302.json +46 -50
  124. package/deployments/sui-testnet/uln_302_ptb_builder.json +25 -25
  125. package/deployments/sui-testnet/uln_common.json +49 -0
  126. package/deployments/sui-testnet/utils.json +20 -20
  127. package/deployments/sui-testnet/worker_common.json +21 -20
  128. package/deployments/sui-testnet/worker_registry.json +58 -0
  129. package/deployments/sui-testnet/zro.json +28 -28
  130. package/dist/index.cjs +1231 -464
  131. package/dist/index.cjs.map +1 -1
  132. package/dist/index.d.mts +728 -379
  133. package/dist/index.d.ts +728 -379
  134. package/dist/index.mjs +1220 -464
  135. package/dist/index.mjs.map +1 -1
  136. package/package.json +7 -7
  137. package/src/bcs/index.ts +2 -1
  138. package/src/bcs/oapp.ts +14 -0
  139. package/src/generated/addresses.ts +124 -106
  140. package/src/module-manager.ts +15 -3
  141. package/src/modules/call.ts +16 -6
  142. package/src/modules/endpoint.ts +54 -53
  143. package/src/modules/message-libs/simple-message-lib.ts +3 -2
  144. package/src/modules/message-libs/uln302.ts +28 -26
  145. package/src/modules/oapps/counter.ts +34 -53
  146. package/src/modules/oapps/oapp.ts +489 -74
  147. package/src/modules/ptb-builders/endpoint-ptb-builder.ts +9 -3
  148. package/src/modules/ptb-builders/ptb-builder.ts +19 -4
  149. package/src/modules/ptb-builders/uln302-ptb-builder.ts +5 -0
  150. package/src/modules/workers/dvn-layerzero.ts +9 -0
  151. package/src/modules/workers/dvn.ts +214 -6
  152. package/src/modules/workers/executor-fee-lib.ts +11 -3
  153. package/src/modules/workers/executor-layerzero.ts +9 -0
  154. package/src/modules/workers/executor.ts +115 -0
  155. package/src/modules/workers/index.ts +1 -0
  156. package/src/modules/workers/treasury.ts +4 -4
  157. package/src/modules/workers/worker-registry.ts +110 -0
  158. package/src/resource.ts +3 -0
  159. package/src/sdk.ts +7 -2
  160. package/src/types/endpoint.ts +2 -1
  161. package/src/types/modules.ts +1 -0
  162. package/src/types/oapp.ts +6 -0
  163. package/src/types/options.ts +15 -0
  164. package/src/utils/transaction.ts +3 -3
package/dist/index.mjs CHANGED
@@ -17,6 +17,10 @@ var DvnDstConfigBcs = bcs.struct("DstConfig", {
17
17
  multiplier_bps: bcs.U16,
18
18
  floor_margin_usd: bcs.U128
19
19
  });
20
+ var TimeoutBcs = bcs.struct("Timeout", {
21
+ expiry: bcs.U64,
22
+ fallback_lib: bcs.Address
23
+ });
20
24
  var Bytes32Bcs = bcs.struct("Bytes32", {
21
25
  bytes: bcs.vector(bcs.u8())
22
26
  });
@@ -62,6 +66,16 @@ var MoveCallBCS = bcs.struct("MoveCall", {
62
66
  result_ids: bcs.vector(bcs.vector(bcs.u8()))
63
67
  });
64
68
  var VectorMoveCallBCS = bcs.vector(MoveCallBCS);
69
+ var OAppInfoV1Bcs = bcs.struct("OAppInfoV1", {
70
+ // Object ID address of the OApp instance
71
+ oapp_object: bcs.Address,
72
+ // Used to populate the MoveCalls to fetch the next nonce that can be executed by an executor
73
+ next_nonce_info: bcs.vector(bcs.u8()),
74
+ // Used to populate the MoveCalls to execute lz_receive by executor
75
+ lz_receive_info: bcs.vector(bcs.u8()),
76
+ // Additional configuration data for custom OApp functionality
77
+ extra_info: bcs.vector(bcs.u8())
78
+ });
65
79
  var PriceBcs = bcs.struct("Price", {
66
80
  price_ratio: bcs.U128,
67
81
  gas_price_in_unit: bcs.U64,
@@ -88,10 +102,6 @@ var OAppUlnConfigBcs = bcs.struct("OAppUlnConfig", {
88
102
  use_default_optional_dvns: bcs.Bool,
89
103
  uln_config: UlnConfigBcs
90
104
  });
91
- var TimeoutBcs = bcs.struct("Timeout", {
92
- expiry: bcs.U64,
93
- fallback_lib: bcs.Address
94
- });
95
105
 
96
106
  // src/types/modules.ts
97
107
  var Modules = /* @__PURE__ */ ((Modules2) => {
@@ -121,6 +131,7 @@ var Modules = /* @__PURE__ */ ((Modules2) => {
121
131
  Modules2["Counter"] = "counter";
122
132
  Modules2["DvnPtbBuilder"] = "dvnPtbBuilder";
123
133
  Modules2["ExecutorPtbBuilder"] = "executorPtbBuilder";
134
+ Modules2["WorkerRegistry"] = "workerRegistry";
124
135
  return Modules2;
125
136
  })(Modules || {});
126
137
 
@@ -210,6 +221,7 @@ var UlnVerificationState = {
210
221
  };
211
222
 
212
223
  // src/types/endpoint.ts
224
+ var OAppInfoVersion = { VERSION_1: 1, VERSION_2: 2 };
213
225
  var LzReceiveVersion = { VERSION_1: 1 };
214
226
  var LzComposeVersion = { VERSION_1: 1 };
215
227
  function isTransactionArgument(value) {
@@ -351,7 +363,7 @@ async function validateTransaction(client, signer, tx) {
351
363
  }
352
364
  async function executeSimulate(client, moveCallFn, parser) {
353
365
  const tx = new Transaction();
354
- moveCallFn(tx);
366
+ await moveCallFn(tx);
355
367
  const result = await simulateTransaction(client, tx);
356
368
  return parser(result);
357
369
  }
@@ -749,17 +761,22 @@ var EndpointErrorCode = {
749
761
  MessagingChannel_EPayloadHashNotFound: 9,
750
762
  MessagingChannel_ESendReentrancy: 10,
751
763
  MessagingChannel_EUninitializedChannel: 11,
764
+ // MessagingComposer related errors (with MessagingComposer_ prefix)
765
+ MessagingComposer_EComposeExists: 1,
766
+ MessagingComposer_EComposeMessageMismatch: 2,
767
+ MessagingComposer_EComposeNotFound: 3,
768
+ MessagingComposer_EComposerNotRegistered: 4,
769
+ MessagingComposer_EComposerRegistered: 5,
752
770
  // OAppRegistry related errors (with OAppRegistry_ prefix)
753
- OAppRegistry_EInvalidLZReceiveInfo: 1,
754
- OAppRegistry_EInvalidOriginalPackage: 2,
755
- OAppRegistry_EOAppNotRegistered: 3,
756
- OAppRegistry_EOAppRegistered: 4,
771
+ OAppRegistry_EOAppNotRegistered: 1,
772
+ OAppRegistry_EOAppRegistered: 2,
757
773
  // Endpoint related errors (with Endpoint_ prefix)
758
774
  Endpoint_EAlreadyInitialized: 1,
759
775
  Endpoint_EInvalidEid: 2,
760
776
  Endpoint_ENotInitialized: 3,
761
777
  Endpoint_ERefundAddressNotFound: 4,
762
- Endpoint_EUnauthorizedSendLibrary: 5
778
+ Endpoint_EUnauthorizedOApp: 5,
779
+ Endpoint_EUnauthorizedSendLibrary: 6
763
780
  };
764
781
  var _Endpoint_instances, addRequiredValidators_fn, target_fn;
765
782
  var Endpoint = class {
@@ -787,12 +804,13 @@ var Endpoint = class {
787
804
  * Register an OApp with the endpoint
788
805
  * @param tx - The transaction to add the move call to
789
806
  * @param oappCap - The OApp capability object ID or transaction argument
790
- * @param lzReceiveInfo - Transaction result containing LayerZero receive information
807
+ * @param oappInfo - OApp information including lz_receive execution information
808
+ * @returns Transaction result containing the messaging channel address
791
809
  */
792
- registerOAppMoveCall(tx, oappCap, lzReceiveInfo) {
793
- tx.moveCall({
810
+ registerOAppMoveCall(tx, oappCap, oappInfo) {
811
+ return tx.moveCall({
794
812
  target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "register_oapp"),
795
- arguments: [tx.object(this.objects.endpointV2), asObject(tx, oappCap), asBytes(tx, lzReceiveInfo)]
813
+ arguments: [tx.object(this.objects.endpointV2), asObject(tx, oappCap), asBytes(tx, oappInfo)]
796
814
  });
797
815
  }
798
816
  /**
@@ -808,20 +826,20 @@ var Endpoint = class {
808
826
  });
809
827
  }
810
828
  /**
811
- * Set LayerZero receive information for an OApp
829
+ * Set OApp information for an OApp
812
830
  * @param tx - The transaction to add the move call to
813
831
  * @param callerCap - The caller capability object ID or transaction argument
814
832
  * @param oapp - The OApp address or transaction argument
815
- * @param lzReceiveInfo - The LayerZero receive information as bytes or transaction argument
833
+ * @param oappInfo - The OApp information including lz_receive execution information as bytes or transaction argument
816
834
  */
817
- setLzReceiveInfoMoveCall(tx, callerCap, oapp, lzReceiveInfo) {
835
+ setOappInfoMoveCall(tx, callerCap, oapp, oappInfo) {
818
836
  tx.moveCall({
819
- target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "set_lz_receive_info"),
837
+ target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "set_oapp_info"),
820
838
  arguments: [
821
839
  tx.object(this.objects.endpointV2),
822
840
  asObject(tx, callerCap),
823
841
  asAddress(tx, oapp),
824
- asBytes(tx, lzReceiveInfo)
842
+ asBytes(tx, oappInfo)
825
843
  ]
826
844
  });
827
845
  }
@@ -1105,24 +1123,25 @@ var Endpoint = class {
1105
1123
  * Register a composer with the endpoint
1106
1124
  * @param tx - The transaction to add the move call to
1107
1125
  * @param composerCap - The composer capability object ID or transaction argument
1108
- * @param lzComposeInfo - LayerZero compose information as bytes
1126
+ * @param composerInfo - Composer information including lz_compose execution information as bytes
1127
+ * @returns Transaction result containing the compose queue address
1109
1128
  */
1110
- registerComposerMoveCall(tx, composerCap, lzComposeInfo) {
1111
- tx.moveCall({
1129
+ registerComposerMoveCall(tx, composerCap, composerInfo) {
1130
+ return tx.moveCall({
1112
1131
  target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "register_composer"),
1113
- arguments: [tx.object(this.objects.endpointV2), asObject(tx, composerCap), asBytes(tx, lzComposeInfo)]
1132
+ arguments: [tx.object(this.objects.endpointV2), asObject(tx, composerCap), asBytes(tx, composerInfo)]
1114
1133
  });
1115
1134
  }
1116
1135
  /**
1117
- * Set LayerZero compose information for a composer
1136
+ * Set composer information for a composer
1118
1137
  * @param tx - The transaction to add the move call to
1119
1138
  * @param composerCap - The composer capability object ID or transaction argument
1120
- * @param lzComposeInfo - LayerZero compose information as bytes or transaction argument
1139
+ * @param composerInfo - Composer information including lz_compose execution information as bytes or transaction argument
1121
1140
  */
1122
- setLzComposeInfoMoveCall(tx, composerCap, lzComposeInfo) {
1141
+ setComposerInfoMoveCall(tx, composerCap, composerInfo) {
1123
1142
  tx.moveCall({
1124
- target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "set_lz_compose_info"),
1125
- arguments: [tx.object(this.objects.endpointV2), asObject(tx, composerCap), asBytes(tx, lzComposeInfo)]
1143
+ target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "set_composer_info"),
1144
+ arguments: [tx.object(this.objects.endpointV2), asObject(tx, composerCap), asBytes(tx, composerInfo)]
1126
1145
  });
1127
1146
  }
1128
1147
  /**
@@ -1477,27 +1496,27 @@ var Endpoint = class {
1477
1496
  );
1478
1497
  }
1479
1498
  /**
1480
- * Get LayerZero receive information for an OApp
1499
+ * Get OApp information for an OApp
1481
1500
  * @param tx - The transaction to add the move call to
1482
1501
  * @param oapp - The OApp address or transaction argument
1483
- * @returns Transaction result containing the receive information
1502
+ * @returns Transaction result containing the OApp information including lz_receive execution information
1484
1503
  */
1485
- getLzReceiveInfoMoveCall(tx, oapp) {
1504
+ getOappInfoMoveCall(tx, oapp) {
1486
1505
  return tx.moveCall({
1487
- target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "get_lz_receive_info"),
1506
+ target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "get_oapp_info"),
1488
1507
  arguments: [tx.object(this.objects.endpointV2), asAddress(tx, oapp)]
1489
1508
  });
1490
1509
  }
1491
1510
  /**
1492
- * Get LayerZero receive information for an OApp
1511
+ * Get OApp information for an OApp
1493
1512
  * @param oapp - The OApp address
1494
- * @returns Promise<Uint8Array> - The receive information as bytes
1513
+ * @returns Promise<Uint8Array> - The OApp information including lz_receive execution information as bytes
1495
1514
  */
1496
- async getLzReceiveInfo(oapp) {
1515
+ async getOappInfo(oapp) {
1497
1516
  return executeSimulate(
1498
1517
  this.client,
1499
1518
  (tx) => {
1500
- return this.getLzReceiveInfoMoveCall(tx, oapp);
1519
+ return this.getOappInfoMoveCall(tx, oapp);
1501
1520
  },
1502
1521
  (result) => {
1503
1522
  const parsed = bcs.vector(bcs.u8()).parse(result[0].value);
@@ -1584,27 +1603,27 @@ var Endpoint = class {
1584
1603
  );
1585
1604
  }
1586
1605
  /**
1587
- * Get LayerZero compose information for a composer
1606
+ * Get composer information for a registered composer
1588
1607
  * @param tx - The transaction to add the move call to
1589
1608
  * @param composer - The composer address or transaction argument
1590
- * @returns Transaction result containing the compose information
1609
+ * @returns Transaction result containing the composer information
1591
1610
  */
1592
- getLzComposeInfoMoveCall(tx, composer) {
1611
+ getComposerInfoMoveCall(tx, composer) {
1593
1612
  return tx.moveCall({
1594
- target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "get_lz_compose_info"),
1613
+ target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "get_composer_info"),
1595
1614
  arguments: [tx.object(this.objects.endpointV2), asAddress(tx, composer)]
1596
1615
  });
1597
1616
  }
1598
1617
  /**
1599
- * Get LayerZero compose information for a composer
1618
+ * Get composer information for a registered composer
1600
1619
  * @param composer - The composer address
1601
- * @returns Promise<Uint8Array> - The compose information as bytes
1620
+ * @returns Promise<Uint8Array> - The composer information as bytes
1602
1621
  */
1603
- async getLzComposeInfo(composer) {
1622
+ async getComposerInfo(composer) {
1604
1623
  return executeSimulate(
1605
1624
  this.client,
1606
1625
  (tx) => {
1607
- this.getLzComposeInfoMoveCall(tx, composer);
1626
+ this.getComposerInfoMoveCall(tx, composer);
1608
1627
  },
1609
1628
  (result) => {
1610
1629
  const parsed = bcs.vector(bcs.u8()).parse(result[0].value);
@@ -2549,10 +2568,7 @@ var Endpoint = class {
2549
2568
  */
2550
2569
  async populateLzReceiveTransaction(tx, lzReceiveCall, oapp, sender = void 0, validators = [], maxSimulationTimes = DEFAULT_SIMULATION_TIMES) {
2551
2570
  const simulateTx = Transaction.from(tx);
2552
- simulateTx.moveCall({
2553
- target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "get_lz_receive_info"),
2554
- arguments: [simulateTx.object(this.objects.endpointV2), simulateTx.pure.address(oapp)]
2555
- });
2571
+ this.getOappInfoMoveCall(simulateTx, oapp);
2556
2572
  const moveCalls = await this.moduleManager.getPtbBuilder().simulateLzReceivePtb(simulateTx, sender);
2557
2573
  const [_, finalMoveCalls] = await this.moduleManager.getPtbBuilder().buildPtb(
2558
2574
  tx,
@@ -2580,10 +2596,7 @@ var Endpoint = class {
2580
2596
  */
2581
2597
  async populateLzComposeTransaction(tx, endpointLzComposeCall, composer, sender = void 0, validators = [], maxSimulationTimes = DEFAULT_SIMULATION_TIMES) {
2582
2598
  const simulateTx = Transaction.from(tx);
2583
- simulateTx.moveCall({
2584
- target: __privateMethod(this, _Endpoint_instances, target_fn).call(this, "get_lz_compose_info"),
2585
- arguments: [simulateTx.object(this.objects.endpointV2), simulateTx.pure.address(composer)]
2586
- });
2599
+ this.getComposerInfoMoveCall(simulateTx, composer);
2587
2600
  const moveCalls = await this.moduleManager.getPtbBuilder().simulateLzComposePtb(simulateTx, sender);
2588
2601
  const [_, finalMoveCalls] = await this.moduleManager.getPtbBuilder().buildPtb(
2589
2602
  tx,
@@ -2716,9 +2729,10 @@ target_fn2 = function(name, module_name = MODULE_NAME2) {
2716
2729
  };
2717
2730
  var MODULE_NAME3 = "simple_message_lib";
2718
2731
  var SimpleMessageLibErrorCode = {
2719
- // SimpleMessageLib related errors (with SimpleMessageLib_ prefix)
2720
- SimpleMessageLib_EConfigNotFound: 1,
2721
- SimpleMessageLib_EZROFeeNotEnabled: 2
2732
+ // SimpleMessageLib related errors (matching simple_message_lib.move)
2733
+ SimpleMessageLib_ENotImplemented: 1,
2734
+ SimpleMessageLib_EZROFeeNotEnabled: 2,
2735
+ SimpleMessageLib_EInvalidEid: 3
2722
2736
  };
2723
2737
  var _SimpleMessageLib_instances, target_fn3;
2724
2738
  var SimpleMessageLib = class {
@@ -2949,10 +2963,25 @@ var Uln302ErrorCode = {
2949
2963
  ReceiveUln302_EInvalidEid: 3,
2950
2964
  ReceiveUln302_EOAppUlnConfigNotFound: 4,
2951
2965
  ReceiveUln302_EVerifying: 5,
2952
- Uln302_EEndpointInitialized: 1,
2953
- Uln302_EInvalidConfigType: 2,
2954
- Uln302_EInvalidMessagingChannel: 3,
2955
- Uln302_EUnsupportedEid: 4
2966
+ Uln302_EInvalidConfigType: 1,
2967
+ Uln302_EInvalidMessagingChannel: 2,
2968
+ Uln302_EUnsupportedEid: 3,
2969
+ // UlnConfig related errors (matching uln_config.move)
2970
+ UlnConfig_EAtLeastOneDVN: 1,
2971
+ UlnConfig_EDuplicateOptionalDVNs: 2,
2972
+ UlnConfig_EDuplicateRequiredDVNs: 3,
2973
+ UlnConfig_EInvalidOptionalDVNCount: 4,
2974
+ UlnConfig_EInvalidOptionalDVNThreshold: 5,
2975
+ UlnConfig_EInvalidRequiredDVNCount: 6,
2976
+ UlnConfig_EInvalidUlnConfigBytes: 7,
2977
+ // OAppUlnConfig related errors (matching oapp_uln_config.move)
2978
+ OAppUlnConfig_EInvalidConfirmations: 1,
2979
+ OAppUlnConfig_EInvalidRequiredDVNs: 2,
2980
+ OAppUlnConfig_EInvalidOptionalDVNs: 3,
2981
+ // ExecutorConfig related errors (matching executor_config.move)
2982
+ ExecutorConfig_EInvalidExecutorAddress: 1,
2983
+ ExecutorConfig_EInvalidExecutorBytes: 2,
2984
+ ExecutorConfig_EZeroMessageSize: 3
2956
2985
  };
2957
2986
  var _Uln302_instances, target_fn4;
2958
2987
  var Uln302 = class {
@@ -3050,25 +3079,16 @@ var Uln302 = class {
3050
3079
  });
3051
3080
  }
3052
3081
  /**
3053
- * Verify packet move call with DVN signatures
3054
- * Note: This is typically called by DVNs, not directly by users
3082
+ * Verify packet move call with DVN call (new API)
3083
+ * Note: This is typically called by DVNs via Call objects, not directly by users
3055
3084
  * @param tx - The transaction to add the move call to
3056
3085
  * @param verification - The verification object address or transaction argument
3057
- * @param dvn - The DVN address performing verification or transaction argument
3058
- * @param packetHeader - The packet header as bytes or transaction argument
3059
- * @param payloadHash - The payload hash as bytes or transaction argument
3060
- * @param confirmations - Required confirmations count or transaction argument
3086
+ * @param call - The DVN verification call containing verification parameters
3061
3087
  */
3062
- verifyMoveCall(tx, verification, dvn, packetHeader, payloadHash, confirmations) {
3088
+ verifyMoveCall(tx, verification, call) {
3063
3089
  tx.moveCall({
3064
3090
  target: __privateMethod(this, _Uln302_instances, target_fn4).call(this, "verify"),
3065
- arguments: [
3066
- asObject(tx, verification),
3067
- asObject(tx, dvn),
3068
- asBytes(tx, packetHeader),
3069
- asBytes32(tx, payloadHash, this.moduleManager.getUtils()),
3070
- asU64(tx, confirmations)
3071
- ]
3091
+ arguments: [tx.object(this.objects.uln302), asObject(tx, verification), call]
3072
3092
  });
3073
3093
  }
3074
3094
  /**
@@ -3621,9 +3641,22 @@ var DVNErrorCode = {
3621
3641
  DVN_EExpiredSignature: 1,
3622
3642
  DVN_EEidNotSupported: 2,
3623
3643
  DVN_EHashAlreadyUsed: 3,
3624
- DVN_EPtbBuilderAlreadyInitialized: 4
3625
- };
3626
- var _DVN_instances, target_fn5;
3644
+ DVN_EPtbBuilderAlreadyInitialized: 4,
3645
+ // Multisig related errors (matching multisig.move)
3646
+ Multisig_EDuplicatedSigner: 1,
3647
+ Multisig_EInvalidSignatureLength: 2,
3648
+ Multisig_EInvalidSignerLength: 3,
3649
+ Multisig_EQuorumIsZero: 4,
3650
+ Multisig_ESignaturesLessThanQuorum: 5,
3651
+ Multisig_ESignerAlreadyExists: 6,
3652
+ Multisig_ESignerNotFound: 7,
3653
+ Multisig_ESignerNotInCommittee: 8,
3654
+ Multisig_ESignersSizeIsLessThanQuorum: 9,
3655
+ // DVNInfoV1 related errors (matching dvn_info_v1.move)
3656
+ DVNInfoV1_EInvalidData: 1,
3657
+ DVNInfoV1_EInvalidVersion: 2
3658
+ };
3659
+ var _DVN_instances, getUlnObjectAddress_fn, getUlnVerifyTarget_fn, target_fn5;
3627
3660
  var DVN = class {
3628
3661
  constructor(packageId, client, objects, moduleManager) {
3629
3662
  this.moduleManager = moduleManager;
@@ -3786,6 +3819,29 @@ var DVN = class {
3786
3819
  });
3787
3820
  }
3788
3821
  // === Set Functions with Signatures ===
3822
+ /**
3823
+ * Set supported message library (admin with signatures)
3824
+ * @param tx - The transaction to add the move call to
3825
+ * @param adminCap - The admin capability object ID
3826
+ * @param messageLib - The message library address
3827
+ * @param supported - Whether to support or remove support for the message library
3828
+ * @param expiration - Signature expiration timestamp
3829
+ * @param signatures - Multisig signatures for authorization
3830
+ */
3831
+ setSupportedMessageLibMoveCall(tx, adminCap, messageLib, supported, expiration, signatures) {
3832
+ tx.moveCall({
3833
+ target: __privateMethod(this, _DVN_instances, target_fn5).call(this, "set_supported_message_lib"),
3834
+ arguments: [
3835
+ tx.object(this.objects.dvn),
3836
+ asObject(tx, adminCap),
3837
+ asAddress(tx, messageLib),
3838
+ asBool(tx, supported),
3839
+ asU64(tx, expiration),
3840
+ asBytes(tx, signatures),
3841
+ tx.object.clock()
3842
+ ]
3843
+ });
3844
+ }
3789
3845
  /**
3790
3846
  * Set allowlist status for an OApp sender (admin with signatures)
3791
3847
  * @param tx - The transaction to add the move call to
@@ -3920,23 +3976,24 @@ var DVN = class {
3920
3976
  }
3921
3977
  // Verification Functions
3922
3978
  /**
3923
- * Verify a packet with DVN signatures (admin with signatures)
3979
+ * Verify a packet with DVN signatures (admin with signatures) - returns Call object for ULN302
3924
3980
  * @param tx - The transaction to add the move call to
3925
3981
  * @param adminCap - The admin capability object ID
3926
- * @param verification - The verification object address
3982
+ * @param targetMessageLib - The target message library address (usually ULN302)
3927
3983
  * @param packetHeader - The packet header as bytes
3928
3984
  * @param payloadHash - The payload hash as bytes
3929
3985
  * @param confirmations - Required confirmations count
3930
3986
  * @param expiration - Signature expiration timestamp
3931
3987
  * @param signatures - DVN multisig signatures
3988
+ * @returns Transaction result containing the verification Call object
3932
3989
  */
3933
- verifyMoveCall(tx, adminCap, verification, packetHeader, payloadHash, confirmations, expiration, signatures) {
3934
- tx.moveCall({
3990
+ verifyMoveCall(tx, adminCap, targetMessageLib, packetHeader, payloadHash, confirmations, expiration, signatures) {
3991
+ return tx.moveCall({
3935
3992
  target: __privateMethod(this, _DVN_instances, target_fn5).call(this, "verify"),
3936
3993
  arguments: [
3937
3994
  tx.object(this.objects.dvn),
3938
3995
  asObject(tx, adminCap),
3939
- asObject(tx, verification),
3996
+ asAddress(tx, targetMessageLib),
3940
3997
  asBytes(tx, packetHeader),
3941
3998
  asBytes32(tx, payloadHash, this.moduleManager.getUtils()),
3942
3999
  asU64(tx, confirmations),
@@ -4206,6 +4263,32 @@ var DVN = class {
4206
4263
  (result) => bcs.Bool.parse(result[0].value)
4207
4264
  );
4208
4265
  }
4266
+ /**
4267
+ * Check if a message library is supported by this DVN
4268
+ * @param tx - The transaction to add the move call to
4269
+ * @param messageLib - The message library address to check
4270
+ * @returns Transaction result containing the support status
4271
+ */
4272
+ isSupportedMessageLibMoveCall(tx, messageLib) {
4273
+ return tx.moveCall({
4274
+ target: __privateMethod(this, _DVN_instances, target_fn5).call(this, "is_supported_message_lib"),
4275
+ arguments: [tx.object(this.objects.dvn), asAddress(tx, messageLib)]
4276
+ });
4277
+ }
4278
+ /**
4279
+ * Check if a message library is supported by this DVN
4280
+ * @param messageLib - The message library address to check
4281
+ * @returns Promise<boolean> - True if the message library is supported
4282
+ */
4283
+ async isSupportedMessageLib(messageLib) {
4284
+ return executeSimulate(
4285
+ this.client,
4286
+ (tx) => {
4287
+ this.isSupportedMessageLibMoveCall(tx, messageLib);
4288
+ },
4289
+ (result) => bcs.Bool.parse(result[0].value)
4290
+ );
4291
+ }
4209
4292
  /**
4210
4293
  * Check if an address is allowlisted
4211
4294
  * @param tx - The transaction to add the move call to
@@ -4558,6 +4641,49 @@ var DVN = class {
4558
4641
  (result) => bcs.Bool.parse(result[0].value)
4559
4642
  );
4560
4643
  }
4644
+ /**
4645
+ * Get DVN object address from worker registry using this DVN's worker capability (as a move call)
4646
+ * This function chains Move calls to decode worker info and extract the DVN object address
4647
+ * @param tx - The transaction to add the move call to
4648
+ * @returns Transaction result containing the DVN object address
4649
+ */
4650
+ getDvnObjectAddressMoveCall(tx) {
4651
+ const workerCapAddress = this.workerCapAddressMoveCall(tx);
4652
+ const workerInfoBytes = this.moduleManager.getWorkerRegistry(this.client).getWorkerInfoMoveCall(tx, workerCapAddress);
4653
+ const workerInfo = tx.moveCall({
4654
+ target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::decode`,
4655
+ arguments: [workerInfoBytes]
4656
+ });
4657
+ const dvnInfoBytes = tx.moveCall({
4658
+ target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::worker_info`,
4659
+ arguments: [workerInfo]
4660
+ });
4661
+ const dvnInfo = tx.moveCall({
4662
+ target: `${this.packageId}::dvn_info_v1::decode`,
4663
+ arguments: [dvnInfoBytes]
4664
+ });
4665
+ return tx.moveCall({
4666
+ target: `${this.packageId}::dvn_info_v1::dvn_object`,
4667
+ arguments: [dvnInfo]
4668
+ });
4669
+ }
4670
+ /**
4671
+ * Get DVN object address from worker registry using this DVN's worker capability
4672
+ * This function uses Move calls to decode worker info and extract the DVN object address
4673
+ * @returns Promise<string> - The DVN object address
4674
+ * @throws Will throw an error if worker info is not found or if decoding fails
4675
+ */
4676
+ async getDvnObjectAddress() {
4677
+ return executeSimulate(
4678
+ this.client,
4679
+ (tx) => {
4680
+ this.getDvnObjectAddressMoveCall(tx);
4681
+ },
4682
+ (result) => {
4683
+ return bcs.Address.parse(result[0].value);
4684
+ }
4685
+ );
4686
+ }
4561
4687
  // === Witness Functions ===
4562
4688
  /**
4563
4689
  * Create a LayerZero witness for DVN package whitelist registration
@@ -4845,8 +4971,63 @@ var DVN = class {
4845
4971
  ]
4846
4972
  });
4847
4973
  }
4974
+ /**
4975
+ * Populate verify with DVN verification and ULN verify call
4976
+ * @param tx - The transaction to add the move call to
4977
+ * @param adminCap - The admin capability object ID
4978
+ * @param targetMessageLib - The target message library address (usually ULN302)
4979
+ * @param targetVerification - The verification object address for the target message library
4980
+ * @param packetHeader - The packet header as bytes
4981
+ * @param payloadHash - The payload hash as bytes
4982
+ * @param confirmations - Required confirmations count
4983
+ * @param expiration - Signature expiration timestamp
4984
+ * @param signatures - DVN multisig signatures
4985
+ */
4986
+ populateVerify(tx, adminCap, targetMessageLib, targetVerification, packetHeader, payloadHash, confirmations, expiration, signatures) {
4987
+ const dvnCall = this.verifyMoveCall(
4988
+ tx,
4989
+ adminCap,
4990
+ targetMessageLib,
4991
+ packetHeader,
4992
+ payloadHash,
4993
+ confirmations,
4994
+ expiration,
4995
+ signatures
4996
+ );
4997
+ const messageLibObjectAddress = __privateMethod(this, _DVN_instances, getUlnObjectAddress_fn).call(this, targetMessageLib);
4998
+ tx.moveCall({
4999
+ target: __privateMethod(this, _DVN_instances, getUlnVerifyTarget_fn).call(this, targetMessageLib),
5000
+ arguments: [tx.object(messageLibObjectAddress), asObject(tx, targetVerification), dvnCall]
5001
+ });
5002
+ }
4848
5003
  };
4849
5004
  _DVN_instances = new WeakSet();
5005
+ /**
5006
+ * Get message library object address based on targetMessageLib package address
5007
+ * @param targetMessageLib - The target message library package address
5008
+ * @returns Message library object address
5009
+ * @throws Error if targetMessageLib doesn't match any known message library
5010
+ * @private
5011
+ */
5012
+ getUlnObjectAddress_fn = function(targetMessageLib) {
5013
+ if (targetMessageLib === this.moduleManager.packages.uln302) {
5014
+ return this.objects.uln302;
5015
+ }
5016
+ throw new Error("Target message library not match objects");
5017
+ };
5018
+ /**
5019
+ * Get ULN verify target path based on targetMessageLib package address
5020
+ * @param targetMessageLib - The target message library package address
5021
+ * @returns Message library verify target path
5022
+ * @throws Error if targetMessageLib doesn't match any known message library
5023
+ * @private
5024
+ */
5025
+ getUlnVerifyTarget_fn = function(targetMessageLib) {
5026
+ if (targetMessageLib === this.moduleManager.packages.uln302) {
5027
+ return `${targetMessageLib}::uln_302::verify`;
5028
+ }
5029
+ throw new Error("Target message library not match any target");
5030
+ };
4850
5031
  /**
4851
5032
  * Generate the full target path for move calls
4852
5033
  * @param name - The function name to call
@@ -4931,6 +5112,10 @@ target_fn6 = function(name, module_name = MODULE_NAME6) {
4931
5112
 
4932
5113
  // src/modules/workers/dvn-layerzero.ts
4933
5114
  var MODULE_NAME7 = "dvn_layerzero";
5115
+ var DVNLayerzeroErrorCode = {
5116
+ // DVNLayerzero related errors (matching dvn_layerzero.move)
5117
+ DVNLayerzero_EWorkerCapNotFromPackage: 1
5118
+ };
4934
5119
  var _DvnLayerZero_instances, target_fn7;
4935
5120
  var DvnLayerZero = class {
4936
5121
  constructor(packageId, client, moduleManager) {
@@ -4947,6 +5132,7 @@ var DvnLayerZero = class {
4947
5132
  * @param workerCap - Worker capability object ID or transaction argument
4948
5133
  * @param vid - Verifier ID for the DVN or transaction argument
4949
5134
  * @param depositAddress - Address for fee deposits or transaction argument
5135
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
4950
5136
  * @param priceFeed - Price feed object address or transaction argument
4951
5137
  * @param workerFeeLib - Worker fee library address or transaction argument
4952
5138
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
@@ -4954,19 +5140,21 @@ var DvnLayerZero = class {
4954
5140
  * @param signers - Array of signer public keys as bytes or transaction argument
4955
5141
  * @param quorum - Required signature threshold or transaction argument
4956
5142
  */
4957
- initDvnMoveCall(tx, workerCap, vid, depositAddress, priceFeed, workerFeeLib, defaultMultiplierBps, admins, signers, quorum) {
5143
+ initDvnMoveCall(tx, workerCap, vid, depositAddress, supportedMessageLibs, priceFeed, workerFeeLib, defaultMultiplierBps, admins, signers, quorum) {
4958
5144
  tx.moveCall({
4959
5145
  target: __privateMethod(this, _DvnLayerZero_instances, target_fn7).call(this, "init_dvn"),
4960
5146
  arguments: [
4961
5147
  asObject(tx, workerCap),
4962
5148
  asU32(tx, vid),
4963
5149
  asAddress(tx, depositAddress),
5150
+ asAddressVector(tx, supportedMessageLibs),
4964
5151
  asAddress(tx, priceFeed),
4965
5152
  asAddress(tx, workerFeeLib),
4966
5153
  asU16(tx, defaultMultiplierBps),
4967
5154
  asAddressVector(tx, admins),
4968
5155
  asBytesVector(tx, signers),
4969
- asU64(tx, quorum)
5156
+ asU64(tx, quorum),
5157
+ tx.object(this.moduleManager.objects.workerRegistry)
4970
5158
  ]
4971
5159
  });
4972
5160
  }
@@ -4986,7 +5174,10 @@ var MODULE_NAME8 = "executor_worker";
4986
5174
  var ExecutorErrorCode = {
4987
5175
  // Executor related errors (with Executor_ prefix)
4988
5176
  Executor_EEidNotSupported: 1,
4989
- Executor_EInvalidNativeDropAmount: 2
5177
+ Executor_EInvalidNativeDropAmount: 2,
5178
+ // ExecutorInfoV1 related errors (matching executor_info_v1.move)
5179
+ ExecutorInfoV1_EInvalidData: 1,
5180
+ ExecutorInfoV1_EInvalidVersion: 2
4990
5181
  };
4991
5182
  var _Executor_instances, target_fn8;
4992
5183
  var Executor = class {
@@ -5358,6 +5549,24 @@ var Executor = class {
5358
5549
  ]
5359
5550
  });
5360
5551
  }
5552
+ /**
5553
+ * Set supported message library (owner only)
5554
+ * @param tx - The transaction to add the move call to
5555
+ * @param ownerCap - The owner capability object ID
5556
+ * @param messageLib - The message library address
5557
+ * @param supported - Whether to support or remove support for the message library
5558
+ */
5559
+ setSupportedMessageLibMoveCall(tx, ownerCap, messageLib, supported) {
5560
+ tx.moveCall({
5561
+ target: __privateMethod(this, _Executor_instances, target_fn8).call(this, "set_supported_message_lib"),
5562
+ arguments: [
5563
+ tx.object(this.objects.executor),
5564
+ asObject(tx, ownerCap),
5565
+ asAddress(tx, messageLib),
5566
+ asBool(tx, supported)
5567
+ ]
5568
+ });
5569
+ }
5361
5570
  /**
5362
5571
  * Set allowlist status for an OApp sender (owner only)
5363
5572
  * @param tx - The transaction to add the move call to
@@ -5610,6 +5819,32 @@ var Executor = class {
5610
5819
  (result) => bcs.Bool.parse(result[0].value)
5611
5820
  );
5612
5821
  }
5822
+ /**
5823
+ * Check if a message library is supported by this executor
5824
+ * @param tx - The transaction to add the move call to
5825
+ * @param messageLib - The message library address to check
5826
+ * @returns Transaction result containing the support status
5827
+ */
5828
+ isSupportedMessageLibMoveCall(tx, messageLib) {
5829
+ return tx.moveCall({
5830
+ target: __privateMethod(this, _Executor_instances, target_fn8).call(this, "is_supported_message_lib"),
5831
+ arguments: [tx.object(this.objects.executor), asAddress(tx, messageLib)]
5832
+ });
5833
+ }
5834
+ /**
5835
+ * Check if a message library is supported by this executor
5836
+ * @param messageLib - The message library address to check
5837
+ * @returns Promise<boolean> - True if the message library is supported
5838
+ */
5839
+ async isSupportedMessageLib(messageLib) {
5840
+ return executeSimulate(
5841
+ this.client,
5842
+ (tx) => {
5843
+ this.isSupportedMessageLibMoveCall(tx, messageLib);
5844
+ },
5845
+ (result) => bcs.Bool.parse(result[0].value)
5846
+ );
5847
+ }
5613
5848
  /**
5614
5849
  * Check if an address is allowlisted
5615
5850
  * @param tx - The transaction to add the move call to
@@ -5813,6 +6048,49 @@ var Executor = class {
5813
6048
  (result) => bcs.Address.parse(result[0].value)
5814
6049
  );
5815
6050
  }
6051
+ /**
6052
+ * Get Executor object address from worker registry using this Executor's worker capability (as a move call)
6053
+ * This function chains Move calls to decode worker info and extract the Executor object address
6054
+ * @param tx - The transaction to add the move call to
6055
+ * @returns Transaction result containing the Executor object address
6056
+ */
6057
+ getExecutorObjectAddressMoveCall(tx) {
6058
+ const workerCapAddress = this.workerCapAddressMoveCall(tx);
6059
+ const workerInfoBytes = this.moduleManager.getWorkerRegistry(this.client).getWorkerInfoMoveCall(tx, workerCapAddress);
6060
+ const workerInfo = tx.moveCall({
6061
+ target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::decode`,
6062
+ arguments: [workerInfoBytes]
6063
+ });
6064
+ const executorInfoBytes = tx.moveCall({
6065
+ target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::worker_info`,
6066
+ arguments: [workerInfo]
6067
+ });
6068
+ const executorInfo = tx.moveCall({
6069
+ target: `${this.packageId}::executor_info_v1::decode`,
6070
+ arguments: [executorInfoBytes]
6071
+ });
6072
+ return tx.moveCall({
6073
+ target: `${this.packageId}::executor_info_v1::executor_object`,
6074
+ arguments: [executorInfo]
6075
+ });
6076
+ }
6077
+ /**
6078
+ * Get Executor object address from worker registry using this Executor's worker capability
6079
+ * This function uses Move calls to decode worker info and extract the Executor object address
6080
+ * @returns Promise<string> - The Executor object address
6081
+ * @throws Will throw an error if worker info is not found or if decoding fails
6082
+ */
6083
+ async getExecutorObjectAddress() {
6084
+ return executeSimulate(
6085
+ this.client,
6086
+ (tx) => {
6087
+ this.getExecutorObjectAddressMoveCall(tx);
6088
+ },
6089
+ (result) => {
6090
+ return bcs.Address.parse(result[0].value);
6091
+ }
6092
+ );
6093
+ }
5816
6094
  // === Private Helper Functions ===
5817
6095
  parseDstConfig(data) {
5818
6096
  const config = DstConfigBcs.parse(data);
@@ -5840,10 +6118,17 @@ target_fn8 = function(name, module_name = MODULE_NAME8) {
5840
6118
  // src/modules/workers/executor-fee-lib.ts
5841
6119
  var MODULE_NAME9 = "executor_fee_lib";
5842
6120
  var ExecutorFeeLibErrorCode = {
5843
- // Executor Fee Lib related errors (with ExecutorFeeLib_ prefix)
6121
+ // Executor Fee Lib related errors (matching executor_fee_lib.move)
5844
6122
  ExecutorFeeLib_EEidNotSupported: 1,
5845
- ExecutorFeeLib_EInvalidExecutor: 2,
5846
- ExecutorFeeLib_EExecutorAlreadySet: 3
6123
+ // ExecutorOption related errors (matching executor_option.move)
6124
+ ExecutorOption_ENoOptions: 1,
6125
+ ExecutorOption_EUnsupportedOptionType: 2,
6126
+ ExecutorOption_EZeroLzReceiveGasProvided: 3,
6127
+ ExecutorOption_EZeroLzComposeGasProvided: 4,
6128
+ ExecutorOption_ENativeAmountExceedsCap: 5,
6129
+ ExecutorOption_EInvalidLzReceiveOption: 6,
6130
+ ExecutorOption_EInvalidNativeDropOption: 7,
6131
+ ExecutorOption_EInvalidLzComposeOption: 8
5847
6132
  };
5848
6133
  var _ExecutorFeeLib_instances, target_fn9;
5849
6134
  var ExecutorFeeLib = class {
@@ -5908,6 +6193,10 @@ target_fn9 = function(name, module_name = MODULE_NAME9) {
5908
6193
 
5909
6194
  // src/modules/workers/executor-layerzero.ts
5910
6195
  var MODULE_NAME10 = "executor_layerzero";
6196
+ var ExecutorLayerzeroErrorCode = {
6197
+ // ExecutorLayerzero related errors (matching executor_layerzero.move)
6198
+ ExecutorLayerzero_EWorkerCapNotFromPackage: 1
6199
+ };
5911
6200
  var _ExecutorLayerZero_instances, target_fn10;
5912
6201
  var ExecutorLayerZero = class {
5913
6202
  constructor(packageId, client, moduleManager) {
@@ -5923,23 +6212,26 @@ var ExecutorLayerZero = class {
5923
6212
  * @param tx - The transaction to add the move call to
5924
6213
  * @param workerCap - Worker capability object ID or transaction argument
5925
6214
  * @param depositAddress - Address for fee deposits or transaction argument
6215
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
5926
6216
  * @param priceFeed - Price feed object address or transaction argument
5927
6217
  * @param workerFeeLib - Worker fee library address or transaction argument
5928
6218
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
5929
6219
  * @param owner - Owner address for the executor or transaction argument
5930
6220
  * @param admins - Array of admin addresses or transaction argument
5931
6221
  */
5932
- initExecutorMoveCall(tx, workerCap, depositAddress, priceFeed, workerFeeLib, defaultMultiplierBps, owner, admins) {
6222
+ initExecutorMoveCall(tx, workerCap, depositAddress, supportedMessageLibs, priceFeed, workerFeeLib, defaultMultiplierBps, owner, admins) {
5933
6223
  tx.moveCall({
5934
6224
  target: __privateMethod(this, _ExecutorLayerZero_instances, target_fn10).call(this, "init_executor"),
5935
6225
  arguments: [
5936
6226
  asObject(tx, workerCap),
5937
6227
  asAddress(tx, depositAddress),
6228
+ asAddressVector(tx, supportedMessageLibs),
5938
6229
  asAddress(tx, priceFeed),
5939
6230
  asAddress(tx, workerFeeLib),
5940
6231
  asU16(tx, defaultMultiplierBps),
5941
6232
  asAddress(tx, owner),
5942
- asAddressVector(tx, admins)
6233
+ asAddressVector(tx, admins),
6234
+ tx.object(this.moduleManager.objects.workerRegistry)
5943
6235
  ]
5944
6236
  });
5945
6237
  }
@@ -6436,10 +6728,10 @@ target_fn11 = function(name, module_name = MODULE_NAME11) {
6436
6728
  };
6437
6729
  var MODULE_NAME12 = "treasury";
6438
6730
  var TreasuryErrorCode = {
6439
- // Treasury related errors
6440
- TREASURY_EZroNotEnabled: 1,
6441
- TREASURY_EInvalidFeeRecipient: 2,
6442
- TREASURY_EInvalidNativeFeeBp: 3
6731
+ // Treasury related errors (matching treasury.move)
6732
+ TREASURY_EInvalidFeeRecipient: 1,
6733
+ TREASURY_EInvalidNativeFeeBp: 2,
6734
+ TREASURY_EZroNotEnabled: 3
6443
6735
  };
6444
6736
  var _Treasury_instances, target_fn12;
6445
6737
  var Treasury = class {
@@ -6689,9 +6981,95 @@ target_fn12 = function(name, module_name = MODULE_NAME12) {
6689
6981
  return `${this.packageId}::${module_name}::${name}`;
6690
6982
  };
6691
6983
 
6984
+ // src/modules/workers/worker-registry.ts
6985
+ var MODULE_NAME13 = "worker_registry";
6986
+ var WorkerRegistryErrorCode = {
6987
+ // WorkerRegistry related errors (matching worker_registry.move)
6988
+ EWorkerInfoInvalid: 1,
6989
+ EWorkerInfoNotFound: 2
6990
+ };
6991
+ var _WorkerRegistry_instances, target_fn13;
6992
+ var WorkerRegistry = class {
6993
+ /**
6994
+ * Create a new WorkerRegistry instance
6995
+ * @param packageId - The package ID of the worker registry contract
6996
+ * @param client - The Sui client instance
6997
+ * @param objects - Object options containing contract object IDs
6998
+ * @param moduleManager - Module manager for handling dependencies
6999
+ */
7000
+ constructor(packageId, client, objects, moduleManager) {
7001
+ this.moduleManager = moduleManager;
7002
+ __privateAdd(this, _WorkerRegistry_instances);
7003
+ this.packageId = packageId;
7004
+ this.client = client;
7005
+ this.objects = objects;
7006
+ }
7007
+ // === View Functions ===
7008
+ /**
7009
+ * Get worker info for a specific worker address (as a move call)
7010
+ * This creates a move call that can be used in a PTB (Programmable Transaction Block)
7011
+ * @param tx - The transaction to add the move call to
7012
+ * @param worker - The worker address or transaction argument
7013
+ * @returns TransactionResult - The move call result containing worker info bytes
7014
+ * @throws Will throw an error if worker info is not found (EWorkerInfoNotFound)
7015
+ */
7016
+ getWorkerInfoMoveCall(tx, worker) {
7017
+ return tx.moveCall({
7018
+ target: __privateMethod(this, _WorkerRegistry_instances, target_fn13).call(this, "get_worker_info"),
7019
+ arguments: [tx.object(this.objects.workerRegistry), asAddress(tx, worker)]
7020
+ });
7021
+ }
7022
+ /**
7023
+ * Get worker info for a specific worker address
7024
+ * Executes the get_worker_info function and returns the worker information bytes
7025
+ * @param worker - The worker address to get info for
7026
+ * @returns Promise<Uint8Array> - The worker information bytes containing encoded worker data
7027
+ * @throws Will throw an error if worker info is not found (EWorkerInfoNotFound)
7028
+ */
7029
+ async getWorkerInfo(worker) {
7030
+ return executeSimulate(
7031
+ this.client,
7032
+ (tx) => {
7033
+ this.getWorkerInfoMoveCall(tx, worker);
7034
+ },
7035
+ (result) => {
7036
+ return result[0].value;
7037
+ }
7038
+ );
7039
+ }
7040
+ /**
7041
+ * Check if worker info exists for a specific worker address
7042
+ * This is a convenience method that catches EWorkerInfoNotFound errors
7043
+ * @param worker - The worker address to check
7044
+ * @returns Promise<boolean> - True if worker info exists, false if not found
7045
+ * @throws Will re-throw any errors other than EWorkerInfoNotFound
7046
+ */
7047
+ async hasWorkerInfo(worker) {
7048
+ try {
7049
+ await this.getWorkerInfo(worker);
7050
+ return true;
7051
+ } catch (error) {
7052
+ if (error instanceof Error && error.message.includes("EWorkerInfoNotFound")) {
7053
+ return false;
7054
+ }
7055
+ throw error;
7056
+ }
7057
+ }
7058
+ };
7059
+ _WorkerRegistry_instances = new WeakSet();
7060
+ // === Private Functions ===
7061
+ /**
7062
+ * Generate the target string for move calls
7063
+ * @param functionName - The function name to call
7064
+ * @returns The fully qualified target string for the move call
7065
+ */
7066
+ target_fn13 = function(functionName) {
7067
+ return `${this.packageId}::${MODULE_NAME13}::${functionName}`;
7068
+ };
7069
+
6692
7070
  // src/modules/ptb-builders/dvn-ptb-builder.ts
6693
- var MODULE_NAME13 = "dvn_ptb_builder";
6694
- var _DvnPtbBuilder_instances, target_fn13;
7071
+ var MODULE_NAME14 = "dvn_ptb_builder";
7072
+ var _DvnPtbBuilder_instances, target_fn14;
6695
7073
  var DvnPtbBuilder = class {
6696
7074
  constructor(packageId, client, objects, moduleManager) {
6697
7075
  this.moduleManager = moduleManager;
@@ -6711,7 +7089,7 @@ var DvnPtbBuilder = class {
6711
7089
  */
6712
7090
  buildDvnPtbMoveCall(tx, dvnAddress, feelibAddress, priceFeedAddress) {
6713
7091
  return tx.moveCall({
6714
- target: __privateMethod(this, _DvnPtbBuilder_instances, target_fn13).call(this, "build_dvn_ptb"),
7092
+ target: __privateMethod(this, _DvnPtbBuilder_instances, target_fn14).call(this, "build_dvn_ptb"),
6715
7093
  arguments: [asObject(tx, dvnAddress), asObject(tx, feelibAddress), asObject(tx, priceFeedAddress)]
6716
7094
  });
6717
7095
  }
@@ -6724,15 +7102,21 @@ _DvnPtbBuilder_instances = new WeakSet();
6724
7102
  * @returns The full module path for the move call
6725
7103
  * @private
6726
7104
  */
6727
- target_fn13 = function(name, module_name = MODULE_NAME13) {
7105
+ target_fn14 = function(name, module_name = MODULE_NAME14) {
6728
7106
  return `${this.packageId}::${module_name}::${name}`;
6729
7107
  };
6730
- var LibBuilderManagerErrorCode = {
6731
- // LibBuilderManager related errors (with LibBuilderManager_ prefix)
6732
- LibBuilderManager_EBuilderNotFound: 1
7108
+ var EndpointPtbBuilderErrorCode = {
7109
+ // EndpointPtbBuilder related errors (matching endpoint_ptb_builder.move)
7110
+ EndpointPtbBuilder_EBuilderNotFound: 1,
7111
+ EndpointPtbBuilder_EBuilderRegistered: 2,
7112
+ EndpointPtbBuilder_EBuilderUnsupported: 3,
7113
+ EndpointPtbBuilder_EInvalidBounds: 4,
7114
+ EndpointPtbBuilder_EInvalidBuilderAddress: 5,
7115
+ EndpointPtbBuilder_EInvalidLibrary: 6,
7116
+ EndpointPtbBuilder_EUnauthorized: 7
6733
7117
  };
6734
7118
  var ModuleName = "endpoint_ptb_builder";
6735
- var _EndpointPtbBuilder_instances, target_fn14;
7119
+ var _EndpointPtbBuilder_instances, target_fn15;
6736
7120
  var EndpointPtbBuilder = class {
6737
7121
  constructor(packageId, client, objects, moduleManager) {
6738
7122
  this.moduleManager = moduleManager;
@@ -6749,7 +7133,7 @@ var EndpointPtbBuilder = class {
6749
7133
  */
6750
7134
  registerMsglibPtbBuilderMoveCall(tx, builderInfo) {
6751
7135
  tx.moveCall({
6752
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "register_msglib_ptb_builder"),
7136
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "register_msglib_ptb_builder"),
6753
7137
  arguments: [
6754
7138
  tx.object(this.objects.endpointPtbBuilder),
6755
7139
  tx.object(this.objects.endpointPtbBuilderAdminCap),
@@ -6766,7 +7150,7 @@ var EndpointPtbBuilder = class {
6766
7150
  */
6767
7151
  setDefaultMsglibPtbBuilderMoveCall(tx, messageLib, ptbBuilder) {
6768
7152
  tx.moveCall({
6769
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "set_default_msglib_ptb_builder"),
7153
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "set_default_msglib_ptb_builder"),
6770
7154
  arguments: [
6771
7155
  tx.object(this.objects.endpointPtbBuilder),
6772
7156
  tx.object(this.objects.endpointPtbBuilderAdminCap),
@@ -6782,7 +7166,7 @@ var EndpointPtbBuilder = class {
6782
7166
  */
6783
7167
  setMsglibPtbBuilderMoveCall(tx, call) {
6784
7168
  tx.moveCall({
6785
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "set_msglib_ptb_builder"),
7169
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "set_msglib_ptb_builder"),
6786
7170
  arguments: [tx.object(this.objects.endpointPtbBuilder), call]
6787
7171
  });
6788
7172
  }
@@ -6795,7 +7179,7 @@ var EndpointPtbBuilder = class {
6795
7179
  */
6796
7180
  buildQuotePtbByCallMoveCall(tx, endpointQuoteCall) {
6797
7181
  return tx.moveCall({
6798
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_quote_ptb_by_call"),
7182
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_quote_ptb_by_call"),
6799
7183
  arguments: [
6800
7184
  tx.object(this.objects.endpointPtbBuilder),
6801
7185
  tx.object(this.objects.endpointV2),
@@ -6811,7 +7195,7 @@ var EndpointPtbBuilder = class {
6811
7195
  */
6812
7196
  buildSendPtbByCallMoveCall(tx, endpointSendCall) {
6813
7197
  return tx.moveCall({
6814
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_send_ptb_by_call"),
7198
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_send_ptb_by_call"),
6815
7199
  arguments: [
6816
7200
  tx.object(this.objects.endpointPtbBuilder),
6817
7201
  tx.object(this.objects.endpointV2),
@@ -6827,7 +7211,7 @@ var EndpointPtbBuilder = class {
6827
7211
  */
6828
7212
  buildSetConfigPtbByCallMoveCall(tx, messageLibSetConfigCall) {
6829
7213
  return tx.moveCall({
6830
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_set_config_ptb_by_call"),
7214
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_set_config_ptb_by_call"),
6831
7215
  arguments: [tx.object(this.objects.endpointPtbBuilder), messageLibSetConfigCall]
6832
7216
  });
6833
7217
  }
@@ -6840,7 +7224,7 @@ var EndpointPtbBuilder = class {
6840
7224
  */
6841
7225
  buildQuotePtbMoveCall(tx, sender, dstEid) {
6842
7226
  return tx.moveCall({
6843
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_quote_ptb"),
7227
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_quote_ptb"),
6844
7228
  arguments: [
6845
7229
  tx.object(this.objects.endpointPtbBuilder),
6846
7230
  tx.object(this.objects.endpointV2),
@@ -6859,7 +7243,7 @@ var EndpointPtbBuilder = class {
6859
7243
  */
6860
7244
  buildSendPtbMoveCall(tx, sender, dstEid, refund) {
6861
7245
  return tx.moveCall({
6862
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_send_ptb"),
7246
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_send_ptb"),
6863
7247
  arguments: [
6864
7248
  tx.object(this.objects.endpointPtbBuilder),
6865
7249
  tx.object(this.objects.endpointV2),
@@ -6878,7 +7262,7 @@ var EndpointPtbBuilder = class {
6878
7262
  */
6879
7263
  buildSetConfigPtbMoveCall(tx, sender, lib) {
6880
7264
  return tx.moveCall({
6881
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_set_config_ptb"),
7265
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_set_config_ptb"),
6882
7266
  arguments: [
6883
7267
  tx.object(this.objects.endpointPtbBuilder),
6884
7268
  tx.object(this.objects.endpointV2),
@@ -6895,7 +7279,7 @@ var EndpointPtbBuilder = class {
6895
7279
  */
6896
7280
  endpointQuoteCallIdMoveCall(tx) {
6897
7281
  return tx.moveCall({
6898
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "endpoint_quote_call_id"),
7282
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "endpoint_quote_call_id"),
6899
7283
  arguments: []
6900
7284
  });
6901
7285
  }
@@ -6919,7 +7303,7 @@ var EndpointPtbBuilder = class {
6919
7303
  */
6920
7304
  endpointSendCallIdMoveCall(tx) {
6921
7305
  return tx.moveCall({
6922
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "endpoint_send_call_id"),
7306
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "endpoint_send_call_id"),
6923
7307
  arguments: []
6924
7308
  });
6925
7309
  }
@@ -6943,7 +7327,7 @@ var EndpointPtbBuilder = class {
6943
7327
  */
6944
7328
  messageLibQuoteCallIdMoveCall(tx) {
6945
7329
  return tx.moveCall({
6946
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "message_lib_quote_call_id"),
7330
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_quote_call_id"),
6947
7331
  arguments: []
6948
7332
  });
6949
7333
  }
@@ -6967,7 +7351,7 @@ var EndpointPtbBuilder = class {
6967
7351
  */
6968
7352
  messageLibSendCallIdMoveCall(tx) {
6969
7353
  return tx.moveCall({
6970
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "message_lib_send_call_id"),
7354
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_send_call_id"),
6971
7355
  arguments: []
6972
7356
  });
6973
7357
  }
@@ -6991,7 +7375,7 @@ var EndpointPtbBuilder = class {
6991
7375
  */
6992
7376
  messageLibSetConfigCallIdMoveCall(tx) {
6993
7377
  return tx.moveCall({
6994
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "message_lib_set_config_call_id"),
7378
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_set_config_call_id"),
6995
7379
  arguments: []
6996
7380
  });
6997
7381
  }
@@ -7017,7 +7401,7 @@ var EndpointPtbBuilder = class {
7017
7401
  */
7018
7402
  getDefaultMsglibPtbBuilderMoveCall(tx, lib) {
7019
7403
  return tx.moveCall({
7020
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "get_default_msglib_ptb_builder"),
7404
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_default_msglib_ptb_builder"),
7021
7405
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, lib)]
7022
7406
  });
7023
7407
  }
@@ -7044,7 +7428,7 @@ var EndpointPtbBuilder = class {
7044
7428
  */
7045
7429
  getOappMsglibPtbBuilderMoveCall(tx, oapp, lib) {
7046
7430
  return tx.moveCall({
7047
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "get_oapp_msglib_ptb_builder"),
7431
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_oapp_msglib_ptb_builder"),
7048
7432
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, oapp), asAddress(tx, lib)]
7049
7433
  });
7050
7434
  }
@@ -7072,7 +7456,7 @@ var EndpointPtbBuilder = class {
7072
7456
  */
7073
7457
  getEffectiveMsglibPtbBuilderMoveCall(tx, oapp, lib) {
7074
7458
  return tx.moveCall({
7075
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "get_effective_msglib_ptb_builder"),
7459
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_effective_msglib_ptb_builder"),
7076
7460
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, oapp), asAddress(tx, lib)]
7077
7461
  });
7078
7462
  }
@@ -7099,7 +7483,7 @@ var EndpointPtbBuilder = class {
7099
7483
  */
7100
7484
  getMsglibPtbBuilderInfoMoveCall(tx, builder) {
7101
7485
  return tx.moveCall({
7102
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "get_msglib_ptb_builder_info"),
7486
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_msglib_ptb_builder_info"),
7103
7487
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, builder)]
7104
7488
  });
7105
7489
  }
@@ -7111,7 +7495,7 @@ var EndpointPtbBuilder = class {
7111
7495
  */
7112
7496
  isMsglibPtbBuilderRegisteredMoveCall(tx, builder) {
7113
7497
  return tx.moveCall({
7114
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "is_msglib_ptb_builder_registered"),
7498
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "is_msglib_ptb_builder_registered"),
7115
7499
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, builder)]
7116
7500
  });
7117
7501
  }
@@ -7136,7 +7520,7 @@ var EndpointPtbBuilder = class {
7136
7520
  */
7137
7521
  registeredMsglibPtbBuildersCountMoveCall(tx) {
7138
7522
  return tx.moveCall({
7139
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "registered_msglib_ptb_builders_count"),
7523
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "registered_msglib_ptb_builders_count"),
7140
7524
  arguments: [tx.object(this.objects.endpointPtbBuilder)]
7141
7525
  });
7142
7526
  }
@@ -7162,13 +7546,13 @@ _EndpointPtbBuilder_instances = new WeakSet();
7162
7546
  * @returns The full module path for the move call
7163
7547
  * @private
7164
7548
  */
7165
- target_fn14 = function(name) {
7549
+ target_fn15 = function(name) {
7166
7550
  return `${this.packageId}::${ModuleName}::${name}`;
7167
7551
  };
7168
7552
 
7169
7553
  // src/modules/ptb-builders/executor-ptb-builder.ts
7170
- var MODULE_NAME14 = "executor_ptb_builder";
7171
- var _ExecutorPtbBuilder_instances, target_fn15;
7554
+ var MODULE_NAME15 = "executor_ptb_builder";
7555
+ var _ExecutorPtbBuilder_instances, target_fn16;
7172
7556
  var ExecutorPtbBuilder = class {
7173
7557
  constructor(packageId, client, objects, moduleManager) {
7174
7558
  this.moduleManager = moduleManager;
@@ -7188,7 +7572,7 @@ var ExecutorPtbBuilder = class {
7188
7572
  */
7189
7573
  buildExecutorPtbMoveCall(tx, executorAddress, feelibAddress, priceFeedAddress) {
7190
7574
  return tx.moveCall({
7191
- target: __privateMethod(this, _ExecutorPtbBuilder_instances, target_fn15).call(this, "build_executor_ptb"),
7575
+ target: __privateMethod(this, _ExecutorPtbBuilder_instances, target_fn16).call(this, "build_executor_ptb"),
7192
7576
  arguments: [asObject(tx, executorAddress), asObject(tx, feelibAddress), asObject(tx, priceFeedAddress)]
7193
7577
  });
7194
7578
  }
@@ -7201,15 +7585,15 @@ _ExecutorPtbBuilder_instances = new WeakSet();
7201
7585
  * @returns The full module path for the move call
7202
7586
  * @private
7203
7587
  */
7204
- target_fn15 = function(name, module_name = MODULE_NAME14) {
7588
+ target_fn16 = function(name, module_name = MODULE_NAME15) {
7205
7589
  return `${this.packageId}::${module_name}::${name}`;
7206
7590
  };
7207
- var MODULE_NAME15 = "package_whitelist_validator";
7591
+ var MODULE_NAME16 = "package_whitelist_validator";
7208
7592
  var ValidatorErrorCode = {
7209
7593
  // PTB Whitelist related errors
7210
7594
  EInvalidWitness: 1
7211
7595
  };
7212
- var _PackageWhitelistValidator_instances, target_fn16;
7596
+ var _PackageWhitelistValidator_instances, target_fn17;
7213
7597
  var PackageWhitelistValidator = class {
7214
7598
  constructor(packageId, client, objects, moduleManager) {
7215
7599
  this.moduleManager = moduleManager;
@@ -7229,7 +7613,7 @@ var PackageWhitelistValidator = class {
7229
7613
  */
7230
7614
  addWhitelistMoveCall(tx, witness, witnessType) {
7231
7615
  tx.moveCall({
7232
- target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn16).call(this, "add_whitelist"),
7616
+ target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "add_whitelist"),
7233
7617
  typeArguments: [witnessType],
7234
7618
  arguments: [tx.object(this.objects.packageWhitelistValidator), witness]
7235
7619
  });
@@ -7243,7 +7627,7 @@ var PackageWhitelistValidator = class {
7243
7627
  */
7244
7628
  isWhitelistedMoveCall(tx, packageAddress) {
7245
7629
  return tx.moveCall({
7246
- target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn16).call(this, "is_whitelisted"),
7630
+ target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "is_whitelisted"),
7247
7631
  arguments: [tx.object(this.objects.packageWhitelistValidator), asAddress(tx, packageAddress)]
7248
7632
  });
7249
7633
  }
@@ -7255,7 +7639,7 @@ var PackageWhitelistValidator = class {
7255
7639
  */
7256
7640
  validateMoveCall(tx, packageAddresses) {
7257
7641
  return tx.moveCall({
7258
- target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn16).call(this, "validate"),
7642
+ target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "validate"),
7259
7643
  arguments: [
7260
7644
  tx.object(this.objects.packageWhitelistValidator),
7261
7645
  tx.pure(bcs.vector(bcs.Address).serialize(packageAddresses))
@@ -7316,11 +7700,18 @@ _PackageWhitelistValidator_instances = new WeakSet();
7316
7700
  * @returns The full module path for the move call
7317
7701
  * @private
7318
7702
  */
7319
- target_fn16 = function(name, module_name = MODULE_NAME15) {
7703
+ target_fn17 = function(name, module_name = MODULE_NAME16) {
7320
7704
  return `${this.packageId}::${module_name}::${name}`;
7321
7705
  };
7322
7706
  var MOVE_CALL_MODULE_NAME = "move_call";
7323
- var _PtbBuilder_instances, buildMoveCalls_fn, appendMoveCall_fn, decodeMoveCalls_fn, decodeMoveCallsBytes_fn, calculateOffset_fn;
7707
+ var PtbBuilderErrorCode = {
7708
+ // MoveCallsBuilder related errors (matching move_calls_builder.move)
7709
+ MoveCallsBuilder_EInvalidMoveCallResult: 1,
7710
+ MoveCallsBuilder_EResultIDNotFound: 2,
7711
+ // Argument related errors (matching argument.move)
7712
+ Argument_EInvalidArgument: 1
7713
+ };
7714
+ var _PtbBuilder_instances, buildMoveCalls_fn, appendMoveCall_fn, decodeMoveCalls_fn, decodeMoveCallsFromOAppInfoV1_fn, decodeMoveCallsBytes_fn, calculateOffset_fn;
7324
7715
  var PtbBuilder = class {
7325
7716
  constructor(packageId, client) {
7326
7717
  __privateAdd(this, _PtbBuilder_instances);
@@ -7349,8 +7740,8 @@ var PtbBuilder = class {
7349
7740
  const ptbCallsResult = await simulateTransaction(this.client, tx, sender);
7350
7741
  const buffer = Buffer.from(bcs.vector(bcs.u8()).parse(ptbCallsResult[0].value));
7351
7742
  const version = buffer.readInt16BE();
7352
- if (version === LzReceiveVersion.VERSION_1) {
7353
- return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsBytes_fn).call(this, new Uint8Array(buffer.subarray(2)));
7743
+ if (version === OAppInfoVersion.VERSION_1) {
7744
+ return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsFromOAppInfoV1_fn).call(this, new Uint8Array(buffer.subarray(2)));
7354
7745
  }
7355
7746
  throw new Error(`Unknown version: ${version}`);
7356
7747
  }
@@ -7509,6 +7900,10 @@ decodeMoveCalls_fn = function(viewResult) {
7509
7900
  }
7510
7901
  return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsBytes_fn).call(this, value);
7511
7902
  };
7903
+ decodeMoveCallsFromOAppInfoV1_fn = function(bytes) {
7904
+ const oappInfo = OAppInfoV1Bcs.parse(bytes);
7905
+ return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsBytes_fn).call(this, new Uint8Array(oappInfo.lz_receive_info).subarray(2));
7906
+ };
7512
7907
  /**
7513
7908
  * Decode move calls from raw bytes
7514
7909
  * @param bytes - The raw bytes containing encoded move calls
@@ -7562,8 +7957,8 @@ calculateOffset_fn = function(index, baseOffset, placeholderInfos) {
7562
7957
  };
7563
7958
 
7564
7959
  // src/modules/ptb-builders/simple-message-lib-ptb-builder.ts
7565
- var MODULE_NAME16 = "simple_msglib_ptb_builder";
7566
- var _SimpleMessageLibPtbBuilder_instances, target_fn17;
7960
+ var MODULE_NAME17 = "simple_msglib_ptb_builder";
7961
+ var _SimpleMessageLibPtbBuilder_instances, target_fn18;
7567
7962
  var SimpleMessageLibPtbBuilder = class {
7568
7963
  constructor(packageId, client, objects, moduleManager) {
7569
7964
  this.moduleManager = moduleManager;
@@ -7580,7 +7975,7 @@ var SimpleMessageLibPtbBuilder = class {
7580
7975
  */
7581
7976
  getPtbBuilderInfoMoveCall(tx) {
7582
7977
  return tx.moveCall({
7583
- target: __privateMethod(this, _SimpleMessageLibPtbBuilder_instances, target_fn17).call(this, "get_ptb_builder_info"),
7978
+ target: __privateMethod(this, _SimpleMessageLibPtbBuilder_instances, target_fn18).call(this, "get_ptb_builder_info"),
7584
7979
  arguments: [
7585
7980
  tx.object(this.objects.simpleMessageLibPtbBuilder),
7586
7981
  tx.object(this.objects.endpointV2),
@@ -7597,11 +7992,15 @@ _SimpleMessageLibPtbBuilder_instances = new WeakSet();
7597
7992
  * @returns The full module path for the move call
7598
7993
  * @private
7599
7994
  */
7600
- target_fn17 = function(name, module_name = MODULE_NAME16) {
7995
+ target_fn18 = function(name, module_name = MODULE_NAME17) {
7601
7996
  return `${this.packageId}::${module_name}::${name}`;
7602
7997
  };
7603
- var MODULE_NAME17 = "uln_302_ptb_builder";
7604
- var _Uln302PtbBuilder_instances, target_fn18;
7998
+ var MODULE_NAME18 = "uln_302_ptb_builder";
7999
+ var Uln302PtbBuilderErrorCode = {
8000
+ // ULN302 PTB Builder related errors (matching uln_302_ptb_builder.move)
8001
+ Uln302PtbBuilder_EWorkerPtbsNotFound: 1
8002
+ };
8003
+ var _Uln302PtbBuilder_instances, target_fn19;
7605
8004
  var Uln302PtbBuilder = class {
7606
8005
  constructor(packageId, client, objects, moduleManager) {
7607
8006
  this.moduleManager = moduleManager;
@@ -7618,7 +8017,7 @@ var Uln302PtbBuilder = class {
7618
8017
  */
7619
8018
  setWorkerPtbsMoveCall(tx, call) {
7620
8019
  tx.moveCall({
7621
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "set_worker_ptbs"),
8020
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "set_worker_ptbs"),
7622
8021
  arguments: [tx.object(this.objects.uln302PtbBuilder), call]
7623
8022
  });
7624
8023
  }
@@ -7630,7 +8029,7 @@ var Uln302PtbBuilder = class {
7630
8029
  */
7631
8030
  getPtbBuilderInfoMoveCall(tx) {
7632
8031
  return tx.moveCall({
7633
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "get_ptb_builder_info"),
8032
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "get_ptb_builder_info"),
7634
8033
  arguments: [
7635
8034
  tx.object(this.objects.uln302PtbBuilder),
7636
8035
  tx.object(this.objects.uln302),
@@ -7647,7 +8046,7 @@ var Uln302PtbBuilder = class {
7647
8046
  */
7648
8047
  isWorkerPtbsSetMoveCall(tx, workerCap) {
7649
8048
  return tx.moveCall({
7650
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "is_worker_ptbs_set"),
8049
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "is_worker_ptbs_set"),
7651
8050
  arguments: [tx.object(this.objects.uln302PtbBuilder), asAddress(tx, workerCap)]
7652
8051
  });
7653
8052
  }
@@ -7673,7 +8072,7 @@ var Uln302PtbBuilder = class {
7673
8072
  */
7674
8073
  getWorkerPtbsMoveCall(tx, workerCap) {
7675
8074
  return tx.moveCall({
7676
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "get_worker_ptbs"),
8075
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "get_worker_ptbs"),
7677
8076
  arguments: [tx.object(this.objects.uln302PtbBuilder), asAddress(tx, workerCap)]
7678
8077
  });
7679
8078
  }
@@ -7685,7 +8084,7 @@ var Uln302PtbBuilder = class {
7685
8084
  */
7686
8085
  executorGetFeeCallIdMoveCall(tx) {
7687
8086
  return tx.moveCall({
7688
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "executor_get_fee_call_id"),
8087
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "executor_get_fee_call_id"),
7689
8088
  arguments: []
7690
8089
  });
7691
8090
  }
@@ -7709,7 +8108,7 @@ var Uln302PtbBuilder = class {
7709
8108
  */
7710
8109
  dvnGetFeeMultiCallIdMoveCall(tx) {
7711
8110
  return tx.moveCall({
7712
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "dvn_get_fee_multi_call_id"),
8111
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "dvn_get_fee_multi_call_id"),
7713
8112
  arguments: []
7714
8113
  });
7715
8114
  }
@@ -7733,7 +8132,7 @@ var Uln302PtbBuilder = class {
7733
8132
  */
7734
8133
  executorAssignJobCallIdMoveCall(tx) {
7735
8134
  return tx.moveCall({
7736
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "executor_assign_job_call_id"),
8135
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "executor_assign_job_call_id"),
7737
8136
  arguments: []
7738
8137
  });
7739
8138
  }
@@ -7757,7 +8156,7 @@ var Uln302PtbBuilder = class {
7757
8156
  */
7758
8157
  dvnAssignJobMultiCallIdMoveCall(tx) {
7759
8158
  return tx.moveCall({
7760
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "dvn_assign_job_multi_call_id"),
8159
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "dvn_assign_job_multi_call_id"),
7761
8160
  arguments: []
7762
8161
  });
7763
8162
  }
@@ -7783,13 +8182,13 @@ _Uln302PtbBuilder_instances = new WeakSet();
7783
8182
  * @returns The full module path for the move call
7784
8183
  * @private
7785
8184
  */
7786
- target_fn18 = function(name, module_name = MODULE_NAME17) {
8185
+ target_fn19 = function(name, module_name = MODULE_NAME18) {
7787
8186
  return `${this.packageId}::${module_name}::${name}`;
7788
8187
  };
7789
8188
 
7790
8189
  // src/modules/ptb-builders/blocked-message-lib-ptb-builder.ts
7791
- var MODULE_NAME18 = "blocked_msglib_ptb_builder";
7792
- var _BlockedMessageLibPtbBuilder_instances, target_fn19;
8190
+ var MODULE_NAME19 = "blocked_msglib_ptb_builder";
8191
+ var _BlockedMessageLibPtbBuilder_instances, target_fn20;
7793
8192
  var BlockedMessageLibPtbBuilder = class {
7794
8193
  constructor(packageId, client, objects, moduleManager) {
7795
8194
  this.moduleManager = moduleManager;
@@ -7806,7 +8205,7 @@ var BlockedMessageLibPtbBuilder = class {
7806
8205
  */
7807
8206
  getPtbBuilderInfoMoveCall(tx) {
7808
8207
  return tx.moveCall({
7809
- target: __privateMethod(this, _BlockedMessageLibPtbBuilder_instances, target_fn19).call(this, "get_ptb_builder_info"),
8208
+ target: __privateMethod(this, _BlockedMessageLibPtbBuilder_instances, target_fn20).call(this, "get_ptb_builder_info"),
7810
8209
  arguments: [tx.object(this.objects.blockedMessageLibPtbBuilder), tx.object(this.objects.blockedMessageLib)]
7811
8210
  });
7812
8211
  }
@@ -7819,22 +8218,22 @@ _BlockedMessageLibPtbBuilder_instances = new WeakSet();
7819
8218
  * @returns The full module path for the move call
7820
8219
  * @private
7821
8220
  */
7822
- target_fn19 = function(name, module_name = MODULE_NAME18) {
8221
+ target_fn20 = function(name, module_name = MODULE_NAME19) {
7823
8222
  return `${this.packageId}::${module_name}::${name}`;
7824
8223
  };
7825
- var MODULE_NAME19 = "counter";
8224
+ var MODULE_NAME20 = "counter";
7826
8225
  var CounterErrorCode = {
7827
- // Counter related errors
8226
+ // Counter related errors (matching counter.move)
7828
8227
  Counter_EInvalidMsgType: 0,
7829
8228
  Counter_EInvalidValue: 1,
7830
8229
  Counter_EInvalidNonce: 2,
7831
8230
  Counter_EOnlyEndpoint: 3,
7832
8231
  Counter_ESelfComposeOnly: 4,
7833
8232
  Counter_EInvalidOApp: 5,
7834
- Counter_EInvalidAdminCap: 6,
7835
- Counter_EAlreadyInitialized: 7
8233
+ // OptionsBuilder related errors (matching options_builder.move)
8234
+ OptionsBuilder_EInvalidSize: 1
7836
8235
  };
7837
- var _Counter_instances, target_fn20;
8236
+ var _Counter_instances, target_fn21;
7838
8237
  var Counter = class {
7839
8238
  constructor(packageId, client, objects, moduleManager) {
7840
8239
  this.moduleManager = moduleManager;
@@ -7852,7 +8251,7 @@ var Counter = class {
7852
8251
  */
7853
8252
  initCounterMoveCall(tx, lzReceiveInfo, lzComposeInfo) {
7854
8253
  tx.moveCall({
7855
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "init_counter"),
8254
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "init_counter"),
7856
8255
  arguments: [
7857
8256
  tx.object(this.objects.counter),
7858
8257
  tx.object(this.objects.counterOapp),
@@ -7871,10 +8270,10 @@ var Counter = class {
7871
8270
  * @param payInZero - Whether to pay in ZRO tokens
7872
8271
  * @returns Promise<MessagingFee> - The calculated messaging fees
7873
8272
  */
7874
- async quote(dstEid, msgType, options, payInZero) {
8273
+ async quote(dstEid, msgType, options, payInZero, validators) {
7875
8274
  const tx = new Transaction();
7876
8275
  const quoteCall = tx.moveCall({
7877
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "quote"),
8276
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "quote"),
7878
8277
  arguments: [
7879
8278
  tx.object(this.objects.counter),
7880
8279
  tx.object(this.objects.counterOapp),
@@ -7884,7 +8283,7 @@ var Counter = class {
7884
8283
  asBool(tx, payInZero)
7885
8284
  ]
7886
8285
  });
7887
- return this.moduleManager.getEndpoint().quote(tx, quoteCall);
8286
+ return this.moduleManager.getEndpoint().quote(tx, quoteCall, void 0, validators);
7888
8287
  }
7889
8288
  /**
7890
8289
  * Increment counter on destination chain
@@ -7893,86 +8292,70 @@ var Counter = class {
7893
8292
  * @param dstEid - Destination endpoint ID
7894
8293
  * @param msgType - Message type (SEND or SEND_AND_CALL)
7895
8294
  * @param options - Execution options as bytes
7896
- * @param sendValue - Value to send with the message
7897
8295
  * @param nativeFee - Native token fee amount
7898
8296
  * @param zroFee - ZRO token fee amount
7899
8297
  * @param refundAddress - Address for fee refunds
7900
8298
  */
7901
- async incrementMoveCall(tx, sender, dstEid, msgType, options, sendValue, nativeFee, zroFee, refundAddress) {
8299
+ async incrementMoveCall(tx, sender, dstEid, msgType, options, nativeFee, zroFee, refundAddress, validators) {
7902
8300
  const [nativeToken] = tx.splitCoins(tx.gas, [asU64(tx, nativeFee)]);
7903
8301
  const zroToken = isTransactionArgument(zroFee) ? zroFee : await this.moduleManager.getZro().splitOptionZroTokenMoveCall(tx, sender, zroFee);
7904
8302
  const incrementCall = tx.moveCall({
7905
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "increment"),
8303
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "increment"),
7906
8304
  arguments: [
7907
8305
  tx.object(this.objects.counter),
7908
8306
  tx.object(this.objects.counterOapp),
7909
8307
  asU32(tx, dstEid),
7910
8308
  asU8(tx, msgType),
7911
8309
  asBytes(tx, options),
7912
- asU64(tx, sendValue),
7913
8310
  nativeToken,
7914
8311
  zroToken,
7915
8312
  asAddress(tx, refundAddress)
7916
8313
  ]
7917
8314
  });
7918
- await this.moduleManager.getEndpoint().populateSendTransaction(tx, incrementCall, sender);
8315
+ await this.moduleManager.getEndpoint().populateSendTransaction(tx, incrementCall, sender, validators);
7919
8316
  }
7920
8317
  /**
7921
- * Set peer counter on another chain
8318
+ * Set composer information for counter
7922
8319
  * @param tx - The transaction to add the move call to
7923
- * @param messagingChannel - The messaging channel object ID or transaction argument
7924
- * @param eid - The peer endpoint ID or transaction argument
7925
- * @param peer - The peer counter address as bytes or transaction argument
8320
+ * @param composerInfo - Composer information including lz_compose execution information as bytes
7926
8321
  */
7927
- setPeerMoveCall(tx, messagingChannel, eid, peer) {
8322
+ setComposerInfoMoveCall(tx, composerInfo) {
7928
8323
  tx.moveCall({
7929
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "set_peer"),
8324
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "set_composer_info"),
7930
8325
  arguments: [
7931
8326
  tx.object(this.objects.counter),
7932
8327
  tx.object(this.objects.counterOapp),
7933
8328
  tx.object(this.objects.counterAdminCap),
7934
8329
  tx.object(this.objects.endpointV2),
7935
- asObject(tx, messagingChannel),
7936
- asU32(tx, eid),
7937
- asBytes32(tx, peer, this.moduleManager.getUtils())
8330
+ asBytes(tx, composerInfo)
7938
8331
  ]
7939
8332
  });
7940
8333
  }
8334
+ // === View Functions ===
7941
8335
  /**
7942
- * Set delegate for the counter
8336
+ * Get counter EID
7943
8337
  * @param tx - The transaction to add the move call to
7944
- * @param newDelegate - The new delegate address or transaction argument
8338
+ * @returns Transaction result containing the counter EID
7945
8339
  */
7946
- setDelegateMoveCall(tx, newDelegate) {
7947
- tx.moveCall({
7948
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "set_delegate"),
7949
- arguments: [
7950
- tx.object(this.objects.counter),
7951
- tx.object(this.objects.counterOapp),
7952
- tx.object(this.objects.counterAdminCap),
7953
- tx.object(this.objects.endpointV2),
7954
- asAddress(tx, newDelegate)
7955
- ]
8340
+ getEidMoveCall(tx) {
8341
+ return tx.moveCall({
8342
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "eid"),
8343
+ arguments: [tx.object(this.objects.counter)]
7956
8344
  });
7957
8345
  }
7958
8346
  /**
7959
- * Set LayerZero compose information for counter
7960
- * @param tx - The transaction to add the move call to
7961
- * @param lzComposeInfo - LayerZero compose information as bytes
8347
+ * Get counter EID
8348
+ * @returns Promise<number> - The counter EID
7962
8349
  */
7963
- setLzComposeInfoMoveCall(tx, lzComposeInfo) {
7964
- tx.moveCall({
7965
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "set_lz_compose_info"),
7966
- arguments: [
7967
- tx.object(this.objects.counter),
7968
- tx.object(this.objects.counterOapp),
7969
- tx.object(this.objects.counterAdminCap),
7970
- tx.object(this.objects.endpointV2),
7971
- asBytes(tx, lzComposeInfo)
7972
- ]
7973
- });
8350
+ async getEid() {
8351
+ return executeSimulate(
8352
+ this.client,
8353
+ (tx) => {
8354
+ this.getEidMoveCall(tx);
8355
+ },
8356
+ (result) => bcs.U32.parse(result[0].value)
8357
+ );
7974
8358
  }
7975
- // === View Functions ===
7976
8359
  /**
7977
8360
  * Get call capability address for counter
7978
8361
  * @param tx - The transaction to add the move call to
@@ -7980,7 +8363,7 @@ var Counter = class {
7980
8363
  */
7981
8364
  getCallCapAddressMoveCall(tx) {
7982
8365
  return tx.moveCall({
7983
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "call_cap_address"),
8366
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "call_cap_address"),
7984
8367
  arguments: [tx.object(this.objects.counter)]
7985
8368
  });
7986
8369
  }
@@ -8004,7 +8387,7 @@ var Counter = class {
8004
8387
  */
8005
8388
  getComposerAddressMoveCall(tx) {
8006
8389
  return tx.moveCall({
8007
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "composer_address"),
8390
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "composer_address"),
8008
8391
  arguments: [tx.object(this.objects.counter)]
8009
8392
  });
8010
8393
  }
@@ -8028,7 +8411,7 @@ var Counter = class {
8028
8411
  */
8029
8412
  getCountMoveCall(tx) {
8030
8413
  return tx.moveCall({
8031
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_count"),
8414
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_count"),
8032
8415
  arguments: [tx.object(this.objects.counter)]
8033
8416
  });
8034
8417
  }
@@ -8052,7 +8435,7 @@ var Counter = class {
8052
8435
  */
8053
8436
  getComposedCountMoveCall(tx) {
8054
8437
  return tx.moveCall({
8055
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_composed_count"),
8438
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_composed_count"),
8056
8439
  arguments: [tx.object(this.objects.counter)]
8057
8440
  });
8058
8441
  }
@@ -8077,7 +8460,7 @@ var Counter = class {
8077
8460
  */
8078
8461
  getOutboundCountMoveCall(tx, dstEid) {
8079
8462
  return tx.moveCall({
8080
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_outbound_count"),
8463
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_outbound_count"),
8081
8464
  arguments: [tx.object(this.objects.counter), asU32(tx, dstEid)]
8082
8465
  });
8083
8466
  }
@@ -8103,7 +8486,7 @@ var Counter = class {
8103
8486
  */
8104
8487
  getInboundCountMoveCall(tx, srcEid) {
8105
8488
  return tx.moveCall({
8106
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_inbound_count"),
8489
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_inbound_count"),
8107
8490
  arguments: [tx.object(this.objects.counter), asU32(tx, srcEid)]
8108
8491
  });
8109
8492
  }
@@ -8123,7 +8506,7 @@ var Counter = class {
8123
8506
  }
8124
8507
  nextNonceMoveCall(tx, srcEid, sender) {
8125
8508
  return tx.moveCall({
8126
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "next_nonce"),
8509
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "next_nonce"),
8127
8510
  arguments: [
8128
8511
  tx.object(this.objects.counter),
8129
8512
  asU32(tx, srcEid),
@@ -8142,7 +8525,7 @@ var Counter = class {
8142
8525
  }
8143
8526
  getMaxReceivedNonceMoveCall(tx, srcEid, sender) {
8144
8527
  return tx.moveCall({
8145
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_max_received_nonce"),
8528
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_max_received_nonce"),
8146
8529
  arguments: [
8147
8530
  tx.object(this.objects.counter),
8148
8531
  asU32(tx, srcEid),
@@ -8161,7 +8544,7 @@ var Counter = class {
8161
8544
  }
8162
8545
  isOrderedNonceMoveCall(tx) {
8163
8546
  return tx.moveCall({
8164
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "is_ordered_nonce"),
8547
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "is_ordered_nonce"),
8165
8548
  arguments: [tx.object(this.objects.counter)]
8166
8549
  });
8167
8550
  }
@@ -8177,7 +8560,7 @@ var Counter = class {
8177
8560
  // === PTB Builder Functions ===
8178
8561
  lzReceiveInfoMoveCall(tx) {
8179
8562
  return tx.moveCall({
8180
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "lz_receive_info", "counter_ptb_builder"),
8563
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "lz_receive_info", "counter_ptb_builder"),
8181
8564
  arguments: [
8182
8565
  tx.object(this.objects.counter),
8183
8566
  tx.object(this.objects.counterOapp),
@@ -8188,7 +8571,7 @@ var Counter = class {
8188
8571
  }
8189
8572
  lzComposeInfoMoveCall(tx) {
8190
8573
  return tx.moveCall({
8191
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "lz_compose_info", "counter_ptb_builder"),
8574
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "lz_compose_info", "counter_ptb_builder"),
8192
8575
  arguments: [
8193
8576
  tx.object(this.objects.counter),
8194
8577
  tx.object(this.objects.counterOapp),
@@ -8207,33 +8590,44 @@ _Counter_instances = new WeakSet();
8207
8590
  * @returns The full module path for the move call
8208
8591
  * @private
8209
8592
  */
8210
- target_fn20 = function(name, module_name = MODULE_NAME19) {
8593
+ target_fn21 = function(name, module_name = MODULE_NAME20) {
8211
8594
  return `${this.packageId}::${module_name}::${name}`;
8212
8595
  };
8213
- var MODULE_NAME20 = "oapp";
8596
+ var MODULE_NAME21 = "oapp";
8214
8597
  var OAppErrorCode = {
8215
- // OApp related errors
8216
- OApp_EAlreadyInited: 1,
8217
- OApp_EChannelNotInited: 2,
8218
- OApp_EEndpointNotInited: 3,
8219
- OApp_EInvalidAdminCap: 4,
8220
- OApp_EInvalidCallCap: 5,
8221
- OApp_EOnlyEndpoint: 6,
8222
- OApp_EOnlyPeer: 7,
8223
- // EndpointConfig related errors
8224
- EndpointConfig_EInvalidAdminCap: 1,
8225
- EndpointConfig_EInvalidIntentType: 2,
8226
- EndpointConfig_EInvalidOAppCallCap: 3
8227
- };
8228
- var _OApp_instances, target_fn21;
8598
+ // OApp related errors (matching oapp.move)
8599
+ OApp_EInvalidAdminCap: 1,
8600
+ OApp_EInvalidOAppCap: 2,
8601
+ OApp_EInvalidRefundAddress: 3,
8602
+ OApp_EInvalidSendingCall: 4,
8603
+ OApp_EOnlyEndpoint: 5,
8604
+ OApp_EOnlyPeer: 6,
8605
+ OApp_ESendingInProgress: 7,
8606
+ // OAppPeer related errors (matching oapp_peer.move)
8607
+ OAppPeer_EPeerNotFound: 0,
8608
+ OAppPeer_EInvalidPeer: 1,
8609
+ // EnforcedOptions related errors (matching enforced_options.move)
8610
+ EnforcedOptions_EEnforcedOptionsNotFound: 1,
8611
+ EnforcedOptions_EInvalidOptionsLength: 2,
8612
+ EnforcedOptions_EInvalidOptionsType: 3,
8613
+ // OAppInfoV1 related errors (matching oapp_info_v1.move)
8614
+ OAppInfoV1_EInvalidData: 1,
8615
+ OAppInfoV1_EInvalidVersion: 2
8616
+ };
8617
+ var _OApp_instances, oappInfo_fn, target_fn22;
8229
8618
  var OApp = class {
8230
- constructor(packageId, client, objects, moduleManager) {
8619
+ constructor(packageId, oappCallCapId, client, objects, moduleManager) {
8231
8620
  this.moduleManager = moduleManager;
8232
8621
  __privateAdd(this, _OApp_instances);
8622
+ this.oappInfo = null;
8233
8623
  this.packageId = packageId;
8624
+ this.oappCallCapId = oappCallCapId;
8234
8625
  this.client = client;
8235
8626
  this.objects = objects;
8236
8627
  }
8628
+ // setOAppInfo(oappInfo: OAppInfoV1): void {
8629
+ // this.oappInfo = oappInfo
8630
+ // }
8237
8631
  // === Set Functions ===
8238
8632
  /**
8239
8633
  * Set enforced options for OApp messaging
@@ -8244,11 +8638,13 @@ var OApp = class {
8244
8638
  * @param msgType - Message type or transaction argument
8245
8639
  * @param options - Enforced options as bytes or transaction argument
8246
8640
  */
8247
- setEnforcedOptionsMoveCall(tx, oapp, adminCap, eid, msgType, options) {
8641
+ async setEnforcedOptionsMoveCall(tx, eid, msgType, options) {
8642
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8643
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8248
8644
  tx.moveCall({
8249
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "set_enforced_options"),
8645
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_enforced_options"),
8250
8646
  arguments: [
8251
- asObject(tx, oapp),
8647
+ asObject(tx, oappInfo.oapp_object),
8252
8648
  asObject(tx, adminCap),
8253
8649
  asU32(tx, eid),
8254
8650
  asU16(tx, msgType),
@@ -8264,12 +8660,17 @@ var OApp = class {
8264
8660
  * @param eid - Peer endpoint ID or transaction argument
8265
8661
  * @param peer - Peer OApp address as bytes or transaction argument
8266
8662
  */
8267
- setPeerMoveCall(tx, oapp, adminCap, eid, peer) {
8663
+ async setPeerMoveCall(tx, eid, peer) {
8664
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8665
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8666
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
8268
8667
  tx.moveCall({
8269
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "set_peer"),
8668
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_peer"),
8270
8669
  arguments: [
8271
- asObject(tx, oapp),
8670
+ asObject(tx, oappInfo.oapp_object),
8272
8671
  asObject(tx, adminCap),
8672
+ asObject(tx, this.objects.endpointV2),
8673
+ asObject(tx, messagingChannel),
8273
8674
  asU32(tx, eid),
8274
8675
  asBytes32(tx, peer, this.moduleManager.getUtils())
8275
8676
  ]
@@ -8277,53 +8678,54 @@ var OApp = class {
8277
8678
  }
8278
8679
  // === View Functions ===
8279
8680
  /**
8280
- * Get admin address for OApp
8681
+ * Get admin capability address for OApp
8281
8682
  * @param tx - The transaction to add the move call to
8282
8683
  * @param oapp - The OApp object ID or transaction argument
8283
- * @returns Transaction result containing the admin address
8684
+ * @returns Transaction result containing the admin capability address
8284
8685
  */
8285
- getAdminMoveCall(tx, oapp) {
8686
+ getAdminCapMoveCall(tx, oapp) {
8286
8687
  return tx.moveCall({
8287
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "admin"),
8688
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "admin_cap"),
8288
8689
  arguments: [asObject(tx, oapp)]
8289
8690
  });
8290
8691
  }
8291
8692
  /**
8292
- * Get admin address for OApp
8693
+ * Get admin capability address for OApp
8293
8694
  * @param oapp - The OApp object ID
8294
- * @returns Promise<string> - The admin address
8695
+ * @returns Promise<string> - The admin capability address
8295
8696
  */
8296
- async getAdmin(oapp) {
8697
+ async getAdminCap(oapp) {
8297
8698
  return executeSimulate(
8298
8699
  this.client,
8299
8700
  (tx) => {
8300
- this.getAdminMoveCall(tx, oapp);
8701
+ this.getAdminCapMoveCall(tx, oapp);
8301
8702
  },
8302
8703
  (result) => bcs.Address.parse(result[0].value)
8303
8704
  );
8304
8705
  }
8305
8706
  /**
8306
- * Get OApp address (call capability ID)
8707
+ * Get OApp CallCap identifier
8307
8708
  * @param tx - The transaction to add the move call to
8308
8709
  * @param oapp - The OApp object ID or transaction argument
8309
- * @returns Transaction result containing the OApp address
8710
+ * @returns Transaction result containing the OApp CallCap identifier
8310
8711
  */
8311
- getOAppAddressMoveCall(tx, oapp) {
8712
+ async getOAppCapIdMoveCall(tx) {
8713
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8312
8714
  return tx.moveCall({
8313
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "oapp_address"),
8314
- arguments: [asObject(tx, oapp)]
8715
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "oapp_cap_id"),
8716
+ arguments: [asObject(tx, oappInfo.oapp_object)]
8315
8717
  });
8316
8718
  }
8317
8719
  /**
8318
- * Get OApp address (call capability ID)
8319
- * @param oapp - The OApp object ID
8320
- * @returns Promise<string> - The OApp address
8720
+ * Get OApp CallCap identifier
8721
+ * @param oapp - The OApp object ID (optional, uses configured oapp if not provided)
8722
+ * @returns Promise<string> - The OApp CallCap identifier
8321
8723
  */
8322
- async getOAppAddress(oapp) {
8724
+ async getOAppCapId() {
8323
8725
  return executeSimulate(
8324
8726
  this.client,
8325
- (tx) => {
8326
- this.getOAppAddressMoveCall(tx, oapp);
8727
+ async (tx) => {
8728
+ await this.getOAppCapIdMoveCall(tx);
8327
8729
  },
8328
8730
  (result) => bcs.Address.parse(result[0].value)
8329
8731
  );
@@ -8337,10 +8739,16 @@ var OApp = class {
8337
8739
  * @param extraOptions - Extra options to combine with enforced options or transaction argument
8338
8740
  * @returns Transaction result containing combined options
8339
8741
  */
8340
- combineOptionsMoveCall(tx, oapp, eid, msgType, extraOptions) {
8742
+ async combineOptionsMoveCall(tx, eid, msgType, extraOptions) {
8743
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8341
8744
  return tx.moveCall({
8342
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "combine_options"),
8343
- arguments: [asObject(tx, oapp), asU32(tx, eid), asU16(tx, msgType), asBytes(tx, extraOptions)]
8745
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "combine_options"),
8746
+ arguments: [
8747
+ asObject(tx, oappInfo.oapp_object),
8748
+ asU32(tx, eid),
8749
+ asU16(tx, msgType),
8750
+ asBytes(tx, extraOptions)
8751
+ ]
8344
8752
  });
8345
8753
  }
8346
8754
  /**
@@ -8351,11 +8759,11 @@ var OApp = class {
8351
8759
  * @param extraOptions - Extra options to combine with enforced options
8352
8760
  * @returns Promise<Uint8Array> - Combined options as bytes
8353
8761
  */
8354
- async combineOptions(oapp, eid, msgType, extraOptions) {
8762
+ async combineOptions(eid, msgType, extraOptions) {
8355
8763
  return executeSimulate(
8356
8764
  this.client,
8357
- (tx) => {
8358
- this.combineOptionsMoveCall(tx, oapp, eid, msgType, extraOptions);
8765
+ async (tx) => {
8766
+ await this.combineOptionsMoveCall(tx, eid, msgType, extraOptions);
8359
8767
  },
8360
8768
  (result) => new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value))
8361
8769
  );
@@ -8368,10 +8776,11 @@ var OApp = class {
8368
8776
  * @param msgType - Message type or transaction argument
8369
8777
  * @returns Transaction result containing enforced options
8370
8778
  */
8371
- getEnforcedOptionsMoveCall(tx, oapp, eid, msgType) {
8779
+ async getEnforcedOptionsMoveCall(tx, eid, msgType) {
8780
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8372
8781
  return tx.moveCall({
8373
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "get_enforced_options"),
8374
- arguments: [asObject(tx, oapp), asU32(tx, eid), asU16(tx, msgType)]
8782
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "get_enforced_options"),
8783
+ arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, eid), asU16(tx, msgType)]
8375
8784
  });
8376
8785
  }
8377
8786
  /**
@@ -8381,11 +8790,11 @@ var OApp = class {
8381
8790
  * @param msgType - Message type
8382
8791
  * @returns Promise<Uint8Array> - Enforced options as bytes
8383
8792
  */
8384
- async getEnforcedOptions(oapp, eid, msgType) {
8793
+ async getEnforcedOptions(eid, msgType) {
8385
8794
  return executeSimulate(
8386
8795
  this.client,
8387
- (tx) => {
8388
- this.getEnforcedOptionsMoveCall(tx, oapp, eid, msgType);
8796
+ async (tx) => {
8797
+ await this.getEnforcedOptionsMoveCall(tx, eid, msgType);
8389
8798
  },
8390
8799
  (result) => new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value))
8391
8800
  );
@@ -8397,10 +8806,11 @@ var OApp = class {
8397
8806
  * @param dstEid - Destination endpoint ID or transaction argument
8398
8807
  * @returns Transaction result containing boolean result
8399
8808
  */
8400
- hasPeerMoveCall(tx, oapp, dstEid) {
8809
+ async hasPeerMoveCall(tx, dstEid) {
8810
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8401
8811
  return tx.moveCall({
8402
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "has_peer"),
8403
- arguments: [asObject(tx, oapp), asU32(tx, dstEid)]
8812
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "has_peer"),
8813
+ arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, dstEid)]
8404
8814
  });
8405
8815
  }
8406
8816
  /**
@@ -8409,11 +8819,11 @@ var OApp = class {
8409
8819
  * @param dstEid - Destination endpoint ID
8410
8820
  * @returns Promise<boolean> - True if peer is configured, false otherwise
8411
8821
  */
8412
- async hasPeer(oapp, dstEid) {
8822
+ async hasPeer(dstEid) {
8413
8823
  return executeSimulate(
8414
8824
  this.client,
8415
- (tx) => {
8416
- this.hasPeerMoveCall(tx, oapp, dstEid);
8825
+ async (tx) => {
8826
+ await this.hasPeerMoveCall(tx, dstEid);
8417
8827
  },
8418
8828
  (result) => bcs.Bool.parse(result[0].value)
8419
8829
  );
@@ -8425,10 +8835,11 @@ var OApp = class {
8425
8835
  * @param dstEid - Destination endpoint ID or transaction argument
8426
8836
  * @returns Transaction result containing peer address
8427
8837
  */
8428
- getPeerMoveCall(tx, oapp, dstEid) {
8838
+ async getPeerMoveCall(tx, dstEid) {
8839
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8429
8840
  return tx.moveCall({
8430
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "get_peer"),
8431
- arguments: [asObject(tx, oapp), asU32(tx, dstEid)]
8841
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "get_peer"),
8842
+ arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, dstEid)]
8432
8843
  });
8433
8844
  }
8434
8845
  /**
@@ -8437,27 +8848,333 @@ var OApp = class {
8437
8848
  * @param dstEid - Destination endpoint ID
8438
8849
  * @returns Promise<Uint8Array> - Peer address as bytes32
8439
8850
  */
8440
- async getPeer(oapp, dstEid) {
8851
+ async getPeer(dstEid) {
8441
8852
  return executeSimulate(
8442
8853
  this.client,
8443
- (tx) => {
8444
- this.getPeerMoveCall(tx, oapp, dstEid);
8854
+ async (tx) => {
8855
+ await this.getPeerMoveCall(tx, dstEid);
8445
8856
  },
8446
8857
  (result) => {
8447
8858
  return new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value));
8448
8859
  }
8449
8860
  );
8450
8861
  }
8862
+ getOAppInfoV1MoveCall(tx) {
8863
+ const endpoint = this.moduleManager.getEndpoint();
8864
+ const oappInfoRaw = endpoint.getOappInfoMoveCall(tx, this.oappCallCapId);
8865
+ return tx.moveCall({
8866
+ target: `${this.packageId}::oapp_info_v1::decode`,
8867
+ arguments: [oappInfoRaw]
8868
+ });
8869
+ }
8870
+ async getOAppInfoV1() {
8871
+ return executeSimulate(
8872
+ this.client,
8873
+ (tx) => {
8874
+ this.getOAppInfoV1MoveCall(tx);
8875
+ },
8876
+ (result) => {
8877
+ return OAppInfoV1Bcs.parse(result[0].value);
8878
+ }
8879
+ );
8880
+ }
8881
+ // === Endpoint Call Functions ===
8882
+ /**
8883
+ * Register OApp with the endpoint
8884
+ * @param tx - The transaction to add the move call to
8885
+ * @param oappInfo - OApp information as bytes (optional)
8886
+ * @returns Transaction result containing the messaging channel address
8887
+ */
8888
+ async registerOAppMoveCall(tx, oappInfo) {
8889
+ let oappInfoArg;
8890
+ if (isTransactionArgument(oappInfo)) {
8891
+ oappInfoArg = oappInfo;
8892
+ } else if (oappInfo) {
8893
+ oappInfoArg = tx.pure.option("vector<u8>", Array.from(oappInfo));
8894
+ } else {
8895
+ oappInfoArg = tx.pure.option("vector<u8>", null);
8896
+ }
8897
+ const oappInfoObj = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8898
+ const adminCap = await this.getAdminCap(oappInfoObj.oapp_object);
8899
+ return tx.moveCall({
8900
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "register_oapp", "endpoint_calls"),
8901
+ arguments: [
8902
+ asObject(tx, oappInfoObj.oapp_object),
8903
+ asObject(tx, adminCap),
8904
+ asObject(tx, this.objects.endpointV2),
8905
+ oappInfoArg
8906
+ ]
8907
+ });
8908
+ }
8909
+ /**
8910
+ * Set delegate for OApp
8911
+ * @param tx - The transaction to add the move call to
8912
+ * @param newDelegate - New delegate address
8913
+ */
8914
+ async setDelegateMoveCall(tx, newDelegate) {
8915
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8916
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8917
+ tx.moveCall({
8918
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_delegate", "endpoint_calls"),
8919
+ arguments: [
8920
+ asObject(tx, oappInfo.oapp_object),
8921
+ asObject(tx, adminCap),
8922
+ asObject(tx, this.objects.endpointV2),
8923
+ asAddress(tx, newDelegate)
8924
+ ]
8925
+ });
8926
+ }
8927
+ /**
8928
+ * Set OApp information in the endpoint
8929
+ * @param tx - The transaction to add the move call to
8930
+ * @param oappInfo - OApp information as bytes
8931
+ */
8932
+ async setOAppInfoMoveCall(tx, oappInfo) {
8933
+ const oappInfoObj = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8934
+ const adminCap = await this.getAdminCap(oappInfoObj.oapp_object);
8935
+ tx.moveCall({
8936
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_oapp_info", "endpoint_calls"),
8937
+ arguments: [
8938
+ asObject(tx, oappInfoObj.oapp_object),
8939
+ asObject(tx, adminCap),
8940
+ asObject(tx, this.objects.endpointV2),
8941
+ asBytes(tx, oappInfo)
8942
+ ]
8943
+ });
8944
+ }
8945
+ /**
8946
+ * Initialize channel with remote OApp
8947
+ * @param tx - The transaction to add the move call to
8948
+ * @param remoteEid - Remote endpoint ID
8949
+ * @param remoteOApp - Remote OApp address as bytes32
8950
+ */
8951
+ async initChannelMoveCall(tx, remoteEid, remoteOApp) {
8952
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8953
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8954
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
8955
+ tx.moveCall({
8956
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "init_channel", "endpoint_calls"),
8957
+ arguments: [
8958
+ asObject(tx, oappInfo.oapp_object),
8959
+ asObject(tx, adminCap),
8960
+ asObject(tx, this.objects.endpointV2),
8961
+ asObject(tx, messagingChannel),
8962
+ asU32(tx, remoteEid),
8963
+ asBytes32(tx, remoteOApp, this.moduleManager.getUtils())
8964
+ ]
8965
+ });
8966
+ }
8967
+ /**
8968
+ * Clear a message from the messaging channel
8969
+ * @param tx - The transaction to add the move call to
8970
+ * @param srcEid - Source endpoint ID
8971
+ * @param sender - Sender address as bytes32
8972
+ * @param nonce - Message nonce
8973
+ * @param guid - Message GUID as bytes32
8974
+ * @param message - Message payload
8975
+ */
8976
+ async clearMoveCall(tx, srcEid, sender, nonce, guid, message) {
8977
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8978
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8979
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
8980
+ tx.moveCall({
8981
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "clear", "endpoint_calls"),
8982
+ arguments: [
8983
+ asObject(tx, oappInfo.oapp_object),
8984
+ asObject(tx, adminCap),
8985
+ asObject(tx, this.objects.endpointV2),
8986
+ asObject(tx, messagingChannel),
8987
+ asU32(tx, srcEid),
8988
+ asBytes32(tx, sender, this.moduleManager.getUtils()),
8989
+ asU64(tx, nonce),
8990
+ asBytes32(tx, guid, this.moduleManager.getUtils()),
8991
+ asBytes(tx, message)
8992
+ ]
8993
+ });
8994
+ }
8995
+ /**
8996
+ * Skip a message in the messaging channel
8997
+ * @param tx - The transaction to add the move call to
8998
+ * @param srcEid - Source endpoint ID
8999
+ * @param sender - Sender address as bytes32
9000
+ * @param nonce - Message nonce
9001
+ */
9002
+ async skipMoveCall(tx, srcEid, sender, nonce) {
9003
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9004
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9005
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
9006
+ tx.moveCall({
9007
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "skip", "endpoint_calls"),
9008
+ arguments: [
9009
+ asObject(tx, oappInfo.oapp_object),
9010
+ asObject(tx, adminCap),
9011
+ asObject(tx, this.objects.endpointV2),
9012
+ asObject(tx, messagingChannel),
9013
+ asU32(tx, srcEid),
9014
+ asBytes32(tx, sender, this.moduleManager.getUtils()),
9015
+ asU64(tx, nonce)
9016
+ ]
9017
+ });
9018
+ }
9019
+ /**
9020
+ * Nilify a message in the messaging channel
9021
+ * @param tx - The transaction to add the move call to
9022
+ * @param srcEid - Source endpoint ID
9023
+ * @param sender - Sender address as bytes32
9024
+ * @param nonce - Message nonce
9025
+ * @param payloadHash - Payload hash as bytes32
9026
+ */
9027
+ async nilifyMoveCall(tx, srcEid, sender, nonce, payloadHash) {
9028
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9029
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9030
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
9031
+ tx.moveCall({
9032
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "nilify", "endpoint_calls"),
9033
+ arguments: [
9034
+ asObject(tx, oappInfo.oapp_object),
9035
+ asObject(tx, adminCap),
9036
+ asObject(tx, this.objects.endpointV2),
9037
+ asObject(tx, messagingChannel),
9038
+ asU32(tx, srcEid),
9039
+ asBytes32(tx, sender, this.moduleManager.getUtils()),
9040
+ asU64(tx, nonce),
9041
+ asBytes32(tx, payloadHash, this.moduleManager.getUtils())
9042
+ ]
9043
+ });
9044
+ }
9045
+ /**
9046
+ * Burn a message in the messaging channel
9047
+ * @param tx - The transaction to add the move call to
9048
+ * @param srcEid - Source endpoint ID
9049
+ * @param sender - Sender address as bytes32
9050
+ * @param nonce - Message nonce
9051
+ * @param payloadHash - Payload hash as bytes32
9052
+ */
9053
+ async burnMoveCall(tx, srcEid, sender, nonce, payloadHash) {
9054
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9055
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9056
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
9057
+ tx.moveCall({
9058
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "burn", "endpoint_calls"),
9059
+ arguments: [
9060
+ asObject(tx, oappInfo.oapp_object),
9061
+ asObject(tx, adminCap),
9062
+ asObject(tx, this.objects.endpointV2),
9063
+ asObject(tx, messagingChannel),
9064
+ asU32(tx, srcEid),
9065
+ asBytes32(tx, sender, this.moduleManager.getUtils()),
9066
+ asU64(tx, nonce),
9067
+ asBytes32(tx, payloadHash, this.moduleManager.getUtils())
9068
+ ]
9069
+ });
9070
+ }
9071
+ /**
9072
+ * Set send library for a destination chain
9073
+ * @param tx - The transaction to add the move call to
9074
+ * @param dstEid - Destination endpoint ID
9075
+ * @param sendLibrary - Send library address
9076
+ */
9077
+ async setSendLibraryMoveCall(tx, dstEid, sendLibrary) {
9078
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9079
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9080
+ tx.moveCall({
9081
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_send_library", "endpoint_calls"),
9082
+ arguments: [
9083
+ asObject(tx, oappInfo.oapp_object),
9084
+ asObject(tx, adminCap),
9085
+ asObject(tx, this.objects.endpointV2),
9086
+ asU32(tx, dstEid),
9087
+ asAddress(tx, sendLibrary)
9088
+ ]
9089
+ });
9090
+ }
9091
+ /**
9092
+ * Set receive library for a source chain
9093
+ * @param tx - The transaction to add the move call to
9094
+ * @param srcEid - Source endpoint ID
9095
+ * @param receiveLibrary - Receive library address
9096
+ * @param gracePeriod - Grace period in seconds
9097
+ */
9098
+ async setReceiveLibraryMoveCall(tx, srcEid, receiveLibrary, gracePeriod) {
9099
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9100
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9101
+ tx.moveCall({
9102
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_receive_library", "endpoint_calls"),
9103
+ arguments: [
9104
+ asObject(tx, oappInfo.oapp_object),
9105
+ asObject(tx, adminCap),
9106
+ asObject(tx, this.objects.endpointV2),
9107
+ asU32(tx, srcEid),
9108
+ asAddress(tx, receiveLibrary),
9109
+ asU64(tx, gracePeriod),
9110
+ tx.object.clock()
9111
+ ]
9112
+ });
9113
+ }
9114
+ /**
9115
+ * Set receive library timeout for a source chain
9116
+ * @param tx - The transaction to add the move call to
9117
+ * @param srcEid - Source endpoint ID
9118
+ * @param receiveLibrary - Receive library address
9119
+ * @param expiry - Expiry timestamp in seconds
9120
+ */
9121
+ async setReceiveLibraryTimeoutMoveCall(tx, srcEid, receiveLibrary, expiry) {
9122
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9123
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9124
+ tx.moveCall({
9125
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_receive_library_timeout", "endpoint_calls"),
9126
+ arguments: [
9127
+ asObject(tx, oappInfo.oapp_object),
9128
+ asObject(tx, adminCap),
9129
+ asObject(tx, this.objects.endpointV2),
9130
+ asU32(tx, srcEid),
9131
+ asAddress(tx, receiveLibrary),
9132
+ asU64(tx, expiry),
9133
+ tx.object.clock()
9134
+ ]
9135
+ });
9136
+ }
9137
+ /**
9138
+ * Set configuration for a message library
9139
+ * @param tx - The transaction to add the move call to
9140
+ * @param lib - Library address
9141
+ * @param eid - Endpoint ID
9142
+ * @param configType - Configuration type
9143
+ * @param config - Configuration data as bytes
9144
+ * @returns Transaction result containing Call<MessageLibSetConfigParam, Void>
9145
+ */
9146
+ async setConfigMoveCall(tx, lib, eid, configType, config) {
9147
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9148
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9149
+ return tx.moveCall({
9150
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_config", "endpoint_calls"),
9151
+ typeArguments: [],
9152
+ arguments: [
9153
+ asObject(tx, oappInfo.oapp_object),
9154
+ asObject(tx, adminCap),
9155
+ asObject(tx, this.objects.endpointV2),
9156
+ asAddress(tx, lib),
9157
+ asU32(tx, eid),
9158
+ asU32(tx, configType),
9159
+ asBytes(tx, config)
9160
+ ]
9161
+ });
9162
+ }
8451
9163
  };
8452
9164
  _OApp_instances = new WeakSet();
8453
- // === Private Functions ===
9165
+ oappInfo_fn = async function() {
9166
+ if (!this.oappInfo) {
9167
+ this.oappInfo = await this.getOAppInfoV1();
9168
+ }
9169
+ return this.oappInfo;
9170
+ };
8454
9171
  /**
8455
9172
  * Generate the full target path for move calls
8456
9173
  * @param name - The function name to call
8457
9174
  * @returns The full module path for the move call
8458
9175
  * @private
8459
9176
  */
8460
- target_fn21 = function(name, module_name = MODULE_NAME20) {
9177
+ target_fn22 = function(name, module_name = MODULE_NAME21) {
8461
9178
  return `${this.packageId}::${module_name}::${name}`;
8462
9179
  };
8463
9180
  var MODULE_NAME_ENDPOINT_VIEWS = "endpoint_views";
@@ -8626,16 +9343,24 @@ uln302ViewsTarget_fn = function(functionName) {
8626
9343
  };
8627
9344
  var DEFAULT_MODULE_NAME = "call";
8628
9345
  var CallErrorCode = {
8629
- // Call related errors (with Call_ prefix)
8630
- Call_ECallNotCompletable: 1,
9346
+ // Call related errors (matching call.move)
9347
+ Call_ECallNotActive: 1,
8631
9348
  Call_ECallNotCompleted: 2,
8632
- Call_ECallNotSealed: 3,
9349
+ Call_ECallNotCreating: 3,
8633
9350
  Call_ECallNotRoot: 4,
8634
- Call_ECallSealed: 5,
8635
- Call_EInvalidParent: 6,
8636
- Call_EUnauthorized: 7
8637
- };
8638
- var _Call_instances, target_fn22;
9351
+ Call_ECallNotWaiting: 5,
9352
+ Call_EInvalidChild: 6,
9353
+ Call_EInvalidNonce: 7,
9354
+ Call_EInvalidParent: 8,
9355
+ Call_EParameterNotMutable: 9,
9356
+ Call_EUnauthorized: 10,
9357
+ // CallCap related errors (matching call_cap.move)
9358
+ CallCap_EBadWitness: 1,
9359
+ // MultiCall related errors (matching dynamic-call/multi-call/multi_call.move)
9360
+ MultiCall_ENoMoreCalls: 1,
9361
+ MultiCall_EUnauthorized: 2
9362
+ };
9363
+ var _Call_instances, target_fn23;
8639
9364
  var Call = class {
8640
9365
  constructor(packageId, client) {
8641
9366
  __privateAdd(this, _Call_instances);
@@ -8651,7 +9376,7 @@ var Call = class {
8651
9376
  */
8652
9377
  newIndividualCapMoveCall(tx) {
8653
9378
  return tx.moveCall({
8654
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "new_individual_cap", "call_cap"),
9379
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "new_individual_cap", "call_cap"),
8655
9380
  arguments: []
8656
9381
  });
8657
9382
  }
@@ -8662,7 +9387,7 @@ var Call = class {
8662
9387
  */
8663
9388
  voidMoveCall(tx) {
8664
9389
  return tx.moveCall({
8665
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "void"),
9390
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "void"),
8666
9391
  arguments: []
8667
9392
  });
8668
9393
  }
@@ -8677,7 +9402,7 @@ var Call = class {
8677
9402
  */
8678
9403
  resultMoveCall(tx, paramType, resultType, call) {
8679
9404
  return tx.moveCall({
8680
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "result"),
9405
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "result"),
8681
9406
  typeArguments: [paramType, resultType],
8682
9407
  arguments: [call]
8683
9408
  });
@@ -8692,7 +9417,7 @@ var Call = class {
8692
9417
  */
8693
9418
  recipientMoveCall(tx, paramType, resultType, call) {
8694
9419
  return tx.moveCall({
8695
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "recipient"),
9420
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "recipient"),
8696
9421
  typeArguments: [paramType, resultType],
8697
9422
  arguments: [call]
8698
9423
  });
@@ -8706,7 +9431,7 @@ var Call = class {
8706
9431
  */
8707
9432
  callCapIdMoveCall(tx, callCap) {
8708
9433
  return tx.moveCall({
8709
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "id", "call_cap"),
9434
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "id", "call_cap"),
8710
9435
  arguments: [asObject(tx, callCap)]
8711
9436
  });
8712
9437
  }
@@ -8733,7 +9458,7 @@ var Call = class {
8733
9458
  */
8734
9459
  isIndividualCapMoveCall(tx, callCap) {
8735
9460
  return tx.moveCall({
8736
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "is_individual", "call_cap"),
9461
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "is_individual", "call_cap"),
8737
9462
  arguments: [asObject(tx, callCap)]
8738
9463
  });
8739
9464
  }
@@ -8759,7 +9484,7 @@ var Call = class {
8759
9484
  */
8760
9485
  isPackageCapMoveCall(tx, callCap) {
8761
9486
  return tx.moveCall({
8762
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "is_package", "call_cap"),
9487
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "is_package", "call_cap"),
8763
9488
  arguments: [asObject(tx, callCap)]
8764
9489
  });
8765
9490
  }
@@ -8786,7 +9511,7 @@ var Call = class {
8786
9511
  */
8787
9512
  packageAddressMoveCall(tx, callCap) {
8788
9513
  return tx.moveCall({
8789
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "package_address", "call_cap"),
9514
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "package_address", "call_cap"),
8790
9515
  arguments: [asObject(tx, callCap)]
8791
9516
  });
8792
9517
  }
@@ -8821,7 +9546,7 @@ _Call_instances = new WeakSet();
8821
9546
  * @returns The full module path for the move call
8822
9547
  * @private
8823
9548
  */
8824
- target_fn22 = function(name, module_name = DEFAULT_MODULE_NAME) {
9549
+ target_fn23 = function(name, module_name = DEFAULT_MODULE_NAME) {
8825
9550
  return `${this.packageId}::${module_name}::${name}`;
8826
9551
  };
8827
9552
 
@@ -8834,7 +9559,7 @@ var UtilsErrorCode = {
8834
9559
  // Utils related errors (with Utils_ prefix)
8835
9560
  Utils_EInvalidLength: 1
8836
9561
  };
8837
- var _Utils_instances, target_fn23, destroyZeroCoin_fn, fetchSufficientCoins_fn;
9562
+ var _Utils_instances, target_fn24, destroyZeroCoin_fn, fetchSufficientCoins_fn;
8838
9563
  var Utils = class {
8839
9564
  constructor(packageId, client) {
8840
9565
  __privateAdd(this, _Utils_instances);
@@ -8850,7 +9575,7 @@ var Utils = class {
8850
9575
  */
8851
9576
  fromBytesMoveCall(tx, peer) {
8852
9577
  return tx.moveCall({
8853
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_bytes"),
9578
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes"),
8854
9579
  arguments: [asBytes(tx, peer)]
8855
9580
  });
8856
9581
  }
@@ -8862,7 +9587,7 @@ var Utils = class {
8862
9587
  */
8863
9588
  fromBytesLeftPaddedMoveCall(tx, bytes) {
8864
9589
  return tx.moveCall({
8865
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_bytes_left_padded"),
9590
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes_left_padded"),
8866
9591
  arguments: [asBytes(tx, bytes)]
8867
9592
  });
8868
9593
  }
@@ -8874,7 +9599,7 @@ var Utils = class {
8874
9599
  */
8875
9600
  fromBytesRightPaddedMoveCall(tx, bytes) {
8876
9601
  return tx.moveCall({
8877
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_bytes_right_padded"),
9602
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes_right_padded"),
8878
9603
  arguments: [asBytes(tx, bytes)]
8879
9604
  });
8880
9605
  }
@@ -8886,7 +9611,7 @@ var Utils = class {
8886
9611
  */
8887
9612
  fromAddressMoveCall(tx, address) {
8888
9613
  return tx.moveCall({
8889
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_address"),
9614
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_address"),
8890
9615
  arguments: [asAddress(tx, address)]
8891
9616
  });
8892
9617
  }
@@ -8898,7 +9623,7 @@ var Utils = class {
8898
9623
  */
8899
9624
  fromIdMoveCall(tx, id) {
8900
9625
  return tx.moveCall({
8901
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_id"),
9626
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_id"),
8902
9627
  arguments: [asObject(tx, id)]
8903
9628
  });
8904
9629
  }
@@ -8909,7 +9634,7 @@ var Utils = class {
8909
9634
  */
8910
9635
  zeroBytes32MoveCall(tx) {
8911
9636
  return tx.moveCall({
8912
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "zero_bytes32")
9637
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "zero_bytes32")
8913
9638
  });
8914
9639
  }
8915
9640
  /**
@@ -8919,7 +9644,7 @@ var Utils = class {
8919
9644
  */
8920
9645
  ffBytes32MoveCall(tx) {
8921
9646
  return tx.moveCall({
8922
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "ff_bytes32")
9647
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "ff_bytes32")
8923
9648
  });
8924
9649
  }
8925
9650
  /**
@@ -8930,7 +9655,7 @@ var Utils = class {
8930
9655
  */
8931
9656
  isZeroMoveCall(tx, bytes32) {
8932
9657
  return tx.moveCall({
8933
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "is_zero"),
9658
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "is_zero"),
8934
9659
  arguments: [bytes32]
8935
9660
  });
8936
9661
  }
@@ -8942,7 +9667,7 @@ var Utils = class {
8942
9667
  */
8943
9668
  isFfMoveCall(tx, bytes32) {
8944
9669
  return tx.moveCall({
8945
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "is_ff"),
9670
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "is_ff"),
8946
9671
  arguments: [bytes32]
8947
9672
  });
8948
9673
  }
@@ -8954,7 +9679,7 @@ var Utils = class {
8954
9679
  */
8955
9680
  toBytesMoveCall(tx, bytes32) {
8956
9681
  return tx.moveCall({
8957
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_bytes"),
9682
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes"),
8958
9683
  arguments: [bytes32]
8959
9684
  });
8960
9685
  }
@@ -8966,7 +9691,7 @@ var Utils = class {
8966
9691
  */
8967
9692
  toAddressMoveCall(tx, bytes32) {
8968
9693
  return tx.moveCall({
8969
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_address"),
9694
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_address"),
8970
9695
  arguments: [bytes32]
8971
9696
  });
8972
9697
  }
@@ -8978,7 +9703,7 @@ var Utils = class {
8978
9703
  */
8979
9704
  toIdMoveCall(tx, bytes32) {
8980
9705
  return tx.moveCall({
8981
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_id"),
9706
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_id"),
8982
9707
  arguments: [bytes32]
8983
9708
  });
8984
9709
  }
@@ -8991,7 +9716,7 @@ var Utils = class {
8991
9716
  */
8992
9717
  newReaderMoveCall(tx, buffer) {
8993
9718
  return tx.moveCall({
8994
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "create", BUFFER_READER_MODULE_NAME),
9719
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "create", BUFFER_READER_MODULE_NAME),
8995
9720
  arguments: [asBytes(tx, buffer)]
8996
9721
  });
8997
9722
  }
@@ -9003,7 +9728,7 @@ var Utils = class {
9003
9728
  */
9004
9729
  positionMoveCall(tx, reader) {
9005
9730
  return tx.moveCall({
9006
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "position", BUFFER_READER_MODULE_NAME),
9731
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "position", BUFFER_READER_MODULE_NAME),
9007
9732
  arguments: [reader]
9008
9733
  });
9009
9734
  }
@@ -9015,7 +9740,7 @@ var Utils = class {
9015
9740
  */
9016
9741
  remainingLengthMoveCall(tx, reader) {
9017
9742
  return tx.moveCall({
9018
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "remaining_length", BUFFER_READER_MODULE_NAME),
9743
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "remaining_length", BUFFER_READER_MODULE_NAME),
9019
9744
  arguments: [reader]
9020
9745
  });
9021
9746
  }
@@ -9028,7 +9753,7 @@ var Utils = class {
9028
9753
  */
9029
9754
  skipMoveCall(tx, reader, len) {
9030
9755
  return tx.moveCall({
9031
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "skip", BUFFER_READER_MODULE_NAME),
9756
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "skip", BUFFER_READER_MODULE_NAME),
9032
9757
  arguments: [reader, asU64(tx, len)]
9033
9758
  });
9034
9759
  }
@@ -9041,7 +9766,7 @@ var Utils = class {
9041
9766
  */
9042
9767
  setPositionMoveCall(tx, reader, position) {
9043
9768
  return tx.moveCall({
9044
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "set_position", BUFFER_READER_MODULE_NAME),
9769
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "set_position", BUFFER_READER_MODULE_NAME),
9045
9770
  arguments: [reader, asU64(tx, position)]
9046
9771
  });
9047
9772
  }
@@ -9054,7 +9779,7 @@ var Utils = class {
9054
9779
  */
9055
9780
  rewindMoveCall(tx, reader, len) {
9056
9781
  return tx.moveCall({
9057
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "rewind", BUFFER_READER_MODULE_NAME),
9782
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "rewind", BUFFER_READER_MODULE_NAME),
9058
9783
  arguments: [reader, asU64(tx, len)]
9059
9784
  });
9060
9785
  }
@@ -9066,7 +9791,7 @@ var Utils = class {
9066
9791
  */
9067
9792
  readBoolMoveCall(tx, reader) {
9068
9793
  return tx.moveCall({
9069
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_bool", BUFFER_READER_MODULE_NAME),
9794
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bool", BUFFER_READER_MODULE_NAME),
9070
9795
  arguments: [reader]
9071
9796
  });
9072
9797
  }
@@ -9078,7 +9803,7 @@ var Utils = class {
9078
9803
  */
9079
9804
  readU8MoveCall(tx, reader) {
9080
9805
  return tx.moveCall({
9081
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u8", BUFFER_READER_MODULE_NAME),
9806
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u8", BUFFER_READER_MODULE_NAME),
9082
9807
  arguments: [reader]
9083
9808
  });
9084
9809
  }
@@ -9090,7 +9815,7 @@ var Utils = class {
9090
9815
  */
9091
9816
  readU16MoveCall(tx, reader) {
9092
9817
  return tx.moveCall({
9093
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u16", BUFFER_READER_MODULE_NAME),
9818
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u16", BUFFER_READER_MODULE_NAME),
9094
9819
  arguments: [reader]
9095
9820
  });
9096
9821
  }
@@ -9102,7 +9827,7 @@ var Utils = class {
9102
9827
  */
9103
9828
  readU32MoveCall(tx, reader) {
9104
9829
  return tx.moveCall({
9105
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u32", BUFFER_READER_MODULE_NAME),
9830
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u32", BUFFER_READER_MODULE_NAME),
9106
9831
  arguments: [reader]
9107
9832
  });
9108
9833
  }
@@ -9114,7 +9839,7 @@ var Utils = class {
9114
9839
  */
9115
9840
  readU64MoveCall(tx, reader) {
9116
9841
  return tx.moveCall({
9117
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u64", BUFFER_READER_MODULE_NAME),
9842
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u64", BUFFER_READER_MODULE_NAME),
9118
9843
  arguments: [reader]
9119
9844
  });
9120
9845
  }
@@ -9126,7 +9851,7 @@ var Utils = class {
9126
9851
  */
9127
9852
  readU128MoveCall(tx, reader) {
9128
9853
  return tx.moveCall({
9129
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u128", BUFFER_READER_MODULE_NAME),
9854
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u128", BUFFER_READER_MODULE_NAME),
9130
9855
  arguments: [reader]
9131
9856
  });
9132
9857
  }
@@ -9138,7 +9863,7 @@ var Utils = class {
9138
9863
  */
9139
9864
  readU256MoveCall(tx, reader) {
9140
9865
  return tx.moveCall({
9141
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u256", BUFFER_READER_MODULE_NAME),
9866
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u256", BUFFER_READER_MODULE_NAME),
9142
9867
  arguments: [reader]
9143
9868
  });
9144
9869
  }
@@ -9150,7 +9875,7 @@ var Utils = class {
9150
9875
  */
9151
9876
  readBytes32MoveCall(tx, reader) {
9152
9877
  return tx.moveCall({
9153
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_bytes32", BUFFER_READER_MODULE_NAME),
9878
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bytes32", BUFFER_READER_MODULE_NAME),
9154
9879
  arguments: [reader]
9155
9880
  });
9156
9881
  }
@@ -9162,7 +9887,7 @@ var Utils = class {
9162
9887
  */
9163
9888
  readAddressMoveCall(tx, reader) {
9164
9889
  return tx.moveCall({
9165
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_address", BUFFER_READER_MODULE_NAME),
9890
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_address", BUFFER_READER_MODULE_NAME),
9166
9891
  arguments: [reader]
9167
9892
  });
9168
9893
  }
@@ -9175,7 +9900,7 @@ var Utils = class {
9175
9900
  */
9176
9901
  readFixedLenBytesMoveCall(tx, reader, len) {
9177
9902
  return tx.moveCall({
9178
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_fixed_len_bytes", BUFFER_READER_MODULE_NAME),
9903
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_fixed_len_bytes", BUFFER_READER_MODULE_NAME),
9179
9904
  arguments: [reader, asU64(tx, len)]
9180
9905
  });
9181
9906
  }
@@ -9187,7 +9912,7 @@ var Utils = class {
9187
9912
  */
9188
9913
  readBytesUntilEndMoveCall(tx, reader) {
9189
9914
  return tx.moveCall({
9190
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_bytes_until_end", BUFFER_READER_MODULE_NAME),
9915
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bytes_until_end", BUFFER_READER_MODULE_NAME),
9191
9916
  arguments: [reader]
9192
9917
  });
9193
9918
  }
@@ -9199,7 +9924,7 @@ var Utils = class {
9199
9924
  */
9200
9925
  readerBufferLengthMoveCall(tx, reader) {
9201
9926
  return tx.moveCall({
9202
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "length", BUFFER_READER_MODULE_NAME),
9927
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "length", BUFFER_READER_MODULE_NAME),
9203
9928
  arguments: [reader]
9204
9929
  });
9205
9930
  }
@@ -9211,7 +9936,7 @@ var Utils = class {
9211
9936
  */
9212
9937
  readerToBytesMoveCall(tx, reader) {
9213
9938
  return tx.moveCall({
9214
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_bytes", BUFFER_READER_MODULE_NAME),
9939
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes", BUFFER_READER_MODULE_NAME),
9215
9940
  arguments: [reader]
9216
9941
  });
9217
9942
  }
@@ -9223,7 +9948,7 @@ var Utils = class {
9223
9948
  */
9224
9949
  newWriterMoveCall(tx) {
9225
9950
  return tx.moveCall({
9226
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "new", BUFFER_WRITER_MODULE_NAME)
9951
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "new", BUFFER_WRITER_MODULE_NAME)
9227
9952
  });
9228
9953
  }
9229
9954
  /**
@@ -9234,7 +9959,7 @@ var Utils = class {
9234
9959
  */
9235
9960
  createWriterMoveCall(tx, buffer) {
9236
9961
  return tx.moveCall({
9237
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "create", BUFFER_WRITER_MODULE_NAME),
9962
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "create", BUFFER_WRITER_MODULE_NAME),
9238
9963
  arguments: [asBytes(tx, buffer)]
9239
9964
  });
9240
9965
  }
@@ -9246,7 +9971,7 @@ var Utils = class {
9246
9971
  */
9247
9972
  writerBufferLengthMoveCall(tx, writer) {
9248
9973
  return tx.moveCall({
9249
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "length", BUFFER_WRITER_MODULE_NAME),
9974
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "length", BUFFER_WRITER_MODULE_NAME),
9250
9975
  arguments: [writer]
9251
9976
  });
9252
9977
  }
@@ -9258,7 +9983,7 @@ var Utils = class {
9258
9983
  */
9259
9984
  writerToBytesMoveCall(tx, writer) {
9260
9985
  return tx.moveCall({
9261
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_bytes", BUFFER_WRITER_MODULE_NAME),
9986
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes", BUFFER_WRITER_MODULE_NAME),
9262
9987
  arguments: [writer]
9263
9988
  });
9264
9989
  }
@@ -9271,7 +9996,7 @@ var Utils = class {
9271
9996
  */
9272
9997
  writeBoolMoveCall(tx, writer, value) {
9273
9998
  return tx.moveCall({
9274
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_bool", BUFFER_WRITER_MODULE_NAME),
9999
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bool", BUFFER_WRITER_MODULE_NAME),
9275
10000
  arguments: [writer, asBool(tx, value)]
9276
10001
  });
9277
10002
  }
@@ -9284,7 +10009,7 @@ var Utils = class {
9284
10009
  */
9285
10010
  writeU8MoveCall(tx, writer, value) {
9286
10011
  return tx.moveCall({
9287
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u8", BUFFER_WRITER_MODULE_NAME),
10012
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u8", BUFFER_WRITER_MODULE_NAME),
9288
10013
  arguments: [writer, asU8(tx, value)]
9289
10014
  });
9290
10015
  }
@@ -9297,7 +10022,7 @@ var Utils = class {
9297
10022
  */
9298
10023
  writeU16MoveCall(tx, writer, value) {
9299
10024
  return tx.moveCall({
9300
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u16", BUFFER_WRITER_MODULE_NAME),
10025
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u16", BUFFER_WRITER_MODULE_NAME),
9301
10026
  arguments: [writer, asU16(tx, value)]
9302
10027
  });
9303
10028
  }
@@ -9310,7 +10035,7 @@ var Utils = class {
9310
10035
  */
9311
10036
  writeU32MoveCall(tx, writer, value) {
9312
10037
  return tx.moveCall({
9313
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u32", BUFFER_WRITER_MODULE_NAME),
10038
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u32", BUFFER_WRITER_MODULE_NAME),
9314
10039
  arguments: [writer, asU32(tx, value)]
9315
10040
  });
9316
10041
  }
@@ -9323,7 +10048,7 @@ var Utils = class {
9323
10048
  */
9324
10049
  writeU64MoveCall(tx, writer, value) {
9325
10050
  return tx.moveCall({
9326
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u64", BUFFER_WRITER_MODULE_NAME),
10051
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u64", BUFFER_WRITER_MODULE_NAME),
9327
10052
  arguments: [writer, asU64(tx, value)]
9328
10053
  });
9329
10054
  }
@@ -9336,7 +10061,7 @@ var Utils = class {
9336
10061
  */
9337
10062
  writeU128MoveCall(tx, writer, value) {
9338
10063
  return tx.moveCall({
9339
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u128", BUFFER_WRITER_MODULE_NAME),
10064
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u128", BUFFER_WRITER_MODULE_NAME),
9340
10065
  arguments: [writer, asU128(tx, value)]
9341
10066
  });
9342
10067
  }
@@ -9349,7 +10074,7 @@ var Utils = class {
9349
10074
  */
9350
10075
  writeU256MoveCall(tx, writer, value) {
9351
10076
  return tx.moveCall({
9352
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u256", BUFFER_WRITER_MODULE_NAME),
10077
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u256", BUFFER_WRITER_MODULE_NAME),
9353
10078
  arguments: [writer, asU256(tx, value)]
9354
10079
  });
9355
10080
  }
@@ -9362,7 +10087,7 @@ var Utils = class {
9362
10087
  */
9363
10088
  writeBytesMoveCall(tx, writer, bytes) {
9364
10089
  return tx.moveCall({
9365
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_bytes", BUFFER_WRITER_MODULE_NAME),
10090
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bytes", BUFFER_WRITER_MODULE_NAME),
9366
10091
  arguments: [writer, asBytes(tx, bytes)]
9367
10092
  });
9368
10093
  }
@@ -9375,7 +10100,7 @@ var Utils = class {
9375
10100
  */
9376
10101
  writeAddressMoveCall(tx, writer, address) {
9377
10102
  return tx.moveCall({
9378
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_address", BUFFER_WRITER_MODULE_NAME),
10103
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_address", BUFFER_WRITER_MODULE_NAME),
9379
10104
  arguments: [writer, asAddress(tx, address)]
9380
10105
  });
9381
10106
  }
@@ -9388,7 +10113,7 @@ var Utils = class {
9388
10113
  */
9389
10114
  writeBytes32MoveCall(tx, writer, bytes32) {
9390
10115
  return tx.moveCall({
9391
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_bytes32", BUFFER_WRITER_MODULE_NAME),
10116
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bytes32", BUFFER_WRITER_MODULE_NAME),
9392
10117
  arguments: [writer, asBytes32(tx, bytes32, this)]
9393
10118
  });
9394
10119
  }
@@ -9401,7 +10126,7 @@ var Utils = class {
9401
10126
  */
9402
10127
  originalPackageOfTypeMoveCall(tx, typeArgument) {
9403
10128
  return tx.moveCall({
9404
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "original_package_of_type", PACKAGE_MODULE_NAME),
10129
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "original_package_of_type", PACKAGE_MODULE_NAME),
9405
10130
  typeArguments: [typeArgument]
9406
10131
  });
9407
10132
  }
@@ -9413,7 +10138,7 @@ var Utils = class {
9413
10138
  */
9414
10139
  packageOfTypeMoveCall(tx, typeArgument) {
9415
10140
  return tx.moveCall({
9416
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "package_of_type", PACKAGE_MODULE_NAME),
10141
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "package_of_type", PACKAGE_MODULE_NAME),
9417
10142
  typeArguments: [typeArgument]
9418
10143
  });
9419
10144
  }
@@ -9514,7 +10239,7 @@ _Utils_instances = new WeakSet();
9514
10239
  * @returns The full module path for the move call
9515
10240
  * @private
9516
10241
  */
9517
- target_fn23 = function(name, module_name = BYTES32_MODULE_NAME) {
10242
+ target_fn24 = function(name, module_name = BYTES32_MODULE_NAME) {
9518
10243
  return `${this.packageId}::${module_name}::${name}`;
9519
10244
  };
9520
10245
  /**
@@ -9730,8 +10455,7 @@ var ModuleManager = class {
9730
10455
  ["call" /* Call */]: new Call(packages.call, client),
9731
10456
  ["treasury" /* Treasury */]: new Treasury(packages.treasury, client, objects, this),
9732
10457
  ["layerZeroViews" /* LayerZeroViews */]: new LayerZeroViews(packages.layerzeroViews, client, objects, this),
9733
- ["ptbBuilder" /* PtbBuilder */]: new PtbBuilder(packages.ptbMoveCall, client),
9734
- ["oapp" /* Oapp */]: new OApp(packages.oapp, client, objects, this)
10458
+ ["ptbBuilder" /* PtbBuilder */]: new PtbBuilder(packages.ptbMoveCall, client)
9735
10459
  });
9736
10460
  }
9737
10461
  // === Core Module Getters ===
@@ -9765,8 +10489,12 @@ var ModuleManager = class {
9765
10489
  getPtbBuilder() {
9766
10490
  return this.getModule("ptbBuilder" /* PtbBuilder */);
9767
10491
  }
9768
- getOApp() {
9769
- return this.getModule("oapp" /* Oapp */);
10492
+ getOApp(client, callCapId, options) {
10493
+ return this.getOrCreateModule("oapp" /* Oapp */ + callCapId, options, () => {
10494
+ const packageId = options?.packageId ?? this.packages.oapp;
10495
+ const objects = this.mergeObjectsOptions(options);
10496
+ return new OApp(packageId, callCapId, client, objects, this);
10497
+ });
9770
10498
  }
9771
10499
  // === Non-core Module Getters (created on-demand with caching) ===
9772
10500
  getCounter(client, options) {
@@ -9872,6 +10600,13 @@ var ModuleManager = class {
9872
10600
  return new BlockedMessageLibPtbBuilder(packageId, client, objects, this);
9873
10601
  });
9874
10602
  }
10603
+ getWorkerRegistry(client, options) {
10604
+ return this.getOrCreateModule("workerRegistry" /* WorkerRegistry */, options, () => {
10605
+ const packageId = options?.packageId ?? this.packages.workerRegistry;
10606
+ const objects = this.mergeObjectsOptions(options);
10607
+ return new WorkerRegistry(packageId, client, objects, this);
10608
+ });
10609
+ }
9875
10610
  // === Private Utility Methods ===
9876
10611
  /**
9877
10612
  * Merge objects configuration with options, avoiding unnecessary object spreading
@@ -9885,193 +10620,203 @@ var ModuleManager = class {
9885
10620
  };
9886
10621
  var PACKAGE_UTILS_ADDRESS = {
9887
10622
  [Stage.MAINNET]: "0xcdad05867c25d6461e5813071116fa3f26d56a9b52ad053747457efb79d45714",
9888
- [Stage.TESTNET]: "0x7129b63448e84ee4a5e1a05f0536861f92a4a6a2cb2447b9c4cf6fa3ea6b16dd",
10623
+ [Stage.TESTNET]: "0xb168928451914a99ec70aa954e4b7e45e2739fdb5c403f540caf647c01645f30",
9889
10624
  [Stage.SANDBOX]: "0xb60f3952a3dc284637f419ac445b6b3d5a2ea112252c4bf686f2671cbecbb7a3"
9890
10625
  };
9891
10626
  var PACKAGE_ENDPOINT_V2_ADDRESS = {
9892
10627
  [Stage.MAINNET]: "0xf625a8bde20d64850a4ec7b01c1918d9a0a29495546de7a0144440275f9b933c",
9893
- [Stage.TESTNET]: "0x85dd52af20c3d8047685dcb6fddc443934b8cd2b6fbe9d2d262a5f6943f24557",
9894
- [Stage.SANDBOX]: "0xcd97606354aaa69e476f2f3cfa374ed73f2a3d08cfc305d74489b2fcbb988805"
10628
+ [Stage.TESTNET]: "0xabf9629418d997fcc742a5ca22820241b72fb53691f010bc964eb49b4bd2263a",
10629
+ [Stage.SANDBOX]: "0x391bd5cd878dce0b306f4dda68c33b48b30dd320845254c427f6c92d5449bc14"
9895
10630
  };
9896
10631
  var PACKAGE_COUNTER_V2_ADDRESS = {
9897
10632
  [Stage.MAINNET]: "0xfe1e336fdb42fa5ef85ab9a9c932b58c43e0bb58273cecea9d00cb5d05159914",
9898
- [Stage.TESTNET]: "0xa6a19e84c7df2014e384cdd56f5674e5a0c06b92cc5d33fca89633680a9ebcd7",
9899
- [Stage.SANDBOX]: "0xa8e56b7c5ec0dee71349e0018407eea5eb72482f074670469206c9897e46b53b"
10633
+ [Stage.TESTNET]: "0x7e594c8f3f3e26f8c5d7dfb3103b5f159442995602bd54c5825b4bd40e381880",
10634
+ [Stage.SANDBOX]: "0x090fcb740a5ab40983acfd63499695dd31ab105def70f65aef549a0631eadf2a"
9900
10635
  };
9901
10636
  var PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS = {
9902
10637
  [Stage.MAINNET]: "0x83651370065f70112b20007137c7235a2a243055d9f59cb5e162c00c4a1680a7",
9903
- [Stage.TESTNET]: "0xd1fbc2529b4c581c5105031b495866cece446f2123319f6d82a76151b999717e",
9904
- [Stage.SANDBOX]: "0xf4bb61efa1420dfe668c741c51b37d6a920282bfe5a8b443e0fe745be57ebf93"
10638
+ [Stage.TESTNET]: "0x7f170d5f0f9ed14d249eebf29053ed7a7fefe429c34fd7dc7b918e54158ef825",
10639
+ [Stage.SANDBOX]: "0xc68858ef375671a5fbc2e1f16a28efdbe95cfa91abf71f7368bc5d9f9ea7e404"
9905
10640
  };
9906
10641
  var PACKAGE_ULN_302_ADDRESS = {
9907
10642
  [Stage.MAINNET]: "0xd73c9d588717c32fa327335d9beaf59b983b808577a382e013d8c7161a323d8e",
9908
- [Stage.TESTNET]: "0x556bd8fba10ba9e8be88a3ed54b8cbeb8b512b95e5c107cde7d7b10b754069c2",
9909
- [Stage.SANDBOX]: "0x46d99d235e3990496e2b45c207086fef54e07c64a38f43b6439c4adc762002c5"
10643
+ [Stage.TESTNET]: "0xf5d69c7b0922ce0ab4540525fbc66ca25ce9f092c64b032b91e4c5625ea0fb24",
10644
+ [Stage.SANDBOX]: "0x02530da0f30827d81eaf9ac6ed5151309d1dda8d3a919ba796ce3d9853ccbe7c"
9910
10645
  };
9911
10646
  var PACKAGE_ULN_302_PTB_BUILDER_ADDRESS = {
9912
10647
  [Stage.MAINNET]: "0x67b3a43a3aa962e1a6012b04f68e6f358803f5970858f4de22684d6d13fcd747",
9913
- [Stage.TESTNET]: "0x71a23cdd1cb88b52a40cd2862c4ca607bd27e0f02f136e18f95351050fec9a89",
9914
- [Stage.SANDBOX]: "0x2ec29789577956a8d34e415319a3f4d9e91bf58bbb78ffc0586610839392b411"
10648
+ [Stage.TESTNET]: "0x48fde185c0645dde7b8c0adf8b7a060c3722fc93088957cc2dc08ad328ce0c7e",
10649
+ [Stage.SANDBOX]: "0x99f1802813cd3d2ffea4c7d6c93ad1d0a4f80f92b2c588af8ca5304eccc7bd23"
9915
10650
  };
9916
10651
  var PACKAGE_DVN_PTB_BUILDER_ADDRESS = {
9917
10652
  [Stage.MAINNET]: "0xb3f3a6d39a441a0f41a621d27427cedf624d500b3da5cd7051bc5835b21ac3ba",
9918
- [Stage.TESTNET]: "0xe7723903288eb1a38fb7166edce4307dfce985c7a9771af579f4f3d003dda2ec",
9919
- [Stage.SANDBOX]: "0x7389aa98677cedbd03edf5201b389802f10e1d9e42e63b08958eb4f47fae37d7"
10653
+ [Stage.TESTNET]: "0xf21c983443a76cf3fb83bc76cae25ca35e4d1b20471b52a666ac5dac95d17a37",
10654
+ [Stage.SANDBOX]: "0x1ccdfc2f6560475a194489719f0f4ede96d5c322c231ce80ccf16a9ce05f032b"
9920
10655
  };
9921
10656
  var PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS = {
9922
10657
  [Stage.MAINNET]: "0x9d26806bb023ccd5b79d8ad50bf503e0e91c07b5bbfeb5b20a79e073571a5196",
9923
- [Stage.TESTNET]: "0xafed5368176963fa0474724a019e4fae6643d31c06b653fa1364b2282d5049dd",
9924
- [Stage.SANDBOX]: "0xf77b3c5aa806c6d1ac4a90eb9c57cb9f2d681e0cc14aad9c45fd455795eaa949"
10658
+ [Stage.TESTNET]: "0xe964c8cdc0222d5f6b9ae99c4593a679e5903e899cfb84acdaa57f7d6288df55",
10659
+ [Stage.SANDBOX]: "0x1d3a1af6f64f34cdc3a64bea68e1fb2b57bc04391ed34f5b7ff217df3bc563a2"
9925
10660
  };
9926
10661
  var PACKAGE_EXECUTOR_ADDRESS = {
9927
10662
  [Stage.MAINNET]: "0x749420cc42b47d3db83fe316eb8accd8126bed9a779c0b7e06fa084c7fa1d76d",
9928
- [Stage.TESTNET]: "0x5bcded2dfa21094d5ffdd6256a2a73984e901201e84a6783aa8233b187ffdb51",
9929
- [Stage.SANDBOX]: "0xa0eca8f1204a1b2b30f07c58584711ed5c18907aaf7b4c119d28a6f986303a3a"
10663
+ [Stage.TESTNET]: "0xb9fdc6748fb939095e249b22717d564edf890681e387131d6c525d867d30f834",
10664
+ [Stage.SANDBOX]: "0xa08437ee32a50f168eb37639f291dc3cd6a3c40b82edfc7a6b20314a937c3ed5"
9930
10665
  };
9931
10666
  var PACKAGE_ZRO_ADDRESS = {
9932
10667
  [Stage.MAINNET]: "0xcdf19828a455468c4e4ffbd74ad641dddb58b49cd7d043da4cfa12f76c599d0a",
9933
- [Stage.TESTNET]: "0x0f5b464ce3792d594954ea96262762a281dfbacf2f0714474adf8f84d68de929",
10668
+ [Stage.TESTNET]: "0x6909c3aa2e31e11ed55bf8240e1d499fd6f9e4b6d6439b996e286771594da151",
9934
10669
  [Stage.SANDBOX]: "0xce9cfe2dc60b2f45896a3c94a9af691c26b78ac4ce585ad7db429a3b6cc382c4"
9935
10670
  };
9936
10671
  var PACKAGE_CALL_ADDRESS = {
9937
10672
  [Stage.MAINNET]: "0x26848d191c6b922a0bf185c4b3f6333179ce3b48df47d83fb112868bb65c2f37",
9938
- [Stage.TESTNET]: "0x05da1c3f28b024a7397c813863a286988c82f9d3d7bd0a3418737f44e38ded5f",
9939
- [Stage.SANDBOX]: "0xd7f51d8b568d98158a635304c44f1235a95df746ef2d53e69f0c9f082912b3b8"
10673
+ [Stage.TESTNET]: "0x4273b15ebff2b52be41813ae6f39c643e352fb7d02340fe0755ebbf20d4198c7",
10674
+ [Stage.SANDBOX]: "0xdcaeaff56642980b1776fa19fbe231a0e21c9b1a002d6cc93e4f25ac7af6ceae"
9940
10675
  };
9941
10676
  var PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS = {
9942
10677
  [Stage.MAINNET]: "0x387af0542c79874a52c3e8812390c0fd02a8e947ce54aea8d80481ac2b5b3acb",
9943
- [Stage.TESTNET]: "0xe0a904685954e5dc73a720f6dd29c8b5a22d2d4ca0864536b7befaf4cec44676",
9944
- [Stage.SANDBOX]: "0x34dc069cfaca897c914dc7e4f6b187db6dca9057dc5ae9fdb32dbffdd494cf37"
10678
+ [Stage.TESTNET]: "0x8aa8f8212d35515298213099a317e7d79d54a35d455e17d6c8f0a3e017f37eb5",
10679
+ [Stage.SANDBOX]: "0xe7120f354c0f73c8c43de21d9bd4a552e349cca4f7efdfdc7c8d53cdb82c523b"
9945
10680
  };
9946
10681
  var PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
9947
10682
  [Stage.MAINNET]: "0xba557037446a5b114205c868db114957945dd21df9770796fea2b558fc4a20fd",
9948
- [Stage.TESTNET]: "0x4badf1bba6f630905bc413b89f1c22669593b0e7aea60012a14fd42f44e2a7fe",
9949
- [Stage.SANDBOX]: "0x06277f6dc34000229e58225f3696d0f8174167ec51a68d0840d40b68811468ae"
10683
+ [Stage.TESTNET]: "0x3328ee44a8cf96905dbd2ad78ee6e8f71a2ee9abdba6b1d69d23dbb31b390a4b",
10684
+ [Stage.SANDBOX]: "0x941b47e58e8da4debf2a725e8b7000b005e6616403dd34f24266b734689c13a7"
9950
10685
  };
9951
10686
  var PACKAGE_PTB_MOVE_CALL_ADDRESS = {
9952
10687
  [Stage.MAINNET]: "0x0dd38c96b282271279247c26dba1f51d6e45209396a9e548154881e04549db66",
9953
- [Stage.TESTNET]: "0x8bdf374fe8576f28d71eecd219601cebafa38e2c79387eea92e2f27a71359197",
9954
- [Stage.SANDBOX]: "0xeb4d0c77dad48d13bc35dd58faaa1c21c31aeabf4379ab6f884c6c8558b53d9d"
10688
+ [Stage.TESTNET]: "0xb824310acecc18cdbc4803d185d7c516dca47b991a5a0e43404e49cd46c91270",
10689
+ [Stage.SANDBOX]: "0x3927c9ab138b182b538ec8aa2432410893faa69a8f30074349135e65f7da43ea"
9955
10690
  };
9956
10691
  var PACKAGE_DVN_ADDRESS = {
9957
10692
  [Stage.MAINNET]: "0x6810f5568936a9a2b5fcb043f59a3cbf681e06f0db61c90bf3ff5530d4f470c0",
9958
- [Stage.TESTNET]: "0x7c04479b475305685ad24fd3e91437aa3f6e0df95d1417fad1b4640d8363be9b",
9959
- [Stage.SANDBOX]: "0x3e4f47a79339dedf94886fa73f008645790deff8f77311a28fcb30b9c1d91c60"
10693
+ [Stage.TESTNET]: "0xfa5a7bd745a56f3f18f4830563c8b65a737dcfca5b9e5aa281f2f2cd3f6eaf6d",
10694
+ [Stage.SANDBOX]: "0xd88870f2ca028bb96f5622fc4ca4299d9ad0d2f5348e21d2ebb90d494242a810"
9960
10695
  };
9961
10696
  var PACKAGE_DVN_FEE_LIB_ADDRESS = {
9962
10697
  [Stage.MAINNET]: "0xb94f476ccd37034f4f5fb9c541320b85f86e61ae7f654fa66f3b987e8fb3f825",
9963
- [Stage.TESTNET]: "0x7f6a8ca6e6f136605be10b502d4e03fda2ee9983f57c10c6199a63744977d951",
9964
- [Stage.SANDBOX]: "0x9457382d9ed65c3b7d96f8ca32866c432f3aca772de185cc7b0df0a08c13c14b"
10698
+ [Stage.TESTNET]: "0xfb596f2afcc4f15ec8660fb241c3a7bc9aa2f9b3b820914b6990202b5f236f2f",
10699
+ [Stage.SANDBOX]: "0x3d55959f6b4b0f48d1b674cd50c5ab1698677ca8808e7e0a45215c1f62a3ed89"
9965
10700
  };
9966
10701
  var PACKAGE_EXECUTOR_FEE_LIB_ADDRESS = {
9967
10702
  [Stage.MAINNET]: "0x4cdd97cf2dee8387b004915c293d0565577e0194fff4894e604a09db54ac62c7",
9968
- [Stage.TESTNET]: "0x36a441e73ed70e9fc900d021381a3d833c8b15305b7a116dbd7a2d1a156432e1",
9969
- [Stage.SANDBOX]: "0xe864c9cf1690ba00d18dbfa6c706b06d6b2e70e223f11400e79ebf060ff0cac5"
10703
+ [Stage.TESTNET]: "0xa99c7ca780a6cedfc27d9274c031741b68014886cba04dafe8335c72eeeed0b5",
10704
+ [Stage.SANDBOX]: "0x3d3ba365cf39ffba6cffb22ac139b53f3b8cbe77f092ed04419b16f65f4e3912"
9970
10705
  };
9971
10706
  var PACKAGE_PRICE_FEED_ADDRESS = {
9972
10707
  [Stage.MAINNET]: "0x9f12f79a355fca76492bc1908fc7a9a8518d2a83e65cffc93f134144dfa4e5bb",
9973
- [Stage.TESTNET]: "0x703efe3215e8249a490b4889d20bff10f09838d200835d53d056bbf30a80fe37",
9974
- [Stage.SANDBOX]: "0xa6db98425af6398a485a8dd9f9b21eefcc74aece57de250932b937a2bd7d6108"
10708
+ [Stage.TESTNET]: "0xa4f8f126dc7e2a763676eab3a6f0a12afaf334baa0f37b41a1e93890cf95ea4c",
10709
+ [Stage.SANDBOX]: "0x9b0422966b9c51a825081754feee8eb1d3d869b4a16ffbeecbc6b0fe4a4b6ca6"
9975
10710
  };
9976
10711
  var PACKAGE_TREASURY_ADDRESS = {
9977
10712
  [Stage.MAINNET]: "0xcb8bc76ad2dde43cb83fe4f27a702df0874e99c047317251ee878893c17c83c5",
9978
- [Stage.TESTNET]: "0x5589cb216e702c9d18c8864b75a233a8f8b4591156fff871c129519e95d5aa3e",
9979
- [Stage.SANDBOX]: "0x4338932a1659dd212cddbc7ef7dc610e5f9d430682a2706515ac62382fc911b5"
10713
+ [Stage.TESTNET]: "0xb9ae7adf8193fb0bf2cc99d89dac19ae309c0f1b768d0976166f507c1daa9936",
10714
+ [Stage.SANDBOX]: "0x6ac5181a8775958f3ff9829c289a73dc6007f9741ee7d5941ba09313925ce70b"
9980
10715
  };
9981
10716
  var PACKAGE_OAPP_ADDRESS = {
9982
10717
  [Stage.MAINNET]: "0x7c93d6d8288fa0f8df5a595dcde2413b849d8c839fc59fc09243fd5bf44c96ab",
9983
- [Stage.TESTNET]: "0x50d5a0038394ddff138900335e56315b2aed79475cad3fe3737a50dc12c884d6",
9984
- [Stage.SANDBOX]: "0x658d364c1a245c8e126cab40b215c77173cdab3288d56c4ce51158674a8204f4"
10718
+ [Stage.TESTNET]: "0x04c440985f5deab2fb7f821b3288d93225a3e637cf22dda476809836f0533751",
10719
+ [Stage.SANDBOX]: "0x3874d4613db1a91ff5f7fbc3b1a57c276630694110371d3988bbe467a6a225df"
9985
10720
  };
9986
10721
  var PACKAGE_LAYERZERO_VIEWS_ADDRESS = {
9987
10722
  [Stage.MAINNET]: "0x74803ac88036cbd57bf1a46347e22143a47081f7159efb01419f1ed14a17ad67",
9988
- [Stage.TESTNET]: "0xa4a72308ec518a2103f9f31435d07df740736bc03b778ca1200071805c5414da",
9989
- [Stage.SANDBOX]: "0xb06760345da493b5f65040109ede722d93063614dedb0e34be7002153619615e"
10723
+ [Stage.TESTNET]: "0xaab2d0f2a54eef15fd00f03d70b87a015a41ebdc3fd85c0ceaffda969a400c9f",
10724
+ [Stage.SANDBOX]: "0xf632751c0c00176ccc878650ec38bf1e952f9f3da23602208ae0cecfbc6ba84f"
9990
10725
  };
9991
10726
  var PACKAGE_DVN_LAYERZERO_ADDRESS = {
9992
10727
  [Stage.MAINNET]: "0xc3f25fb140745ca0d4cde0ec382fd76e2f20d5a76a7fd9264340b4af949fd38b",
9993
- [Stage.TESTNET]: "0x725e5c54d11578942f4b45ebdce1cc91244dae658a667c2186c277b6a5673f9c",
9994
- [Stage.SANDBOX]: "0x00ae2cd83670b2292f917a21dee2e268560167b1e44059cc583d43d3dcf7d0b2"
10728
+ [Stage.TESTNET]: "0x1356fef0c7325536e289e53cc545219cbfbd1490ed762c8d8efb97efa6cfb856",
10729
+ [Stage.SANDBOX]: "0x04a430209e86248528bfc50f1760eefe331bfd8921613847a24ed5a046fb01cd"
9995
10730
  };
9996
10731
  var PACKAGE_EXECUTOR_LAYERZERO_ADDRESS = {
9997
10732
  [Stage.MAINNET]: "0x2111256b15f5d0a20f6352084dac268c737b47c113b4da5eacb316f8a536f9bf",
9998
- [Stage.TESTNET]: "0xb8db282fff4358b67915bb76eb18bde3406e4e30a1d219c852c7ccf5a121a3ff",
9999
- [Stage.SANDBOX]: "0x4cdbc0ebf748f44bfd0f94cda6129f9e0dc4976bae9304338795440fc4239fd2"
10733
+ [Stage.TESTNET]: "0xbd529bbc1e862db38c374435c40bb6399f3fffbc097977dbae4b71cfa975adb1",
10734
+ [Stage.SANDBOX]: "0x332a2e072e2b55f61414f46f48b6e6bda408fd918c816be1a6a466f563a47170"
10000
10735
  };
10001
10736
  var PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS = {
10002
10737
  [Stage.MAINNET]: "0xbdce35f2801192bb218e47bb6e9cf08e136037b271157e8db8fdc9acf0bd225e",
10003
- [Stage.TESTNET]: "0x5ad1acba7eb1b381ab3f08da17938ffa930375c0904e78ccd6e634957f6b3ef6",
10004
- [Stage.SANDBOX]: "0x1e1aa40e521c0192001957909dd522ff7b944b194d555644b755643d540a5193"
10738
+ [Stage.TESTNET]: "0xfd259aa95eec6f8b91e0ff3cc5c3313010fbe3226096cf02286b1f843dd036d4",
10739
+ [Stage.SANDBOX]: "0x90e872e4dc6b7a2966c906e2baa1701bff5668db95e998e4880ff78c28690990"
10005
10740
  };
10006
10741
  var PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS = {
10007
10742
  [Stage.MAINNET]: "0x9f6107b708d7650b1484ae10cb98340af343f46bd63793ea91c2379bab9a7abb",
10008
- [Stage.TESTNET]: "0xd3f0cab5eca2cfb870e5390b572e67ce1d0d96bc89d097d089914014bf581e5d",
10009
- [Stage.SANDBOX]: "0xf3564021638d705174b80c7917480b49b62284c92a516f599972c7c657533d64"
10743
+ [Stage.TESTNET]: "0x8f7e92efeba183d10db22ea61e8a35b46a165f2b42b127ca28740250dde5220a",
10744
+ [Stage.SANDBOX]: "0x89e12d1df2c1bb9270c3802911f533265f14573cfed792d1c431ab3b8c15f40c"
10010
10745
  };
10011
10746
  var PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
10012
10747
  [Stage.MAINNET]: "0xd90430a0b1b5bf932586d7d52e67e2242b1276ad7944b41c21acd4f950671335",
10013
- [Stage.TESTNET]: "0xf2c5b342b99544fbd225ed45a76096f7ed6199624d2f2f4d04b76e2afb84654e",
10014
- [Stage.SANDBOX]: "0x9b02a69ee4ea8841cf6203db30a34552429504b5cac88de024f93b42c354be31"
10748
+ [Stage.TESTNET]: "0xa791dddddc4007c7d13ce2318159f0e0e2f27ad5a5e330dfb821683663df43eb",
10749
+ [Stage.SANDBOX]: "0x4b84ee0bc71e6b2de155e715a1407fadf481f8190984ffe0434a8b4f148bc326"
10750
+ };
10751
+ var PACKAGE_WORKER_REGISTRY_ADDRESS = {
10752
+ [Stage.MAINNET]: "",
10753
+ [Stage.TESTNET]: "0x042cf30d4fb29582cfba5ab0acae2f24ad04e46ef6fcbdec7ecf8273fb46bb24",
10754
+ [Stage.SANDBOX]: "0x717eb4ed01669a599b4563318b7ce6fa00a2192e437674b87ddd7666b9b248ae"
10755
+ };
10756
+ var PACKAGE_WORKER_COMMON_ADDRESS = {
10757
+ [Stage.MAINNET]: "0x6b29b0abf9da88be53a9ea1dfab8f600930b9ab6961eee65d67c1eecdd8cb695",
10758
+ [Stage.TESTNET]: "0x9e60db99cfda71312eeb6fff4ce9682ce1d4a3c3a0051c430c5de7d373b85889",
10759
+ [Stage.SANDBOX]: "0xddbad4f449870d88511f40cba2e83a49533d7e26ddb6971685d54bf801f4efdf"
10015
10760
  };
10016
10761
  var OBJECT_ENDPOINT_V2_ADDRESS = {
10017
10762
  [Stage.MAINNET]: "0xd84dfbd6b21f2a6e2d9ecfd8204d20a420f2528746381c2db29c2f4caae67fcd",
10018
- [Stage.TESTNET]: "0xbba9beee809d8010f5dc1c3529d75708f1fbf2fa7bbf40bb6031a4bc8ae9c9b6",
10019
- [Stage.SANDBOX]: "0xcda0200851fd0a5c1feafe78bccac740579c15245a62b36b2f53468124b2c05d"
10763
+ [Stage.TESTNET]: "0x2b96537c30c5fa962a1bfb58a168fc17c17f2546c88e2e9252f21ee7d5eff57a",
10764
+ [Stage.SANDBOX]: "0xdb6c4e19cf6896fd1abbd6ee22ec915d08b70c88f35b4796dfedc218f3047168"
10020
10765
  };
10021
10766
  var OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS = {
10022
10767
  [Stage.MAINNET]: "0xd18907d32aa9e95fc2eed2d02fec562442877bec8680620c05fa5b3c110ccd81",
10023
- [Stage.TESTNET]: "0xe893810a3399bf50ec4fd7affa931bcb66dbab21e37aff80b7ce73f25e78ac4f",
10024
- [Stage.SANDBOX]: "0xd926e5e7c3551f3da7c840ded2056f5322bf051859492075009835bfdd1875f0"
10768
+ [Stage.TESTNET]: "0xcc22cbdd0961e7ba0522de24c1c38bc3b6265345ac423a68666079a3b558b575",
10769
+ [Stage.SANDBOX]: "0xd28485b9f2443a42f48ac795a6e7b3bf427f346ca875e52d885afde396639727"
10025
10770
  };
10026
10771
  var OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS = {
10027
10772
  [Stage.MAINNET]: "0x617aceffed0b17cc5b5f5ad4cd1e8b9d965a9ef73a923b474e4763dec7c175f6",
10028
- [Stage.TESTNET]: "0x3115ca5bf047a17629099b1845db595a42b4e7d5c5916439036c18d0afd7181b",
10029
- [Stage.SANDBOX]: "0x0c995f624010b1f5da9ae8ecf1571ae7bedf3eb1397513880138f203ab9ec482"
10773
+ [Stage.TESTNET]: "0xd0e51a7343f9f11bbc7a5d149d9184721a5e0086fa7622279ebe1b3a5db16408",
10774
+ [Stage.SANDBOX]: "0x6dbb2134f93b44369f6eb92af788f9aa7d15e9847110e9f2c9e445427af44846"
10030
10775
  };
10031
10776
  var OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
10032
10777
  [Stage.MAINNET]: "0x2a0c8a426823cc7fcb89dd849810b42643fda344286d493d0ce8593d9b2be280",
10033
- [Stage.TESTNET]: "0xacaa1b7ed87084cea9c593d1df4a76bfa0bce1b214559d79de8a9167705292a3",
10034
- [Stage.SANDBOX]: "0xdc0fae3db4a0d357d7c727c0d3986d2d19f659ec5bf48fe4091056b87cfa0214"
10778
+ [Stage.TESTNET]: "0x160a37f6df7b23bfd01ae53f376b490d9c0d535253e22d47c87dc8e4048f92b0",
10779
+ [Stage.SANDBOX]: "0xc4981d5d5f7b6d3f57645386cac22c6606f534ff41b70e76c1580945e2501ef0"
10035
10780
  };
10036
10781
  var OBJECT_ULN_302_ADDRESS = {
10037
10782
  [Stage.MAINNET]: "0x7d140391ed97fcdb3f87aa13a7727b7354cb0a6ca2a3e7156f8b3767dd634266",
10038
- [Stage.TESTNET]: "0xea27cd132fe6e4cad973f642f1450b0da2490b5350e6104365a7a48a3d97fb1e",
10039
- [Stage.SANDBOX]: "0x11912ed43188135c45f69b3947e837f96957c30bcb7c33084815aeb910740e29"
10783
+ [Stage.TESTNET]: "0x69541d4feeb08cdd3b20b3502021a676eea0fca4f47d46e423cdc9686df406ff",
10784
+ [Stage.SANDBOX]: "0xe119b6da1bd01883ef63d28b040dd6d35041128990392189f25b4a3263f740f8"
10040
10785
  };
10041
10786
  var OBJECT_ULN_302_ADMIN_CAP_ADDRESS = {
10042
10787
  [Stage.MAINNET]: "0xece25d7e8aad8a6295a7821bd4b7f29896714c3fc8472a5e7dbb19d67ff77e00",
10043
- [Stage.TESTNET]: "0x791622d24d7ec1c33beea371f7d2e1d8cffaaa6596a785f61684227ccd379270",
10044
- [Stage.SANDBOX]: "0x750ae0c9069131666463405502da42a97dbabcee852d9e661dcbbe40a033a926"
10788
+ [Stage.TESTNET]: "0xf02307bc8f22f0390ebe757a8a9292eba2c784dddde523fec2632d2167f4c02e",
10789
+ [Stage.SANDBOX]: "0xf716caca2da45bff574226107728dcbdcc1f791a9f79a59140739419c5e138ca"
10045
10790
  };
10046
10791
  var OBJECT_ULN_302_VERIFICATION_ADDRESS = {
10047
10792
  [Stage.MAINNET]: "0x2e672e3cb4f4992b3e790ce50c7b3e464a60633ca5f68de3039cc5f20116f6e7",
10048
- [Stage.TESTNET]: "0xf308d39e3bab9ec37019d955c31abac6b3e7444f915a77be203f92c1d6a9a67e",
10049
- [Stage.SANDBOX]: "0x0cfc1cd618291331a7627782536608c43fa0165149a5b9aba05bf2aaddf920fb"
10793
+ [Stage.TESTNET]: "0x0769f54f89fdeacccd61384db8e67e7c76f8c33723cfa97940132616600709f9",
10794
+ [Stage.SANDBOX]: "0x5c676cf5b8c7ee55668f0040cbe62e6decdde5b31d132c94a15c829125363890"
10050
10795
  };
10051
10796
  var OBJECT_ULN_302_PTB_BUILDER_ADDRESS = {
10052
10797
  [Stage.MAINNET]: "0xb41c8c88899debceb5982ff0333a0026bb68159758af8557ee1b12433f539ec8",
10053
- [Stage.TESTNET]: "0x44c82a3a33294c1ac36f1baf931f57ec0a60bb183b5474211b8397465e3dffac",
10054
- [Stage.SANDBOX]: "0xca27fab304e428da446b66756dfa24ea1d633cfa6db704d1b10fe20156cfa67b"
10798
+ [Stage.TESTNET]: "0xec0cb4575348722360fc2ef7a3ddeeeb29024bdfdd0fadeb4b9fe787847af552",
10799
+ [Stage.SANDBOX]: "0x581751d5a9892f7730ea68e809da69d69c71a48acc4e6a4ec50bcc68bb2bb3ac"
10055
10800
  };
10056
10801
  var OBJECT_TREASURY_ADDRESS = {
10057
10802
  [Stage.MAINNET]: "0xa6fd139692050fb7fea2a5d924d5cc637b2b617982b1537b98ab51f6074a6335",
10058
- [Stage.TESTNET]: "0xa082a4eac93a7525738511f7a00816f982545296175e54be355f813eebe20691",
10059
- [Stage.SANDBOX]: "0x6d17fd9f1064b974d095251ff53717bbeb780b29156702809c9c3104827fa19d"
10803
+ [Stage.TESTNET]: "0x40a2b309bda42658dd12e967574f6e77170082599a77b158051c31064df82be1",
10804
+ [Stage.SANDBOX]: "0x42b92df6ef144c89bd00e2a0c36681a4739aed87a8e292a7dd9bee7a1a9f8017"
10060
10805
  };
10061
10806
  var OBJECT_TREASURY_ADMIN_CAP_ADDRESS = {
10062
10807
  [Stage.MAINNET]: "0x6fafabbb6f8dd963fb926b2075de90ed86e550bc67c900768e6b4c6002bc2b7d",
10063
- [Stage.TESTNET]: "0x3ec6669b54589abb6d12aa338c4f2962a5d1ab835e6385242698f3efd9ae2582",
10064
- [Stage.SANDBOX]: "0x48a1c8e1de673691dc66320fe3caf2e8ccb292752fa2159b6e7140db575c29c8"
10808
+ [Stage.TESTNET]: "0xe2db6d7632269ccdea6eb9c93a66809b242005f1ac9c0a4ed9a31ef2d0e8b6dd",
10809
+ [Stage.SANDBOX]: "0x935860aa216daf5d3c741d1c76dff9e0259f3b0d6dcac7cdab5e9a4847427f7d"
10065
10810
  };
10066
10811
  var OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS = {
10067
10812
  [Stage.MAINNET]: "0x48761f1a6591f4ad761f8ef9ec85ad6d5255805c35d4c9a90c97c40e7820aa85",
10068
- [Stage.TESTNET]: "0xcc83422f225aef3300596dae1119510cf56d620a686dc1e73c9db15c49d70e31",
10069
- [Stage.SANDBOX]: "0x4aa4ef7097190d05105bf2cdc9b2f5386566fca57f8d7a2d6a73371857a9e4ab"
10813
+ [Stage.TESTNET]: "0xb9b05d049cb78fa942b8a259d424f3db42f1a26a8d033a273edce240956bd04a",
10814
+ [Stage.SANDBOX]: "0x426e1eda45d6c9463b31ba939ae962f743a1a070be88f52f247662381300b195"
10070
10815
  };
10071
10816
  var OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
10072
10817
  [Stage.MAINNET]: "0xba9a66cdc77ae59264b7481e6d0d04426f380169b9afbb5176aaf58718fad6d1",
10073
- [Stage.TESTNET]: "0x28d0ec1e88734b94e38d2a8305cb89b9e81bdee41f71f4159166e99f058758c5",
10074
- [Stage.SANDBOX]: "0xbd20951baeab3e769bf2da0b546f206c2dd23d8c2842c7a65c9ac12bd43802b2"
10818
+ [Stage.TESTNET]: "0xcb9de2c184b44f26ab981b898b5ad46fb86d05335523bae3bc0c8eee478f28bb",
10819
+ [Stage.SANDBOX]: "0x2898915c4d47f1ce8de0c638b0cd5c696cc13a55a946c80e08129b35dd7d42ab"
10075
10820
  };
10076
10821
  var OBJECT_DISCOVERY_ADDRESS = {
10077
10822
  [Stage.MAINNET]: "",
@@ -10080,48 +10825,48 @@ var OBJECT_DISCOVERY_ADDRESS = {
10080
10825
  };
10081
10826
  var OBJECT_COUNTER_ADDRESS = {
10082
10827
  [Stage.MAINNET]: "0xe44f7b2ff80b8450e0d09ec84198dd22d9e2ad6e9c9688d2db605736b99ae965",
10083
- [Stage.TESTNET]: "0x85e63925789db09ee8021dfa66cb61a31913861b4abf7d97689061cf113ca61a",
10084
- [Stage.SANDBOX]: "0x34c3bd241345e15c118bc310f87153e3f4e329236a6bd7f6639afd3854e10fd6"
10828
+ [Stage.TESTNET]: "0x47607ddc0f7d906f384da14d868c000499f5ef96dcf214a036322618e61907c5",
10829
+ [Stage.SANDBOX]: "0x03647f24fde18a798ac5462db6141db68dea0cf9cd6f98e17223ab7af593e8e1"
10085
10830
  };
10086
10831
  var OBJECT_COUNTER_OAPP_ADDRESS = {
10087
10832
  [Stage.MAINNET]: "0x84e16eed83a2e9787860bd0324a3a69adc9ec181e5f7f2bfcca11222c113414c",
10088
- [Stage.TESTNET]: "0xf96322c7067fb9dbd77c7cc62bd35490dc86db507837b4310eacaef3b327ce75",
10089
- [Stage.SANDBOX]: "0x33d75362a4ab3c939d51754f18b3afdac5aa8b4f3af5ba9e9ad44b3351dca623"
10833
+ [Stage.TESTNET]: "0xacf214933db3da2dc72202c33c8e2dbc694efcc52dea7a76314038e674ba51e8",
10834
+ [Stage.SANDBOX]: "0x52f0ffe7401a36c2223af0a2b0f2a95ae3e047a2b2e500314dea1cb125b07e9f"
10090
10835
  };
10091
10836
  var OBJECT_COUNTER_ADMIN_CAP_ADDRESS = {
10092
10837
  [Stage.MAINNET]: "0x7c1250bbfb0e72ff58985112746d361ad729ac6f47a404c76d4e447b93b49984",
10093
- [Stage.TESTNET]: "0x63350eccf073e3b86ab7dd04566e8b62d4fa184f633ef383998b3230f66cc1de",
10094
- [Stage.SANDBOX]: "0x2b35a82ccdd841b38d468969dce5d090f00f07a1e713a1c802476402c7272bcd"
10838
+ [Stage.TESTNET]: "0x4fdd1cba150010d9cfe8f5a9e33179d6a6cd0837441d2a2c4adb5af98298849f",
10839
+ [Stage.SANDBOX]: "0xaa3ae4fb9873b7a749aeefdbe9cd0d7d9c4f641693df2cee063983d333837951"
10095
10840
  };
10096
10841
  var OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS = {
10097
10842
  [Stage.MAINNET]: "0x78d0ef45ccf4e6247162c09aa73ea0bb59467057960c23fe41a976ca67e916ab",
10098
- [Stage.TESTNET]: "0xe91a479f58bd7335f620d45488bc713fd0e25ac37c1c282a8150c301dac97453",
10099
- [Stage.SANDBOX]: "0xfab761dfade0a1f68d2dd9ceb8abfa8826be50ef91676eb47aa00ae8c9b86500"
10843
+ [Stage.TESTNET]: "0xf76fbe61f88a3512f0218aa629531708b4aa4ebc2e9a8b3bbf2764259f5ad4ca",
10844
+ [Stage.SANDBOX]: "0x2fa79d197dd4dab16a542f9a7e4327b33d9ced11e9696dd14688ae8b1d8130b2"
10100
10845
  };
10101
10846
  var OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS = {
10102
10847
  [Stage.MAINNET]: "0x2954f9997631409cf067785477b800ced4a2a9ccc75032076f8129ee07ca2caa",
10103
- [Stage.TESTNET]: "0x060ba8cc7a0e858c138ff00391bfec71dc863ac7d35cb36b14f4e52987cb9542",
10104
- [Stage.SANDBOX]: "0x80da1c4617dc27755ef53a12a96056c461e75a6953b3e51d6780cff03e5f7f4d"
10848
+ [Stage.TESTNET]: "0x57ec59d312b807e12c4af7e5efa9764cba5feb03ebb9a238d3f3547f4d14c78a",
10849
+ [Stage.SANDBOX]: "0x19c6288dc2b5d48f45fac8e750561f5d17893c83b506be93f01c63fc393bcc5b"
10105
10850
  };
10106
10851
  var OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS = {
10107
10852
  [Stage.MAINNET]: "0x2a705654d837e75ee88e1f03003cccf3faa9a683cf0434468745532cc55e148f",
10108
- [Stage.TESTNET]: "0xd5da31144a1a30e4fea6ad9074b04fc732d95ee4f84575ade95ec524ee351abf",
10109
- [Stage.SANDBOX]: "0x1358128be7cd28bed08496242b9c5827dc57b046996a41a8b789e8ffb48aceda"
10853
+ [Stage.TESTNET]: "0x385284d0bd5b2cf39bde3bd448ecb64d851c23dbd8f6890b138e5268a88e2304",
10854
+ [Stage.SANDBOX]: "0xf5a6ad27d693721cfccd9c2a568d9f7a610b81feaed6d2b6bd6aee32f89471c6"
10110
10855
  };
10111
10856
  var OBJECT_DVN_ADDRESS = {
10112
10857
  [Stage.MAINNET]: "0x607471cac2ed025cbb2874cd5a175e6000939747097bbd0ea89664c1fbe9672c",
10113
- [Stage.TESTNET]: "0xd97457fdd827f0b9d9c35cb9b6a8560364822c57545a10be53106dfc7c26f2b4",
10114
- [Stage.SANDBOX]: "0xb2a39ae5c222a62aa9a13374c151ad5a44c4b92ed8f037f2b2580c2b377955e1"
10858
+ [Stage.TESTNET]: "0x4160cd9281e79a93f87f7f45853cd682750102be01f36d1c33ef99ee8cd86e0d",
10859
+ [Stage.SANDBOX]: "0x4260355e158e03ef808b69ef71feb741d3277850a1cba918a0674e1d30340b32"
10115
10860
  };
10116
10861
  var OBJECT_DVN_CAP_ADDRESS = {
10117
10862
  [Stage.MAINNET]: "0x67d3d9e3537fc8ad2efd674bdce3b7f98ba2892971ab91a6f3bb611844dcc2e1",
10118
- [Stage.TESTNET]: "0x6b29694aaf32600eba62f0f91aed2c31a7c34540a513403f23351a8cd1372d3c",
10119
- [Stage.SANDBOX]: "0xb952d8b84fee0d99c5e20f25984703828f94f7a020363c304702bdf7f55eeada"
10863
+ [Stage.TESTNET]: "0xf124f6eb30af9ce474d60827cd5df45c207f5fb5c1ea1c45f535c655ca0a776e",
10864
+ [Stage.SANDBOX]: "0x4bd71cbd70093f30fa367bcdd47b99d585d3e30165ded9b0def32348012fa2aa"
10120
10865
  };
10121
10866
  var OBJECT_DVN_FEE_LIB_ADDRESS = {
10122
10867
  [Stage.MAINNET]: "0x5ff9119265b39b59260a7f1df2b7af5390f39fb33aeaf8b099e1ddc6673da1f0",
10123
- [Stage.TESTNET]: "0xc0f5802549ca974579ff193affff53a1566fffc1586f83584fc3432f85dc4859",
10124
- [Stage.SANDBOX]: "0x45096197e8d1565a969d853ec334b84b449e4199c5ccacb25817c5108772d846"
10868
+ [Stage.TESTNET]: "0xd433507170ea8cf08c5697128e80fca03f5c03c4a2f639bc632e6647baff63e1",
10869
+ [Stage.SANDBOX]: "0xeeb467d323bc8a8a3ef519318c1b34589245c9a232698e944dc540796c9ec119"
10125
10870
  };
10126
10871
  var OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS = {
10127
10872
  [Stage.MAINNET]: "",
@@ -10130,23 +10875,23 @@ var OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS = {
10130
10875
  };
10131
10876
  var OBJECT_EXECUTOR_ADDRESS = {
10132
10877
  [Stage.MAINNET]: "0xf5848ad4863f3594a96b4af26ab8d47414e5d17a9da76db1ab1489f1db3a75ae",
10133
- [Stage.TESTNET]: "0x69c3cd711b6730e699e2423a15f75c0fc9d96b3f6596bca140452184381a4abe",
10134
- [Stage.SANDBOX]: "0x3b2399477ed15d57ee04d54fc014f67c228bdd39c8c16494f98f19bcc8fe952b"
10878
+ [Stage.TESTNET]: "0x51816836a18df1cc8bbc0ae840e01da8fef15968ddbb390f4d6b9243b7911f23",
10879
+ [Stage.SANDBOX]: "0x679583dc666511caa0e066cca30c82843228a3bf707d2b1fd6c9b9fa6142da40"
10135
10880
  };
10136
10881
  var OBJECT_EXECUTOR_CAP_ADDRESS = {
10137
10882
  [Stage.MAINNET]: "0x4f86b866513949acb7728b33dc9334c9b0439c5f368f527b99db3cbf69a0282f",
10138
- [Stage.TESTNET]: "0x19bf02f900658874be5cb12af901008420c8e09fce73bfd9359dd78914a33eda",
10139
- [Stage.SANDBOX]: "0x537fcdb67272fb0defbd65f56e877df2120522025032ed4e5df66efcb848e057"
10883
+ [Stage.TESTNET]: "0x89a76121547d5a96482244015e908081d776bccbafc9e3f67bc079d560b3b185",
10884
+ [Stage.SANDBOX]: "0x0f5fa75c1a89241c6e690e581877f81ee5c904f82d4540dd6a3168c9a031ea0c"
10140
10885
  };
10141
10886
  var OBJECT_EXECUTOR_OWNER_CAP_ADDRESS = {
10142
10887
  [Stage.MAINNET]: "0x26082897ee964836468287f28e091078257d4fa27a6b309321b3d171cef3850d",
10143
- [Stage.TESTNET]: "0x6bbd9c69eaa8e52245a7c248c04847b0e1d31ed6945f5e2ada2e4d83c2f4c655",
10144
- [Stage.SANDBOX]: "0x52fb07f5997f1677307fcfba521ad24ddb4633ccfb047db863ab6c1ec280ef85"
10888
+ [Stage.TESTNET]: "0xf68d901d0426743e97c053f939f0e401e26e4c9bd2b1918227a942aa0acb4498",
10889
+ [Stage.SANDBOX]: "0xc46c173e64e13e51f9c2185501ab6718fda66f8c81fd0c19e399452fdebef3c9"
10145
10890
  };
10146
10891
  var OBJECT_EXECUTOR_FEE_LIB_ADDRESS = {
10147
10892
  [Stage.MAINNET]: "0x1d505d1cfdd0ac8938826269b93c35cec0cd97ba783e073fa3b0206b35ca0378",
10148
- [Stage.TESTNET]: "0x8826aad865a485ec779b5f08c74c07dbad3063f58f7b66c5f099137af7024519",
10149
- [Stage.SANDBOX]: "0xbf426a5c517b839f00664c0bf9b5a5021ba8acdf8a24bf402a3f7d88c224e966"
10893
+ [Stage.TESTNET]: "0x4e0c4cc4aa88b428005a8bb131014fdf9637a3ae042f192b9071119a64a32138",
10894
+ [Stage.SANDBOX]: "0x804969a1fd9b170183c1dfb9359e49b75fa5e1f57f6aa80f3894c4e0a7e75a8d"
10150
10895
  };
10151
10896
  var OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS = {
10152
10897
  [Stage.MAINNET]: "",
@@ -10155,18 +10900,23 @@ var OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS = {
10155
10900
  };
10156
10901
  var OBJECT_PRICE_FEED_ADDRESS = {
10157
10902
  [Stage.MAINNET]: "0x17a24b91f720a8f170386d920df3c605fe7a0b96e43424283b30b11ced0f0156",
10158
- [Stage.TESTNET]: "0x10e0e26966b7eee36e0009e67c0deeb8f7e5ea1a42ecefca53bf2d5d22031ba4",
10159
- [Stage.SANDBOX]: "0x58d4c62e24c842ad44eb1d890834de9b6c4c8dbf92c60bdae1ebb10ff655571e"
10903
+ [Stage.TESTNET]: "0xc8ae95cdc862a032e4d35f5f4c5dd6d3d07bdde2c7f39460e78e1539cc07dc2d",
10904
+ [Stage.SANDBOX]: "0x5e01a76c3668a70bfa2a21f198c3169182f4e928372859cf8947fe0553f22809"
10160
10905
  };
10161
10906
  var OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS = {
10162
10907
  [Stage.MAINNET]: "0x809d4b17a59a2b832b9222b09d4d6d805b6b2aaf340b6a52babea814ef5637a4",
10163
- [Stage.TESTNET]: "0x6d42367426b654045c2c9eccf622caf43e552b3f983bbd293b1ef362e82504bd",
10164
- [Stage.SANDBOX]: "0x34a4563571d8bdde8a8158c0ac16b651d1c262f7872f4a90f6d79989d20abbb0"
10908
+ [Stage.TESTNET]: "0xe1b167fe636f405def446df32c7d1390b2e4341f7c2af71c6eb358d8fbe4e99b",
10909
+ [Stage.SANDBOX]: "0xc01dbfc85a3977dd4ba1a34a4b341a8aee3381736eea95cb0e8fe4f3cc64d4e1"
10165
10910
  };
10166
10911
  var OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS = {
10167
10912
  [Stage.MAINNET]: "0x9d29be17482e050324db3a4b10755e4adc5a1aa062ed80528e0fbe94654055b5",
10168
- [Stage.TESTNET]: "0xcdbefbceffe2d9f0c0d46733ef4be0145e7af60241962738e98f136bff1557e2",
10169
- [Stage.SANDBOX]: "0x4e07c6ed9cefd6eb80a86bb99fdfc4c2cb3482fdfd0f2225fb96830dc2789cc7"
10913
+ [Stage.TESTNET]: "0x68fd353ff6848cb7281ce3ccbddbd4d651319e6427d71d170b13031416c93c10",
10914
+ [Stage.SANDBOX]: "0x423781a278902e91d78eeefb2b3de8ee9182e852ebfee1bb8b9261ab0bb404f8"
10915
+ };
10916
+ var OBJECT_WORKER_REGISTRY_ADDRESS = {
10917
+ [Stage.MAINNET]: "",
10918
+ [Stage.TESTNET]: "0x81be6f7575e9f22da9f6e8fb919453feeeaef6d48c41cd67d3217c0f1ae44a24",
10919
+ [Stage.SANDBOX]: "0x9d15b04929515f64919fe25724c125363436778e6478987d54c181bb217bcd55"
10170
10920
  };
10171
10921
 
10172
10922
  // src/resource.ts
@@ -10196,7 +10946,9 @@ var PACKAGE_ADDRESS_MAP = {
10196
10946
  treasury: PACKAGE_TREASURY_ADDRESS,
10197
10947
  oapp: PACKAGE_OAPP_ADDRESS,
10198
10948
  layerzeroViews: PACKAGE_LAYERZERO_VIEWS_ADDRESS,
10199
- packageWhitelistValidator: PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS
10949
+ packageWhitelistValidator: PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS,
10950
+ workerRegistry: PACKAGE_WORKER_REGISTRY_ADDRESS,
10951
+ workerCommon: PACKAGE_WORKER_COMMON_ADDRESS
10200
10952
  };
10201
10953
  var OBJECT_ADDRESS_MAP = {
10202
10954
  endpointV2: OBJECT_ENDPOINT_V2_ADDRESS,
@@ -10226,7 +10978,8 @@ var OBJECT_ADDRESS_MAP = {
10226
10978
  executorFeeLib: OBJECT_EXECUTOR_FEE_LIB_ADDRESS,
10227
10979
  priceFeed: OBJECT_PRICE_FEED_ADDRESS,
10228
10980
  priceFeedOwnerCap: OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS,
10229
- packageWhitelistValidator: OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS
10981
+ packageWhitelistValidator: OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS,
10982
+ workerRegistry: OBJECT_WORKER_REGISTRY_ADDRESS
10230
10983
  };
10231
10984
  var ResourceManager = class {
10232
10985
  /**
@@ -10298,8 +11051,8 @@ var SDK = class {
10298
11051
  getLayerZeroViews() {
10299
11052
  return this.moduleManager.getLayerZeroViews();
10300
11053
  }
10301
- getOApp() {
10302
- return this.moduleManager.getOApp();
11054
+ getOApp(callCapId, options) {
11055
+ return this.moduleManager.getOApp(this.client, callCapId, options);
10303
11056
  }
10304
11057
  // === Non-Core Module Getters (created on-demand with caching) ===
10305
11058
  getCounter(options) {
@@ -10347,11 +11100,14 @@ var SDK = class {
10347
11100
  getBlockedMessageLibPtbBuilder(options) {
10348
11101
  return this.moduleManager.getBlockedMessageLibPtbBuilder(this.client, options);
10349
11102
  }
11103
+ getWorkerRegistry(options) {
11104
+ return this.moduleManager.getWorkerRegistry(this.client, options);
11105
+ }
10350
11106
  getOrCreateModule(moduleName, options, factory) {
10351
11107
  return this.moduleManager.getOrCreateModule(moduleName, options, factory);
10352
11108
  }
10353
11109
  };
10354
11110
 
10355
- export { ALL_EXECUTOR_OPTION_TYPES, ArbitrumPriceExtBcs, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, BlockedMessageLibPtbBuilder, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, DstConfigBcs, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, EndpointPtbBuilder, Executor, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorOptionType, ExecutorPtbBuilder, FunctionBCS, LayerZeroViews, LibBuilderManagerErrorCode, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, MessagingFeeBcs, ModelType, ModelTypeBcs, Modules, MoveAbortError, MoveCallBCS, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, OAppUlnConfigBcs, OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS, OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_COUNTER_ADDRESS, OBJECT_COUNTER_ADMIN_CAP_ADDRESS, OBJECT_COUNTER_OAPP_ADDRESS, OBJECT_DISCOVERY_ADDRESS, OBJECT_DVN_ADDRESS, OBJECT_DVN_CAP_ADDRESS, OBJECT_DVN_FEE_LIB_ADDRESS, OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_V2_ADDRESS, OBJECT_EXECUTOR_ADDRESS, OBJECT_EXECUTOR_CAP_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_EXECUTOR_OWNER_CAP_ADDRESS, OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, OBJECT_PRICE_FEED_ADDRESS, OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_TREASURY_ADDRESS, OBJECT_TREASURY_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_ADDRESS, OBJECT_ULN_302_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_PTB_BUILDER_ADDRESS, OBJECT_ULN_302_VERIFICATION_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_CALL_ADDRESS, PACKAGE_COUNTER_V2_ADDRESS, PACKAGE_DVN_ADDRESS, PACKAGE_DVN_FEE_LIB_ADDRESS, PACKAGE_DVN_LAYERZERO_ADDRESS, PACKAGE_DVN_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_V2_ADDRESS, PACKAGE_EXECUTOR_ADDRESS, PACKAGE_EXECUTOR_FEE_LIB_ADDRESS, PACKAGE_EXECUTOR_LAYERZERO_ADDRESS, PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS, PACKAGE_LAYERZERO_VIEWS_ADDRESS, PACKAGE_OAPP_ADDRESS, PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, PACKAGE_PRICE_FEED_ADDRESS, PACKAGE_PTB_MOVE_CALL_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_TREASURY_ADDRESS, PACKAGE_ULN_302_ADDRESS, PACKAGE_ULN_302_PTB_BUILDER_ADDRESS, PACKAGE_UTILS_ADDRESS, PACKAGE_ZRO_ADDRESS, PackageAllowlistValidator, PackageWhitelistValidator, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, SDK, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, UlnConfigBcs, UlnVerificationState, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, Zro, asAddress, asAddressVector, asArg, asArgWithTx, asArgWithTxAsync, asBool, asBytes, asBytes32, asBytesVector, asObject, asString, asU128, asU16, asU256, asU32, asU64, asU8, executeSimulate, handleError, isTransactionArgument, simulateTransaction, simulateTransactionMultiResult, validateTransaction, validateWithDetails };
11111
+ export { ALL_EXECUTOR_OPTION_TYPES, ArbitrumPriceExtBcs, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, BlockedMessageLibPtbBuilder, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, DVNLayerzeroErrorCode, DstConfigBcs, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, EndpointPtbBuilder, EndpointPtbBuilderErrorCode, Executor, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorLayerzeroErrorCode, ExecutorOptionType, ExecutorPtbBuilder, FunctionBCS, LayerZeroViews, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, MessagingFeeBcs, ModelType, ModelTypeBcs, Modules, MoveAbortError, MoveCallBCS, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, OAppInfoV1Bcs, OAppInfoVersion, OAppUlnConfigBcs, OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS, OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_COUNTER_ADDRESS, OBJECT_COUNTER_ADMIN_CAP_ADDRESS, OBJECT_COUNTER_OAPP_ADDRESS, OBJECT_DISCOVERY_ADDRESS, OBJECT_DVN_ADDRESS, OBJECT_DVN_CAP_ADDRESS, OBJECT_DVN_FEE_LIB_ADDRESS, OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS, OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS, OBJECT_ENDPOINT_V2_ADDRESS, OBJECT_EXECUTOR_ADDRESS, OBJECT_EXECUTOR_CAP_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADDRESS, OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS, OBJECT_EXECUTOR_OWNER_CAP_ADDRESS, OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, OBJECT_PRICE_FEED_ADDRESS, OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS, OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, OBJECT_TREASURY_ADDRESS, OBJECT_TREASURY_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_ADDRESS, OBJECT_ULN_302_ADMIN_CAP_ADDRESS, OBJECT_ULN_302_PTB_BUILDER_ADDRESS, OBJECT_ULN_302_VERIFICATION_ADDRESS, OBJECT_WORKER_REGISTRY_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS, PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_CALL_ADDRESS, PACKAGE_COUNTER_V2_ADDRESS, PACKAGE_DVN_ADDRESS, PACKAGE_DVN_FEE_LIB_ADDRESS, PACKAGE_DVN_LAYERZERO_ADDRESS, PACKAGE_DVN_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS, PACKAGE_ENDPOINT_V2_ADDRESS, PACKAGE_EXECUTOR_ADDRESS, PACKAGE_EXECUTOR_FEE_LIB_ADDRESS, PACKAGE_EXECUTOR_LAYERZERO_ADDRESS, PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS, PACKAGE_LAYERZERO_VIEWS_ADDRESS, PACKAGE_OAPP_ADDRESS, PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS, PACKAGE_PRICE_FEED_ADDRESS, PACKAGE_PTB_MOVE_CALL_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS, PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS, PACKAGE_TREASURY_ADDRESS, PACKAGE_ULN_302_ADDRESS, PACKAGE_ULN_302_PTB_BUILDER_ADDRESS, PACKAGE_UTILS_ADDRESS, PACKAGE_WORKER_COMMON_ADDRESS, PACKAGE_WORKER_REGISTRY_ADDRESS, PACKAGE_ZRO_ADDRESS, PackageAllowlistValidator, PackageWhitelistValidator, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, PtbBuilderErrorCode, SDK, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, Uln302PtbBuilderErrorCode, UlnConfigBcs, UlnVerificationState, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, WorkerRegistry, WorkerRegistryErrorCode, Zro, asAddress, asAddressVector, asArg, asArgWithTx, asArgWithTxAsync, asBool, asBytes, asBytes32, asBytesVector, asObject, asString, asU128, asU16, asU256, asU32, asU64, asU8, executeSimulate, handleError, isTransactionArgument, simulateTransaction, simulateTransactionMultiResult, validateTransaction, validateWithDetails };
10356
11112
  //# sourceMappingURL=index.mjs.map
10357
11113
  //# sourceMappingURL=index.mjs.map