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

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 (163) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/deployments/sui-sandbox-local/blocked_message_lib.json +22 -22
  3. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +22 -22
  4. package/deployments/sui-sandbox-local/counter.json +79 -44
  5. package/deployments/sui-sandbox-local/dvn.json +23 -22
  6. package/deployments/sui-sandbox-local/dvn_call_type.json +28 -28
  7. package/deployments/sui-sandbox-local/dvn_fee_lib.json +27 -27
  8. package/deployments/sui-sandbox-local/dvn_layerzero.json +17 -17
  9. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +21 -21
  10. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +30 -30
  11. package/deployments/sui-sandbox-local/endpoint_v2.json +25 -25
  12. package/deployments/sui-sandbox-local/executor.json +15 -14
  13. package/deployments/sui-sandbox-local/executor_call_type.json +28 -28
  14. package/deployments/sui-sandbox-local/executor_fee_lib.json +28 -28
  15. package/deployments/sui-sandbox-local/executor_layerzero.json +17 -17
  16. package/deployments/sui-sandbox-local/executor_ptb_builder.json +14 -14
  17. package/deployments/sui-sandbox-local/layerzero_views.json +21 -21
  18. package/deployments/sui-sandbox-local/message_lib_common.json +21 -21
  19. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +13 -13
  20. package/deployments/sui-sandbox-local/oapp.json +15 -13
  21. package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +5 -5
  22. package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +5 -5
  23. package/deployments/sui-sandbox-local/object-Counter.json +5 -5
  24. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +5 -5
  25. package/deployments/sui-sandbox-local/object-CounterOApp.json +5 -5
  26. package/deployments/sui-sandbox-local/object-DVN.json +2 -2
  27. package/deployments/sui-sandbox-local/object-DVNCap.json +4 -4
  28. package/deployments/sui-sandbox-local/object-DVNFeeLib.json +5 -5
  29. package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +5 -5
  30. package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +5 -5
  31. package/deployments/sui-sandbox-local/object-EndpointV2.json +5 -5
  32. package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +5 -5
  33. package/deployments/sui-sandbox-local/object-Executor.json +2 -2
  34. package/deployments/sui-sandbox-local/object-ExecutorCap.json +4 -4
  35. package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
  36. package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
  37. package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +5 -5
  38. package/deployments/sui-sandbox-local/object-PriceFeed.json +5 -5
  39. package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +5 -5
  40. package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +5 -5
  41. package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +5 -5
  42. package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +5 -5
  43. package/deployments/sui-sandbox-local/object-Treasury.json +5 -5
  44. package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +5 -5
  45. package/deployments/sui-sandbox-local/object-ULN302.json +5 -5
  46. package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +5 -5
  47. package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +5 -5
  48. package/deployments/sui-sandbox-local/object-Uln302Verification.json +5 -5
  49. package/deployments/sui-sandbox-local/object-WorkerRegistry.json +9 -0
  50. package/deployments/sui-sandbox-local/package_whitelist_validator.json +51 -51
  51. package/deployments/sui-sandbox-local/price_feed.json +39 -39
  52. package/deployments/sui-sandbox-local/price_feed_call_types.json +19 -19
  53. package/deployments/sui-sandbox-local/ptb_move_call.json +20 -20
  54. package/deployments/sui-sandbox-local/sequential_multi_call.json +45 -0
  55. package/deployments/sui-sandbox-local/simple_message_lib.json +33 -33
  56. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +22 -22
  57. package/deployments/sui-sandbox-local/treasury.json +40 -40
  58. package/deployments/sui-sandbox-local/uln_302.json +35 -39
  59. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +25 -25
  60. package/deployments/sui-sandbox-local/uln_common.json +49 -0
  61. package/deployments/sui-sandbox-local/worker_common.json +15 -14
  62. package/deployments/sui-sandbox-local/worker_registry.json +58 -0
  63. package/deployments/sui-testnet/blocked_message_lib.json +22 -22
  64. package/deployments/sui-testnet/blocked_msglib_ptb_builder.json +29 -29
  65. package/deployments/sui-testnet/call.json +21 -21
  66. package/deployments/sui-testnet/counter.json +40 -40
  67. package/deployments/sui-testnet/dvn.json +22 -21
  68. package/deployments/sui-testnet/dvn_call_type.json +19 -19
  69. package/deployments/sui-testnet/dvn_fee_lib.json +26 -26
  70. package/deployments/sui-testnet/dvn_layerzero.json +24 -24
  71. package/deployments/sui-testnet/dvn_ptb_builder.json +20 -20
  72. package/deployments/sui-testnet/endpoint_ptb_builder.json +30 -30
  73. package/deployments/sui-testnet/endpoint_v2.json +26 -26
  74. package/deployments/sui-testnet/executor.json +22 -21
  75. package/deployments/sui-testnet/executor_call_type.json +19 -19
  76. package/deployments/sui-testnet/executor_fee_lib.json +18 -18
  77. package/deployments/sui-testnet/executor_layerzero.json +25 -25
  78. package/deployments/sui-testnet/executor_ptb_builder.json +20 -20
  79. package/deployments/sui-testnet/layerzero_views.json +13 -13
  80. package/deployments/sui-testnet/message_lib_common.json +21 -21
  81. package/deployments/sui-testnet/msglib_ptb_builder_call_types.json +13 -13
  82. package/deployments/sui-testnet/oapp.json +15 -13
  83. package/deployments/sui-testnet/object-BlockedMessageLib.json +5 -5
  84. package/deployments/sui-testnet/object-BlockedMsglibPtbBuilder.json +5 -5
  85. package/deployments/sui-testnet/object-Counter.json +5 -5
  86. package/deployments/sui-testnet/object-CounterAdminCap.json +5 -5
  87. package/deployments/sui-testnet/object-CounterOApp.json +5 -5
  88. package/deployments/sui-testnet/object-DVN.json +2 -2
  89. package/deployments/sui-testnet/object-DVNCap.json +5 -5
  90. package/deployments/sui-testnet/object-DVNFeeLib.json +5 -5
  91. package/deployments/sui-testnet/object-EndpointPtbBuilder.json +5 -5
  92. package/deployments/sui-testnet/object-EndpointPtbBuilderAdminCap.json +5 -5
  93. package/deployments/sui-testnet/object-EndpointV2.json +5 -5
  94. package/deployments/sui-testnet/object-EndpointV2AdminCap.json +5 -5
  95. package/deployments/sui-testnet/object-Executor.json +2 -2
  96. package/deployments/sui-testnet/object-ExecutorCap.json +5 -5
  97. package/deployments/sui-testnet/object-ExecutorFeeLib.json +5 -5
  98. package/deployments/sui-testnet/object-ExecutorOwnerCap.json +2 -2
  99. package/deployments/sui-testnet/object-PackageWhitelistValidator.json +5 -5
  100. package/deployments/sui-testnet/object-PriceFeed.json +5 -5
  101. package/deployments/sui-testnet/object-PriceFeedOwnerCap.json +5 -5
  102. package/deployments/sui-testnet/object-SimpleMessageLib.json +5 -5
  103. package/deployments/sui-testnet/object-SimpleMessageLibAdminCap.json +5 -5
  104. package/deployments/sui-testnet/object-SmlPtbBuilder.json +5 -5
  105. package/deployments/sui-testnet/object-Treasury.json +5 -5
  106. package/deployments/sui-testnet/object-TreasuryAdminCap.json +5 -5
  107. package/deployments/sui-testnet/object-ULN302.json +5 -5
  108. package/deployments/sui-testnet/object-ULN302AdminCap.json +5 -5
  109. package/deployments/sui-testnet/object-Uln302PtbBuilder.json +5 -5
  110. package/deployments/sui-testnet/object-Uln302Verification.json +5 -5
  111. package/deployments/sui-testnet/object-WorkerRegistry.json +9 -0
  112. package/deployments/sui-testnet/object-ZroCoinMetadata.json +5 -5
  113. package/deployments/sui-testnet/object-ZroTreasuryCap.json +5 -5
  114. package/deployments/sui-testnet/package_whitelist_validator.json +44 -44
  115. package/deployments/sui-testnet/price_feed.json +25 -25
  116. package/deployments/sui-testnet/price_feed_call_types.json +12 -12
  117. package/deployments/sui-testnet/ptb_move_call.json +21 -21
  118. package/deployments/sui-testnet/sequential_multi_call.json +45 -0
  119. package/deployments/sui-testnet/simple_message_lib.json +29 -29
  120. package/deployments/sui-testnet/simple_msglib_ptb_builder.json +26 -26
  121. package/deployments/sui-testnet/treasury.json +30 -58
  122. package/deployments/sui-testnet/uln_302.json +28 -32
  123. package/deployments/sui-testnet/uln_302_ptb_builder.json +25 -25
  124. package/deployments/sui-testnet/uln_common.json +49 -0
  125. package/deployments/sui-testnet/utils.json +12 -12
  126. package/deployments/sui-testnet/worker_common.json +21 -20
  127. package/deployments/sui-testnet/worker_registry.json +58 -0
  128. package/deployments/sui-testnet/zro.json +28 -28
  129. package/dist/index.cjs +1193 -418
  130. package/dist/index.cjs.map +1 -1
  131. package/dist/index.d.mts +702 -352
  132. package/dist/index.d.ts +702 -352
  133. package/dist/index.mjs +1182 -418
  134. package/dist/index.mjs.map +1 -1
  135. package/package.json +7 -7
  136. package/src/bcs/index.ts +2 -1
  137. package/src/bcs/oapp.ts +14 -0
  138. package/src/generated/addresses.ts +123 -105
  139. package/src/module-manager.ts +15 -3
  140. package/src/modules/call.ts +16 -6
  141. package/src/modules/endpoint.ts +12 -4
  142. package/src/modules/message-libs/simple-message-lib.ts +3 -2
  143. package/src/modules/message-libs/uln302.ts +28 -26
  144. package/src/modules/oapps/counter.ts +34 -50
  145. package/src/modules/oapps/oapp.ts +489 -74
  146. package/src/modules/ptb-builders/endpoint-ptb-builder.ts +9 -3
  147. package/src/modules/ptb-builders/ptb-builder.ts +19 -4
  148. package/src/modules/ptb-builders/uln302-ptb-builder.ts +5 -0
  149. package/src/modules/workers/dvn-layerzero.ts +9 -0
  150. package/src/modules/workers/dvn.ts +214 -6
  151. package/src/modules/workers/executor-fee-lib.ts +11 -3
  152. package/src/modules/workers/executor-layerzero.ts +9 -0
  153. package/src/modules/workers/executor.ts +115 -0
  154. package/src/modules/workers/index.ts +1 -0
  155. package/src/modules/workers/treasury.ts +4 -4
  156. package/src/modules/workers/worker-registry.ts +110 -0
  157. package/src/resource.ts +3 -0
  158. package/src/sdk.ts +7 -2
  159. package/src/types/endpoint.ts +2 -1
  160. package/src/types/modules.ts +1 -0
  161. package/src/types/oapp.ts +6 -0
  162. package/src/types/options.ts +15 -0
  163. 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,24 @@ 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,
770
+ MessagingComposer_EInvalidLZComposeInfo: 6,
752
771
  // OAppRegistry related errors (with OAppRegistry_ prefix)
753
772
  OAppRegistry_EInvalidLZReceiveInfo: 1,
754
- OAppRegistry_EInvalidOriginalPackage: 2,
755
- OAppRegistry_EOAppNotRegistered: 3,
756
- OAppRegistry_EOAppRegistered: 4,
773
+ OAppRegistry_EOAppNotRegistered: 2,
774
+ OAppRegistry_EOAppRegistered: 3,
757
775
  // Endpoint related errors (with Endpoint_ prefix)
758
776
  Endpoint_EAlreadyInitialized: 1,
759
777
  Endpoint_EInvalidEid: 2,
760
778
  Endpoint_ENotInitialized: 3,
761
779
  Endpoint_ERefundAddressNotFound: 4,
762
- Endpoint_EUnauthorizedSendLibrary: 5
780
+ Endpoint_EUnauthorizedOApp: 5,
781
+ Endpoint_EUnauthorizedSendLibrary: 6
763
782
  };
764
783
  var _Endpoint_instances, addRequiredValidators_fn, target_fn;
