@layerzerolabs/lz-sui-sdk-v2 3.0.131 → 3.0.132

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 (79) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/deployments/sui-sandbox-local/blocked_message_lib.json +58 -0
  3. package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +58 -0
  4. package/deployments/sui-sandbox-local/call.json +47 -0
  5. package/deployments/sui-sandbox-local/counter.json +113 -0
  6. package/deployments/sui-sandbox-local/dvn.json +48 -0
  7. package/deployments/sui-sandbox-local/dvn_call_type.json +73 -0
  8. package/deployments/sui-sandbox-local/dvn_fee_lib.json +59 -0
  9. package/deployments/sui-sandbox-local/dvn_layerzero.json +56 -0
  10. package/deployments/sui-sandbox-local/dvn_ptb_builder.json +45 -0
  11. package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +70 -0
  12. package/deployments/sui-sandbox-local/endpoint_v2.json +86 -0
  13. package/deployments/sui-sandbox-local/executor.json +48 -0
  14. package/deployments/sui-sandbox-local/executor_call_type.json +73 -0
  15. package/deployments/sui-sandbox-local/executor_fee_lib.json +60 -0
  16. package/deployments/sui-sandbox-local/executor_layerzero.json +56 -0
  17. package/deployments/sui-sandbox-local/executor_ptb_builder.json +45 -0
  18. package/deployments/sui-sandbox-local/layerzero_views.json +46 -0
  19. package/deployments/sui-sandbox-local/message_lib_common.json +47 -0
  20. package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +45 -0
  21. package/deployments/sui-sandbox-local/oapp.json +48 -0
  22. package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +9 -0
  23. package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +9 -0
  24. package/deployments/sui-sandbox-local/object-Counter.json +9 -0
  25. package/deployments/sui-sandbox-local/object-CounterAdminCap.json +9 -0
  26. package/deployments/sui-sandbox-local/object-CounterOApp.json +9 -0
  27. package/deployments/sui-sandbox-local/object-DVN.json +5 -0
  28. package/deployments/sui-sandbox-local/object-DVNCap.json +9 -0
  29. package/deployments/sui-sandbox-local/object-DVNFeeLib.json +9 -0
  30. package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +9 -0
  31. package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +9 -0
  32. package/deployments/sui-sandbox-local/object-EndpointV2.json +9 -0
  33. package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +9 -0
  34. package/deployments/sui-sandbox-local/object-Executor.json +5 -0
  35. package/deployments/sui-sandbox-local/object-ExecutorCap.json +9 -0
  36. package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +9 -0
  37. package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +5 -0
  38. package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +9 -0
  39. package/deployments/sui-sandbox-local/object-PriceFeed.json +9 -0
  40. package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +9 -0
  41. package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +9 -0
  42. package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +9 -0
  43. package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +9 -0
  44. package/deployments/sui-sandbox-local/object-Treasury.json +9 -0
  45. package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +9 -0
  46. package/deployments/sui-sandbox-local/object-ULN302.json +9 -0
  47. package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +9 -0
  48. package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +9 -0
  49. package/deployments/sui-sandbox-local/object-Uln302Verification.json +9 -0
  50. package/deployments/sui-sandbox-local/object-ZroCoinMetadata.json +9 -0
  51. package/deployments/sui-sandbox-local/object-ZroTreasuryCap.json +9 -0
  52. package/deployments/sui-sandbox-local/package_whitelist_validator.json +113 -0
  53. package/deployments/sui-sandbox-local/price_feed.json +98 -0
  54. package/deployments/sui-sandbox-local/price_feed_call_types.json +45 -0
  55. package/deployments/sui-sandbox-local/ptb_move_call.json +48 -0
  56. package/deployments/sui-sandbox-local/simple_message_lib.json +69 -0
  57. package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +58 -0
  58. package/deployments/sui-sandbox-local/treasury.json +97 -0
  59. package/deployments/sui-sandbox-local/uln_302.json +91 -0
  60. package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +58 -0
  61. package/deployments/sui-sandbox-local/utils.json +78 -0
  62. package/deployments/sui-sandbox-local/worker_common.json +45 -0
  63. package/deployments/sui-sandbox-local/zro.json +67 -0
  64. package/dist/index.cjs +219 -144
  65. package/dist/index.cjs.map +1 -1
  66. package/dist/index.d.mts +43 -1
  67. package/dist/index.d.ts +43 -1
  68. package/dist/index.mjs +216 -145
  69. package/dist/index.mjs.map +1 -1
  70. package/package.json +7 -7
  71. package/src/generated/addresses.ts +69 -51
  72. package/src/module-manager.ts +14 -0
  73. package/src/modules/oapps/oapp.ts +1 -4
  74. package/src/modules/ptb-builders/blocked-message-lib-ptb-builder.ts +49 -0
  75. package/src/modules/ptb-builders/index.ts +1 -0
  76. package/src/resource.ts +3 -0
  77. package/src/sdk.ts +10 -0
  78. package/src/types/modules.ts +2 -0
  79. package/src/types/options.ts +15 -0
package/dist/index.d.mts CHANGED
@@ -105,6 +105,14 @@ interface PackageOptions {
105
105
  * The package whitelist validator address.
106
106
  */
107
107
  packageWhitelistValidator: string;
108
+ /**
109
+ * The blocked message library object address.
110
+ */
111
+ blockedMessageLib: string;
112
+ /**
113
+ * The blocked message library PTB builder object address.
114
+ */
115
+ blockedMessageLibPtbBuilder: string;
108
116
  /**
109
117
  * Allow additional properties beyond the explicitly defined ones
110
118
  */
@@ -158,6 +166,10 @@ interface ObjectOptions {
158
166
  * The blocked message library object address.
159
167
  */
160
168
  blockedMessageLib: string;
169
+ /**
170
+ * The blocked message library PTB builder object address.
171
+ */
172
+ blockedMessageLibPtbBuilder: string;
161
173
  /**
162
174
  * The counter admin cap object address.
163
175
  */
@@ -259,6 +271,7 @@ interface SdkOptions {
259
271
  declare enum Modules {
260
272
  Endpoint = "endpoint",
261
273
  SimpleMessageLib = "simpleMessageLib",
274
+ BlockedMessageLib = "blockedMessageLib",
262
275
  Uln302 = "uln302",
263
276
  Utils = "utils",
264
277
  Zro = "zro",
@@ -268,6 +281,7 @@ declare enum Modules {
268
281
  PtbBuilder = "ptbBuilder",
269
282
  EndpointPtbBuilder = "endpointPtbBuilder",
270
283
  SimpleMessageLibPtbBuilder = "simpleMessageLibPtbBuilder",
284
+ BlockedMessageLibPtbBuilder = "blockedMessageLibPtbBuilder",
271
285
  Uln302PtbBuilder = "uln302PtbBuilder",
272
286
  Oapp = "oapp",
273
287
  Dvn = "dvn",
@@ -556,6 +570,7 @@ declare class ModuleManager {
556
570
  initializeCoreModules(packages: PackageOptions, objects: ObjectOptions, client: SuiClient): void;
557
571
  getEndpoint(): Endpoint;
558
572
  getSimpleMessageLib(): SimpleMessageLib;
573
+ getBlockedMessageLib(): BlockedMessageLib;
559
574
  getUln302(): Uln302;
560
575
  getUtils(): Utils;
561
576
  getZro(): Zro;
@@ -578,6 +593,7 @@ declare class ModuleManager {
578
593
  getUln302PtbBuilder(client: SuiClient, options?: ModuleOptions): Uln302PtbBuilder;
579
594
  getEndpointPtbBuilder(client: SuiClient, options?: ModuleOptions): EndpointPtbBuilder;
580
595
  getSimpleMessageLibPtbBuilder(client: SuiClient, options?: ModuleOptions): SimpleMessageLibPtbBuilder;
596
+ getBlockedMessageLibPtbBuilder(client: SuiClient, options?: ModuleOptions): BlockedMessageLibPtbBuilder;
581
597
  /**
582
598
  * Merge objects configuration with options, avoiding unnecessary object spreading
583
599
  */
@@ -3883,6 +3899,21 @@ declare class Uln302PtbBuilder {
3883
3899
  dvnAssignJobMultiCallId(): Promise<string>;
3884
3900
  }
3885
3901
 
3902
+ declare class BlockedMessageLibPtbBuilder {
3903
+ #private;
3904
+ private readonly moduleManager;
3905
+ packageId: string;
3906
+ readonly client: SuiClient;
3907
+ private readonly objects;
3908
+ constructor(packageId: string, client: SuiClient, objects: ObjectOptions, moduleManager: ModuleManager);
3909
+ /**
3910
+ * Creates a transaction to get PTB builder info
3911
+ * @param tx - The transaction to add the move call to
3912
+ * @returns Transaction result containing PTB builder information
3913
+ */
3914
+ getPtbBuilderInfoMoveCall(tx: Transaction): TransactionResult;
3915
+ }
3916
+
3886
3917
  declare const CounterErrorCode: {
3887
3918
  readonly Counter_EInvalidMsgType: 0;
3888
3919
  readonly Counter_EInvalidValue: 1;
@@ -5044,6 +5075,12 @@ declare const PACKAGE_EXECUTOR_LAYERZERO_ADDRESS: {
5044
5075
  declare const PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS: {
5045
5076
  [stage in Stage]?: string;
5046
5077
  };
5078
+ declare const PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS: {
5079
+ [stage in Stage]?: string;
5080
+ };
5081
+ declare const PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS: {
5082
+ [stage in Stage]?: string;
5083
+ };
5047
5084
  declare const OBJECT_ENDPOINT_V2_ADDRESS: {
5048
5085
  [stage in Stage]?: string;
5049
5086
  };
@@ -5077,6 +5114,9 @@ declare const OBJECT_TREASURY_ADMIN_CAP_ADDRESS: {
5077
5114
  declare const OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS: {
5078
5115
  [stage in Stage]?: string;
5079
5116
  };
5117
+ declare const OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS: {
5118
+ [stage in Stage]?: string;
5119
+ };
5080
5120
  declare const OBJECT_DISCOVERY_ADDRESS: {
5081
5121
  [stage in Stage]?: string;
5082
5122
  };
@@ -5152,6 +5192,7 @@ declare class SDK {
5152
5192
  constructor(options: SdkOptions);
5153
5193
  getEndpoint(): Endpoint;
5154
5194
  getSimpleMessageLib(): SimpleMessageLib;
5195
+ getBlockedMessageLib(): BlockedMessageLib;
5155
5196
  getUln302(): Uln302;
5156
5197
  getUtils(): Utils;
5157
5198
  getZro(): Zro;
@@ -5174,6 +5215,7 @@ declare class SDK {
5174
5215
  getUln302PtbBuilder(options?: ModuleOptions): Uln302PtbBuilder;
5175
5216
  getEndpointPtbBuilder(options?: ModuleOptions): EndpointPtbBuilder;
5176
5217
  getSimpleMessageLibPtbBuilder(options?: ModuleOptions): SimpleMessageLibPtbBuilder;
5218
+ getBlockedMessageLibPtbBuilder(options?: ModuleOptions): BlockedMessageLibPtbBuilder;
5177
5219
  getOrCreateModule<T>(moduleName: string, options: ModuleOptions | undefined, factory: () => T): T;
5178
5220
  }
5179
5221
 
@@ -5436,4 +5478,4 @@ declare const TimeoutBcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5436
5478
  fallback_lib: any;
5437
5479
  }>;
5438
5480
 
5439
- export { ALL_EXECUTOR_OPTION_TYPES, type ArbitrumPriceExt, ArbitrumPriceExtBcs, type Argument, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, type BuilderPlaceholderInfo, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, type DstConfig, DstConfigBcs, type DvnDstConfig, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, type EndpointExecutionStateType, EndpointPtbBuilder, type ExecutableParams, Executor, type ExecutorConfig, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorOptionType, ExecutorPtbBuilder, type Function, FunctionBCS, type IPTBValidator, type InitializableParams, LayerZeroViews, LibBuilderManagerErrorCode, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, type MessagingFee, MessagingFeeBcs, ModelType, ModelTypeBcs, type ModuleOptions, Modules, MoveAbortError, type MoveCall, MoveCallBCS, type NativeDropParams, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, type OAppUlnConfig, OAppUlnConfigBcs, OBJECT_BLOCKED_MESSAGE_LIB_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, type ObjectFetchOptions, type ObjectOptions, 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, type PackageOptions, PackageWhitelistValidator, type Price, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, SDK, type SdkOptions, type SetDstConfigEvent, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, type SimulateResult, type Timeout, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, type UlnConfig, UlnConfigBcs, type UlnVerifiableParams, UlnVerificationState, type UlnVerificationStateType, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, type VerifiableParams, type VerifierFeePaid, type VersionInfo, 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 };
5481
+ export { ALL_EXECUTOR_OPTION_TYPES, type ArbitrumPriceExt, ArbitrumPriceExtBcs, type Argument, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, BlockedMessageLibPtbBuilder, type BuilderPlaceholderInfo, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, type DstConfig, DstConfigBcs, type DvnDstConfig, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, type EndpointExecutionStateType, EndpointPtbBuilder, type ExecutableParams, Executor, type ExecutorConfig, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorOptionType, ExecutorPtbBuilder, type Function, FunctionBCS, type IPTBValidator, type InitializableParams, LayerZeroViews, LibBuilderManagerErrorCode, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, type MessagingFee, MessagingFeeBcs, ModelType, ModelTypeBcs, type ModuleOptions, Modules, MoveAbortError, type MoveCall, MoveCallBCS, type NativeDropParams, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, type OAppUlnConfig, 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, type ObjectFetchOptions, type ObjectOptions, 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, type PackageOptions, PackageWhitelistValidator, type Price, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, SDK, type SdkOptions, type SetDstConfigEvent, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, type SimulateResult, type Timeout, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, type UlnConfig, UlnConfigBcs, type UlnVerifiableParams, UlnVerificationState, type UlnVerificationStateType, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, type VerifiableParams, type VerifierFeePaid, type VersionInfo, 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 };
package/dist/index.d.ts CHANGED
@@ -105,6 +105,14 @@ interface PackageOptions {
105
105
  * The package whitelist validator address.
106
106
  */
107
107
  packageWhitelistValidator: string;
108
+ /**
109
+ * The blocked message library object address.
110
+ */
111
+ blockedMessageLib: string;
112
+ /**
113
+ * The blocked message library PTB builder object address.
114
+ */
115
+ blockedMessageLibPtbBuilder: string;
108
116
  /**
109
117
  * Allow additional properties beyond the explicitly defined ones
110
118
  */
@@ -158,6 +166,10 @@ interface ObjectOptions {
158
166
  * The blocked message library object address.
159
167
  */
160
168
  blockedMessageLib: string;
169
+ /**
170
+ * The blocked message library PTB builder object address.
171
+ */
172
+ blockedMessageLibPtbBuilder: string;
161
173
  /**
162
174
  * The counter admin cap object address.
163
175
  */
@@ -259,6 +271,7 @@ interface SdkOptions {
259
271
  declare enum Modules {
260
272
  Endpoint = "endpoint",
261
273
  SimpleMessageLib = "simpleMessageLib",
274
+ BlockedMessageLib = "blockedMessageLib",
262
275
  Uln302 = "uln302",
263
276
  Utils = "utils",
264
277
  Zro = "zro",
@@ -268,6 +281,7 @@ declare enum Modules {
268
281
  PtbBuilder = "ptbBuilder",
269
282
  EndpointPtbBuilder = "endpointPtbBuilder",
270
283
  SimpleMessageLibPtbBuilder = "simpleMessageLibPtbBuilder",
284
+ BlockedMessageLibPtbBuilder = "blockedMessageLibPtbBuilder",
271
285
  Uln302PtbBuilder = "uln302PtbBuilder",
272
286
  Oapp = "oapp",
273
287
  Dvn = "dvn",
@@ -556,6 +570,7 @@ declare class ModuleManager {
556
570
  initializeCoreModules(packages: PackageOptions, objects: ObjectOptions, client: SuiClient): void;
557
571
  getEndpoint(): Endpoint;
558
572
  getSimpleMessageLib(): SimpleMessageLib;
573
+ getBlockedMessageLib(): BlockedMessageLib;
559
574
  getUln302(): Uln302;
560
575
  getUtils(): Utils;
561
576
  getZro(): Zro;
@@ -578,6 +593,7 @@ declare class ModuleManager {
578
593
  getUln302PtbBuilder(client: SuiClient, options?: ModuleOptions): Uln302PtbBuilder;
579
594
  getEndpointPtbBuilder(client: SuiClient, options?: ModuleOptions): EndpointPtbBuilder;
580
595
  getSimpleMessageLibPtbBuilder(client: SuiClient, options?: ModuleOptions): SimpleMessageLibPtbBuilder;
596
+ getBlockedMessageLibPtbBuilder(client: SuiClient, options?: ModuleOptions): BlockedMessageLibPtbBuilder;
581
597
  /**
582
598
  * Merge objects configuration with options, avoiding unnecessary object spreading
583
599
  */
@@ -3883,6 +3899,21 @@ declare class Uln302PtbBuilder {
3883
3899
  dvnAssignJobMultiCallId(): Promise<string>;
3884
3900
  }
3885
3901
 
3902
+ declare class BlockedMessageLibPtbBuilder {
3903
+ #private;
3904
+ private readonly moduleManager;
3905
+ packageId: string;
3906
+ readonly client: SuiClient;
3907
+ private readonly objects;
3908
+ constructor(packageId: string, client: SuiClient, objects: ObjectOptions, moduleManager: ModuleManager);
3909
+ /**
3910
+ * Creates a transaction to get PTB builder info
3911
+ * @param tx - The transaction to add the move call to
3912
+ * @returns Transaction result containing PTB builder information
3913
+ */
3914
+ getPtbBuilderInfoMoveCall(tx: Transaction): TransactionResult;
3915
+ }
3916
+
3886
3917
  declare const CounterErrorCode: {
3887
3918
  readonly Counter_EInvalidMsgType: 0;
3888
3919
  readonly Counter_EInvalidValue: 1;
@@ -5044,6 +5075,12 @@ declare const PACKAGE_EXECUTOR_LAYERZERO_ADDRESS: {
5044
5075
  declare const PACKAGE_PACKAGE_WHITELIST_VALIDATOR_ADDRESS: {
5045
5076
  [stage in Stage]?: string;
5046
5077
  };
5078
+ declare const PACKAGE_BLOCKED_MESSAGE_LIB_ADDRESS: {
5079
+ [stage in Stage]?: string;
5080
+ };
5081
+ declare const PACKAGE_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS: {
5082
+ [stage in Stage]?: string;
5083
+ };
5047
5084
  declare const OBJECT_ENDPOINT_V2_ADDRESS: {
5048
5085
  [stage in Stage]?: string;
5049
5086
  };
@@ -5077,6 +5114,9 @@ declare const OBJECT_TREASURY_ADMIN_CAP_ADDRESS: {
5077
5114
  declare const OBJECT_BLOCKED_MESSAGE_LIB_ADDRESS: {
5078
5115
  [stage in Stage]?: string;
5079
5116
  };
5117
+ declare const OBJECT_BLOCKED_MESSAGE_LIB_PTB_BUILDER_ADDRESS: {
5118
+ [stage in Stage]?: string;
5119
+ };
5080
5120
  declare const OBJECT_DISCOVERY_ADDRESS: {
5081
5121
  [stage in Stage]?: string;
5082
5122
  };
@@ -5152,6 +5192,7 @@ declare class SDK {
5152
5192
  constructor(options: SdkOptions);
5153
5193
  getEndpoint(): Endpoint;
5154
5194
  getSimpleMessageLib(): SimpleMessageLib;
5195
+ getBlockedMessageLib(): BlockedMessageLib;
5155
5196
  getUln302(): Uln302;
5156
5197
  getUtils(): Utils;
5157
5198
  getZro(): Zro;
@@ -5174,6 +5215,7 @@ declare class SDK {
5174
5215
  getUln302PtbBuilder(options?: ModuleOptions): Uln302PtbBuilder;
5175
5216
  getEndpointPtbBuilder(options?: ModuleOptions): EndpointPtbBuilder;
5176
5217
  getSimpleMessageLibPtbBuilder(options?: ModuleOptions): SimpleMessageLibPtbBuilder;
5218
+ getBlockedMessageLibPtbBuilder(options?: ModuleOptions): BlockedMessageLibPtbBuilder;
5177
5219
  getOrCreateModule<T>(moduleName: string, options: ModuleOptions | undefined, factory: () => T): T;
5178
5220
  }
5179
5221
 
@@ -5436,4 +5478,4 @@ declare const TimeoutBcs: _mysten_sui_dist_cjs_bcs.BcsType<{
5436
5478
  fallback_lib: any;
5437
5479
  }>;
5438
5480
 
5439
- export { ALL_EXECUTOR_OPTION_TYPES, type ArbitrumPriceExt, ArbitrumPriceExtBcs, type Argument, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, type BuilderPlaceholderInfo, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, type DstConfig, DstConfigBcs, type DvnDstConfig, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, type EndpointExecutionStateType, EndpointPtbBuilder, type ExecutableParams, Executor, type ExecutorConfig, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorOptionType, ExecutorPtbBuilder, type Function, FunctionBCS, type IPTBValidator, type InitializableParams, LayerZeroViews, LibBuilderManagerErrorCode, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, type MessagingFee, MessagingFeeBcs, ModelType, ModelTypeBcs, type ModuleOptions, Modules, MoveAbortError, type MoveCall, MoveCallBCS, type NativeDropParams, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, type OAppUlnConfig, OAppUlnConfigBcs, OBJECT_BLOCKED_MESSAGE_LIB_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, type ObjectFetchOptions, type ObjectOptions, 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, type PackageOptions, PackageWhitelistValidator, type Price, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, SDK, type SdkOptions, type SetDstConfigEvent, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, type SimulateResult, type Timeout, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, type UlnConfig, UlnConfigBcs, type UlnVerifiableParams, UlnVerificationState, type UlnVerificationStateType, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, type VerifiableParams, type VerifierFeePaid, type VersionInfo, 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 };
5481
+ export { ALL_EXECUTOR_OPTION_TYPES, type ArbitrumPriceExt, ArbitrumPriceExtBcs, type Argument, ArgumentBCS, BlockedMessageLib, BlockedMessageLibErrorCode, BlockedMessageLibPtbBuilder, type BuilderPlaceholderInfo, Bytes32Bcs, CONFIG_TYPE, Call, CallErrorCode, CallTypeName, Counter, CounterErrorCode, DEFAULT_SIMULATION_TIMES, DVN, DVNErrorCode, DVNFeeLib, DVNFeeLibErrorCode, type DstConfig, DstConfigBcs, type DvnDstConfig, DvnDstConfigBcs, DvnLayerZero, DvnPtbBuilder, Endpoint, EndpointErrorCode, EndpointExecutionState, type EndpointExecutionStateType, EndpointPtbBuilder, type ExecutableParams, Executor, type ExecutorConfig, ExecutorConfigBcs, ExecutorErrorCode, ExecutorFeeLib, ExecutorFeeLibErrorCode, ExecutorLayerZero, ExecutorOptionType, ExecutorPtbBuilder, type Function, FunctionBCS, type IPTBValidator, type InitializableParams, LayerZeroViews, LibBuilderManagerErrorCode, LzComposeVersion, LzReceiveVersion, LzTypeName, MAX_BATCH_SIZE, MessageLibType, type MessagingFee, MessagingFeeBcs, ModelType, ModelTypeBcs, type ModuleOptions, Modules, MoveAbortError, type MoveCall, MoveCallBCS, type NativeDropParams, NativeDropParamsBcs, NonSenderObjectValidator, OApp, OAppErrorCode, type OAppUlnConfig, 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, type ObjectFetchOptions, type ObjectOptions, 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, type PackageOptions, PackageWhitelistValidator, type Price, PriceBcs, PriceFeed, PriceFeedErrorCode, PtbBuilder, SDK, type SdkOptions, type SetDstConfigEvent, ShareObjectValidator, SimpleMessageLib, SimpleMessageLibErrorCode, SimpleMessageLibPtbBuilder, type SimulateResult, type Timeout, TimeoutBcs, Treasury, TreasuryErrorCode, Uln302, Uln302ErrorCode, Uln302PtbBuilder, type UlnConfig, UlnConfigBcs, type UlnVerifiableParams, UlnVerificationState, type UlnVerificationStateType, UnclassifiedError, Utils, UtilsErrorCode, ValidatorErrorCode, VectorMoveCallBCS, type VerifiableParams, type VerifierFeePaid, type VersionInfo, 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 };