765
784
  var Endpoint = class {
@@ -2716,9 +2735,10 @@ target_fn2 = function(name, module_name = MODULE_NAME2) {
2716
2735
  };
2717
2736
  var MODULE_NAME3 = "simple_message_lib";
2718
2737
  var SimpleMessageLibErrorCode = {
2719
- // SimpleMessageLib related errors (with SimpleMessageLib_ prefix)
2720
- SimpleMessageLib_EConfigNotFound: 1,
2721
- SimpleMessageLib_EZROFeeNotEnabled: 2
2738
+ // SimpleMessageLib related errors (matching simple_message_lib.move)
2739
+ SimpleMessageLib_ENotImplemented: 1,
2740
+ SimpleMessageLib_EZROFeeNotEnabled: 2,
2741
+ SimpleMessageLib_EInvalidEid: 3
2722
2742
  };
2723
2743
  var _SimpleMessageLib_instances, target_fn3;
2724
2744
  var SimpleMessageLib = class {
@@ -2949,10 +2969,25 @@ var Uln302ErrorCode = {
2949
2969
  ReceiveUln302_EInvalidEid: 3,
2950
2970
  ReceiveUln302_EOAppUlnConfigNotFound: 4,
2951
2971
  ReceiveUln302_EVerifying: 5,
2952
- Uln302_EEndpointInitialized: 1,
2953
- Uln302_EInvalidConfigType: 2,
2954
- Uln302_EInvalidMessagingChannel: 3,
2955
- Uln302_EUnsupportedEid: 4
2972
+ Uln302_EInvalidConfigType: 1,
2973
+ Uln302_EInvalidMessagingChannel: 2,
2974
+ Uln302_EUnsupportedEid: 3,
2975
+ // UlnConfig related errors (matching uln_config.move)
2976
+ UlnConfig_EAtLeastOneDVN: 1,
2977
+ UlnConfig_EDuplicateOptionalDVNs: 2,
2978
+ UlnConfig_EDuplicateRequiredDVNs: 3,
2979
+ UlnConfig_EInvalidOptionalDVNCount: 4,
2980
+ UlnConfig_EInvalidOptionalDVNThreshold: 5,
2981
+ UlnConfig_EInvalidRequiredDVNCount: 6,
2982
+ UlnConfig_EInvalidUlnConfigBytes: 7,
2983
+ // OAppUlnConfig related errors (matching oapp_uln_config.move)
2984
+ OAppUlnConfig_EInvalidConfirmations: 1,
2985
+ OAppUlnConfig_EInvalidRequiredDVNs: 2,
2986
+ OAppUlnConfig_EInvalidOptionalDVNs: 3,
2987
+ // ExecutorConfig related errors (matching executor_config.move)
2988
+ ExecutorConfig_EInvalidExecutorAddress: 1,
2989
+ ExecutorConfig_EInvalidExecutorBytes: 2,
2990
+ ExecutorConfig_EZeroMessageSize: 3
2956
2991
  };
2957
2992
  var _Uln302_instances, target_fn4;
2958
2993
  var Uln302 = class {
@@ -3050,25 +3085,16 @@ var Uln302 = class {
3050
3085
  });
3051
3086
  }
3052
3087
  /**
3053
- * Verify packet move call with DVN signatures
3054
- * Note: This is typically called by DVNs, not directly by users
3088
+ * Verify packet move call with DVN call (new API)
3089
+ * Note: This is typically called by DVNs via Call objects, not directly by users
3055
3090
  * @param tx - The transaction to add the move call to
3056
3091
  * @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
3092
+ * @param call - The DVN verification call containing verification parameters
3061
3093
  */
3062
- verifyMoveCall(tx, verification, dvn, packetHeader, payloadHash, confirmations) {
3094
+ verifyMoveCall(tx, verification, call) {
3063
3095
  tx.moveCall({
3064
3096
  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
- ]
3097
+ arguments: [tx.object(this.objects.uln302), asObject(tx, verification), call]
3072
3098
  });
3073
3099
  }
3074
3100
  /**
@@ -3621,9 +3647,22 @@ var DVNErrorCode = {
3621
3647
  DVN_EExpiredSignature: 1,
3622
3648
  DVN_EEidNotSupported: 2,
3623
3649
  DVN_EHashAlreadyUsed: 3,
3624
- DVN_EPtbBuilderAlreadyInitialized: 4
3625
- };
3626
- var _DVN_instances, target_fn5;
3650
+ DVN_EPtbBuilderAlreadyInitialized: 4,
3651
+ // Multisig related errors (matching multisig.move)
3652
+ Multisig_EDuplicatedSigner: 1,
3653
+ Multisig_EInvalidSignatureLength: 2,
3654
+ Multisig_EInvalidSignerLength: 3,
3655
+ Multisig_EQuorumIsZero: 4,
3656
+ Multisig_ESignaturesLessThanQuorum: 5,
3657
+ Multisig_ESignerAlreadyExists: 6,
3658
+ Multisig_ESignerNotFound: 7,
3659
+ Multisig_ESignerNotInCommittee: 8,
3660
+ Multisig_ESignersSizeIsLessThanQuorum: 9,
3661
+ // DVNInfoV1 related errors (matching dvn_info_v1.move)
3662
+ DVNInfoV1_EInvalidData: 1,
3663
+ DVNInfoV1_EInvalidVersion: 2
3664
+ };
3665
+ var _DVN_instances, getUlnObjectAddress_fn, getUlnVerifyTarget_fn, target_fn5;
3627
3666
  var DVN = class {
3628
3667
  constructor(packageId, client, objects, moduleManager) {
3629
3668
  this.moduleManager = moduleManager;
@@ -3786,6 +3825,29 @@ var DVN = class {
3786
3825
  });
3787
3826
  }
3788
3827
  // === Set Functions with Signatures ===
3828
+ /**
3829
+ * Set supported message library (admin with signatures)
3830
+ * @param tx - The transaction to add the move call to
3831
+ * @param adminCap - The admin capability object ID
3832
+ * @param messageLib - The message library address
3833
+ * @param supported - Whether to support or remove support for the message library
3834
+ * @param expiration - Signature expiration timestamp
3835
+ * @param signatures - Multisig signatures for authorization
3836
+ */
3837
+ setSupportedMessageLibMoveCall(tx, adminCap, messageLib, supported, expiration, signatures) {
3838
+ tx.moveCall({
3839
+ target: __privateMethod(this, _DVN_instances, target_fn5).call(this, "set_supported_message_lib"),
3840
+ arguments: [
3841
+ tx.object(this.objects.dvn),
3842
+ asObject(tx, adminCap),
3843
+ asAddress(tx, messageLib),
3844
+ asBool(tx, supported),
3845
+ asU64(tx, expiration),
3846
+ asBytes(tx, signatures),
3847
+ tx.object.clock()
3848
+ ]
3849
+ });
3850
+ }
3789
3851
  /**
3790
3852
  * Set allowlist status for an OApp sender (admin with signatures)
3791
3853
  * @param tx - The transaction to add the move call to
@@ -3920,23 +3982,24 @@ var DVN = class {
3920
3982
  }
3921
3983
  // Verification Functions
3922
3984
  /**
3923
- * Verify a packet with DVN signatures (admin with signatures)
3985
+ * Verify a packet with DVN signatures (admin with signatures) - returns Call object for ULN302
3924
3986
  * @param tx - The transaction to add the move call to
3925
3987
  * @param adminCap - The admin capability object ID
3926
- * @param verification - The verification object address
3988
+ * @param targetMessageLib - The target message library address (usually ULN302)
3927
3989
  * @param packetHeader - The packet header as bytes
3928
3990
  * @param payloadHash - The payload hash as bytes
3929
3991
  * @param confirmations - Required confirmations count
3930
3992
  * @param expiration - Signature expiration timestamp
3931
3993
  * @param signatures - DVN multisig signatures
3994
+ * @returns Transaction result containing the verification Call object
3932
3995
  */
3933
- verifyMoveCall(tx, adminCap, verification, packetHeader, payloadHash, confirmations, expiration, signatures) {
3934
- tx.moveCall({
3996
+ verifyMoveCall(tx, adminCap, targetMessageLib, packetHeader, payloadHash, confirmations, expiration, signatures) {
3997
+ return tx.moveCall({
3935
3998
  target: __privateMethod(this, _DVN_instances, target_fn5).call(this, "verify"),
3936
3999
  arguments: [
3937
4000
  tx.object(this.objects.dvn),
3938
4001
  asObject(tx, adminCap),
3939
- asObject(tx, verification),
4002
+ asAddress(tx, targetMessageLib),
3940
4003
  asBytes(tx, packetHeader),
3941
4004
  asBytes32(tx, payloadHash, this.moduleManager.getUtils()),
3942
4005
  asU64(tx, confirmations),
@@ -4206,6 +4269,32 @@ var DVN = class {
4206
4269
  (result) => bcs.Bool.parse(result[0].value)
4207
4270
  );
4208
4271
  }
4272
+ /**
4273
+ * Check if a message library is supported by this DVN
4274
+ * @param tx - The transaction to add the move call to
4275
+ * @param messageLib - The message library address to check
4276
+ * @returns Transaction result containing the support status
4277
+ */
4278
+ isSupportedMessageLibMoveCall(tx, messageLib) {
4279
+ return tx.moveCall({
4280
+ target: __privateMethod(this, _DVN_instances, target_fn5).call(this, "is_supported_message_lib"),
4281
+ arguments: [tx.object(this.objects.dvn), asAddress(tx, messageLib)]
4282
+ });
4283
+ }
4284
+ /**
4285
+ * Check if a message library is supported by this DVN
4286
+ * @param messageLib - The message library address to check
4287
+ * @returns Promise<boolean> - True if the message library is supported
4288
+ */
4289
+ async isSupportedMessageLib(messageLib) {
4290
+ return executeSimulate(
4291
+ this.client,
4292
+ (tx) => {
4293
+ this.isSupportedMessageLibMoveCall(tx, messageLib);
4294
+ },
4295
+ (result) => bcs.Bool.parse(result[0].value)
4296
+ );
4297
+ }
4209
4298
  /**
4210
4299
  * Check if an address is allowlisted
4211
4300
  * @param tx - The transaction to add the move call to
@@ -4558,6 +4647,49 @@ var DVN = class {
4558
4647
  (result) => bcs.Bool.parse(result[0].value)
4559
4648
  );
4560
4649
  }
4650
+ /**
4651
+ * Get DVN object address from worker registry using this DVN's worker capability (as a move call)
4652
+ * This function chains Move calls to decode worker info and extract the DVN object address
4653
+ * @param tx - The transaction to add the move call to
4654
+ * @returns Transaction result containing the DVN object address
4655
+ */
4656
+ getDvnObjectAddressMoveCall(tx) {
4657
+ const workerCapAddress = this.workerCapAddressMoveCall(tx);
4658
+ const workerInfoBytes = this.moduleManager.getWorkerRegistry(this.client).getWorkerInfoMoveCall(tx, workerCapAddress);
4659
+ const workerInfo = tx.moveCall({
4660
+ target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::decode`,
4661
+ arguments: [workerInfoBytes]
4662
+ });
4663
+ const dvnInfoBytes = tx.moveCall({
4664
+ target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::worker_info`,
4665
+ arguments: [workerInfo]
4666
+ });
4667
+ const dvnInfo = tx.moveCall({
4668
+ target: `${this.packageId}::dvn_info_v1::decode`,
4669
+ arguments: [dvnInfoBytes]
4670
+ });
4671
+ return tx.moveCall({
4672
+ target: `${this.packageId}::dvn_info_v1::dvn_object`,
4673
+ arguments: [dvnInfo]
4674
+ });
4675
+ }
4676
+ /**
4677
+ * Get DVN object address from worker registry using this DVN's worker capability
4678
+ * This function uses Move calls to decode worker info and extract the DVN object address
4679
+ * @returns Promise<string> - The DVN object address
4680
+ * @throws Will throw an error if worker info is not found or if decoding fails
4681
+ */
4682
+ async getDvnObjectAddress() {
4683
+ return executeSimulate(
4684
+ this.client,
4685
+ (tx) => {
4686
+ this.getDvnObjectAddressMoveCall(tx);
4687
+ },
4688
+ (result) => {
4689
+ return bcs.Address.parse(result[0].value);
4690
+ }
4691
+ );
4692
+ }
4561
4693
  // === Witness Functions ===
4562
4694
  /**
4563
4695
  * Create a LayerZero witness for DVN package whitelist registration
@@ -4845,8 +4977,63 @@ var DVN = class {
4845
4977
  ]
4846
4978
  });
4847
4979
  }
4980
+ /**
4981
+ * Populate verify with DVN verification and ULN verify call
4982
+ * @param tx - The transaction to add the move call to
4983
+ * @param adminCap - The admin capability object ID
4984
+ * @param targetMessageLib - The target message library address (usually ULN302)
4985
+ * @param targetVerification - The verification object address for the target message library
4986
+ * @param packetHeader - The packet header as bytes
4987
+ * @param payloadHash - The payload hash as bytes
4988
+ * @param confirmations - Required confirmations count
4989
+ * @param expiration - Signature expiration timestamp
4990
+ * @param signatures - DVN multisig signatures
4991
+ */
4992
+ populateVerify(tx, adminCap, targetMessageLib, targetVerification, packetHeader, payloadHash, confirmations, expiration, signatures) {
4993
+ const dvnCall = this.verifyMoveCall(
4994
+ tx,
4995
+ adminCap,
4996
+ targetMessageLib,
4997
+ packetHeader,
4998
+ payloadHash,
4999
+ confirmations,
5000
+ expiration,
5001
+ signatures
5002
+ );
5003
+ const messageLibObjectAddress = __privateMethod(this, _DVN_instances, getUlnObjectAddress_fn).call(this, targetMessageLib);
5004
+ tx.moveCall({
5005
+ target: __privateMethod(this, _DVN_instances, getUlnVerifyTarget_fn).call(this, targetMessageLib),
5006
+ arguments: [tx.object(messageLibObjectAddress), asObject(tx, targetVerification), dvnCall]
5007
+ });
5008
+ }
4848
5009
  };
4849
5010
  _DVN_instances = new WeakSet();
5011
+ /**
5012
+ * Get message library object address based on targetMessageLib package address
5013
+ * @param targetMessageLib - The target message library package address
5014
+ * @returns Message library object address
5015
+ * @throws Error if targetMessageLib doesn't match any known message library
5016
+ * @private
5017
+ */
5018
+ getUlnObjectAddress_fn = function(targetMessageLib) {
5019
+ if (targetMessageLib === this.moduleManager.packages.uln302) {
5020
+ return this.objects.uln302;
5021
+ }
5022
+ throw new Error("Target message library not match objects");
5023
+ };
5024
+ /**
5025
+ * Get ULN verify target path based on targetMessageLib package address
5026
+ * @param targetMessageLib - The target message library package address
5027
+ * @returns Message library verify target path
5028
+ * @throws Error if targetMessageLib doesn't match any known message library
5029
+ * @private
5030
+ */
5031
+ getUlnVerifyTarget_fn = function(targetMessageLib) {
5032
+ if (targetMessageLib === this.moduleManager.packages.uln302) {
5033
+ return `${targetMessageLib}::uln_302::verify`;
5034
+ }
5035
+ throw new Error("Target message library not match any target");
5036
+ };
4850
5037
  /**
4851
5038
  * Generate the full target path for move calls
4852
5039
  * @param name - The function name to call
@@ -4931,6 +5118,10 @@ target_fn6 = function(name, module_name = MODULE_NAME6) {
4931
5118
 
4932
5119
  // src/modules/workers/dvn-layerzero.ts
4933
5120
  var MODULE_NAME7 = "dvn_layerzero";
5121
+ var DVNLayerzeroErrorCode = {
5122
+ // DVNLayerzero related errors (matching dvn_layerzero.move)
5123
+ DVNLayerzero_EWorkerCapNotFromPackage: 1
5124
+ };
4934
5125
  var _DvnLayerZero_instances, target_fn7;
4935
5126
  var DvnLayerZero = class {
4936
5127
  constructor(packageId, client, moduleManager) {
@@ -4947,6 +5138,7 @@ var DvnLayerZero = class {
4947
5138
  * @param workerCap - Worker capability object ID or transaction argument
4948
5139
  * @param vid - Verifier ID for the DVN or transaction argument
4949
5140
  * @param depositAddress - Address for fee deposits or transaction argument
5141
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
4950
5142
  * @param priceFeed - Price feed object address or transaction argument
4951
5143
  * @param workerFeeLib - Worker fee library address or transaction argument
4952
5144
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
@@ -4954,19 +5146,21 @@ var DvnLayerZero = class {
4954
5146
  * @param signers - Array of signer public keys as bytes or transaction argument
4955
5147
  * @param quorum - Required signature threshold or transaction argument
4956
5148
  */
4957
- initDvnMoveCall(tx, workerCap, vid, depositAddress, priceFeed, workerFeeLib, defaultMultiplierBps, admins, signers, quorum) {
5149
+ initDvnMoveCall(tx, workerCap, vid, depositAddress, supportedMessageLibs, priceFeed, workerFeeLib, defaultMultiplierBps, admins, signers, quorum) {
4958
5150
  tx.moveCall({
4959
5151
  target: __privateMethod(this, _DvnLayerZero_instances, target_fn7).call(this, "init_dvn"),
4960
5152
  arguments: [
4961
5153
  asObject(tx, workerCap),
4962
5154
  asU32(tx, vid),
4963
5155
  asAddress(tx, depositAddress),
5156
+ asAddressVector(tx, supportedMessageLibs),
4964
5157
  asAddress(tx, priceFeed),
4965
5158
  asAddress(tx, workerFeeLib),
4966
5159
  asU16(tx, defaultMultiplierBps),
4967
5160
  asAddressVector(tx, admins),
4968
5161
  asBytesVector(tx, signers),
4969
- asU64(tx, quorum)
5162
+ asU64(tx, quorum),
5163
+ tx.object(this.moduleManager.objects.workerRegistry)
4970
5164
  ]
4971
5165
  });
4972
5166
  }
@@ -4986,7 +5180,10 @@ var MODULE_NAME8 = "executor_worker";
4986
5180
  var ExecutorErrorCode = {
4987
5181
  // Executor related errors (with Executor_ prefix)
4988
5182
  Executor_EEidNotSupported: 1,
4989
- Executor_EInvalidNativeDropAmount: 2
5183
+ Executor_EInvalidNativeDropAmount: 2,
5184
+ // ExecutorInfoV1 related errors (matching executor_info_v1.move)
5185
+ ExecutorInfoV1_EInvalidData: 1,
5186
+ ExecutorInfoV1_EInvalidVersion: 2
4990
5187
  };
4991
5188
  var _Executor_instances, target_fn8;
4992
5189
  var Executor = class {
@@ -5358,6 +5555,24 @@ var Executor = class {
5358
5555
  ]
5359
5556
  });
5360
5557
  }
5558
+ /**
5559
+ * Set supported message library (owner only)
5560
+ * @param tx - The transaction to add the move call to
5561
+ * @param ownerCap - The owner capability object ID
5562
+ * @param messageLib - The message library address
5563
+ * @param supported - Whether to support or remove support for the message library
5564
+ */
5565
+ setSupportedMessageLibMoveCall(tx, ownerCap, messageLib, supported) {
5566
+ tx.moveCall({
5567
+ target: __privateMethod(this, _Executor_instances, target_fn8).call(this, "set_supported_message_lib"),
5568
+ arguments: [
5569
+ tx.object(this.objects.executor),
5570
+ asObject(tx, ownerCap),
5571
+ asAddress(tx, messageLib),
5572
+ asBool(tx, supported)
5573
+ ]
5574
+ });
5575
+ }
5361
5576
  /**
5362
5577
  * Set allowlist status for an OApp sender (owner only)
5363
5578
  * @param tx - The transaction to add the move call to
@@ -5610,6 +5825,32 @@ var Executor = class {
5610
5825
  (result) => bcs.Bool.parse(result[0].value)
5611
5826
  );
5612
5827
  }
5828
+ /**
5829
+ * Check if a message library is supported by this executor
5830
+ * @param tx - The transaction to add the move call to
5831
+ * @param messageLib - The message library address to check
5832
+ * @returns Transaction result containing the support status
5833
+ */
5834
+ isSupportedMessageLibMoveCall(tx, messageLib) {
5835
+ return tx.moveCall({
5836
+ target: __privateMethod(this, _Executor_instances, target_fn8).call(this, "is_supported_message_lib"),
5837
+ arguments: [tx.object(this.objects.executor), asAddress(tx, messageLib)]
5838
+ });
5839
+ }
5840
+ /**
5841
+ * Check if a message library is supported by this executor
5842
+ * @param messageLib - The message library address to check
5843
+ * @returns Promise<boolean> - True if the message library is supported
5844
+ */
5845
+ async isSupportedMessageLib(messageLib) {
5846
+ return executeSimulate(
5847
+ this.client,
5848
+ (tx) => {
5849
+ this.isSupportedMessageLibMoveCall(tx, messageLib);
5850
+ },
5851
+ (result) => bcs.Bool.parse(result[0].value)
5852
+ );
5853
+ }
5613
5854
  /**
5614
5855
  * Check if an address is allowlisted
5615
5856
  * @param tx - The transaction to add the move call to
@@ -5813,6 +6054,49 @@ var Executor = class {
5813
6054
  (result) => bcs.Address.parse(result[0].value)
5814
6055
  );
5815
6056
  }
6057
+ /**
6058
+ * Get Executor object address from worker registry using this Executor's worker capability (as a move call)
6059
+ * This function chains Move calls to decode worker info and extract the Executor object address
6060
+ * @param tx - The transaction to add the move call to
6061
+ * @returns Transaction result containing the Executor object address
6062
+ */
6063
+ getExecutorObjectAddressMoveCall(tx) {
6064
+ const workerCapAddress = this.workerCapAddressMoveCall(tx);
6065
+ const workerInfoBytes = this.moduleManager.getWorkerRegistry(this.client).getWorkerInfoMoveCall(tx, workerCapAddress);
6066
+ const workerInfo = tx.moveCall({
6067
+ target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::decode`,
6068
+ arguments: [workerInfoBytes]
6069
+ });
6070
+ const executorInfoBytes = tx.moveCall({
6071
+ target: `${this.moduleManager.packages.workerCommon}::worker_info_v1::worker_info`,
6072
+ arguments: [workerInfo]
6073
+ });
6074
+ const executorInfo = tx.moveCall({
6075
+ target: `${this.packageId}::executor_info_v1::decode`,
6076
+ arguments: [executorInfoBytes]
6077
+ });
6078
+ return tx.moveCall({
6079
+ target: `${this.packageId}::executor_info_v1::executor_object`,
6080
+ arguments: [executorInfo]
6081
+ });
6082
+ }
6083
+ /**
6084
+ * Get Executor object address from worker registry using this Executor's worker capability
6085
+ * This function uses Move calls to decode worker info and extract the Executor object address
6086
+ * @returns Promise<string> - The Executor object address
6087
+ * @throws Will throw an error if worker info is not found or if decoding fails
6088
+ */
6089
+ async getExecutorObjectAddress() {
6090
+ return executeSimulate(
6091
+ this.client,
6092
+ (tx) => {
6093
+ this.getExecutorObjectAddressMoveCall(tx);
6094
+ },
6095
+ (result) => {
6096
+ return bcs.Address.parse(result[0].value);
6097
+ }
6098
+ );
6099
+ }
5816
6100
  // === Private Helper Functions ===
5817
6101
  parseDstConfig(data) {
5818
6102
  const config = DstConfigBcs.parse(data);
@@ -5840,10 +6124,17 @@ target_fn8 = function(name, module_name = MODULE_NAME8) {
5840
6124
  // src/modules/workers/executor-fee-lib.ts
5841
6125
  var MODULE_NAME9 = "executor_fee_lib";
5842
6126
  var ExecutorFeeLibErrorCode = {
5843
- // Executor Fee Lib related errors (with ExecutorFeeLib_ prefix)
6127
+ // Executor Fee Lib related errors (matching executor_fee_lib.move)
5844
6128
  ExecutorFeeLib_EEidNotSupported: 1,
5845
- ExecutorFeeLib_EInvalidExecutor: 2,
5846
- ExecutorFeeLib_EExecutorAlreadySet: 3
6129
+ // ExecutorOption related errors (matching executor_option.move)
6130
+ ExecutorOption_ENoOptions: 1,
6131
+ ExecutorOption_EUnsupportedOptionType: 2,
6132
+ ExecutorOption_EZeroLzReceiveGasProvided: 3,
6133
+ ExecutorOption_EZeroLzComposeGasProvided: 4,
6134
+ ExecutorOption_ENativeAmountExceedsCap: 5,
6135
+ ExecutorOption_EInvalidLzReceiveOption: 6,
6136
+ ExecutorOption_EInvalidNativeDropOption: 7,
6137
+ ExecutorOption_EInvalidLzComposeOption: 8
5847
6138
  };
5848
6139
  var _ExecutorFeeLib_instances, target_fn9;
5849
6140
  var ExecutorFeeLib = class {
@@ -5908,6 +6199,10 @@ target_fn9 = function(name, module_name = MODULE_NAME9) {
5908
6199
 
5909
6200
  // src/modules/workers/executor-layerzero.ts
5910
6201
  var MODULE_NAME10 = "executor_layerzero";
6202
+ var ExecutorLayerzeroErrorCode = {
6203
+ // ExecutorLayerzero related errors (matching executor_layerzero.move)
6204
+ ExecutorLayerzero_EWorkerCapNotFromPackage: 1
6205
+ };
5911
6206
  var _ExecutorLayerZero_instances, target_fn10;
5912
6207
  var ExecutorLayerZero = class {
5913
6208
  constructor(packageId, client, moduleManager) {
@@ -5923,23 +6218,26 @@ var ExecutorLayerZero = class {
5923
6218
  * @param tx - The transaction to add the move call to
5924
6219
  * @param workerCap - Worker capability object ID or transaction argument
5925
6220
  * @param depositAddress - Address for fee deposits or transaction argument
6221
+ * @param supportedMessageLibs - Array of supported message library addresses or transaction argument
5926
6222
  * @param priceFeed - Price feed object address or transaction argument
5927
6223
  * @param workerFeeLib - Worker fee library address or transaction argument
5928
6224
  * @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
5929
6225
  * @param owner - Owner address for the executor or transaction argument
5930
6226
  * @param admins - Array of admin addresses or transaction argument
5931
6227
  */
5932
- initExecutorMoveCall(tx, workerCap, depositAddress, priceFeed, workerFeeLib, defaultMultiplierBps, owner, admins) {
6228
+ initExecutorMoveCall(tx, workerCap, depositAddress, supportedMessageLibs, priceFeed, workerFeeLib, defaultMultiplierBps, owner, admins) {
5933
6229
  tx.moveCall({
5934
6230
  target: __privateMethod(this, _ExecutorLayerZero_instances, target_fn10).call(this, "init_executor"),
5935
6231
  arguments: [
5936
6232
  asObject(tx, workerCap),
5937
6233
  asAddress(tx, depositAddress),
6234
+ asAddressVector(tx, supportedMessageLibs),
5938
6235
  asAddress(tx, priceFeed),
5939
6236
  asAddress(tx, workerFeeLib),
5940
6237
  asU16(tx, defaultMultiplierBps),
5941
6238
  asAddress(tx, owner),
5942
- asAddressVector(tx, admins)
6239
+ asAddressVector(tx, admins),
6240
+ tx.object(this.moduleManager.objects.workerRegistry)
5943
6241
  ]
5944
6242
  });
5945
6243
  }
@@ -6436,10 +6734,10 @@ target_fn11 = function(name, module_name = MODULE_NAME11) {
6436
6734
  };
6437
6735
  var MODULE_NAME12 = "treasury";
6438
6736
  var TreasuryErrorCode = {
6439
- // Treasury related errors
6440
- TREASURY_EZroNotEnabled: 1,
6441
- TREASURY_EInvalidFeeRecipient: 2,
6442
- TREASURY_EInvalidNativeFeeBp: 3
6737
+ // Treasury related errors (matching treasury.move)
6738
+ TREASURY_EInvalidFeeRecipient: 1,
6739
+ TREASURY_EInvalidNativeFeeBp: 2,
6740
+ TREASURY_EZroNotEnabled: 3
6443
6741
  };
6444
6742
  var _Treasury_instances, target_fn12;
6445
6743
  var Treasury = class {
@@ -6689,9 +6987,95 @@ target_fn12 = function(name, module_name = MODULE_NAME12) {
6689
6987
  return `${this.packageId}::${module_name}::${name}`;
6690
6988
  };
6691
6989
 
6990
+ // src/modules/workers/worker-registry.ts
6991
+ var MODULE_NAME13 = "worker_registry";
6992
+ var WorkerRegistryErrorCode = {
6993
+ // WorkerRegistry related errors (matching worker_registry.move)
6994
+ EWorkerInfoInvalid: 1,
6995
+ EWorkerInfoNotFound: 2
6996
+ };
6997
+ var _WorkerRegistry_instances, target_fn13;
6998
+ var WorkerRegistry = class {
6999
+ /**
7000
+ * Create a new WorkerRegistry instance
7001
+ * @param packageId - The package ID of the worker registry contract
7002
+ * @param client - The Sui client instance
7003
+ * @param objects - Object options containing contract object IDs
7004
+ * @param moduleManager - Module manager for handling dependencies
7005
+ */
7006
+ constructor(packageId, client, objects, moduleManager) {
7007
+ this.moduleManager = moduleManager;
7008
+ __privateAdd(this, _WorkerRegistry_instances);
7009
+ this.packageId = packageId;
7010
+ this.client = client;
7011
+ this.objects = objects;
7012
+ }
7013
+ // === View Functions ===
7014
+ /**
7015
+ * Get worker info for a specific worker address (as a move call)
7016
+ * This creates a move call that can be used in a PTB (Programmable Transaction Block)
7017
+ * @param tx - The transaction to add the move call to
7018
+ * @param worker - The worker address or transaction argument
7019
+ * @returns TransactionResult - The move call result containing worker info bytes
7020
+ * @throws Will throw an error if worker info is not found (EWorkerInfoNotFound)
7021
+ */
7022
+ getWorkerInfoMoveCall(tx, worker) {
7023
+ return tx.moveCall({
7024
+ target: __privateMethod(this, _WorkerRegistry_instances, target_fn13).call(this, "get_worker_info"),
7025
+ arguments: [tx.object(this.objects.workerRegistry), asAddress(tx, worker)]
7026
+ });
7027
+ }
7028
+ /**
7029
+ * Get worker info for a specific worker address
7030
+ * Executes the get_worker_info function and returns the worker information bytes
7031
+ * @param worker - The worker address to get info for
7032
+ * @returns Promise<Uint8Array> - The worker information bytes containing encoded worker data
7033
+ * @throws Will throw an error if worker info is not found (EWorkerInfoNotFound)
7034
+ */
7035
+ async getWorkerInfo(worker) {
7036
+ return executeSimulate(
7037
+ this.client,
7038
+ (tx) => {
7039
+ this.getWorkerInfoMoveCall(tx, worker);
7040
+ },
7041
+ (result) => {
7042
+ return result[0].value;
7043
+ }
7044
+ );
7045
+ }
7046
+ /**
7047
+ * Check if worker info exists for a specific worker address
7048
+ * This is a convenience method that catches EWorkerInfoNotFound errors
7049
+ * @param worker - The worker address to check
7050
+ * @returns Promise<boolean> - True if worker info exists, false if not found
7051
+ * @throws Will re-throw any errors other than EWorkerInfoNotFound
7052
+ */
7053
+ async hasWorkerInfo(worker) {
7054
+ try {
7055
+ await this.getWorkerInfo(worker);
7056
+ return true;
7057
+ } catch (error) {
7058
+ if (error instanceof Error && error.message.includes("EWorkerInfoNotFound")) {
7059
+ return false;
7060
+ }
7061
+ throw error;
7062
+ }
7063
+ }
7064
+ };
7065
+ _WorkerRegistry_instances = new WeakSet();
7066
+ // === Private Functions ===
7067
+ /**
7068
+ * Generate the target string for move calls
7069
+ * @param functionName - The function name to call
7070
+ * @returns The fully qualified target string for the move call
7071
+ */
7072
+ target_fn13 = function(functionName) {
7073
+ return `${this.packageId}::${MODULE_NAME13}::${functionName}`;
7074
+ };
7075
+
6692
7076
  // src/modules/ptb-builders/dvn-ptb-builder.ts
6693
- var MODULE_NAME13 = "dvn_ptb_builder";
6694
- var _DvnPtbBuilder_instances, target_fn13;
7077
+ var MODULE_NAME14 = "dvn_ptb_builder";
7078
+ var _DvnPtbBuilder_instances, target_fn14;
6695
7079
  var DvnPtbBuilder = class {
6696
7080
  constructor(packageId, client, objects, moduleManager) {
6697
7081
  this.moduleManager = moduleManager;
@@ -6711,7 +7095,7 @@ var DvnPtbBuilder = class {
6711
7095
  */
6712
7096
  buildDvnPtbMoveCall(tx, dvnAddress, feelibAddress, priceFeedAddress) {
6713
7097
  return tx.moveCall({
6714
- target: __privateMethod(this, _DvnPtbBuilder_instances, target_fn13).call(this, "build_dvn_ptb"),
7098
+ target: __privateMethod(this, _DvnPtbBuilder_instances, target_fn14).call(this, "build_dvn_ptb"),
6715
7099
  arguments: [asObject(tx, dvnAddress), asObject(tx, feelibAddress), asObject(tx, priceFeedAddress)]
6716
7100
  });
6717
7101
  }
@@ -6724,15 +7108,21 @@ _DvnPtbBuilder_instances = new WeakSet();
6724
7108
  * @returns The full module path for the move call
6725
7109
  * @private
6726
7110
  */
6727
- target_fn13 = function(name, module_name = MODULE_NAME13) {
7111
+ target_fn14 = function(name, module_name = MODULE_NAME14) {
6728
7112
  return `${this.packageId}::${module_name}::${name}`;
6729
7113
  };
6730
- var LibBuilderManagerErrorCode = {
6731
- // LibBuilderManager related errors (with LibBuilderManager_ prefix)
6732
- LibBuilderManager_EBuilderNotFound: 1
7114
+ var EndpointPtbBuilderErrorCode = {
7115
+ // EndpointPtbBuilder related errors (matching endpoint_ptb_builder.move)
7116
+ EndpointPtbBuilder_EBuilderNotFound: 1,
7117
+ EndpointPtbBuilder_EBuilderRegistered: 2,
7118
+ EndpointPtbBuilder_EBuilderUnsupported: 3,
7119
+ EndpointPtbBuilder_EInvalidBounds: 4,
7120
+ EndpointPtbBuilder_EInvalidBuilderAddress: 5,
7121
+ EndpointPtbBuilder_EInvalidLibrary: 6,
7122
+ EndpointPtbBuilder_EUnauthorized: 7
6733
7123
  };
6734
7124
  var ModuleName = "endpoint_ptb_builder";
6735
- var _EndpointPtbBuilder_instances, target_fn14;
7125
+ var _EndpointPtbBuilder_instances, target_fn15;
6736
7126
  var EndpointPtbBuilder = class {
6737
7127
  constructor(packageId, client, objects, moduleManager) {
6738
7128
  this.moduleManager = moduleManager;
@@ -6749,7 +7139,7 @@ var EndpointPtbBuilder = class {
6749
7139
  */
6750
7140
  registerMsglibPtbBuilderMoveCall(tx, builderInfo) {
6751
7141
  tx.moveCall({
6752
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "register_msglib_ptb_builder"),
7142
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "register_msglib_ptb_builder"),
6753
7143
  arguments: [
6754
7144
  tx.object(this.objects.endpointPtbBuilder),
6755
7145
  tx.object(this.objects.endpointPtbBuilderAdminCap),
@@ -6766,7 +7156,7 @@ var EndpointPtbBuilder = class {
6766
7156
  */
6767
7157
  setDefaultMsglibPtbBuilderMoveCall(tx, messageLib, ptbBuilder) {
6768
7158
  tx.moveCall({
6769
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "set_default_msglib_ptb_builder"),
7159
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "set_default_msglib_ptb_builder"),
6770
7160
  arguments: [
6771
7161
  tx.object(this.objects.endpointPtbBuilder),
6772
7162
  tx.object(this.objects.endpointPtbBuilderAdminCap),
@@ -6782,7 +7172,7 @@ var EndpointPtbBuilder = class {
6782
7172
  */
6783
7173
  setMsglibPtbBuilderMoveCall(tx, call) {
6784
7174
  tx.moveCall({
6785
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "set_msglib_ptb_builder"),
7175
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "set_msglib_ptb_builder"),
6786
7176
  arguments: [tx.object(this.objects.endpointPtbBuilder), call]
6787
7177
  });
6788
7178
  }
@@ -6795,7 +7185,7 @@ var EndpointPtbBuilder = class {
6795
7185
  */
6796
7186
  buildQuotePtbByCallMoveCall(tx, endpointQuoteCall) {
6797
7187
  return tx.moveCall({
6798
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_quote_ptb_by_call"),
7188
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_quote_ptb_by_call"),
6799
7189
  arguments: [
6800
7190
  tx.object(this.objects.endpointPtbBuilder),
6801
7191
  tx.object(this.objects.endpointV2),
@@ -6811,7 +7201,7 @@ var EndpointPtbBuilder = class {
6811
7201
  */
6812
7202
  buildSendPtbByCallMoveCall(tx, endpointSendCall) {
6813
7203
  return tx.moveCall({
6814
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_send_ptb_by_call"),
7204
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_send_ptb_by_call"),
6815
7205
  arguments: [
6816
7206
  tx.object(this.objects.endpointPtbBuilder),
6817
7207
  tx.object(this.objects.endpointV2),
@@ -6827,7 +7217,7 @@ var EndpointPtbBuilder = class {
6827
7217
  */
6828
7218
  buildSetConfigPtbByCallMoveCall(tx, messageLibSetConfigCall) {
6829
7219
  return tx.moveCall({
6830
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_set_config_ptb_by_call"),
7220
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_set_config_ptb_by_call"),
6831
7221
  arguments: [tx.object(this.objects.endpointPtbBuilder), messageLibSetConfigCall]
6832
7222
  });
6833
7223
  }
@@ -6840,7 +7230,7 @@ var EndpointPtbBuilder = class {
6840
7230
  */
6841
7231
  buildQuotePtbMoveCall(tx, sender, dstEid) {
6842
7232
  return tx.moveCall({
6843
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_quote_ptb"),
7233
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_quote_ptb"),
6844
7234
  arguments: [
6845
7235
  tx.object(this.objects.endpointPtbBuilder),
6846
7236
  tx.object(this.objects.endpointV2),
@@ -6859,7 +7249,7 @@ var EndpointPtbBuilder = class {
6859
7249
  */
6860
7250
  buildSendPtbMoveCall(tx, sender, dstEid, refund) {
6861
7251
  return tx.moveCall({
6862
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_send_ptb"),
7252
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_send_ptb"),
6863
7253
  arguments: [
6864
7254
  tx.object(this.objects.endpointPtbBuilder),
6865
7255
  tx.object(this.objects.endpointV2),
@@ -6878,7 +7268,7 @@ var EndpointPtbBuilder = class {
6878
7268
  */
6879
7269
  buildSetConfigPtbMoveCall(tx, sender, lib) {
6880
7270
  return tx.moveCall({
6881
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "build_set_config_ptb"),
7271
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "build_set_config_ptb"),
6882
7272
  arguments: [
6883
7273
  tx.object(this.objects.endpointPtbBuilder),
6884
7274
  tx.object(this.objects.endpointV2),
@@ -6895,7 +7285,7 @@ var EndpointPtbBuilder = class {
6895
7285
  */
6896
7286
  endpointQuoteCallIdMoveCall(tx) {
6897
7287
  return tx.moveCall({
6898
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "endpoint_quote_call_id"),
7288
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "endpoint_quote_call_id"),
6899
7289
  arguments: []
6900
7290
  });
6901
7291
  }
@@ -6919,7 +7309,7 @@ var EndpointPtbBuilder = class {
6919
7309
  */
6920
7310
  endpointSendCallIdMoveCall(tx) {
6921
7311
  return tx.moveCall({
6922
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "endpoint_send_call_id"),
7312
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "endpoint_send_call_id"),
6923
7313
  arguments: []
6924
7314
  });
6925
7315
  }
@@ -6943,7 +7333,7 @@ var EndpointPtbBuilder = class {
6943
7333
  */
6944
7334
  messageLibQuoteCallIdMoveCall(tx) {
6945
7335
  return tx.moveCall({
6946
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "message_lib_quote_call_id"),
7336
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_quote_call_id"),
6947
7337
  arguments: []
6948
7338
  });
6949
7339
  }
@@ -6967,7 +7357,7 @@ var EndpointPtbBuilder = class {
6967
7357
  */
6968
7358
  messageLibSendCallIdMoveCall(tx) {
6969
7359
  return tx.moveCall({
6970
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "message_lib_send_call_id"),
7360
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_send_call_id"),
6971
7361
  arguments: []
6972
7362
  });
6973
7363
  }
@@ -6991,7 +7381,7 @@ var EndpointPtbBuilder = class {
6991
7381
  */
6992
7382
  messageLibSetConfigCallIdMoveCall(tx) {
6993
7383
  return tx.moveCall({
6994
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "message_lib_set_config_call_id"),
7384
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "message_lib_set_config_call_id"),
6995
7385
  arguments: []
6996
7386
  });
6997
7387
  }
@@ -7017,7 +7407,7 @@ var EndpointPtbBuilder = class {
7017
7407
  */
7018
7408
  getDefaultMsglibPtbBuilderMoveCall(tx, lib) {
7019
7409
  return tx.moveCall({
7020
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "get_default_msglib_ptb_builder"),
7410
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_default_msglib_ptb_builder"),
7021
7411
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, lib)]
7022
7412
  });
7023
7413
  }
@@ -7044,7 +7434,7 @@ var EndpointPtbBuilder = class {
7044
7434
  */
7045
7435
  getOappMsglibPtbBuilderMoveCall(tx, oapp, lib) {
7046
7436
  return tx.moveCall({
7047
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "get_oapp_msglib_ptb_builder"),
7437
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_oapp_msglib_ptb_builder"),
7048
7438
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, oapp), asAddress(tx, lib)]
7049
7439
  });
7050
7440
  }
@@ -7072,7 +7462,7 @@ var EndpointPtbBuilder = class {
7072
7462
  */
7073
7463
  getEffectiveMsglibPtbBuilderMoveCall(tx, oapp, lib) {
7074
7464
  return tx.moveCall({
7075
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "get_effective_msglib_ptb_builder"),
7465
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_effective_msglib_ptb_builder"),
7076
7466
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, oapp), asAddress(tx, lib)]
7077
7467
  });
7078
7468
  }
@@ -7099,7 +7489,7 @@ var EndpointPtbBuilder = class {
7099
7489
  */
7100
7490
  getMsglibPtbBuilderInfoMoveCall(tx, builder) {
7101
7491
  return tx.moveCall({
7102
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "get_msglib_ptb_builder_info"),
7492
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "get_msglib_ptb_builder_info"),
7103
7493
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, builder)]
7104
7494
  });
7105
7495
  }
@@ -7111,7 +7501,7 @@ var EndpointPtbBuilder = class {
7111
7501
  */
7112
7502
  isMsglibPtbBuilderRegisteredMoveCall(tx, builder) {
7113
7503
  return tx.moveCall({
7114
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "is_msglib_ptb_builder_registered"),
7504
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "is_msglib_ptb_builder_registered"),
7115
7505
  arguments: [tx.object(this.objects.endpointPtbBuilder), asAddress(tx, builder)]
7116
7506
  });
7117
7507
  }
@@ -7136,7 +7526,7 @@ var EndpointPtbBuilder = class {
7136
7526
  */
7137
7527
  registeredMsglibPtbBuildersCountMoveCall(tx) {
7138
7528
  return tx.moveCall({
7139
- target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn14).call(this, "registered_msglib_ptb_builders_count"),
7529
+ target: __privateMethod(this, _EndpointPtbBuilder_instances, target_fn15).call(this, "registered_msglib_ptb_builders_count"),
7140
7530
  arguments: [tx.object(this.objects.endpointPtbBuilder)]
7141
7531
  });
7142
7532
  }
@@ -7162,13 +7552,13 @@ _EndpointPtbBuilder_instances = new WeakSet();
7162
7552
  * @returns The full module path for the move call
7163
7553
  * @private
7164
7554
  */
7165
- target_fn14 = function(name) {
7555
+ target_fn15 = function(name) {
7166
7556
  return `${this.packageId}::${ModuleName}::${name}`;
7167
7557
  };
7168
7558
 
7169
7559
  // src/modules/ptb-builders/executor-ptb-builder.ts
7170
- var MODULE_NAME14 = "executor_ptb_builder";
7171
- var _ExecutorPtbBuilder_instances, target_fn15;
7560
+ var MODULE_NAME15 = "executor_ptb_builder";
7561
+ var _ExecutorPtbBuilder_instances, target_fn16;
7172
7562
  var ExecutorPtbBuilder = class {
7173
7563
  constructor(packageId, client, objects, moduleManager) {
7174
7564
  this.moduleManager = moduleManager;
@@ -7188,7 +7578,7 @@ var ExecutorPtbBuilder = class {
7188
7578
  */
7189
7579
  buildExecutorPtbMoveCall(tx, executorAddress, feelibAddress, priceFeedAddress) {
7190
7580
  return tx.moveCall({
7191
- target: __privateMethod(this, _ExecutorPtbBuilder_instances, target_fn15).call(this, "build_executor_ptb"),
7581
+ target: __privateMethod(this, _ExecutorPtbBuilder_instances, target_fn16).call(this, "build_executor_ptb"),
7192
7582
  arguments: [asObject(tx, executorAddress), asObject(tx, feelibAddress), asObject(tx, priceFeedAddress)]
7193
7583
  });
7194
7584
  }
@@ -7201,15 +7591,15 @@ _ExecutorPtbBuilder_instances = new WeakSet();
7201
7591
  * @returns The full module path for the move call
7202
7592
  * @private
7203
7593
  */
7204
- target_fn15 = function(name, module_name = MODULE_NAME14) {
7594
+ target_fn16 = function(name, module_name = MODULE_NAME15) {
7205
7595
  return `${this.packageId}::${module_name}::${name}`;
7206
7596
  };
7207
- var MODULE_NAME15 = "package_whitelist_validator";
7597
+ var MODULE_NAME16 = "package_whitelist_validator";
7208
7598
  var ValidatorErrorCode = {
7209
7599
  // PTB Whitelist related errors
7210
7600
  EInvalidWitness: 1
7211
7601
  };
7212
- var _PackageWhitelistValidator_instances, target_fn16;
7602
+ var _PackageWhitelistValidator_instances, target_fn17;
7213
7603
  var PackageWhitelistValidator = class {
7214
7604
  constructor(packageId, client, objects, moduleManager) {
7215
7605
  this.moduleManager = moduleManager;
@@ -7229,7 +7619,7 @@ var PackageWhitelistValidator = class {
7229
7619
  */
7230
7620
  addWhitelistMoveCall(tx, witness, witnessType) {
7231
7621
  tx.moveCall({
7232
- target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn16).call(this, "add_whitelist"),
7622
+ target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "add_whitelist"),
7233
7623
  typeArguments: [witnessType],
7234
7624
  arguments: [tx.object(this.objects.packageWhitelistValidator), witness]
7235
7625
  });
@@ -7243,7 +7633,7 @@ var PackageWhitelistValidator = class {
7243
7633
  */
7244
7634
  isWhitelistedMoveCall(tx, packageAddress) {
7245
7635
  return tx.moveCall({
7246
- target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn16).call(this, "is_whitelisted"),
7636
+ target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "is_whitelisted"),
7247
7637
  arguments: [tx.object(this.objects.packageWhitelistValidator), asAddress(tx, packageAddress)]
7248
7638
  });
7249
7639
  }
@@ -7255,7 +7645,7 @@ var PackageWhitelistValidator = class {
7255
7645
  */
7256
7646
  validateMoveCall(tx, packageAddresses) {
7257
7647
  return tx.moveCall({
7258
- target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn16).call(this, "validate"),
7648
+ target: __privateMethod(this, _PackageWhitelistValidator_instances, target_fn17).call(this, "validate"),
7259
7649
  arguments: [
7260
7650
  tx.object(this.objects.packageWhitelistValidator),
7261
7651
  tx.pure(bcs.vector(bcs.Address).serialize(packageAddresses))
@@ -7316,11 +7706,18 @@ _PackageWhitelistValidator_instances = new WeakSet();
7316
7706
  * @returns The full module path for the move call
7317
7707
  * @private
7318
7708
  */
7319
- target_fn16 = function(name, module_name = MODULE_NAME15) {
7709
+ target_fn17 = function(name, module_name = MODULE_NAME16) {
7320
7710
  return `${this.packageId}::${module_name}::${name}`;
7321
7711
  };
7322
7712
  var MOVE_CALL_MODULE_NAME = "move_call";
7323
- var _PtbBuilder_instances, buildMoveCalls_fn, appendMoveCall_fn, decodeMoveCalls_fn, decodeMoveCallsBytes_fn, calculateOffset_fn;
7713
+ var PtbBuilderErrorCode = {
7714
+ // MoveCallsBuilder related errors (matching move_calls_builder.move)
7715
+ MoveCallsBuilder_EInvalidMoveCallResult: 1,
7716
+ MoveCallsBuilder_EResultIDNotFound: 2,
7717
+ // Argument related errors (matching argument.move)
7718
+ Argument_EInvalidArgument: 1
7719
+ };
7720
+ var _PtbBuilder_instances, buildMoveCalls_fn, appendMoveCall_fn, decodeMoveCalls_fn, decodeMoveCallsFromOAppInfoV1_fn, decodeMoveCallsBytes_fn, calculateOffset_fn;
7324
7721
  var PtbBuilder = class {
7325
7722
  constructor(packageId, client) {
7326
7723
  __privateAdd(this, _PtbBuilder_instances);
@@ -7349,8 +7746,8 @@ var PtbBuilder = class {
7349
7746
  const ptbCallsResult = await simulateTransaction(this.client, tx, sender);
7350
7747
  const buffer = Buffer.from(bcs.vector(bcs.u8()).parse(ptbCallsResult[0].value));
7351
7748
  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)));
7749
+ if (version === OAppInfoVersion.VERSION_1) {
7750
+ return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsFromOAppInfoV1_fn).call(this, new Uint8Array(buffer.subarray(2)));
7354
7751
  }
7355
7752
  throw new Error(`Unknown version: ${version}`);
7356
7753
  }
@@ -7509,6 +7906,10 @@ decodeMoveCalls_fn = function(viewResult) {
7509
7906
  }
7510
7907
  return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsBytes_fn).call(this, value);
7511
7908
  };
7909
+ decodeMoveCallsFromOAppInfoV1_fn = function(bytes) {
7910
+ const oappInfo = OAppInfoV1Bcs.parse(bytes);
7911
+ return __privateMethod(this, _PtbBuilder_instances, decodeMoveCallsBytes_fn).call(this, new Uint8Array(oappInfo.lz_receive_info).subarray(2));
7912
+ };
7512
7913
  /**
7513
7914
  * Decode move calls from raw bytes
7514
7915
  * @param bytes - The raw bytes containing encoded move calls
@@ -7562,8 +7963,8 @@ calculateOffset_fn = function(index, baseOffset, placeholderInfos) {
7562
7963
  };
7563
7964
 
7564
7965
  // src/modules/ptb-builders/simple-message-lib-ptb-builder.ts
7565
- var MODULE_NAME16 = "simple_msglib_ptb_builder";
7566
- var _SimpleMessageLibPtbBuilder_instances, target_fn17;
7966
+ var MODULE_NAME17 = "simple_msglib_ptb_builder";
7967
+ var _SimpleMessageLibPtbBuilder_instances, target_fn18;
7567
7968
  var SimpleMessageLibPtbBuilder = class {
7568
7969
  constructor(packageId, client, objects, moduleManager) {
7569
7970
  this.moduleManager = moduleManager;
@@ -7580,7 +7981,7 @@ var SimpleMessageLibPtbBuilder = class {
7580
7981
  */
7581
7982
  getPtbBuilderInfoMoveCall(tx) {
7582
7983
  return tx.moveCall({
7583
- target: __privateMethod(this, _SimpleMessageLibPtbBuilder_instances, target_fn17).call(this, "get_ptb_builder_info"),
7984
+ target: __privateMethod(this, _SimpleMessageLibPtbBuilder_instances, target_fn18).call(this, "get_ptb_builder_info"),
7584
7985
  arguments: [
7585
7986
  tx.object(this.objects.simpleMessageLibPtbBuilder),
7586
7987
  tx.object(this.objects.endpointV2),
@@ -7597,11 +7998,15 @@ _SimpleMessageLibPtbBuilder_instances = new WeakSet();
7597
7998
  * @returns The full module path for the move call
7598
7999
  * @private
7599
8000
  */
7600
- target_fn17 = function(name, module_name = MODULE_NAME16) {
8001
+ target_fn18 = function(name, module_name = MODULE_NAME17) {
7601
8002
  return `${this.packageId}::${module_name}::${name}`;
7602
8003
  };
7603
- var MODULE_NAME17 = "uln_302_ptb_builder";
7604
- var _Uln302PtbBuilder_instances, target_fn18;
8004
+ var MODULE_NAME18 = "uln_302_ptb_builder";
8005
+ var Uln302PtbBuilderErrorCode = {
8006
+ // ULN302 PTB Builder related errors (matching uln_302_ptb_builder.move)
8007
+ Uln302PtbBuilder_EWorkerPtbsNotFound: 1
8008
+ };
8009
+ var _Uln302PtbBuilder_instances, target_fn19;
7605
8010
  var Uln302PtbBuilder = class {
7606
8011
  constructor(packageId, client, objects, moduleManager) {
7607
8012
  this.moduleManager = moduleManager;
@@ -7618,7 +8023,7 @@ var Uln302PtbBuilder = class {
7618
8023
  */
7619
8024
  setWorkerPtbsMoveCall(tx, call) {
7620
8025
  tx.moveCall({
7621
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "set_worker_ptbs"),
8026
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "set_worker_ptbs"),
7622
8027
  arguments: [tx.object(this.objects.uln302PtbBuilder), call]
7623
8028
  });
7624
8029
  }
@@ -7630,7 +8035,7 @@ var Uln302PtbBuilder = class {
7630
8035
  */
7631
8036
  getPtbBuilderInfoMoveCall(tx) {
7632
8037
  return tx.moveCall({
7633
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "get_ptb_builder_info"),
8038
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "get_ptb_builder_info"),
7634
8039
  arguments: [
7635
8040
  tx.object(this.objects.uln302PtbBuilder),
7636
8041
  tx.object(this.objects.uln302),
@@ -7647,7 +8052,7 @@ var Uln302PtbBuilder = class {
7647
8052
  */
7648
8053
  isWorkerPtbsSetMoveCall(tx, workerCap) {
7649
8054
  return tx.moveCall({
7650
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "is_worker_ptbs_set"),
8055
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "is_worker_ptbs_set"),
7651
8056
  arguments: [tx.object(this.objects.uln302PtbBuilder), asAddress(tx, workerCap)]
7652
8057
  });
7653
8058
  }
@@ -7673,7 +8078,7 @@ var Uln302PtbBuilder = class {
7673
8078
  */
7674
8079
  getWorkerPtbsMoveCall(tx, workerCap) {
7675
8080
  return tx.moveCall({
7676
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "get_worker_ptbs"),
8081
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "get_worker_ptbs"),
7677
8082
  arguments: [tx.object(this.objects.uln302PtbBuilder), asAddress(tx, workerCap)]
7678
8083
  });
7679
8084
  }
@@ -7685,7 +8090,7 @@ var Uln302PtbBuilder = class {
7685
8090
  */
7686
8091
  executorGetFeeCallIdMoveCall(tx) {
7687
8092
  return tx.moveCall({
7688
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "executor_get_fee_call_id"),
8093
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "executor_get_fee_call_id"),
7689
8094
  arguments: []
7690
8095
  });
7691
8096
  }
@@ -7709,7 +8114,7 @@ var Uln302PtbBuilder = class {
7709
8114
  */
7710
8115
  dvnGetFeeMultiCallIdMoveCall(tx) {
7711
8116
  return tx.moveCall({
7712
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "dvn_get_fee_multi_call_id"),
8117
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "dvn_get_fee_multi_call_id"),
7713
8118
  arguments: []
7714
8119
  });
7715
8120
  }
@@ -7733,7 +8138,7 @@ var Uln302PtbBuilder = class {
7733
8138
  */
7734
8139
  executorAssignJobCallIdMoveCall(tx) {
7735
8140
  return tx.moveCall({
7736
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "executor_assign_job_call_id"),
8141
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "executor_assign_job_call_id"),
7737
8142
  arguments: []
7738
8143
  });
7739
8144
  }
@@ -7757,7 +8162,7 @@ var Uln302PtbBuilder = class {
7757
8162
  */
7758
8163
  dvnAssignJobMultiCallIdMoveCall(tx) {
7759
8164
  return tx.moveCall({
7760
- target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn18).call(this, "dvn_assign_job_multi_call_id"),
8165
+ target: __privateMethod(this, _Uln302PtbBuilder_instances, target_fn19).call(this, "dvn_assign_job_multi_call_id"),
7761
8166
  arguments: []
7762
8167
  });
7763
8168
  }
@@ -7783,13 +8188,13 @@ _Uln302PtbBuilder_instances = new WeakSet();
7783
8188
  * @returns The full module path for the move call
7784
8189
  * @private
7785
8190
  */
7786
- target_fn18 = function(name, module_name = MODULE_NAME17) {
8191
+ target_fn19 = function(name, module_name = MODULE_NAME18) {
7787
8192
  return `${this.packageId}::${module_name}::${name}`;
7788
8193
  };
7789
8194
 
7790
8195
  // src/modules/ptb-builders/blocked-message-lib-ptb-builder.ts
7791
- var MODULE_NAME18 = "blocked_msglib_ptb_builder";
7792
- var _BlockedMessageLibPtbBuilder_instances, target_fn19;
8196
+ var MODULE_NAME19 = "blocked_msglib_ptb_builder";
8197
+ var _BlockedMessageLibPtbBuilder_instances, target_fn20;
7793
8198
  var BlockedMessageLibPtbBuilder = class {
7794
8199
  constructor(packageId, client, objects, moduleManager) {
7795
8200
  this.moduleManager = moduleManager;
@@ -7806,7 +8211,7 @@ var BlockedMessageLibPtbBuilder = class {
7806
8211
  */
7807
8212
  getPtbBuilderInfoMoveCall(tx) {
7808
8213
  return tx.moveCall({
7809
- target: __privateMethod(this, _BlockedMessageLibPtbBuilder_instances, target_fn19).call(this, "get_ptb_builder_info"),
8214
+ target: __privateMethod(this, _BlockedMessageLibPtbBuilder_instances, target_fn20).call(this, "get_ptb_builder_info"),
7810
8215
  arguments: [tx.object(this.objects.blockedMessageLibPtbBuilder), tx.object(this.objects.blockedMessageLib)]
7811
8216
  });
7812
8217
  }
@@ -7819,22 +8224,22 @@ _BlockedMessageLibPtbBuilder_instances = new WeakSet();
7819
8224
  * @returns The full module path for the move call
7820
8225
  * @private
7821
8226
  */
7822
- target_fn19 = function(name, module_name = MODULE_NAME18) {
8227
+ target_fn20 = function(name, module_name = MODULE_NAME19) {
7823
8228
  return `${this.packageId}::${module_name}::${name}`;
7824
8229
  };
7825
- var MODULE_NAME19 = "counter";
8230
+ var MODULE_NAME20 = "counter";
7826
8231
  var CounterErrorCode = {
7827
- // Counter related errors
8232
+ // Counter related errors (matching counter.move)
7828
8233
  Counter_EInvalidMsgType: 0,
7829
8234
  Counter_EInvalidValue: 1,
7830
8235
  Counter_EInvalidNonce: 2,
7831
8236
  Counter_EOnlyEndpoint: 3,
7832
8237
  Counter_ESelfComposeOnly: 4,
7833
8238
  Counter_EInvalidOApp: 5,
7834
- Counter_EInvalidAdminCap: 6,
7835
- Counter_EAlreadyInitialized: 7
8239
+ // OptionsBuilder related errors (matching options_builder.move)
8240
+ OptionsBuilder_EInvalidSize: 1
7836
8241
  };
7837
- var _Counter_instances, target_fn20;
8242
+ var _Counter_instances, target_fn21;
7838
8243
  var Counter = class {
7839
8244
  constructor(packageId, client, objects, moduleManager) {
7840
8245
  this.moduleManager = moduleManager;
@@ -7852,7 +8257,7 @@ var Counter = class {
7852
8257
  */
7853
8258
  initCounterMoveCall(tx, lzReceiveInfo, lzComposeInfo) {
7854
8259
  tx.moveCall({
7855
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "init_counter"),
8260
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "init_counter"),
7856
8261
  arguments: [
7857
8262
  tx.object(this.objects.counter),
7858
8263
  tx.object(this.objects.counterOapp),
@@ -7871,10 +8276,10 @@ var Counter = class {
7871
8276
  * @param payInZero - Whether to pay in ZRO tokens
7872
8277
  * @returns Promise<MessagingFee> - The calculated messaging fees
7873
8278
  */
7874
- async quote(dstEid, msgType, options, payInZero) {
8279
+ async quote(dstEid, msgType, options, payInZero, validators) {
7875
8280
  const tx = new Transaction();
7876
8281
  const quoteCall = tx.moveCall({
7877
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "quote"),
8282
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "quote"),
7878
8283
  arguments: [
7879
8284
  tx.object(this.objects.counter),
7880
8285
  tx.object(this.objects.counterOapp),
@@ -7884,7 +8289,7 @@ var Counter = class {
7884
8289
  asBool(tx, payInZero)
7885
8290
  ]
7886
8291
  });
7887
- return this.moduleManager.getEndpoint().quote(tx, quoteCall);
8292
+ return this.moduleManager.getEndpoint().quote(tx, quoteCall, void 0, validators);
7888
8293
  }
7889
8294
  /**
7890
8295
  * Increment counter on destination chain
@@ -7898,11 +8303,11 @@ var Counter = class {
7898
8303
  * @param zroFee - ZRO token fee amount
7899
8304
  * @param refundAddress - Address for fee refunds
7900
8305
  */
7901
- async incrementMoveCall(tx, sender, dstEid, msgType, options, sendValue, nativeFee, zroFee, refundAddress) {
8306
+ async incrementMoveCall(tx, sender, dstEid, msgType, options, sendValue, nativeFee, zroFee, refundAddress, validators) {
7902
8307
  const [nativeToken] = tx.splitCoins(tx.gas, [asU64(tx, nativeFee)]);
7903
8308
  const zroToken = isTransactionArgument(zroFee) ? zroFee : await this.moduleManager.getZro().splitOptionZroTokenMoveCall(tx, sender, zroFee);
7904
8309
  const incrementCall = tx.moveCall({
7905
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "increment"),
8310
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "increment"),
7906
8311
  arguments: [
7907
8312
  tx.object(this.objects.counter),
7908
8313
  tx.object(this.objects.counterOapp),
@@ -7915,64 +8320,50 @@ var Counter = class {
7915
8320
  asAddress(tx, refundAddress)
7916
8321
  ]
7917
8322
  });
7918
- await this.moduleManager.getEndpoint().populateSendTransaction(tx, incrementCall, sender);
8323
+ await this.moduleManager.getEndpoint().populateSendTransaction(tx, incrementCall, sender, validators);
7919
8324
  }
7920
8325
  /**
7921
- * Set peer counter on another chain
8326
+ * Set LayerZero compose information for counter
7922
8327
  * @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
8328
+ * @param lzComposeInfo - LayerZero compose information as bytes
7926
8329
  */
7927
- setPeerMoveCall(tx, messagingChannel, eid, peer) {
8330
+ setLzComposeInfoMoveCall(tx, lzComposeInfo) {
7928
8331
  tx.moveCall({
7929
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "set_peer"),
8332
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "set_lz_compose_info"),
7930
8333
  arguments: [
7931
8334
  tx.object(this.objects.counter),
7932
8335
  tx.object(this.objects.counterOapp),
7933
8336
  tx.object(this.objects.counterAdminCap),
7934
8337
  tx.object(this.objects.endpointV2),
7935
- asObject(tx, messagingChannel),
7936
- asU32(tx, eid),
7937
- asBytes32(tx, peer, this.moduleManager.getUtils())
8338
+ asBytes(tx, lzComposeInfo)
7938
8339
  ]
7939
8340
  });
7940
8341
  }
8342
+ // === View Functions ===
7941
8343
  /**
7942
- * Set delegate for the counter
8344
+ * Get counter EID
7943
8345
  * @param tx - The transaction to add the move call to
7944
- * @param newDelegate - The new delegate address or transaction argument
8346
+ * @returns Transaction result containing the counter EID
7945
8347
  */
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
- ]
8348
+ getEidMoveCall(tx) {
8349
+ return tx.moveCall({
8350
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "eid"),
8351
+ arguments: [tx.object(this.objects.counter)]
7956
8352
  });
7957
8353
  }
7958
8354
  /**
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
8355
+ * Get counter EID
8356
+ * @returns Promise<number> - The counter EID
7962
8357
  */
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
- });
8358
+ async getEid() {
8359
+ return executeSimulate(
8360
+ this.client,
8361
+ (tx) => {
8362
+ this.getEidMoveCall(tx);
8363
+ },
8364
+ (result) => bcs.U32.parse(result[0].value)
8365
+ );
7974
8366
  }
7975
- // === View Functions ===
7976
8367
  /**
7977
8368
  * Get call capability address for counter
7978
8369
  * @param tx - The transaction to add the move call to
@@ -7980,7 +8371,7 @@ var Counter = class {
7980
8371
  */
7981
8372
  getCallCapAddressMoveCall(tx) {
7982
8373
  return tx.moveCall({
7983
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "call_cap_address"),
8374
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "call_cap_address"),
7984
8375
  arguments: [tx.object(this.objects.counter)]
7985
8376
  });
7986
8377
  }
@@ -8004,7 +8395,7 @@ var Counter = class {
8004
8395
  */
8005
8396
  getComposerAddressMoveCall(tx) {
8006
8397
  return tx.moveCall({
8007
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "composer_address"),
8398
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "composer_address"),
8008
8399
  arguments: [tx.object(this.objects.counter)]
8009
8400
  });
8010
8401
  }
@@ -8028,7 +8419,7 @@ var Counter = class {
8028
8419
  */
8029
8420
  getCountMoveCall(tx) {
8030
8421
  return tx.moveCall({
8031
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_count"),
8422
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_count"),
8032
8423
  arguments: [tx.object(this.objects.counter)]
8033
8424
  });
8034
8425
  }
@@ -8052,7 +8443,7 @@ var Counter = class {
8052
8443
  */
8053
8444
  getComposedCountMoveCall(tx) {
8054
8445
  return tx.moveCall({
8055
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_composed_count"),
8446
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_composed_count"),
8056
8447
  arguments: [tx.object(this.objects.counter)]
8057
8448
  });
8058
8449
  }
@@ -8077,7 +8468,7 @@ var Counter = class {
8077
8468
  */
8078
8469
  getOutboundCountMoveCall(tx, dstEid) {
8079
8470
  return tx.moveCall({
8080
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_outbound_count"),
8471
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_outbound_count"),
8081
8472
  arguments: [tx.object(this.objects.counter), asU32(tx, dstEid)]
8082
8473
  });
8083
8474
  }
@@ -8103,7 +8494,7 @@ var Counter = class {
8103
8494
  */
8104
8495
  getInboundCountMoveCall(tx, srcEid) {
8105
8496
  return tx.moveCall({
8106
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_inbound_count"),
8497
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_inbound_count"),
8107
8498
  arguments: [tx.object(this.objects.counter), asU32(tx, srcEid)]
8108
8499
  });
8109
8500
  }
@@ -8123,7 +8514,7 @@ var Counter = class {
8123
8514
  }
8124
8515
  nextNonceMoveCall(tx, srcEid, sender) {
8125
8516
  return tx.moveCall({
8126
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "next_nonce"),
8517
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "next_nonce"),
8127
8518
  arguments: [
8128
8519
  tx.object(this.objects.counter),
8129
8520
  asU32(tx, srcEid),
@@ -8142,7 +8533,7 @@ var Counter = class {
8142
8533
  }
8143
8534
  getMaxReceivedNonceMoveCall(tx, srcEid, sender) {
8144
8535
  return tx.moveCall({
8145
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "get_max_received_nonce"),
8536
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "get_max_received_nonce"),
8146
8537
  arguments: [
8147
8538
  tx.object(this.objects.counter),
8148
8539
  asU32(tx, srcEid),
@@ -8161,7 +8552,7 @@ var Counter = class {
8161
8552
  }
8162
8553
  isOrderedNonceMoveCall(tx) {
8163
8554
  return tx.moveCall({
8164
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "is_ordered_nonce"),
8555
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "is_ordered_nonce"),
8165
8556
  arguments: [tx.object(this.objects.counter)]
8166
8557
  });
8167
8558
  }
@@ -8177,7 +8568,7 @@ var Counter = class {
8177
8568
  // === PTB Builder Functions ===
8178
8569
  lzReceiveInfoMoveCall(tx) {
8179
8570
  return tx.moveCall({
8180
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "lz_receive_info", "counter_ptb_builder"),
8571
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "lz_receive_info", "counter_ptb_builder"),
8181
8572
  arguments: [
8182
8573
  tx.object(this.objects.counter),
8183
8574
  tx.object(this.objects.counterOapp),
@@ -8188,7 +8579,7 @@ var Counter = class {
8188
8579
  }
8189
8580
  lzComposeInfoMoveCall(tx) {
8190
8581
  return tx.moveCall({
8191
- target: __privateMethod(this, _Counter_instances, target_fn20).call(this, "lz_compose_info", "counter_ptb_builder"),
8582
+ target: __privateMethod(this, _Counter_instances, target_fn21).call(this, "lz_compose_info", "counter_ptb_builder"),
8192
8583
  arguments: [
8193
8584
  tx.object(this.objects.counter),
8194
8585
  tx.object(this.objects.counterOapp),
@@ -8207,33 +8598,44 @@ _Counter_instances = new WeakSet();
8207
8598
  * @returns The full module path for the move call
8208
8599
  * @private
8209
8600
  */
8210
- target_fn20 = function(name, module_name = MODULE_NAME19) {
8601
+ target_fn21 = function(name, module_name = MODULE_NAME20) {
8211
8602
  return `${this.packageId}::${module_name}::${name}`;
8212
8603
  };
8213
- var MODULE_NAME20 = "oapp";
8604
+ var MODULE_NAME21 = "oapp";
8214
8605
  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;
8606
+ // OApp related errors (matching oapp.move)
8607
+ OApp_EInvalidAdminCap: 1,
8608
+ OApp_EInvalidOAppCap: 2,
8609
+ OApp_EInvalidRefundAddress: 3,
8610
+ OApp_EInvalidSendingCall: 4,
8611
+ OApp_EOnlyEndpoint: 5,
8612
+ OApp_EOnlyPeer: 6,
8613
+ OApp_ESendingInProgress: 7,
8614
+ // OAppPeer related errors (matching oapp_peer.move)
8615
+ OAppPeer_EPeerNotFound: 0,
8616
+ OAppPeer_EInvalidPeer: 1,
8617
+ // EnforcedOptions related errors (matching enforced_options.move)
8618
+ EnforcedOptions_EEnforcedOptionsNotFound: 1,
8619
+ EnforcedOptions_EInvalidOptionsLength: 2,
8620
+ EnforcedOptions_EInvalidOptionsType: 3,
8621
+ // OAppInfoV1 related errors (matching oapp_info_v1.move)
8622
+ OAppInfoV1_EInvalidData: 1,
8623
+ OAppInfoV1_EInvalidVersion: 2
8624
+ };
8625
+ var _OApp_instances, oappInfo_fn, target_fn22;
8229
8626
  var OApp = class {
8230
- constructor(packageId, client, objects, moduleManager) {
8627
+ constructor(packageId, oappCallCapId, client, objects, moduleManager) {
8231
8628
  this.moduleManager = moduleManager;
8232
8629
  __privateAdd(this, _OApp_instances);
8630
+ this.oappInfo = null;
8233
8631
  this.packageId = packageId;
8632
+ this.oappCallCapId = oappCallCapId;
8234
8633
  this.client = client;
8235
8634
  this.objects = objects;
8236
8635
  }
8636
+ // setOAppInfo(oappInfo: OAppInfoV1): void {
8637
+ // this.oappInfo = oappInfo
8638
+ // }
8237
8639
  // === Set Functions ===
8238
8640
  /**
8239
8641
  * Set enforced options for OApp messaging
@@ -8244,11 +8646,13 @@ var OApp = class {
8244
8646
  * @param msgType - Message type or transaction argument
8245
8647
  * @param options - Enforced options as bytes or transaction argument
8246
8648
  */
8247
- setEnforcedOptionsMoveCall(tx, oapp, adminCap, eid, msgType, options) {
8649
+ async setEnforcedOptionsMoveCall(tx, eid, msgType, options) {
8650
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8651
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8248
8652
  tx.moveCall({
8249
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "set_enforced_options"),
8653
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_enforced_options"),
8250
8654
  arguments: [
8251
- asObject(tx, oapp),
8655
+ asObject(tx, oappInfo.oapp_object),
8252
8656
  asObject(tx, adminCap),
8253
8657
  asU32(tx, eid),
8254
8658
  asU16(tx, msgType),
@@ -8264,12 +8668,17 @@ var OApp = class {
8264
8668
  * @param eid - Peer endpoint ID or transaction argument
8265
8669
  * @param peer - Peer OApp address as bytes or transaction argument
8266
8670
  */
8267
- setPeerMoveCall(tx, oapp, adminCap, eid, peer) {
8671
+ async setPeerMoveCall(tx, eid, peer) {
8672
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8673
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8674
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
8268
8675
  tx.moveCall({
8269
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "set_peer"),
8676
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_peer"),
8270
8677
  arguments: [
8271
- asObject(tx, oapp),
8678
+ asObject(tx, oappInfo.oapp_object),
8272
8679
  asObject(tx, adminCap),
8680
+ asObject(tx, this.objects.endpointV2),
8681
+ asObject(tx, messagingChannel),
8273
8682
  asU32(tx, eid),
8274
8683
  asBytes32(tx, peer, this.moduleManager.getUtils())
8275
8684
  ]
@@ -8277,53 +8686,54 @@ var OApp = class {
8277
8686
  }
8278
8687
  // === View Functions ===
8279
8688
  /**
8280
- * Get admin address for OApp
8689
+ * Get admin capability address for OApp
8281
8690
  * @param tx - The transaction to add the move call to
8282
8691
  * @param oapp - The OApp object ID or transaction argument
8283
- * @returns Transaction result containing the admin address
8692
+ * @returns Transaction result containing the admin capability address
8284
8693
  */
8285
- getAdminMoveCall(tx, oapp) {
8694
+ getAdminCapMoveCall(tx, oapp) {
8286
8695
  return tx.moveCall({
8287
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "admin"),
8696
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "admin_cap"),
8288
8697
  arguments: [asObject(tx, oapp)]
8289
8698
  });
8290
8699
  }
8291
8700
  /**
8292
- * Get admin address for OApp
8701
+ * Get admin capability address for OApp
8293
8702
  * @param oapp - The OApp object ID
8294
- * @returns Promise<string> - The admin address
8703
+ * @returns Promise<string> - The admin capability address
8295
8704
  */
8296
- async getAdmin(oapp) {
8705
+ async getAdminCap(oapp) {
8297
8706
  return executeSimulate(
8298
8707
  this.client,
8299
8708
  (tx) => {
8300
- this.getAdminMoveCall(tx, oapp);
8709
+ this.getAdminCapMoveCall(tx, oapp);
8301
8710
  },
8302
8711
  (result) => bcs.Address.parse(result[0].value)
8303
8712
  );
8304
8713
  }
8305
8714
  /**
8306
- * Get OApp address (call capability ID)
8715
+ * Get OApp CallCap identifier
8307
8716
  * @param tx - The transaction to add the move call to
8308
8717
  * @param oapp - The OApp object ID or transaction argument
8309
- * @returns Transaction result containing the OApp address
8718
+ * @returns Transaction result containing the OApp CallCap identifier
8310
8719
  */
8311
- getOAppAddressMoveCall(tx, oapp) {
8720
+ async getOAppCapIdMoveCall(tx) {
8721
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8312
8722
  return tx.moveCall({
8313
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "oapp_address"),
8314
- arguments: [asObject(tx, oapp)]
8723
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "oapp_cap_id"),
8724
+ arguments: [asObject(tx, oappInfo.oapp_object)]
8315
8725
  });
8316
8726
  }
8317
8727
  /**
8318
- * Get OApp address (call capability ID)
8319
- * @param oapp - The OApp object ID
8320
- * @returns Promise<string> - The OApp address
8728
+ * Get OApp CallCap identifier
8729
+ * @param oapp - The OApp object ID (optional, uses configured oapp if not provided)
8730
+ * @returns Promise<string> - The OApp CallCap identifier
8321
8731
  */
8322
- async getOAppAddress(oapp) {
8732
+ async getOAppCapId() {
8323
8733
  return executeSimulate(
8324
8734
  this.client,
8325
- (tx) => {
8326
- this.getOAppAddressMoveCall(tx, oapp);
8735
+ async (tx) => {
8736
+ await this.getOAppCapIdMoveCall(tx);
8327
8737
  },
8328
8738
  (result) => bcs.Address.parse(result[0].value)
8329
8739
  );
@@ -8337,10 +8747,16 @@ var OApp = class {
8337
8747
  * @param extraOptions - Extra options to combine with enforced options or transaction argument
8338
8748
  * @returns Transaction result containing combined options
8339
8749
  */
8340
- combineOptionsMoveCall(tx, oapp, eid, msgType, extraOptions) {
8750
+ async combineOptionsMoveCall(tx, eid, msgType, extraOptions) {
8751
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8341
8752
  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)]
8753
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "combine_options"),
8754
+ arguments: [
8755
+ asObject(tx, oappInfo.oapp_object),
8756
+ asU32(tx, eid),
8757
+ asU16(tx, msgType),
8758
+ asBytes(tx, extraOptions)
8759
+ ]
8344
8760
  });
8345
8761
  }
8346
8762
  /**
@@ -8351,11 +8767,11 @@ var OApp = class {
8351
8767
  * @param extraOptions - Extra options to combine with enforced options
8352
8768
  * @returns Promise<Uint8Array> - Combined options as bytes
8353
8769
  */
8354
- async combineOptions(oapp, eid, msgType, extraOptions) {
8770
+ async combineOptions(eid, msgType, extraOptions) {
8355
8771
  return executeSimulate(
8356
8772
  this.client,
8357
- (tx) => {
8358
- this.combineOptionsMoveCall(tx, oapp, eid, msgType, extraOptions);
8773
+ async (tx) => {
8774
+ await this.combineOptionsMoveCall(tx, eid, msgType, extraOptions);
8359
8775
  },
8360
8776
  (result) => new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value))
8361
8777
  );
@@ -8368,10 +8784,11 @@ var OApp = class {
8368
8784
  * @param msgType - Message type or transaction argument
8369
8785
  * @returns Transaction result containing enforced options
8370
8786
  */
8371
- getEnforcedOptionsMoveCall(tx, oapp, eid, msgType) {
8787
+ async getEnforcedOptionsMoveCall(tx, eid, msgType) {
8788
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8372
8789
  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)]
8790
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "get_enforced_options"),
8791
+ arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, eid), asU16(tx, msgType)]
8375
8792
  });
8376
8793
  }
8377
8794
  /**
@@ -8381,11 +8798,11 @@ var OApp = class {
8381
8798
  * @param msgType - Message type
8382
8799
  * @returns Promise<Uint8Array> - Enforced options as bytes
8383
8800
  */
8384
- async getEnforcedOptions(oapp, eid, msgType) {
8801
+ async getEnforcedOptions(eid, msgType) {
8385
8802
  return executeSimulate(
8386
8803
  this.client,
8387
- (tx) => {
8388
- this.getEnforcedOptionsMoveCall(tx, oapp, eid, msgType);
8804
+ async (tx) => {
8805
+ await this.getEnforcedOptionsMoveCall(tx, eid, msgType);
8389
8806
  },
8390
8807
  (result) => new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value))
8391
8808
  );
@@ -8397,10 +8814,11 @@ var OApp = class {
8397
8814
  * @param dstEid - Destination endpoint ID or transaction argument
8398
8815
  * @returns Transaction result containing boolean result
8399
8816
  */
8400
- hasPeerMoveCall(tx, oapp, dstEid) {
8817
+ async hasPeerMoveCall(tx, dstEid) {
8818
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8401
8819
  return tx.moveCall({
8402
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "has_peer"),
8403
- arguments: [asObject(tx, oapp), asU32(tx, dstEid)]
8820
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "has_peer"),
8821
+ arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, dstEid)]
8404
8822
  });
8405
8823
  }
8406
8824
  /**
@@ -8409,11 +8827,11 @@ var OApp = class {
8409
8827
  * @param dstEid - Destination endpoint ID
8410
8828
  * @returns Promise<boolean> - True if peer is configured, false otherwise
8411
8829
  */
8412
- async hasPeer(oapp, dstEid) {
8830
+ async hasPeer(dstEid) {
8413
8831
  return executeSimulate(
8414
8832
  this.client,
8415
- (tx) => {
8416
- this.hasPeerMoveCall(tx, oapp, dstEid);
8833
+ async (tx) => {
8834
+ await this.hasPeerMoveCall(tx, dstEid);
8417
8835
  },
8418
8836
  (result) => bcs.Bool.parse(result[0].value)
8419
8837
  );
@@ -8425,10 +8843,11 @@ var OApp = class {
8425
8843
  * @param dstEid - Destination endpoint ID or transaction argument
8426
8844
  * @returns Transaction result containing peer address
8427
8845
  */
8428
- getPeerMoveCall(tx, oapp, dstEid) {
8846
+ async getPeerMoveCall(tx, dstEid) {
8847
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8429
8848
  return tx.moveCall({
8430
- target: __privateMethod(this, _OApp_instances, target_fn21).call(this, "get_peer"),
8431
- arguments: [asObject(tx, oapp), asU32(tx, dstEid)]
8849
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "get_peer"),
8850
+ arguments: [asObject(tx, oappInfo.oapp_object), asU32(tx, dstEid)]
8432
8851
  });
8433
8852
  }
8434
8853
  /**
@@ -8437,27 +8856,333 @@ var OApp = class {
8437
8856
  * @param dstEid - Destination endpoint ID
8438
8857
  * @returns Promise<Uint8Array> - Peer address as bytes32
8439
8858
  */
8440
- async getPeer(oapp, dstEid) {
8859
+ async getPeer(dstEid) {
8441
8860
  return executeSimulate(
8442
8861
  this.client,
8443
- (tx) => {
8444
- this.getPeerMoveCall(tx, oapp, dstEid);
8862
+ async (tx) => {
8863
+ await this.getPeerMoveCall(tx, dstEid);
8445
8864
  },
8446
8865
  (result) => {
8447
8866
  return new Uint8Array(bcs.vector(bcs.u8()).parse(result[0].value));
8448
8867
  }
8449
8868
  );
8450
8869
  }
8870
+ getOAppInfoV1MoveCall(tx) {
8871
+ const endpoint = this.moduleManager.getEndpoint();
8872
+ const oappInfoRaw = endpoint.getLzReceiveInfoMoveCall(tx, this.oappCallCapId);
8873
+ return tx.moveCall({
8874
+ target: `${this.packageId}::oapp_info_v1::decode`,
8875
+ arguments: [oappInfoRaw]
8876
+ });
8877
+ }
8878
+ async getOAppInfoV1() {
8879
+ return executeSimulate(
8880
+ this.client,
8881
+ (tx) => {
8882
+ this.getOAppInfoV1MoveCall(tx);
8883
+ },
8884
+ (result) => {
8885
+ return OAppInfoV1Bcs.parse(result[0].value);
8886
+ }
8887
+ );
8888
+ }
8889
+ // === Endpoint Call Functions ===
8890
+ /**
8891
+ * Register OApp with the endpoint
8892
+ * @param tx - The transaction to add the move call to
8893
+ * @param oappInfo - OApp information as bytes (optional)
8894
+ * @returns Transaction result containing the messaging channel address
8895
+ */
8896
+ async registerOAppMoveCall(tx, oappInfo) {
8897
+ let oappInfoArg;
8898
+ if (isTransactionArgument(oappInfo)) {
8899
+ oappInfoArg = oappInfo;
8900
+ } else if (oappInfo) {
8901
+ oappInfoArg = tx.pure.option("vector<u8>", Array.from(oappInfo));
8902
+ } else {
8903
+ oappInfoArg = tx.pure.option("vector<u8>", null);
8904
+ }
8905
+ const oappInfoObj = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8906
+ const adminCap = await this.getAdminCap(oappInfoObj.oapp_object);
8907
+ return tx.moveCall({
8908
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "register_oapp", "endpoint_calls"),
8909
+ arguments: [
8910
+ asObject(tx, oappInfoObj.oapp_object),
8911
+ asObject(tx, adminCap),
8912
+ asObject(tx, this.objects.endpointV2),
8913
+ oappInfoArg
8914
+ ]
8915
+ });
8916
+ }
8917
+ /**
8918
+ * Set delegate for OApp
8919
+ * @param tx - The transaction to add the move call to
8920
+ * @param newDelegate - New delegate address
8921
+ */
8922
+ async setDelegateMoveCall(tx, newDelegate) {
8923
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8924
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8925
+ tx.moveCall({
8926
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_delegate", "endpoint_calls"),
8927
+ arguments: [
8928
+ asObject(tx, oappInfo.oapp_object),
8929
+ asObject(tx, adminCap),
8930
+ asObject(tx, this.objects.endpointV2),
8931
+ asAddress(tx, newDelegate)
8932
+ ]
8933
+ });
8934
+ }
8935
+ /**
8936
+ * Set OApp information in the endpoint
8937
+ * @param tx - The transaction to add the move call to
8938
+ * @param oappInfo - OApp information as bytes
8939
+ */
8940
+ async setOAppInfoMoveCall(tx, oappInfo) {
8941
+ const oappInfoObj = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8942
+ const adminCap = await this.getAdminCap(oappInfoObj.oapp_object);
8943
+ tx.moveCall({
8944
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_oapp_info", "endpoint_calls"),
8945
+ arguments: [
8946
+ asObject(tx, oappInfoObj.oapp_object),
8947
+ asObject(tx, adminCap),
8948
+ asObject(tx, this.objects.endpointV2),
8949
+ asBytes(tx, oappInfo)
8950
+ ]
8951
+ });
8952
+ }
8953
+ /**
8954
+ * Initialize channel with remote OApp
8955
+ * @param tx - The transaction to add the move call to
8956
+ * @param remoteEid - Remote endpoint ID
8957
+ * @param remoteOApp - Remote OApp address as bytes32
8958
+ */
8959
+ async initChannelMoveCall(tx, remoteEid, remoteOApp) {
8960
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8961
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8962
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
8963
+ tx.moveCall({
8964
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "init_channel", "endpoint_calls"),
8965
+ arguments: [
8966
+ asObject(tx, oappInfo.oapp_object),
8967
+ asObject(tx, adminCap),
8968
+ asObject(tx, this.objects.endpointV2),
8969
+ asObject(tx, messagingChannel),
8970
+ asU32(tx, remoteEid),
8971
+ asBytes32(tx, remoteOApp, this.moduleManager.getUtils())
8972
+ ]
8973
+ });
8974
+ }
8975
+ /**
8976
+ * Clear a message from the messaging channel
8977
+ * @param tx - The transaction to add the move call to
8978
+ * @param srcEid - Source endpoint ID
8979
+ * @param sender - Sender address as bytes32
8980
+ * @param nonce - Message nonce
8981
+ * @param guid - Message GUID as bytes32
8982
+ * @param message - Message payload
8983
+ */
8984
+ async clearMoveCall(tx, srcEid, sender, nonce, guid, message) {
8985
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
8986
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
8987
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
8988
+ tx.moveCall({
8989
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "clear", "endpoint_calls"),
8990
+ arguments: [
8991
+ asObject(tx, oappInfo.oapp_object),
8992
+ asObject(tx, adminCap),
8993
+ asObject(tx, this.objects.endpointV2),
8994
+ asObject(tx, messagingChannel),
8995
+ asU32(tx, srcEid),
8996
+ asBytes32(tx, sender, this.moduleManager.getUtils()),
8997
+ asU64(tx, nonce),
8998
+ asBytes32(tx, guid, this.moduleManager.getUtils()),
8999
+ asBytes(tx, message)
9000
+ ]
9001
+ });
9002
+ }
9003
+ /**
9004
+ * Skip a message in the messaging channel
9005
+ * @param tx - The transaction to add the move call to
9006
+ * @param srcEid - Source endpoint ID
9007
+ * @param sender - Sender address as bytes32
9008
+ * @param nonce - Message nonce
9009
+ */
9010
+ async skipMoveCall(tx, srcEid, sender, nonce) {
9011
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9012
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9013
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
9014
+ tx.moveCall({
9015
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "skip", "endpoint_calls"),
9016
+ arguments: [
9017
+ asObject(tx, oappInfo.oapp_object),
9018
+ asObject(tx, adminCap),
9019
+ asObject(tx, this.objects.endpointV2),
9020
+ asObject(tx, messagingChannel),
9021
+ asU32(tx, srcEid),
9022
+ asBytes32(tx, sender, this.moduleManager.getUtils()),
9023
+ asU64(tx, nonce)
9024
+ ]
9025
+ });
9026
+ }
9027
+ /**
9028
+ * Nilify a message in the messaging channel
9029
+ * @param tx - The transaction to add the move call to
9030
+ * @param srcEid - Source endpoint ID
9031
+ * @param sender - Sender address as bytes32
9032
+ * @param nonce - Message nonce
9033
+ * @param payloadHash - Payload hash as bytes32
9034
+ */
9035
+ async nilifyMoveCall(tx, srcEid, sender, nonce, payloadHash) {
9036
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9037
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9038
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
9039
+ tx.moveCall({
9040
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "nilify", "endpoint_calls"),
9041
+ arguments: [
9042
+ asObject(tx, oappInfo.oapp_object),
9043
+ asObject(tx, adminCap),
9044
+ asObject(tx, this.objects.endpointV2),
9045
+ asObject(tx, messagingChannel),
9046
+ asU32(tx, srcEid),
9047
+ asBytes32(tx, sender, this.moduleManager.getUtils()),
9048
+ asU64(tx, nonce),
9049
+ asBytes32(tx, payloadHash, this.moduleManager.getUtils())
9050
+ ]
9051
+ });
9052
+ }
9053
+ /**
9054
+ * Burn a message in the messaging channel
9055
+ * @param tx - The transaction to add the move call to
9056
+ * @param srcEid - Source endpoint ID
9057
+ * @param sender - Sender address as bytes32
9058
+ * @param nonce - Message nonce
9059
+ * @param payloadHash - Payload hash as bytes32
9060
+ */
9061
+ async burnMoveCall(tx, srcEid, sender, nonce, payloadHash) {
9062
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9063
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9064
+ const messagingChannel = await this.moduleManager.getEndpoint().getMessagingChannel(this.oappCallCapId);
9065
+ tx.moveCall({
9066
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "burn", "endpoint_calls"),
9067
+ arguments: [
9068
+ asObject(tx, oappInfo.oapp_object),
9069
+ asObject(tx, adminCap),
9070
+ asObject(tx, this.objects.endpointV2),
9071
+ asObject(tx, messagingChannel),
9072
+ asU32(tx, srcEid),
9073
+ asBytes32(tx, sender, this.moduleManager.getUtils()),
9074
+ asU64(tx, nonce),
9075
+ asBytes32(tx, payloadHash, this.moduleManager.getUtils())
9076
+ ]
9077
+ });
9078
+ }
9079
+ /**
9080
+ * Set send library for a destination chain
9081
+ * @param tx - The transaction to add the move call to
9082
+ * @param dstEid - Destination endpoint ID
9083
+ * @param sendLibrary - Send library address
9084
+ */
9085
+ async setSendLibraryMoveCall(tx, dstEid, sendLibrary) {
9086
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9087
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9088
+ tx.moveCall({
9089
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_send_library", "endpoint_calls"),
9090
+ arguments: [
9091
+ asObject(tx, oappInfo.oapp_object),
9092
+ asObject(tx, adminCap),
9093
+ asObject(tx, this.objects.endpointV2),
9094
+ asU32(tx, dstEid),
9095
+ asAddress(tx, sendLibrary)
9096
+ ]
9097
+ });
9098
+ }
9099
+ /**
9100
+ * Set receive library for a source chain
9101
+ * @param tx - The transaction to add the move call to
9102
+ * @param srcEid - Source endpoint ID
9103
+ * @param receiveLibrary - Receive library address
9104
+ * @param gracePeriod - Grace period in seconds
9105
+ */
9106
+ async setReceiveLibraryMoveCall(tx, srcEid, receiveLibrary, gracePeriod) {
9107
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9108
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9109
+ tx.moveCall({
9110
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_receive_library", "endpoint_calls"),
9111
+ arguments: [
9112
+ asObject(tx, oappInfo.oapp_object),
9113
+ asObject(tx, adminCap),
9114
+ asObject(tx, this.objects.endpointV2),
9115
+ asU32(tx, srcEid),
9116
+ asAddress(tx, receiveLibrary),
9117
+ asU64(tx, gracePeriod),
9118
+ tx.object.clock()
9119
+ ]
9120
+ });
9121
+ }
9122
+ /**
9123
+ * Set receive library timeout for a source chain
9124
+ * @param tx - The transaction to add the move call to
9125
+ * @param srcEid - Source endpoint ID
9126
+ * @param receiveLibrary - Receive library address
9127
+ * @param expiry - Expiry timestamp in seconds
9128
+ */
9129
+ async setReceiveLibraryTimeoutMoveCall(tx, srcEid, receiveLibrary, expiry) {
9130
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9131
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9132
+ tx.moveCall({
9133
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_receive_library_timeout", "endpoint_calls"),
9134
+ arguments: [
9135
+ asObject(tx, oappInfo.oapp_object),
9136
+ asObject(tx, adminCap),
9137
+ asObject(tx, this.objects.endpointV2),
9138
+ asU32(tx, srcEid),
9139
+ asAddress(tx, receiveLibrary),
9140
+ asU64(tx, expiry),
9141
+ tx.object.clock()
9142
+ ]
9143
+ });
9144
+ }
9145
+ /**
9146
+ * Set configuration for a message library
9147
+ * @param tx - The transaction to add the move call to
9148
+ * @param lib - Library address
9149
+ * @param eid - Endpoint ID
9150
+ * @param configType - Configuration type
9151
+ * @param config - Configuration data as bytes
9152
+ * @returns Transaction result containing Call<MessageLibSetConfigParam, Void>
9153
+ */
9154
+ async setConfigMoveCall(tx, lib, eid, configType, config) {
9155
+ const oappInfo = await __privateMethod(this, _OApp_instances, oappInfo_fn).call(this);
9156
+ const adminCap = await this.getAdminCap(oappInfo.oapp_object);
9157
+ return tx.moveCall({
9158
+ target: __privateMethod(this, _OApp_instances, target_fn22).call(this, "set_config", "endpoint_calls"),
9159
+ typeArguments: [],
9160
+ arguments: [
9161
+ asObject(tx, oappInfo.oapp_object),
9162
+ asObject(tx, adminCap),
9163
+ asObject(tx, this.objects.endpointV2),
9164
+ asAddress(tx, lib),
9165
+ asU32(tx, eid),
9166
+ asU32(tx, configType),
9167
+ asBytes(tx, config)
9168
+ ]
9169
+ });
9170
+ }
8451
9171
  };
8452
9172
  _OApp_instances = new WeakSet();
8453
- // === Private Functions ===
9173
+ oappInfo_fn = async function() {
9174
+ if (!this.oappInfo) {
9175
+ this.oappInfo = await this.getOAppInfoV1();
9176
+ }
9177
+ return this.oappInfo;
9178
+ };
8454
9179
  /**
8455
9180
  * Generate the full target path for move calls
8456
9181
  * @param name - The function name to call
8457
9182
  * @returns The full module path for the move call
8458
9183
  * @private
8459
9184
  */
8460
- target_fn21 = function(name, module_name = MODULE_NAME20) {
9185
+ target_fn22 = function(name, module_name = MODULE_NAME21) {
8461
9186
  return `${this.packageId}::${module_name}::${name}`;
8462
9187
  };
8463
9188
  var MODULE_NAME_ENDPOINT_VIEWS = "endpoint_views";
@@ -8626,16 +9351,24 @@ uln302ViewsTarget_fn = function(functionName) {
8626
9351
  };
8627
9352
  var DEFAULT_MODULE_NAME = "call";
8628
9353
  var CallErrorCode = {
8629
- // Call related errors (with Call_ prefix)
8630
- Call_ECallNotCompletable: 1,
9354
+ // Call related errors (matching call.move)
9355
+ Call_ECallNotActive: 1,
8631
9356
  Call_ECallNotCompleted: 2,
8632
- Call_ECallNotSealed: 3,
9357
+ Call_ECallNotCreating: 3,
8633
9358
  Call_ECallNotRoot: 4,
8634
- Call_ECallSealed: 5,
8635
- Call_EInvalidParent: 6,
8636
- Call_EUnauthorized: 7
8637
- };
8638
- var _Call_instances, target_fn22;
9359
+ Call_ECallNotWaiting: 5,
9360
+ Call_EInvalidChild: 6,
9361
+ Call_EInvalidNonce: 7,
9362
+ Call_EInvalidParent: 8,
9363
+ Call_EParameterNotMutable: 9,
9364
+ Call_EUnauthorized: 10,
9365
+ // CallCap related errors (matching call_cap.move)
9366
+ CallCap_EBadWitness: 1,
9367
+ // MultiCall related errors (matching multi_call.move)
9368
+ MultiCall_ECalleeNotFound: 1,
9369
+ MultiCall_EUnauthorized: 2
9370
+ };
9371
+ var _Call_instances, target_fn23;
8639
9372
  var Call = class {
8640
9373
  constructor(packageId, client) {
8641
9374
  __privateAdd(this, _Call_instances);
@@ -8651,7 +9384,7 @@ var Call = class {
8651
9384
  */
8652
9385
  newIndividualCapMoveCall(tx) {
8653
9386
  return tx.moveCall({
8654
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "new_individual_cap", "call_cap"),
9387
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "new_individual_cap", "call_cap"),
8655
9388
  arguments: []
8656
9389
  });
8657
9390
  }
@@ -8662,7 +9395,7 @@ var Call = class {
8662
9395
  */
8663
9396
  voidMoveCall(tx) {
8664
9397
  return tx.moveCall({
8665
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "void"),
9398
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "void"),
8666
9399
  arguments: []
8667
9400
  });
8668
9401
  }
@@ -8677,7 +9410,7 @@ var Call = class {
8677
9410
  */
8678
9411
  resultMoveCall(tx, paramType, resultType, call) {
8679
9412
  return tx.moveCall({
8680
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "result"),
9413
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "result"),
8681
9414
  typeArguments: [paramType, resultType],
8682
9415
  arguments: [call]
8683
9416
  });
@@ -8692,7 +9425,7 @@ var Call = class {
8692
9425
  */
8693
9426
  recipientMoveCall(tx, paramType, resultType, call) {
8694
9427
  return tx.moveCall({
8695
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "recipient"),
9428
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "recipient"),
8696
9429
  typeArguments: [paramType, resultType],
8697
9430
  arguments: [call]
8698
9431
  });
@@ -8706,7 +9439,7 @@ var Call = class {
8706
9439
  */
8707
9440
  callCapIdMoveCall(tx, callCap) {
8708
9441
  return tx.moveCall({
8709
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "id", "call_cap"),
9442
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "id", "call_cap"),
8710
9443
  arguments: [asObject(tx, callCap)]
8711
9444
  });
8712
9445
  }
@@ -8733,7 +9466,7 @@ var Call = class {
8733
9466
  */
8734
9467
  isIndividualCapMoveCall(tx, callCap) {
8735
9468
  return tx.moveCall({
8736
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "is_individual", "call_cap"),
9469
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "is_individual", "call_cap"),
8737
9470
  arguments: [asObject(tx, callCap)]
8738
9471
  });
8739
9472
  }
@@ -8759,7 +9492,7 @@ var Call = class {
8759
9492
  */
8760
9493
  isPackageCapMoveCall(tx, callCap) {
8761
9494
  return tx.moveCall({
8762
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "is_package", "call_cap"),
9495
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "is_package", "call_cap"),
8763
9496
  arguments: [asObject(tx, callCap)]
8764
9497
  });
8765
9498
  }
@@ -8786,7 +9519,7 @@ var Call = class {
8786
9519
  */
8787
9520
  packageAddressMoveCall(tx, callCap) {
8788
9521
  return tx.moveCall({
8789
- target: __privateMethod(this, _Call_instances, target_fn22).call(this, "package_address", "call_cap"),
9522
+ target: __privateMethod(this, _Call_instances, target_fn23).call(this, "package_address", "call_cap"),
8790
9523
  arguments: [asObject(tx, callCap)]
8791
9524
  });
8792
9525
  }
@@ -8821,7 +9554,7 @@ _Call_instances = new WeakSet();
8821
9554
  * @returns The full module path for the move call
8822
9555
  * @private
8823
9556
  */
8824
- target_fn22 = function(name, module_name = DEFAULT_MODULE_NAME) {
9557
+ target_fn23 = function(name, module_name = DEFAULT_MODULE_NAME) {
8825
9558
  return `${this.packageId}::${module_name}::${name}`;
8826
9559
  };
8827
9560
 
@@ -8834,7 +9567,7 @@ var UtilsErrorCode = {
8834
9567
  // Utils related errors (with Utils_ prefix)
8835
9568
  Utils_EInvalidLength: 1
8836
9569
  };
8837
- var _Utils_instances, target_fn23, destroyZeroCoin_fn, fetchSufficientCoins_fn;
9570
+ var _Utils_instances, target_fn24, destroyZeroCoin_fn, fetchSufficientCoins_fn;
8838
9571
  var Utils = class {
8839
9572
  constructor(packageId, client) {
8840
9573
  __privateAdd(this, _Utils_instances);
@@ -8850,7 +9583,7 @@ var Utils = class {
8850
9583
  */
8851
9584
  fromBytesMoveCall(tx, peer) {
8852
9585
  return tx.moveCall({
8853
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_bytes"),
9586
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes"),
8854
9587
  arguments: [asBytes(tx, peer)]
8855
9588
  });
8856
9589
  }
@@ -8862,7 +9595,7 @@ var Utils = class {
8862
9595
  */
8863
9596
  fromBytesLeftPaddedMoveCall(tx, bytes) {
8864
9597
  return tx.moveCall({
8865
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_bytes_left_padded"),
9598
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes_left_padded"),
8866
9599
  arguments: [asBytes(tx, bytes)]
8867
9600
  });
8868
9601
  }
@@ -8874,7 +9607,7 @@ var Utils = class {
8874
9607
  */
8875
9608
  fromBytesRightPaddedMoveCall(tx, bytes) {
8876
9609
  return tx.moveCall({
8877
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_bytes_right_padded"),
9610
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_bytes_right_padded"),
8878
9611
  arguments: [asBytes(tx, bytes)]
8879
9612
  });
8880
9613
  }
@@ -8886,7 +9619,7 @@ var Utils = class {
8886
9619
  */
8887
9620
  fromAddressMoveCall(tx, address) {
8888
9621
  return tx.moveCall({
8889
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_address"),
9622
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_address"),
8890
9623
  arguments: [asAddress(tx, address)]
8891
9624
  });
8892
9625
  }
@@ -8898,7 +9631,7 @@ var Utils = class {
8898
9631
  */
8899
9632
  fromIdMoveCall(tx, id) {
8900
9633
  return tx.moveCall({
8901
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "from_id"),
9634
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "from_id"),
8902
9635
  arguments: [asObject(tx, id)]
8903
9636
  });
8904
9637
  }
@@ -8909,7 +9642,7 @@ var Utils = class {
8909
9642
  */
8910
9643
  zeroBytes32MoveCall(tx) {
8911
9644
  return tx.moveCall({
8912
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "zero_bytes32")
9645
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "zero_bytes32")
8913
9646
  });
8914
9647
  }
8915
9648
  /**
@@ -8919,7 +9652,7 @@ var Utils = class {
8919
9652
  */
8920
9653
  ffBytes32MoveCall(tx) {
8921
9654
  return tx.moveCall({
8922
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "ff_bytes32")
9655
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "ff_bytes32")
8923
9656
  });
8924
9657
  }
8925
9658
  /**
@@ -8930,7 +9663,7 @@ var Utils = class {
8930
9663
  */
8931
9664
  isZeroMoveCall(tx, bytes32) {
8932
9665
  return tx.moveCall({
8933
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "is_zero"),
9666
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "is_zero"),
8934
9667
  arguments: [bytes32]
8935
9668
  });
8936
9669
  }
@@ -8942,7 +9675,7 @@ var Utils = class {
8942
9675
  */
8943
9676
  isFfMoveCall(tx, bytes32) {
8944
9677
  return tx.moveCall({
8945
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "is_ff"),
9678
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "is_ff"),
8946
9679
  arguments: [bytes32]
8947
9680
  });
8948
9681
  }
@@ -8954,7 +9687,7 @@ var Utils = class {
8954
9687
  */
8955
9688
  toBytesMoveCall(tx, bytes32) {
8956
9689
  return tx.moveCall({
8957
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_bytes"),
9690
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes"),
8958
9691
  arguments: [bytes32]
8959
9692
  });
8960
9693
  }
@@ -8966,7 +9699,7 @@ var Utils = class {
8966
9699
  */
8967
9700
  toAddressMoveCall(tx, bytes32) {
8968
9701
  return tx.moveCall({
8969
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_address"),
9702
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_address"),
8970
9703
  arguments: [bytes32]
8971
9704
  });
8972
9705
  }
@@ -8978,7 +9711,7 @@ var Utils = class {
8978
9711
  */
8979
9712
  toIdMoveCall(tx, bytes32) {
8980
9713
  return tx.moveCall({
8981
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_id"),
9714
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_id"),
8982
9715
  arguments: [bytes32]
8983
9716
  });
8984
9717
  }
@@ -8991,7 +9724,7 @@ var Utils = class {
8991
9724
  */
8992
9725
  newReaderMoveCall(tx, buffer) {
8993
9726
  return tx.moveCall({
8994
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "create", BUFFER_READER_MODULE_NAME),
9727
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "create", BUFFER_READER_MODULE_NAME),
8995
9728
  arguments: [asBytes(tx, buffer)]
8996
9729
  });
8997
9730
  }
@@ -9003,7 +9736,7 @@ var Utils = class {
9003
9736
  */
9004
9737
  positionMoveCall(tx, reader) {
9005
9738
  return tx.moveCall({
9006
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "position", BUFFER_READER_MODULE_NAME),
9739
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "position", BUFFER_READER_MODULE_NAME),
9007
9740
  arguments: [reader]
9008
9741
  });
9009
9742
  }
@@ -9015,7 +9748,7 @@ var Utils = class {
9015
9748
  */
9016
9749
  remainingLengthMoveCall(tx, reader) {
9017
9750
  return tx.moveCall({
9018
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "remaining_length", BUFFER_READER_MODULE_NAME),
9751
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "remaining_length", BUFFER_READER_MODULE_NAME),
9019
9752
  arguments: [reader]
9020
9753
  });
9021
9754
  }
@@ -9028,7 +9761,7 @@ var Utils = class {
9028
9761
  */
9029
9762
  skipMoveCall(tx, reader, len) {
9030
9763
  return tx.moveCall({
9031
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "skip", BUFFER_READER_MODULE_NAME),
9764
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "skip", BUFFER_READER_MODULE_NAME),
9032
9765
  arguments: [reader, asU64(tx, len)]
9033
9766
  });
9034
9767
  }
@@ -9041,7 +9774,7 @@ var Utils = class {
9041
9774
  */
9042
9775
  setPositionMoveCall(tx, reader, position) {
9043
9776
  return tx.moveCall({
9044
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "set_position", BUFFER_READER_MODULE_NAME),
9777
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "set_position", BUFFER_READER_MODULE_NAME),
9045
9778
  arguments: [reader, asU64(tx, position)]
9046
9779
  });
9047
9780
  }
@@ -9054,7 +9787,7 @@ var Utils = class {
9054
9787
  */
9055
9788
  rewindMoveCall(tx, reader, len) {
9056
9789
  return tx.moveCall({
9057
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "rewind", BUFFER_READER_MODULE_NAME),
9790
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "rewind", BUFFER_READER_MODULE_NAME),
9058
9791
  arguments: [reader, asU64(tx, len)]
9059
9792
  });
9060
9793
  }
@@ -9066,7 +9799,7 @@ var Utils = class {
9066
9799
  */
9067
9800
  readBoolMoveCall(tx, reader) {
9068
9801
  return tx.moveCall({
9069
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_bool", BUFFER_READER_MODULE_NAME),
9802
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bool", BUFFER_READER_MODULE_NAME),
9070
9803
  arguments: [reader]
9071
9804
  });
9072
9805
  }
@@ -9078,7 +9811,7 @@ var Utils = class {
9078
9811
  */
9079
9812
  readU8MoveCall(tx, reader) {
9080
9813
  return tx.moveCall({
9081
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u8", BUFFER_READER_MODULE_NAME),
9814
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u8", BUFFER_READER_MODULE_NAME),
9082
9815
  arguments: [reader]
9083
9816
  });
9084
9817
  }
@@ -9090,7 +9823,7 @@ var Utils = class {
9090
9823
  */
9091
9824
  readU16MoveCall(tx, reader) {
9092
9825
  return tx.moveCall({
9093
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u16", BUFFER_READER_MODULE_NAME),
9826
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u16", BUFFER_READER_MODULE_NAME),
9094
9827
  arguments: [reader]
9095
9828
  });
9096
9829
  }
@@ -9102,7 +9835,7 @@ var Utils = class {
9102
9835
  */
9103
9836
  readU32MoveCall(tx, reader) {
9104
9837
  return tx.moveCall({
9105
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u32", BUFFER_READER_MODULE_NAME),
9838
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u32", BUFFER_READER_MODULE_NAME),
9106
9839
  arguments: [reader]
9107
9840
  });
9108
9841
  }
@@ -9114,7 +9847,7 @@ var Utils = class {
9114
9847
  */
9115
9848
  readU64MoveCall(tx, reader) {
9116
9849
  return tx.moveCall({
9117
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u64", BUFFER_READER_MODULE_NAME),
9850
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u64", BUFFER_READER_MODULE_NAME),
9118
9851
  arguments: [reader]
9119
9852
  });
9120
9853
  }
@@ -9126,7 +9859,7 @@ var Utils = class {
9126
9859
  */
9127
9860
  readU128MoveCall(tx, reader) {
9128
9861
  return tx.moveCall({
9129
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u128", BUFFER_READER_MODULE_NAME),
9862
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u128", BUFFER_READER_MODULE_NAME),
9130
9863
  arguments: [reader]
9131
9864
  });
9132
9865
  }
@@ -9138,7 +9871,7 @@ var Utils = class {
9138
9871
  */
9139
9872
  readU256MoveCall(tx, reader) {
9140
9873
  return tx.moveCall({
9141
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_u256", BUFFER_READER_MODULE_NAME),
9874
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_u256", BUFFER_READER_MODULE_NAME),
9142
9875
  arguments: [reader]
9143
9876
  });
9144
9877
  }
@@ -9150,7 +9883,7 @@ var Utils = class {
9150
9883
  */
9151
9884
  readBytes32MoveCall(tx, reader) {
9152
9885
  return tx.moveCall({
9153
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_bytes32", BUFFER_READER_MODULE_NAME),
9886
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bytes32", BUFFER_READER_MODULE_NAME),
9154
9887
  arguments: [reader]
9155
9888
  });
9156
9889
  }
@@ -9162,7 +9895,7 @@ var Utils = class {
9162
9895
  */
9163
9896
  readAddressMoveCall(tx, reader) {
9164
9897
  return tx.moveCall({
9165
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_address", BUFFER_READER_MODULE_NAME),
9898
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_address", BUFFER_READER_MODULE_NAME),
9166
9899
  arguments: [reader]
9167
9900
  });
9168
9901
  }
@@ -9175,7 +9908,7 @@ var Utils = class {
9175
9908
  */
9176
9909
  readFixedLenBytesMoveCall(tx, reader, len) {
9177
9910
  return tx.moveCall({
9178
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_fixed_len_bytes", BUFFER_READER_MODULE_NAME),
9911
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_fixed_len_bytes", BUFFER_READER_MODULE_NAME),
9179
9912
  arguments: [reader, asU64(tx, len)]
9180
9913
  });
9181
9914
  }
@@ -9187,7 +9920,7 @@ var Utils = class {
9187
9920
  */
9188
9921
  readBytesUntilEndMoveCall(tx, reader) {
9189
9922
  return tx.moveCall({
9190
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "read_bytes_until_end", BUFFER_READER_MODULE_NAME),
9923
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "read_bytes_until_end", BUFFER_READER_MODULE_NAME),
9191
9924
  arguments: [reader]
9192
9925
  });
9193
9926
  }
@@ -9199,7 +9932,7 @@ var Utils = class {
9199
9932
  */
9200
9933
  readerBufferLengthMoveCall(tx, reader) {
9201
9934
  return tx.moveCall({
9202
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "length", BUFFER_READER_MODULE_NAME),
9935
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "length", BUFFER_READER_MODULE_NAME),
9203
9936
  arguments: [reader]
9204
9937
  });
9205
9938
  }
@@ -9211,7 +9944,7 @@ var Utils = class {
9211
9944
  */
9212
9945
  readerToBytesMoveCall(tx, reader) {
9213
9946
  return tx.moveCall({
9214
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_bytes", BUFFER_READER_MODULE_NAME),
9947
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes", BUFFER_READER_MODULE_NAME),
9215
9948
  arguments: [reader]
9216
9949
  });
9217
9950
  }
@@ -9223,7 +9956,7 @@ var Utils = class {
9223
9956
  */
9224
9957
  newWriterMoveCall(tx) {
9225
9958
  return tx.moveCall({
9226
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "new", BUFFER_WRITER_MODULE_NAME)
9959
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "new", BUFFER_WRITER_MODULE_NAME)
9227
9960
  });
9228
9961
  }
9229
9962
  /**
@@ -9234,7 +9967,7 @@ var Utils = class {
9234
9967
  */
9235
9968
  createWriterMoveCall(tx, buffer) {
9236
9969
  return tx.moveCall({
9237
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "create", BUFFER_WRITER_MODULE_NAME),
9970
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "create", BUFFER_WRITER_MODULE_NAME),
9238
9971
  arguments: [asBytes(tx, buffer)]
9239
9972
  });
9240
9973
  }
@@ -9246,7 +9979,7 @@ var Utils = class {
9246
9979
  */
9247
9980
  writerBufferLengthMoveCall(tx, writer) {
9248
9981
  return tx.moveCall({
9249
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "length", BUFFER_WRITER_MODULE_NAME),
9982
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "length", BUFFER_WRITER_MODULE_NAME),
9250
9983
  arguments: [writer]
9251
9984
  });
9252
9985
  }
@@ -9258,7 +9991,7 @@ var Utils = class {
9258
9991
  */
9259
9992
  writerToBytesMoveCall(tx, writer) {
9260
9993
  return tx.moveCall({
9261
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "to_bytes", BUFFER_WRITER_MODULE_NAME),
9994
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "to_bytes", BUFFER_WRITER_MODULE_NAME),
9262
9995
  arguments: [writer]
9263
9996
  });
9264
9997
  }
@@ -9271,7 +10004,7 @@ var Utils = class {
9271
10004
  */
9272
10005
  writeBoolMoveCall(tx, writer, value) {
9273
10006
  return tx.moveCall({
9274
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_bool", BUFFER_WRITER_MODULE_NAME),
10007
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bool", BUFFER_WRITER_MODULE_NAME),
9275
10008
  arguments: [writer, asBool(tx, value)]
9276
10009
  });
9277
10010
  }
@@ -9284,7 +10017,7 @@ var Utils = class {
9284
10017
  */
9285
10018
  writeU8MoveCall(tx, writer, value) {
9286
10019
  return tx.moveCall({
9287
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u8", BUFFER_WRITER_MODULE_NAME),
10020
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u8", BUFFER_WRITER_MODULE_NAME),
9288
10021
  arguments: [writer, asU8(tx, value)]
9289
10022
  });
9290
10023
  }
@@ -9297,7 +10030,7 @@ var Utils = class {
9297
10030
  */
9298
10031
  writeU16MoveCall(tx, writer, value) {
9299
10032
  return tx.moveCall({
9300
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u16", BUFFER_WRITER_MODULE_NAME),
10033
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u16", BUFFER_WRITER_MODULE_NAME),
9301
10034
  arguments: [writer, asU16(tx, value)]
9302
10035
  });
9303
10036
  }
@@ -9310,7 +10043,7 @@ var Utils = class {
9310
10043
  */
9311
10044
  writeU32MoveCall(tx, writer, value) {
9312
10045
  return tx.moveCall({
9313
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u32", BUFFER_WRITER_MODULE_NAME),
10046
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u32", BUFFER_WRITER_MODULE_NAME),
9314
10047
  arguments: [writer, asU32(tx, value)]
9315
10048
  });
9316
10049
  }
@@ -9323,7 +10056,7 @@ var Utils = class {
9323
10056
  */
9324
10057
  writeU64MoveCall(tx, writer, value) {
9325
10058
  return tx.moveCall({
9326
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u64", BUFFER_WRITER_MODULE_NAME),
10059
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u64", BUFFER_WRITER_MODULE_NAME),
9327
10060
  arguments: [writer, asU64(tx, value)]
9328
10061
  });
9329
10062
  }
@@ -9336,7 +10069,7 @@ var Utils = class {
9336
10069
  */
9337
10070
  writeU128MoveCall(tx, writer, value) {
9338
10071
  return tx.moveCall({
9339
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u128", BUFFER_WRITER_MODULE_NAME),
10072
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u128", BUFFER_WRITER_MODULE_NAME),
9340
10073
  arguments: [writer, asU128(tx, value)]
9341
10074
  });
9342
10075
  }
@@ -9349,7 +10082,7 @@ var Utils = class {
9349
10082
  */
9350
10083
  writeU256MoveCall(tx, writer, value) {
9351
10084
  return tx.moveCall({
9352
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_u256", BUFFER_WRITER_MODULE_NAME),
10085
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_u256", BUFFER_WRITER_MODULE_NAME),
9353
10086
  arguments: [writer, asU256(tx, value)]
9354
10087
  });
9355
10088
  }
@@ -9362,7 +10095,7 @@ var Utils = class {
9362
10095
  */
9363
10096
  writeBytesMoveCall(tx, writer, bytes) {
9364
10097
  return tx.moveCall({
9365
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_bytes", BUFFER_WRITER_MODULE_NAME),
10098
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bytes", BUFFER_WRITER_MODULE_NAME),
9366
10099
  arguments: [writer, asBytes(tx, bytes)]
9367
10100
  });
9368
10101
  }
@@ -9375,7 +10108,7 @@ var Utils = class {
9375
10108
  */
9376
10109
  writeAddressMoveCall(tx, writer, address) {
9377
10110
  return tx.moveCall({
9378
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_address", BUFFER_WRITER_MODULE_NAME),
10111
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_address", BUFFER_WRITER_MODULE_NAME),
9379
10112
  arguments: [writer, asAddress(tx, address)]
9380
10113
  });
9381
10114
  }
@@ -9388,7 +10121,7 @@ var Utils = class {
9388
10121
  */
9389
10122
  writeBytes32MoveCall(tx, writer, bytes32) {
9390
10123
  return tx.moveCall({
9391
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "write_bytes32", BUFFER_WRITER_MODULE_NAME),
10124
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "write_bytes32", BUFFER_WRITER_MODULE_NAME),
9392
10125
  arguments: [writer, asBytes32(tx, bytes32, this)]
9393
10126
  });
9394
10127
  }
@@ -9401,7 +10134,7 @@ var Utils = class {
9401
10134
  */
9402
10135
  originalPackageOfTypeMoveCall(tx, typeArgument) {
9403
10136
  return tx.moveCall({
9404
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "original_package_of_type", PACKAGE_MODULE_NAME),
10137
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "original_package_of_type", PACKAGE_MODULE_NAME),
9405
10138
  typeArguments: [typeArgument]
9406
10139
  });
9407
10140
  }
@@ -9413,7 +10146,7 @@ var Utils = class {
9413
10146
  */
9414
10147
  packageOfTypeMoveCall(tx, typeArgument) {
9415
10148
  return tx.moveCall({
9416
- target: __privateMethod(this, _Utils_instances, target_fn23).call(this, "package_of_type", PACKAGE_MODULE_NAME),
10149
+ target: __privateMethod(this, _Utils_instances, target_fn24).call(this, "package_of_type", PACKAGE_MODULE_NAME),
9417
10150
  typeArguments: [typeArgument]
9418
10151
  });
9419
10152
  }
@@ -9514,7 +10247,7 @@ _Utils_instances = new WeakSet();
9514
10247
  * @returns The full module path for the move call
9515
10248
  * @private
9516
10249
  */
9517
- target_fn23 = function(name, module_name = BYTES32_MODULE_NAME) {
10250
+ target_fn24 = function(name, module_name = BYTES32_MODULE_NAME) {
9518
10251
  return `${this.packageId}::${module_name}::${name}`;
9519
10252
  };
9520
10253
  /**
@@ -9730,8 +10463,7 @@ var ModuleManager = class {
9730
10463
  ["call" /* Call */]: new Call(packages.call, client),
9731
10464
  ["treasury" /* Treasury */]: new Treasury(packages.treasury, client, objects, this),
9732
10465
  ["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)
10466
+ ["ptbBuilder" /* PtbBuilder */]: new PtbBuilder(packages.ptbMoveCall, client)
9735
10467
  });
9736
10468
  }
9737
10469
  // === Core Module Getters ===
@@ -9765,8 +10497,12 @@ var ModuleManager = class {
9765
10497
  getPtbBuilder() {
9766
10498
  return this.getModule("ptbBuilder" /* PtbBuilder */);
9767
10499
  }
9768
- getOApp() {
9769
- return this.getModule("oapp" /* Oapp */);
10500
+ getOApp(client, callCapId, options) {
10501
+ return this.getOrCreateModule("oapp" /* Oapp */ + callCapId, options, () => {
10502
+ const packageId = options?.packageId ?? this.packages.oapp;
10503
+ const objects = this.mergeObjectsOptions(options);
10504
+ return new OApp(packageId, callCapId, client, objects, this);
10505
+ });
9770
10506
  }
9771
10507
  // === Non-core Module Getters (created on-demand with caching) ===
9772
10508
  getCounter(client, options) {
@@ -9872,6 +10608,13 @@ var ModuleManager = class {
9872
10608
  return new BlockedMessageLibPtbBuilder(packageId, client, objects, this);
9873
10609
  });
9874
10610
  }
10611
+ getWorkerRegistry(client, options) {
10612
+ return this.getOrCreateModule("workerRegistry" /* WorkerRegistry */, options, () => {
10613
+ const packageId = options?.packageId ?? this.packages.workerRegistry;
10614
+ const objects = this.mergeObjectsOptions(options);
10615
+ return new WorkerRegistry(packageId, client, objects, this);
10616
+ });
10617
+ }
9875
10618
  // === Private Utility Methods ===
9876
10619
  /**
9877
10620
  * Merge objects configuration with options, avoiding unnecessary object spreading
@@ -9885,193 +10628,203 @@ var ModuleManager = class {
9885
10628
  };
9886
10629
  var PACKAGE_UTILS_ADDRESS = {
9887
10630
  [Stage.MAINNET]: "0xcdad05867c25d6461e5813071116fa3f26d56a9b52ad053747457efb79d45714",
9888
- [Stage.TESTNET]: "0x7129b63448e84ee4a5e1a05f0536861f92a4a6a2cb2447b9c4cf6fa3ea6b16dd",
10631
+ [Stage.TESTNET]: "0x1ffa033e3853175bc72c68a89d20735af140dd6dd54f04079200b458f1796772",
9889
10632
  [Stage.SANDBOX]: "0xb60f3952a3dc284637f419ac445b6b3d5a2ea112252c4bf686f2671cbecbb7a3"
9890
10633
  };
9891
10634
  var PACKAGE_ENDPOINT_V2_ADDRESS = {
9892
10635
  [Stage.MAINNET]: "0xf625a8bde20d64850a4ec7b01c1918d9a0a29495546de7a0144440275f9b933c",
9893
- [Stage.TESTNET]: "0x85dd52af20c3d8047685dcb6fddc443934b8cd2b6fbe9d2d262a5f6943f24557",
9894
- [Stage.SANDBOX]: "0xcd97606354aaa69e476f2f3cfa374ed73f2a3d08cfc305d74489b2fcbb988805"
10636
+ [Stage.TESTNET]: "0x66267e7a96028b75e147ad3eeb84d480fc7c9e021a2078e8570ddba276c70bcb",
10637
+ [Stage.SANDBOX]: "0x2f2b96ecd837710e681cdedda00f75bccf50be0f0de15a72c70e05bb94e35637"
9895
10638
  };
9896
10639
  var PACKAGE_COUNTER_V2_ADDRESS = {
9897
10640
  [Stage.MAINNET]: "0xfe1e336fdb42fa5ef85ab9a9c932b58c43e0bb58273cecea9d00cb5d05159914",
9898
- [Stage.TESTNET]: "0xa6a19e84c7df2014e384cdd56f5674e5a0c06b92cc5d33fca89633680a9ebcd7",
9899
- [Stage.SANDBOX]: "0xa8e56b7c5ec0dee71349e0018407eea5eb72482f074670469206c9897e46b53b"
10641
+ [Stage.TESTNET]: "0xf0fc6228a880f8f4a64f80aba803e13a8f084f92efeb19447e1f3c56c51c4956",
10642
+ [Stage.SANDBOX]: "0x337fe0cdee194e6b2a5e00d2124e2cee5b16060c835c71e09acc7c087a053d4c"
9900
10643
  };
9901
10644
  var PACKAGE_SIMPLE_MESSAGE_LIB_ADDRESS = {
9902
10645
  [Stage.MAINNET]: "0x83651370065f70112b20007137c7235a2a243055d9f59cb5e162c00c4a1680a7",
9903
- [Stage.TESTNET]: "0xd1fbc2529b4c581c5105031b495866cece446f2123319f6d82a76151b999717e",
9904
- [Stage.SANDBOX]: "0xf4bb61efa1420dfe668c741c51b37d6a920282bfe5a8b443e0fe745be57ebf93"
10646
+ [Stage.TESTNET]: "0x726eb40230616f5aef72e903a9dc68b79d1c51b31ff87f3fb8b4199ebb6be343",
10647
+ [Stage.SANDBOX]: "0x71ec06186e289225246c994e34a74283edb7446bc74150654e3868670f3c1c70"
9905
10648
  };
9906
10649
  var PACKAGE_ULN_302_ADDRESS = {
9907
10650
  [Stage.MAINNET]: "0xd73c9d588717c32fa327335d9beaf59b983b808577a382e013d8c7161a323d8e",
9908
- [Stage.TESTNET]: "0x556bd8fba10ba9e8be88a3ed54b8cbeb8b512b95e5c107cde7d7b10b754069c2",
9909
- [Stage.SANDBOX]: "0x46d99d235e3990496e2b45c207086fef54e07c64a38f43b6439c4adc762002c5"
10651
+ [Stage.TESTNET]: "0x2e927b16ef11f712b67447152c1f0bbe8c97c166e804fa5746a4123391c166e8",
10652
+ [Stage.SANDBOX]: "0xa613fcf58ffb0d3b87d969ad50c2188577e68d60f1628f23c58e97c419965016"
9910
10653
  };
9911
10654
  var PACKAGE_ULN_302_PTB_BUILDER_ADDRESS = {
9912
10655
  [Stage.MAINNET]: "0x67b3a43a3aa962e1a6012b04f68e6f358803f5970858f4de22684d6d13fcd747",
9913
- [Stage.TESTNET]: "0x71a23cdd1cb88b52a40cd2862c4ca607bd27e0f02f136e18f95351050fec9a89",
9914
- [Stage.SANDBOX]: "0x2ec29789577956a8d34e415319a3f4d9e91bf58bbb78ffc0586610839392b411"
10656
+ [Stage.TESTNET]: "0x59fbb05cb8f60250c1fb8fcd4d2e41b0639ce4b5984e44bec72274e4a048bdab",
10657
+ [Stage.SANDBOX]: "0xb2ce30f7dce9db116d4b3d968b4cde66510c7f0b15c99a112ee9bb51b11b1f80"
9915
10658
  };
9916
10659
  var PACKAGE_DVN_PTB_BUILDER_ADDRESS = {
9917
10660
  [Stage.MAINNET]: "0xb3f3a6d39a441a0f41a621d27427cedf624d500b3da5cd7051bc5835b21ac3ba",
9918
- [Stage.TESTNET]: "0xe7723903288eb1a38fb7166edce4307dfce985c7a9771af579f4f3d003dda2ec",
9919
- [Stage.SANDBOX]: "0x7389aa98677cedbd03edf5201b389802f10e1d9e42e63b08958eb4f47fae37d7"
10661
+ [Stage.TESTNET]: "0x23ffda86dcc14b6e84707a43a3b59785958dbb455c62262013065d30e49c1e3b",
10662
+ [Stage.SANDBOX]: "0x136987ce17d5c17473fe5400970597ec66c5a69d003a04ae3fe5c01a254c8360"
9920
10663
  };
9921
10664
  var PACKAGE_EXECUTOR_PTB_BUILDER_ADDRESS = {
9922
10665
  [Stage.MAINNET]: "0x9d26806bb023ccd5b79d8ad50bf503e0e91c07b5bbfeb5b20a79e073571a5196",
9923
- [Stage.TESTNET]: "0xafed5368176963fa0474724a019e4fae6643d31c06b653fa1364b2282d5049dd",
9924
- [Stage.SANDBOX]: "0xf77b3c5aa806c6d1ac4a90eb9c57cb9f2d681e0cc14aad9c45fd455795eaa949"
10666
+ [Stage.TESTNET]: "0x295c812b058677d0c0b5f5c5a7377054f0f955dfd129209ba6b73e72d6ebcb12",
10667
+ [Stage.SANDBOX]: "0xdb8b4b170eacf21c378ea4a252f94a80dde9dc847deaf1918cec29077eac2d8b"
9925
10668
  };
9926
10669
  var PACKAGE_EXECUTOR_ADDRESS = {
9927
10670
  [Stage.MAINNET]: "0x749420cc42b47d3db83fe316eb8accd8126bed9a779c0b7e06fa084c7fa1d76d",
9928
- [Stage.TESTNET]: "0x5bcded2dfa21094d5ffdd6256a2a73984e901201e84a6783aa8233b187ffdb51",
9929
- [Stage.SANDBOX]: "0xa0eca8f1204a1b2b30f07c58584711ed5c18907aaf7b4c119d28a6f986303a3a"
10671
+ [Stage.TESTNET]: "0xbc3c8b79290d6c235fce7e9c123b856fb268952d224df39a2b245f552028871f",
10672
+ [Stage.SANDBOX]: "0xe885d63e6c95b0783b4f547960e5b739333234114463271a822cd518495d3582"
9930
10673
  };
9931
10674
  var PACKAGE_ZRO_ADDRESS = {
9932
10675
  [Stage.MAINNET]: "0xcdf19828a455468c4e4ffbd74ad641dddb58b49cd7d043da4cfa12f76c599d0a",
9933
- [Stage.TESTNET]: "0x0f5b464ce3792d594954ea96262762a281dfbacf2f0714474adf8f84d68de929",
10676
+ [Stage.TESTNET]: "0x91a4056ded4eae94ca27b35463a3b41f847377fb70da0930cc2d14ce7a8a1985",
9934
10677
  [Stage.SANDBOX]: "0xce9cfe2dc60b2f45896a3c94a9af691c26b78ac4ce585ad7db429a3b6cc382c4"
9935
10678
  };
9936
10679
  var PACKAGE_CALL_ADDRESS = {
9937
10680
  [Stage.MAINNET]: "0x26848d191c6b922a0bf185c4b3f6333179ce3b48df47d83fb112868bb65c2f37",
9938
- [Stage.TESTNET]: "0x05da1c3f28b024a7397c813863a286988c82f9d3d7bd0a3418737f44e38ded5f",
10681
+ [Stage.TESTNET]: "0x49b718630acfdca4bbe7448ac982d5b98c09680e7ddcea0645856e4827a64780",
9939
10682
  [Stage.SANDBOX]: "0xd7f51d8b568d98158a635304c44f1235a95df746ef2d53e69f0c9f082912b3b8"
9940
10683
  };
9941
10684
  var PACKAGE_ENDPOINT_PTB_BUILDER_ADDRESS = {
9942
10685
  [Stage.MAINNET]: "0x387af0542c79874a52c3e8812390c0fd02a8e947ce54aea8d80481ac2b5b3acb",
9943
- [Stage.TESTNET]: "0xe0a904685954e5dc73a720f6dd29c8b5a22d2d4ca0864536b7befaf4cec44676",
9944
- [Stage.SANDBOX]: "0x34dc069cfaca897c914dc7e4f6b187db6dca9057dc5ae9fdb32dbffdd494cf37"
10686
+ [Stage.TESTNET]: "0x22f9e772cfbe6f455430e731989cf5bf9e94a052010075d317ee3453965e7531",
10687
+ [Stage.SANDBOX]: "0x642723686e9ba28e631f9dcdb281fb34d17391aad622370d767475a8f8c850ba"
9945
10688
  };
9946
10689
  var PACKAGE_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
9947
10690
  [Stage.MAINNET]: "0xba557037446a5b114205c868db114957945dd21df9770796fea2b558fc4a20fd",
9948
- [Stage.TESTNET]: "0x4badf1bba6f630905bc413b89f1c22669593b0e7aea60012a14fd42f44e2a7fe",
9949
- [Stage.SANDBOX]: "0x06277f6dc34000229e58225f3696d0f8174167ec51a68d0840d40b68811468ae"
10691
+ [Stage.TESTNET]: "0xe6ed6863d420e51cf9d4635bffda5629d9d1127ac6d04befbdc4407319def4cf",
10692
+ [Stage.SANDBOX]: "0x6522ece3dd2a71cab8193f7273c5c4b5d84d9c6ed4bfd59334ed1b3380344751"
9950
10693
  };
9951
10694
  var PACKAGE_PTB_MOVE_CALL_ADDRESS = {
9952
10695
  [Stage.MAINNET]: "0x0dd38c96b282271279247c26dba1f51d6e45209396a9e548154881e04549db66",
9953
- [Stage.TESTNET]: "0x8bdf374fe8576f28d71eecd219601cebafa38e2c79387eea92e2f27a71359197",
9954
- [Stage.SANDBOX]: "0xeb4d0c77dad48d13bc35dd58faaa1c21c31aeabf4379ab6f884c6c8558b53d9d"
10696
+ [Stage.TESTNET]: "0xb4f4197e5575de0ac3bb734c6e4319db756dccce406eac9e83532d6906f1ad13",
10697
+ [Stage.SANDBOX]: "0x58a89bc1e19d0c24e4a9c1dcaa7ae3cc1b66ef4b4977ced58e39e46a69f68ba1"
9955
10698
  };
9956
10699
  var PACKAGE_DVN_ADDRESS = {
9957
10700
  [Stage.MAINNET]: "0x6810f5568936a9a2b5fcb043f59a3cbf681e06f0db61c90bf3ff5530d4f470c0",
9958
- [Stage.TESTNET]: "0x7c04479b475305685ad24fd3e91437aa3f6e0df95d1417fad1b4640d8363be9b",
9959
- [Stage.SANDBOX]: "0x3e4f47a79339dedf94886fa73f008645790deff8f77311a28fcb30b9c1d91c60"
10701
+ [Stage.TESTNET]: "0x469f0c9a2de4dedb06dd2c3c0f7bf7ef089b6241cd9f92e8351b7934eefa8911",
10702
+ [Stage.SANDBOX]: "0x84e6f428aa68f66facd671e2f3a53fac47702f6e0c31cfb5a5a86c2336088eaf"
9960
10703
  };
9961
10704
  var PACKAGE_DVN_FEE_LIB_ADDRESS = {
9962
10705
  [Stage.MAINNET]: "0xb94f476ccd37034f4f5fb9c541320b85f86e61ae7f654fa66f3b987e8fb3f825",
9963
- [Stage.TESTNET]: "0x7f6a8ca6e6f136605be10b502d4e03fda2ee9983f57c10c6199a63744977d951",
9964
- [Stage.SANDBOX]: "0x9457382d9ed65c3b7d96f8ca32866c432f3aca772de185cc7b0df0a08c13c14b"
10706
+ [Stage.TESTNET]: "0xde03fbec539a2299369e217f9fe3f545f99f90ac1f569b734c9c34198b741a59",
10707
+ [Stage.SANDBOX]: "0x39e50f5aa2efc141f84cb5b201a657a669cb5b357c43ce4dca8d36cbb5016002"
9965
10708
  };
9966
10709
  var PACKAGE_EXECUTOR_FEE_LIB_ADDRESS = {
9967
10710
  [Stage.MAINNET]: "0x4cdd97cf2dee8387b004915c293d0565577e0194fff4894e604a09db54ac62c7",
9968
- [Stage.TESTNET]: "0x36a441e73ed70e9fc900d021381a3d833c8b15305b7a116dbd7a2d1a156432e1",
9969
- [Stage.SANDBOX]: "0xe864c9cf1690ba00d18dbfa6c706b06d6b2e70e223f11400e79ebf060ff0cac5"
10711
+ [Stage.TESTNET]: "0x70bbf3e074cacc6ff12828d61668b6c418a5f283acdb1fdb615b567ff9310e50",
10712
+ [Stage.SANDBOX]: "0x5dad89661d6ad7051e6951645fa0bff6a6ae092692f8ec25868f347db1358452"
9970
10713
  };
9971
10714
  var PACKAGE_PRICE_FEED_ADDRESS = {
9972
10715
  [Stage.MAINNET]: "0x9f12f79a355fca76492bc1908fc7a9a8518d2a83e65cffc93f134144dfa4e5bb",
9973
- [Stage.TESTNET]: "0x703efe3215e8249a490b4889d20bff10f09838d200835d53d056bbf30a80fe37",
9974
- [Stage.SANDBOX]: "0xa6db98425af6398a485a8dd9f9b21eefcc74aece57de250932b937a2bd7d6108"
10716
+ [Stage.TESTNET]: "0x8b5d94f396b4e83fac82402aaee7c718fa24ec9ae07ff3e35195a0f9703d9d27",
10717
+ [Stage.SANDBOX]: "0x8189f5325352f58e768b6f1013862a1ec86a250a50d83e5b070dcf864ab86f6b"
9975
10718
  };
9976
10719
  var PACKAGE_TREASURY_ADDRESS = {
9977
10720
  [Stage.MAINNET]: "0xcb8bc76ad2dde43cb83fe4f27a702df0874e99c047317251ee878893c17c83c5",
9978
- [Stage.TESTNET]: "0x5589cb216e702c9d18c8864b75a233a8f8b4591156fff871c129519e95d5aa3e",
9979
- [Stage.SANDBOX]: "0x4338932a1659dd212cddbc7ef7dc610e5f9d430682a2706515ac62382fc911b5"
10721
+ [Stage.TESTNET]: "0xc35f43cea1ffccbb421daebc3257f47bd52ab1f56146d67db8643cce53255e17",
10722
+ [Stage.SANDBOX]: "0xf49ab11bd37f3114ff19d70d9004f5ca6230bdf918940a0d631573e751dee970"
9980
10723
  };
9981
10724
  var PACKAGE_OAPP_ADDRESS = {
9982
10725
  [Stage.MAINNET]: "0x7c93d6d8288fa0f8df5a595dcde2413b849d8c839fc59fc09243fd5bf44c96ab",
9983
- [Stage.TESTNET]: "0x50d5a0038394ddff138900335e56315b2aed79475cad3fe3737a50dc12c884d6",
9984
- [Stage.SANDBOX]: "0x658d364c1a245c8e126cab40b215c77173cdab3288d56c4ce51158674a8204f4"
10726
+ [Stage.TESTNET]: "0xd5a9d04da7af4dc6c09d9301a5fe6e07f7a478f4c28c17211a5a53e2495d2b09",
10727
+ [Stage.SANDBOX]: "0x8624329789f44ff7047dadff2c317f2dd069152fb2a4f6bf0c48eb1f953fba40"
9985
10728
  };
9986
10729
  var PACKAGE_LAYERZERO_VIEWS_ADDRESS = {
9987
10730
  [Stage.MAINNET]: "0x74803ac88036cbd57bf1a46347e22143a47081f7159efb01419f1ed14a17ad67",
9988
- [Stage.TESTNET]: "0xa4a72308ec518a2103f9f31435d07df740736bc03b778ca1200071805c5414da",
9989
- [Stage.SANDBOX]: "0xb06760345da493b5f65040109ede722d93063614dedb0e34be7002153619615e"
10731
+ [Stage.TESTNET]: "0x47ad1d6b2702030e46899e7e57747b72956c863b24b531ae9ec64a6b4a8f6a6c",
10732
+ [Stage.SANDBOX]: "0xe9a22bac7e97ac686152309725a40e32fea3f3f251ee95aabdb787f199ddf0d3"
9990
10733
  };
9991
10734
  var PACKAGE_DVN_LAYERZERO_ADDRESS = {
9992
10735
  [Stage.MAINNET]: "0xc3f25fb140745ca0d4cde0ec382fd76e2f20d5a76a7fd9264340b4af949fd38b",
9993
- [Stage.TESTNET]: "0x725e5c54d11578942f4b45ebdce1cc91244dae658a667c2186c277b6a5673f9c",
9994
- [Stage.SANDBOX]: "0x00ae2cd83670b2292f917a21dee2e268560167b1e44059cc583d43d3dcf7d0b2"
10736
+ [Stage.TESTNET]: "0x4162ac95c378d7ecfc566332374da19959f77e7825359abe496ff175445e12fd",
10737
+ [Stage.SANDBOX]: "0x9761c2b733a929bab7ff4d2213942e96fe0f18bc507cefe89fcf0afeffa50891"
9995
10738
  };
9996
10739
  var PACKAGE_EXECUTOR_LAYERZERO_ADDRESS = {
9997
10740
  [Stage.MAINNET]: "0x2111256b15f5d0a20f6352084dac268c737b47c113b4da5eacb316f8a536f9bf",
9998
- [Stage.TESTNET]: "0xb8db282fff4358b67915bb76eb18bde3406e4e30a1d219c852c7ccf5a121a3ff",
9999
- [Stage.SANDBOX]: "0x4cdbc0ebf748f44bfd0f94cda6129f9e0dc4976bae9304338795440fc4239fd2"
10741
+ [Stage.TESTNET]: "0x54da0b9c6deb5ed73d469591289d0a9393efb92ca7749fefcf6476fbed7c35c3",
10742
+ [Stage.SANDBOX]: "0x512befade042e3d52756b08651922b8ced1b40051d17e629c2f111e228b64947"
10000
10743
  };
10001
10744
  var PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS = {
10002
10745
  [Stage.MAINNET]: "0xbdce35f2801192bb218e47bb6e9cf08e136037b271157e8db8fdc9acf0bd225e",
10003
- [Stage.TESTNET]: "0x5ad1acba7eb1b381ab3f08da17938ffa930375c0904e78ccd6e634957f6b3ef6",
10004
- [Stage.SANDBOX]: "0x1e1aa40e521c0192001957909dd522ff7b944b194d555644b755643d540a5193"
10746
+ [Stage.TESTNET]: "0x6a305271e1e63b07a53640939bc9e772321ba4849c452434882c9faf4fe32e6f",
10747
+ [Stage.SANDBOX]: "0xb88654a1df6a1db24c3cd5057b92c177054b16ff93dedbb0082947b28b510ff6"
10005
10748
  };
10006
10749
  var PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS = {
10007
10750
  [Stage.MAINNET]: "0x9f6107b708d7650b1484ae10cb98340af343f46bd63793ea91c2379bab9a7abb",
10008
- [Stage.TESTNET]: "0xd3f0cab5eca2cfb870e5390b572e67ce1d0d96bc89d097d089914014bf581e5d",
10009
- [Stage.SANDBOX]: "0xf3564021638d705174b80c7917480b49b62284c92a516f599972c7c657533d64"
10751
+ [Stage.TESTNET]: "0xfec99a17d192ecc98ac72907bd04ec653d29585839887477ccc020928cebd8c6",
10752
+ [Stage.SANDBOX]: "0xe9cfaf0405b627e9487c214864656c04d44e7ea00fe1c0d4e822f4057b4d3be0"
10010
10753
  };
10011
10754
  var PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
10012
10755
  [Stage.MAINNET]: "0xd90430a0b1b5bf932586d7d52e67e2242b1276ad7944b41c21acd4f950671335",
10013
- [Stage.TESTNET]: "0xf2c5b342b99544fbd225ed45a76096f7ed6199624d2f2f4d04b76e2afb84654e",
10014
- [Stage.SANDBOX]: "0x9b02a69ee4ea8841cf6203db30a34552429504b5cac88de024f93b42c354be31"
10756
+ [Stage.TESTNET]: "0x1d9dd8a9ea6d5938c2c8012e58b4751ab10db6bd1e70f601e8bdde5185757b05",
10757
+ [Stage.SANDBOX]: "0x5cab7fa0e76b76393cbb71ddd6b1ba75c02932fd893622251594f613b0148f96"
10758
+ };
10759
+ var PACKAGE_WORKER_REGISTRY_ADDRESS = {
10760
+ [Stage.MAINNET]: "",
10761
+ [Stage.TESTNET]: "0x3a164e62281ab73a8892405ca83e833d426357ef0dde30b72306e244210f290d",
10762
+ [Stage.SANDBOX]: "0xbf1e087bc40af272f98519a31ac5e889b95b3112b6bf28e652909cd199141cdd"
10763
+ };
10764
+ var PACKAGE_WORKER_COMMON_ADDRESS = {
10765
+ [Stage.MAINNET]: "0x6b29b0abf9da88be53a9ea1dfab8f600930b9ab6961eee65d67c1eecdd8cb695",
10766
+ [Stage.TESTNET]: "0x33475e821ef7e2b4882d9d22008d8d0f1abb2554a86ee74e810270aa3d0b90da",
10767
+ [Stage.SANDBOX]: "0x27d3deb156d4b0145608971a0f4a5409f6fb9ab6888757a2dcf954dcab36a2d5"
10015
10768
  };
10016
10769
  var OBJECT_ENDPOINT_V2_ADDRESS = {
10017
10770
  [Stage.MAINNET]: "0xd84dfbd6b21f2a6e2d9ecfd8204d20a420f2528746381c2db29c2f4caae67fcd",
10018
- [Stage.TESTNET]: "0xbba9beee809d8010f5dc1c3529d75708f1fbf2fa7bbf40bb6031a4bc8ae9c9b6",
10019
- [Stage.SANDBOX]: "0xcda0200851fd0a5c1feafe78bccac740579c15245a62b36b2f53468124b2c05d"
10771
+ [Stage.TESTNET]: "0x0012f71dd167f08907811324cedabeb93deba4b12fe06b2a5666285c39a4932a",
10772
+ [Stage.SANDBOX]: "0xdddcfdef4087b155b1b1652233c3a2c14a32a3750ba6fe0eced0a9873701f349"
10020
10773
  };
10021
10774
  var OBJECT_SIMPLE_MESSAGE_LIB_ADDRESS = {
10022
10775
  [Stage.MAINNET]: "0xd18907d32aa9e95fc2eed2d02fec562442877bec8680620c05fa5b3c110ccd81",
10023
- [Stage.TESTNET]: "0xe893810a3399bf50ec4fd7affa931bcb66dbab21e37aff80b7ce73f25e78ac4f",
10024
- [Stage.SANDBOX]: "0xd926e5e7c3551f3da7c840ded2056f5322bf051859492075009835bfdd1875f0"
10776
+ [Stage.TESTNET]: "0x7de29ab3ca94daddafcf6d9fb9e19b14a2f3764b0fc26edfa13967e77c080522",
10777
+ [Stage.SANDBOX]: "0x728b7a26e58344cc58aa277be9dc4fe9f9618e2805c2bff99a4a93286ae9852e"
10025
10778
  };
10026
10779
  var OBJECT_SIMPLE_MESSAGE_LIB_ADMIN_CAP_ADDRESS = {
10027
10780
  [Stage.MAINNET]: "0x617aceffed0b17cc5b5f5ad4cd1e8b9d965a9ef73a923b474e4763dec7c175f6",
10028
- [Stage.TESTNET]: "0x3115ca5bf047a17629099b1845db595a42b4e7d5c5916439036c18d0afd7181b",
10029
- [Stage.SANDBOX]: "0x0c995f624010b1f5da9ae8ecf1571ae7bedf3eb1397513880138f203ab9ec482"
10781
+ [Stage.TESTNET]: "0xe1754962802be1002dfa9e21754d55b7a16178c9537cc3d974d51cb7e16b55a0",
10782
+ [Stage.SANDBOX]: "0x7d6ca14b592fd04d1da545b90d8a82723b15676b40ba9ea66fac140765ba5ce5"
10030
10783
  };
10031
10784
  var OBJECT_SIMPLE_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
10032
10785
  [Stage.MAINNET]: "0x2a0c8a426823cc7fcb89dd849810b42643fda344286d493d0ce8593d9b2be280",
10033
- [Stage.TESTNET]: "0xacaa1b7ed87084cea9c593d1df4a76bfa0bce1b214559d79de8a9167705292a3",
10034
- [Stage.SANDBOX]: "0xdc0fae3db4a0d357d7c727c0d3986d2d19f659ec5bf48fe4091056b87cfa0214"
10786
+ [Stage.TESTNET]: "0x75ddd5f382fa1449075ea90817bcd0b73547641ae7adfcbe6e06e43cd2c6daac",
10787
+ [Stage.SANDBOX]: "0x6e221ab2fb71514cfc106eaa49e92573eb43384e80ffb71632306369c3a26761"
10035
10788
  };
10036
10789
  var OBJECT_ULN_302_ADDRESS = {
10037
10790
  [Stage.MAINNET]: "0x7d140391ed97fcdb3f87aa13a7727b7354cb0a6ca2a3e7156f8b3767dd634266",
10038
- [Stage.TESTNET]: "0xea27cd132fe6e4cad973f642f1450b0da2490b5350e6104365a7a48a3d97fb1e",
10039
- [Stage.SANDBOX]: "0x11912ed43188135c45f69b3947e837f96957c30bcb7c33084815aeb910740e29"
10791
+ [Stage.TESTNET]: "0x87838a88139c53e6935166cd11caca7180d90cb753f2c125a83f894171803a3d",
10792
+ [Stage.SANDBOX]: "0xbc0f3bc1c42d1acdf211ec09d94e4a0a1aa2dd52b203cb097346fb3cac45b4c9"
10040
10793
  };
10041
10794
  var OBJECT_ULN_302_ADMIN_CAP_ADDRESS = {
10042
10795
  [Stage.MAINNET]: "0xece25d7e8aad8a6295a7821bd4b7f29896714c3fc8472a5e7dbb19d67ff77e00",
10043
- [Stage.TESTNET]: "0x791622d24d7ec1c33beea371f7d2e1d8cffaaa6596a785f61684227ccd379270",
10044
- [Stage.SANDBOX]: "0x750ae0c9069131666463405502da42a97dbabcee852d9e661dcbbe40a033a926"
10796
+ [Stage.TESTNET]: "0x1b47915d5e840ef0889da1d95af7f1f410eaa02d5e81b54ee8cf78734fa6508a",
10797
+ [Stage.SANDBOX]: "0xaa74d226e9ad6633f3839e00fd59689e0e4b29eb43b892df4e9147327203b654"
10045
10798
  };
10046
10799
  var OBJECT_ULN_302_VERIFICATION_ADDRESS = {
10047
10800
  [Stage.MAINNET]: "0x2e672e3cb4f4992b3e790ce50c7b3e464a60633ca5f68de3039cc5f20116f6e7",
10048
- [Stage.TESTNET]: "0xf308d39e3bab9ec37019d955c31abac6b3e7444f915a77be203f92c1d6a9a67e",
10049
- [Stage.SANDBOX]: "0x0cfc1cd618291331a7627782536608c43fa0165149a5b9aba05bf2aaddf920fb"
10801
+ [Stage.TESTNET]: "0x71971d81ed09b09009ec389b03fd308917c07882d7ec81978e7e2299a90b2c63",
10802
+ [Stage.SANDBOX]: "0x098ad5c902bce67e02db5f551e8331905c3a9ed99ae3e5c67367d9f266ab77a5"
10050
10803
  };
10051
10804
  var OBJECT_ULN_302_PTB_BUILDER_ADDRESS = {
10052
10805
  [Stage.MAINNET]: "0xb41c8c88899debceb5982ff0333a0026bb68159758af8557ee1b12433f539ec8",
10053
- [Stage.TESTNET]: "0x44c82a3a33294c1ac36f1baf931f57ec0a60bb183b5474211b8397465e3dffac",
10054
- [Stage.SANDBOX]: "0xca27fab304e428da446b66756dfa24ea1d633cfa6db704d1b10fe20156cfa67b"
10806
+ [Stage.TESTNET]: "0xea5800593783c5754c6b8a1005c7bd0b908a554b75a7926ab87e3dcfbfe69ac5",
10807
+ [Stage.SANDBOX]: "0xe75623359f5528e8c2b10ad2d110f24970565b6159d4001ef0a3395c1d0e4738"
10055
10808
  };
10056
10809
  var OBJECT_TREASURY_ADDRESS = {
10057
10810
  [Stage.MAINNET]: "0xa6fd139692050fb7fea2a5d924d5cc637b2b617982b1537b98ab51f6074a6335",
10058
- [Stage.TESTNET]: "0xa082a4eac93a7525738511f7a00816f982545296175e54be355f813eebe20691",
10059
- [Stage.SANDBOX]: "0x6d17fd9f1064b974d095251ff53717bbeb780b29156702809c9c3104827fa19d"
10811
+ [Stage.TESTNET]: "0x48a8a2119af29b28baa972b1adcdff8208e055d94c59151a96c0c52536807056",
10812
+ [Stage.SANDBOX]: "0x23ea4195d1b09889c160da7d2f3c857fd9835191955b87d0aee754294c936b56"
10060
10813
  };
10061
10814
  var OBJECT_TREASURY_ADMIN_CAP_ADDRESS = {
10062
10815
  [Stage.MAINNET]: "0x6fafabbb6f8dd963fb926b2075de90ed86e550bc67c900768e6b4c6002bc2b7d",
10063
- [Stage.TESTNET]: "0x3ec6669b54589abb6d12aa338c4f2962a5d1ab835e6385242698f3efd9ae2582",
10064
- [Stage.SANDBOX]: "0x48a1c8e1de673691dc66320fe3caf2e8ccb292752fa2159b6e7140db575c29c8"
10816
+ [Stage.TESTNET]: "0x6153522a15c9fdd844b235339794778e211f48b45ea4f5956df0b581d5ec08a7",
10817
+ [Stage.SANDBOX]: "0x4bbcf61f044173db132516c9f273dd850c321902ac1eee3ed4860e353ad3a4d4"
10065
10818
  };
10066
10819
  var OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS = {
10067
10820
  [Stage.MAINNET]: "0x48761f1a6591f4ad761f8ef9ec85ad6d5255805c35d4c9a90c97c40e7820aa85",
10068
- [Stage.TESTNET]: "0xcc83422f225aef3300596dae1119510cf56d620a686dc1e73c9db15c49d70e31",
10069
- [Stage.SANDBOX]: "0x4aa4ef7097190d05105bf2cdc9b2f5386566fca57f8d7a2d6a73371857a9e4ab"
10821
+ [Stage.TESTNET]: "0xb281c28be2d6cecfc00e829c13424585fc6cf214443725b3732105005c1b7f32",
10822
+ [Stage.SANDBOX]: "0x2a0cceec22ba7ac375dc107dfa116dd066eb8d7bacf6be866e32e280c4ebc8cf"
10070
10823
  };
10071
10824
  var OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS = {
10072
10825
  [Stage.MAINNET]: "0xba9a66cdc77ae59264b7481e6d0d04426f380169b9afbb5176aaf58718fad6d1",
10073
- [Stage.TESTNET]: "0x28d0ec1e88734b94e38d2a8305cb89b9e81bdee41f71f4159166e99f058758c5",
10074
- [Stage.SANDBOX]: "0xbd20951baeab3e769bf2da0b546f206c2dd23d8c2842c7a65c9ac12bd43802b2"
10826
+ [Stage.TESTNET]: "0x78a5e5fbf784cba8e32393a560608089a7b26148be3d6bde7615294a92c04f71",
10827
+ [Stage.SANDBOX]: "0x56f07faec0e47902f915991668968cc98fda27987cabd16d9ed573653bee8c9a"
10075
10828
  };
10076
10829
  var OBJECT_DISCOVERY_ADDRESS = {
10077
10830
  [Stage.MAINNET]: "",
@@ -10080,48 +10833,48 @@ var OBJECT_DISCOVERY_ADDRESS = {
10080
10833
  };
10081
10834
  var OBJECT_COUNTER_ADDRESS = {
10082
10835
  [Stage.MAINNET]: "0xe44f7b2ff80b8450e0d09ec84198dd22d9e2ad6e9c9688d2db605736b99ae965",
10083
- [Stage.TESTNET]: "0x85e63925789db09ee8021dfa66cb61a31913861b4abf7d97689061cf113ca61a",
10084
- [Stage.SANDBOX]: "0x34c3bd241345e15c118bc310f87153e3f4e329236a6bd7f6639afd3854e10fd6"
10836
+ [Stage.TESTNET]: "0xa190d944a3cbb26e10bdfeaea0575ea102dc32e11468b84c2d3c5e43004279f6",
10837
+ [Stage.SANDBOX]: "0x49e0967296ffba2cb7b95b638da74b518ee3d185b8d38ec251a5d503d814ac2f"
10085
10838
  };
10086
10839
  var OBJECT_COUNTER_OAPP_ADDRESS = {
10087
10840
  [Stage.MAINNET]: "0x84e16eed83a2e9787860bd0324a3a69adc9ec181e5f7f2bfcca11222c113414c",
10088
- [Stage.TESTNET]: "0xf96322c7067fb9dbd77c7cc62bd35490dc86db507837b4310eacaef3b327ce75",
10089
- [Stage.SANDBOX]: "0x33d75362a4ab3c939d51754f18b3afdac5aa8b4f3af5ba9e9ad44b3351dca623"
10841
+ [Stage.TESTNET]: "0xebf846f8612cae7f3c6d1d53a1871e15f4b4a5422b560a612fe2449544d2d20f",
10842
+ [Stage.SANDBOX]: "0x985bdfed250d0722916b367495d1a898ce8447dcab515e3f515263e08c3b7804"
10090
10843
  };
10091
10844
  var OBJECT_COUNTER_ADMIN_CAP_ADDRESS = {
10092
10845
  [Stage.MAINNET]: "0x7c1250bbfb0e72ff58985112746d361ad729ac6f47a404c76d4e447b93b49984",
10093
- [Stage.TESTNET]: "0x63350eccf073e3b86ab7dd04566e8b62d4fa184f633ef383998b3230f66cc1de",
10094
- [Stage.SANDBOX]: "0x2b35a82ccdd841b38d468969dce5d090f00f07a1e713a1c802476402c7272bcd"
10846
+ [Stage.TESTNET]: "0xcdcd914050c84c3f7cbe222a82227abdd3c2569057c6cafb351b967567eb3c16",
10847
+ [Stage.SANDBOX]: "0x87561d4dc100a46674af78c9677a2a3543df6e72ae7598ccb7465fca027e2512"
10095
10848
  };
10096
10849
  var OBJECT_ENDPOINT_ADMIN_CAP_ADDRESS = {
10097
10850
  [Stage.MAINNET]: "0x78d0ef45ccf4e6247162c09aa73ea0bb59467057960c23fe41a976ca67e916ab",
10098
- [Stage.TESTNET]: "0xe91a479f58bd7335f620d45488bc713fd0e25ac37c1c282a8150c301dac97453",
10099
- [Stage.SANDBOX]: "0xfab761dfade0a1f68d2dd9ceb8abfa8826be50ef91676eb47aa00ae8c9b86500"
10851
+ [Stage.TESTNET]: "0xc936f9ef4fcf965ecf2ddc468493efdfbc0fa617e41a1bda3a290dc4bb8ee539",
10852
+ [Stage.SANDBOX]: "0x1cbd6b57d81ec53aafe3b53083247e082095e7257158a3a553afee00f7936e10"
10100
10853
  };
10101
10854
  var OBJECT_ENDPOINT_PTB_BUILDER_ADDRESS = {
10102
10855
  [Stage.MAINNET]: "0x2954f9997631409cf067785477b800ced4a2a9ccc75032076f8129ee07ca2caa",
10103
- [Stage.TESTNET]: "0x060ba8cc7a0e858c138ff00391bfec71dc863ac7d35cb36b14f4e52987cb9542",
10104
- [Stage.SANDBOX]: "0x80da1c4617dc27755ef53a12a96056c461e75a6953b3e51d6780cff03e5f7f4d"
10856
+ [Stage.TESTNET]: "0x694d451f4a8d1e736b26f93531e9a63b70c1e1911c265e0b8df5b503afe58829",
10857
+ [Stage.SANDBOX]: "0x6c2481611567894999cf8515d7d9ad35e46a28cd66377565143a70459c0b882f"
10105
10858
  };
10106
10859
  var OBJECT_ENDPOINT_PTB_BUILDER_ADMIN_CAP_ADDRESS = {
10107
10860
  [Stage.MAINNET]: "0x2a705654d837e75ee88e1f03003cccf3faa9a683cf0434468745532cc55e148f",
10108
- [Stage.TESTNET]: "0xd5da31144a1a30e4fea6ad9074b04fc732d95ee4f84575ade95ec524ee351abf",
10109
- [Stage.SANDBOX]: "0x1358128be7cd28bed08496242b9c5827dc57b046996a41a8b789e8ffb48aceda"
10861
+ [Stage.TESTNET]: "0x7dd332e1634cd56be0730309816d221989da141741f896c88f2c8e339ca8b2a2",
10862
+ [Stage.SANDBOX]: "0x01dd091dabbe19c8ba054991fa4be9fc6216e0c1c6de806f80d19dc4eeecc297"
10110
10863
  };
10111
10864
  var OBJECT_DVN_ADDRESS = {
10112
10865
  [Stage.MAINNET]: "0x607471cac2ed025cbb2874cd5a175e6000939747097bbd0ea89664c1fbe9672c",
10113
- [Stage.TESTNET]: "0xd97457fdd827f0b9d9c35cb9b6a8560364822c57545a10be53106dfc7c26f2b4",
10114
- [Stage.SANDBOX]: "0xb2a39ae5c222a62aa9a13374c151ad5a44c4b92ed8f037f2b2580c2b377955e1"
10866
+ [Stage.TESTNET]: "0x2f7ab74403cc4595bb2e5b9ce155a6352b102a4dc6c2e120706c6b0343664194",
10867
+ [Stage.SANDBOX]: "0x7724d321f955fa9ca4e1fe2eaae2b6a193f7acc58b678c6f153bb693514d4aaa"
10115
10868
  };
10116
10869
  var OBJECT_DVN_CAP_ADDRESS = {
10117
10870
  [Stage.MAINNET]: "0x67d3d9e3537fc8ad2efd674bdce3b7f98ba2892971ab91a6f3bb611844dcc2e1",
10118
- [Stage.TESTNET]: "0x6b29694aaf32600eba62f0f91aed2c31a7c34540a513403f23351a8cd1372d3c",
10119
- [Stage.SANDBOX]: "0xb952d8b84fee0d99c5e20f25984703828f94f7a020363c304702bdf7f55eeada"
10871
+ [Stage.TESTNET]: "0xf978cdc3465835ed83bc01e4442dcaa9bd8540e7de5c6b61d9f439b34af60653",
10872
+ [Stage.SANDBOX]: "0xcad47ed492df3f988384b956f6b3c505835bdbaaa425c3b6f246b3c132fa00a6"
10120
10873
  };
10121
10874
  var OBJECT_DVN_FEE_LIB_ADDRESS = {
10122
10875
  [Stage.MAINNET]: "0x5ff9119265b39b59260a7f1df2b7af5390f39fb33aeaf8b099e1ddc6673da1f0",
10123
- [Stage.TESTNET]: "0xc0f5802549ca974579ff193affff53a1566fffc1586f83584fc3432f85dc4859",
10124
- [Stage.SANDBOX]: "0x45096197e8d1565a969d853ec334b84b449e4199c5ccacb25817c5108772d846"
10876
+ [Stage.TESTNET]: "0xa0095aeda7675cea13507f2cb9af0a4ee1be36474d4b685ce547e1339ed16da9",
10877
+ [Stage.SANDBOX]: "0x59a37d017bd362a87dd57484310ef2cb54cec59482540c36d8b928a6cfc760d9"
10125
10878
  };
10126
10879
  var OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS = {
10127
10880
  [Stage.MAINNET]: "",
@@ -10130,23 +10883,23 @@ var OBJECT_DVN_FEE_LIB_ADMIN_CAP_ADDRESS = {
10130
10883
  };
10131
10884
  var OBJECT_EXECUTOR_ADDRESS = {
10132
10885
  [Stage.MAINNET]: "0xf5848ad4863f3594a96b4af26ab8d47414e5d17a9da76db1ab1489f1db3a75ae",
10133
- [Stage.TESTNET]: "0x69c3cd711b6730e699e2423a15f75c0fc9d96b3f6596bca140452184381a4abe",
10134
- [Stage.SANDBOX]: "0x3b2399477ed15d57ee04d54fc014f67c228bdd39c8c16494f98f19bcc8fe952b"
10886
+ [Stage.TESTNET]: "0x894d3682c5a1a21d56fd9be3588c50d2a67fec639c59dfdcbf06c36ea61600cb",
10887
+ [Stage.SANDBOX]: "0x65cdd450f06ebb4a5bb853a1dd8cb04832ef08ca8ad6446240c2a213b655b201"
10135
10888
  };
10136
10889
  var OBJECT_EXECUTOR_CAP_ADDRESS = {
10137
10890
  [Stage.MAINNET]: "0x4f86b866513949acb7728b33dc9334c9b0439c5f368f527b99db3cbf69a0282f",
10138
- [Stage.TESTNET]: "0x19bf02f900658874be5cb12af901008420c8e09fce73bfd9359dd78914a33eda",
10139
- [Stage.SANDBOX]: "0x537fcdb67272fb0defbd65f56e877df2120522025032ed4e5df66efcb848e057"
10891
+ [Stage.TESTNET]: "0x3e39349ef6c8b283421b0b8290c26982a1f90cef606d6aa49e9a7a730eaca3c4",
10892
+ [Stage.SANDBOX]: "0xeb88b6713c113a78d0aeae09ea6b5e66d281d8c2495b646727418dda4f26725b"
10140
10893
  };
10141
10894
  var OBJECT_EXECUTOR_OWNER_CAP_ADDRESS = {
10142
10895
  [Stage.MAINNET]: "0x26082897ee964836468287f28e091078257d4fa27a6b309321b3d171cef3850d",
10143
- [Stage.TESTNET]: "0x6bbd9c69eaa8e52245a7c248c04847b0e1d31ed6945f5e2ada2e4d83c2f4c655",
10144
- [Stage.SANDBOX]: "0x52fb07f5997f1677307fcfba521ad24ddb4633ccfb047db863ab6c1ec280ef85"
10896
+ [Stage.TESTNET]: "0x62c6091267bb19c3d7b7f0037b3f7f4fdad7ec6f9fd51dbe68db763802cca7ff",
10897
+ [Stage.SANDBOX]: "0xa7bb28fcf06f21cb81d38161f41fae2db13aca310b3333b8367bb6297a8db606"
10145
10898
  };
10146
10899
  var OBJECT_EXECUTOR_FEE_LIB_ADDRESS = {
10147
10900
  [Stage.MAINNET]: "0x1d505d1cfdd0ac8938826269b93c35cec0cd97ba783e073fa3b0206b35ca0378",
10148
- [Stage.TESTNET]: "0x8826aad865a485ec779b5f08c74c07dbad3063f58f7b66c5f099137af7024519",
10149
- [Stage.SANDBOX]: "0xbf426a5c517b839f00664c0bf9b5a5021ba8acdf8a24bf402a3f7d88c224e966"
10901
+ [Stage.TESTNET]: "0x8054f02534e7cffa69c72f42897ad99299ce051f62aca2704cad4155c14dc457",
10902
+ [Stage.SANDBOX]: "0xb541a6cd2682a5acb16d4f19e5b79bdd46d0143da9965b9afc9a9023a4c1244b"
10150
10903
  };
10151
10904
  var OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS = {
10152
10905
  [Stage.MAINNET]: "",
@@ -10155,18 +10908,23 @@ var OBJECT_EXECUTOR_FEE_LIB_ADMIN_CAP_ADDRESS = {
10155
10908
  };
10156
10909
  var OBJECT_PRICE_FEED_ADDRESS = {
10157
10910
  [Stage.MAINNET]: "0x17a24b91f720a8f170386d920df3c605fe7a0b96e43424283b30b11ced0f0156",
10158
- [Stage.TESTNET]: "0x10e0e26966b7eee36e0009e67c0deeb8f7e5ea1a42ecefca53bf2d5d22031ba4",
10159
- [Stage.SANDBOX]: "0x58d4c62e24c842ad44eb1d890834de9b6c4c8dbf92c60bdae1ebb10ff655571e"
10911
+ [Stage.TESTNET]: "0x7cf7be28bbb5591751a4d487162667dab39a45a6d1d00cc4205bb991c35d0f00",
10912
+ [Stage.SANDBOX]: "0xcc51b0088cecfcc5713289331ef7cd9713a0051704debbd801355a0c1f884553"
10160
10913
  };
10161
10914
  var OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS = {
10162
10915
  [Stage.MAINNET]: "0x809d4b17a59a2b832b9222b09d4d6d805b6b2aaf340b6a52babea814ef5637a4",
10163
- [Stage.TESTNET]: "0x6d42367426b654045c2c9eccf622caf43e552b3f983bbd293b1ef362e82504bd",
10164
- [Stage.SANDBOX]: "0x34a4563571d8bdde8a8158c0ac16b651d1c262f7872f4a90f6d79989d20abbb0"
10916
+ [Stage.TESTNET]: "0x53c00cb697e2f8e94fb9b227a17cfa706f51bad941a883b347f35285f3f53834",
10917
+ [Stage.SANDBOX]: "0x896e23276ef4657febb4cf260699472f049c3462bcc4427104db88da614c8526"
10165
10918
  };
10166
10919
  var OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS = {
10167
10920
  [Stage.MAINNET]: "0x9d29be17482e050324db3a4b10755e4adc5a1aa062ed80528e0fbe94654055b5",
10168
- [Stage.TESTNET]: "0xcdbefbceffe2d9f0c0d46733ef4be0145e7af60241962738e98f136bff1557e2",
10169
- [Stage.SANDBOX]: "0x4e07c6ed9cefd6eb80a86bb99fdfc4c2cb3482fdfd0f2225fb96830dc2789cc7"
10921
+ [Stage.TESTNET]: "0x61d34f027d11e124b7602242c52bb53b6bbc783c2828b6652982583271a40a11",
10922
+ [Stage.SANDBOX]: "0xd30e574e36cc9293a1049e25cb47c9de829954e73ca6348b458f3e413c92c336"
10923
+ };
10924
+ var OBJECT_WORKER_REGISTRY_ADDRESS = {
10925
+ [Stage.MAINNET]: "",
10926
+ [Stage.TESTNET]: "0x7c6d7a6abd83d8b6efab42d7c087b1f8413c2553973a44e253a380f588793326",
10927
+ [Stage.SANDBOX]: "0x55bb2926901fa69afb1466b39d0d9acb3a2ea15b0164b8770d05505781251c7a"
10170
10928
  };
10171
10929
 
10172
10930
  // src/resource.ts
@@ -10196,7 +10954,9 @@ var PACKAGE_ADDRESS_MAP = {
10196
10954
  treasury: PACKAGE_TREASURY_ADDRESS,
10197
10955
  oapp: PACKAGE_OAPP_ADDRESS,
10198
10956
  layerzeroViews: PACKAGE_LAYERZERO_VIEWS_ADDRESS,
10199
- packageWhitelistValidator: PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS
10957
+ packageWhitelistValidator: PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS,
10958
+ workerRegistry: PACKAGE_WORKER_REGISTRY_ADDRESS,
10959
+ workerCommon: PACKAGE_WORKER_COMMON_ADDRESS
10200
10960
  };
10201
10961
  var OBJECT_ADDRESS_MAP = {
10202
10962
  endpointV2: OBJECT_ENDPOINT_V2_ADDRESS,
@@ -10226,7 +10986,8 @@ var OBJECT_ADDRESS_MAP = {
10226
10986
  executorFeeLib: OBJECT_EXECUTOR_FEE_LIB_ADDRESS,
10227
10987
  priceFeed: OBJECT_PRICE_FEED_ADDRESS,
10228
10988
  priceFeedOwnerCap: OBJECT_PRICE_FEED_OWNER_CAP_ADDRESS,
10229
- packageWhitelistValidator: OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS
10989
+ packageWhitelistValidator: OBJECT_PACKAGE_WHITELIST_VALIDATOR_ADDRESS,
10990
+ workerRegistry: OBJECT_WORKER_REGISTRY_ADDRESS
10230
10991
  };
10231
10992
  var ResourceManager = class {
10232
10993
  /**
@@ -10298,8 +11059,8 @@ var SDK = class {
10298
11059
  getLayerZeroViews() {
10299
11060
  return this.moduleManager.getLayerZeroViews();
10300
11061
  }
10301
- getOApp() {
10302
- return this.moduleManager.getOApp();
11062
+ getOApp(callCapId, options) {
11063
+ return this.moduleManager.getOApp(this.client, callCapId, options);
10303
11064
  }
10304
11065
  // === Non-Core Module Getters (created on-demand with caching) ===
10305
11066
  getCounter(options) {
@@ -10347,11 +11108,14 @@ var SDK = class {
10347
11108
  getBlockedMessageLibPtbBuilder(options) {
10348
11109
  return this.moduleManager.getBlockedMessageLibPtbBuilder(this.client, options);
10349
11110
  }
11111
+ getWorkerRegistry(options) {
11112
+ return this.moduleManager.getWorkerRegistry(this.client, options);
11113
+ }
10350
11114
  getOrCreateModule(moduleName, options, factory) {
10351
11115
  return this.moduleManager.getOrCreateModule(moduleName, options, factory);
10352
11116
  }
10353
11117
  };
10354
11118
 
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 };
11119
+ 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
11120
  //# sourceMappingURL=index.mjs.map
10357
11121
  //# sourceMappingURL=index.mjs.map