@layerzerolabs/lz-sui-sdk-v2 3.0.135 → 3.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/deployments/sui-mainnet/blocked_message_lib.json +32 -32
- package/deployments/sui-mainnet/blocked_msglib_ptb_builder.json +32 -32
- package/deployments/sui-mainnet/call.json +20 -21
- package/deployments/sui-mainnet/counter.json +47 -47
- package/deployments/sui-mainnet/dvn.json +20 -19
- package/deployments/sui-mainnet/dvn_call_type.json +24 -24
- package/deployments/sui-mainnet/dvn_fee_lib.json +31 -31
- package/deployments/sui-mainnet/dvn_layerzero.json +25 -25
- package/deployments/sui-mainnet/dvn_ptb_builder.json +19 -19
- package/deployments/sui-mainnet/endpoint_ptb_builder.json +34 -34
- package/deployments/sui-mainnet/endpoint_v2.json +43 -43
- package/deployments/sui-mainnet/executor.json +20 -19
- package/deployments/sui-mainnet/executor_call_type.json +24 -24
- package/deployments/sui-mainnet/executor_fee_lib.json +25 -25
- package/deployments/sui-mainnet/executor_layerzero.json +32 -32
- package/deployments/sui-mainnet/executor_ptb_builder.json +19 -19
- package/deployments/sui-mainnet/layerzero_views.json +25 -25
- package/deployments/sui-mainnet/message_lib_common.json +25 -25
- package/deployments/sui-mainnet/msglib_ptb_builder_call_types.json +19 -19
- package/deployments/sui-mainnet/multi_call.json +45 -0
- package/deployments/sui-mainnet/oapp.json +27 -25
- package/deployments/sui-mainnet/object-BlockedMessageLib.json +5 -5
- package/deployments/sui-mainnet/object-BlockedMsglibPtbBuilder.json +5 -5
- package/deployments/sui-mainnet/object-Counter.json +5 -5
- package/deployments/sui-mainnet/object-CounterAdminCap.json +5 -5
- package/deployments/sui-mainnet/object-CounterOApp.json +5 -5
- package/deployments/sui-mainnet/object-DVN.json +2 -2
- package/deployments/sui-mainnet/object-DVNCap.json +5 -5
- package/deployments/sui-mainnet/object-DVNFeeLib.json +5 -5
- package/deployments/sui-mainnet/object-EndpointPtbBuilder.json +5 -5
- package/deployments/sui-mainnet/object-EndpointPtbBuilderAdminCap.json +5 -5
- package/deployments/sui-mainnet/object-EndpointV2.json +5 -5
- package/deployments/sui-mainnet/object-EndpointV2AdminCap.json +5 -5
- package/deployments/sui-mainnet/object-Executor.json +2 -2
- package/deployments/sui-mainnet/object-ExecutorCap.json +5 -5
- package/deployments/sui-mainnet/object-ExecutorFeeLib.json +5 -5
- package/deployments/sui-mainnet/object-ExecutorOwnerCap.json +2 -2
- package/deployments/sui-mainnet/object-PackageWhitelistValidator.json +5 -5
- package/deployments/sui-mainnet/object-PriceFeed.json +5 -5
- package/deployments/sui-mainnet/object-PriceFeedOwnerCap.json +5 -5
- package/deployments/sui-mainnet/object-SimpleMessageLib.json +5 -5
- package/deployments/sui-mainnet/object-SimpleMessageLibAdminCap.json +5 -5
- package/deployments/sui-mainnet/object-SmlPtbBuilder.json +5 -5
- package/deployments/sui-mainnet/object-Treasury.json +5 -5
- package/deployments/sui-mainnet/object-TreasuryAdminCap.json +5 -5
- package/deployments/sui-mainnet/object-ULN302.json +5 -5
- package/deployments/sui-mainnet/object-ULN302AdminCap.json +5 -5
- package/deployments/sui-mainnet/object-Uln302PtbBuilder.json +5 -5
- package/deployments/sui-mainnet/object-Uln302Verification.json +5 -5
- package/deployments/sui-mainnet/object-WorkerRegistry.json +9 -0
- package/deployments/sui-mainnet/object-ZroCoinMetadata.json +5 -5
- package/deployments/sui-mainnet/object-ZroTreasuryCap.json +5 -5
- package/deployments/sui-mainnet/package_whitelist_validator.json +54 -54
- package/deployments/sui-mainnet/price_feed.json +34 -34
- package/deployments/sui-mainnet/price_feed_call_types.json +24 -24
- package/deployments/sui-mainnet/ptb_move_call.json +19 -19
- package/deployments/sui-mainnet/simple_message_lib.json +39 -39
- package/deployments/sui-mainnet/simple_msglib_ptb_builder.json +32 -32
- package/deployments/sui-mainnet/treasury.json +40 -40
- package/deployments/sui-mainnet/uln_302.json +47 -51
- package/deployments/sui-mainnet/uln_302_ptb_builder.json +32 -32
- package/deployments/sui-mainnet/uln_common.json +49 -0
- package/deployments/sui-mainnet/utils.json +31 -24
- package/deployments/sui-mainnet/worker_common.json +21 -20
- package/deployments/sui-mainnet/worker_registry.json +58 -0
- package/deployments/sui-mainnet/zro.json +37 -37
- package/deployments/sui-sandbox-local/blocked_message_lib.json +23 -23
- package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +23 -23
- package/deployments/sui-sandbox-local/call.json +18 -19
- package/deployments/sui-sandbox-local/counter.json +28 -28
- package/deployments/sui-sandbox-local/dvn.json +10 -10
- package/deployments/sui-sandbox-local/dvn_fee_lib.json +21 -21
- package/deployments/sui-sandbox-local/dvn_layerzero.json +14 -14
- package/deployments/sui-sandbox-local/dvn_ptb_builder.json +10 -10
- package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +24 -24
- package/deployments/sui-sandbox-local/endpoint_v2.json +16 -16
- package/deployments/sui-sandbox-local/executor.json +22 -22
- package/deployments/sui-sandbox-local/executor_call_type.json +28 -28
- package/deployments/sui-sandbox-local/executor_fee_lib.json +27 -27
- package/deployments/sui-sandbox-local/executor_layerzero.json +25 -25
- package/deployments/sui-sandbox-local/executor_ptb_builder.json +14 -14
- package/deployments/sui-sandbox-local/layerzero_views.json +10 -10
- package/deployments/sui-sandbox-local/message_lib_common.json +10 -10
- package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +10 -10
- package/deployments/sui-sandbox-local/{sequential_multi_call.json → multi_call.json} +18 -18
- package/deployments/sui-sandbox-local/oapp.json +19 -19
- package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +4 -4
- package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +4 -4
- package/deployments/sui-sandbox-local/object-Counter.json +4 -4
- package/deployments/sui-sandbox-local/object-CounterAdminCap.json +4 -4
- package/deployments/sui-sandbox-local/object-CounterOApp.json +4 -4
- package/deployments/sui-sandbox-local/object-DVN.json +2 -2
- package/deployments/sui-sandbox-local/object-DVNCap.json +4 -4
- package/deployments/sui-sandbox-local/object-DVNFeeLib.json +4 -4
- package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +4 -4
- package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +4 -4
- package/deployments/sui-sandbox-local/object-EndpointV2.json +4 -4
- package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +4 -4
- package/deployments/sui-sandbox-local/object-Executor.json +2 -2
- package/deployments/sui-sandbox-local/object-ExecutorCap.json +5 -5
- package/deployments/sui-sandbox-local/object-ExecutorFeeLib.json +5 -5
- package/deployments/sui-sandbox-local/object-ExecutorOwnerCap.json +2 -2
- package/deployments/sui-sandbox-local/object-PackageWhitelistValidator.json +4 -4
- package/deployments/sui-sandbox-local/object-PriceFeed.json +4 -4
- package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +4 -4
- package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +4 -4
- package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +4 -4
- package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +4 -4
- package/deployments/sui-sandbox-local/object-Treasury.json +4 -4
- package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +4 -4
- package/deployments/sui-sandbox-local/object-ULN302.json +4 -4
- package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +4 -4
- package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +4 -4
- package/deployments/sui-sandbox-local/object-Uln302Verification.json +4 -4
- package/deployments/sui-sandbox-local/object-WorkerRegistry.json +4 -4
- package/deployments/sui-sandbox-local/package_whitelist_validator.json +41 -41
- package/deployments/sui-sandbox-local/price_feed.json +30 -30
- package/deployments/sui-sandbox-local/price_feed_call_types.json +9 -9
- package/deployments/sui-sandbox-local/ptb_move_call.json +18 -18
- package/deployments/sui-sandbox-local/simple_message_lib.json +17 -17
- package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +13 -13
- package/deployments/sui-sandbox-local/treasury.json +27 -27
- package/deployments/sui-sandbox-local/uln_302.json +28 -28
- package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +20 -20
- package/deployments/sui-sandbox-local/uln_common.json +9 -9
- package/deployments/sui-sandbox-local/worker_common.json +18 -18
- package/deployments/sui-sandbox-local/worker_registry.json +23 -23
- package/deployments/sui-testnet/blocked_message_lib.json +26 -26
- package/deployments/sui-testnet/blocked_msglib_ptb_builder.json +22 -22
- package/deployments/sui-testnet/call.json +21 -22
- package/deployments/sui-testnet/counter.json +46 -39
- package/deployments/sui-testnet/dvn.json +13 -13
- package/deployments/sui-testnet/dvn_call_type.json +12 -12
- package/deployments/sui-testnet/dvn_fee_lib.json +22 -22
- package/deployments/sui-testnet/dvn_layerzero.json +17 -17
- package/deployments/sui-testnet/dvn_ptb_builder.json +20 -20
- package/deployments/sui-testnet/endpoint_ptb_builder.json +33 -33
- package/deployments/sui-testnet/endpoint_v2.json +30 -30
- package/deployments/sui-testnet/executor.json +21 -21
- package/deployments/sui-testnet/executor_call_type.json +19 -19
- package/deployments/sui-testnet/executor_fee_lib.json +26 -26
- package/deployments/sui-testnet/executor_layerzero.json +17 -17
- package/deployments/sui-testnet/executor_ptb_builder.json +20 -20
- package/deployments/sui-testnet/layerzero_views.json +13 -13
- package/deployments/sui-testnet/message_lib_common.json +13 -13
- package/deployments/sui-testnet/msglib_ptb_builder_call_types.json +13 -13
- package/deployments/sui-testnet/multi_call.json +45 -0
- package/deployments/sui-testnet/oapp.json +21 -21
- package/deployments/sui-testnet/object-BlockedMessageLib.json +5 -5
- package/deployments/sui-testnet/object-BlockedMsglibPtbBuilder.json +5 -5
- package/deployments/sui-testnet/object-Counter.json +5 -5
- package/deployments/sui-testnet/object-CounterAdminCap.json +5 -5
- package/deployments/sui-testnet/object-CounterOApp.json +5 -5
- package/deployments/sui-testnet/object-DVN.json +2 -2
- package/deployments/sui-testnet/object-DVNCap.json +5 -5
- package/deployments/sui-testnet/object-DVNFeeLib.json +5 -5
- package/deployments/sui-testnet/object-EndpointPtbBuilder.json +5 -5
- package/deployments/sui-testnet/object-EndpointPtbBuilderAdminCap.json +5 -5
- package/deployments/sui-testnet/object-EndpointV2.json +5 -5
- package/deployments/sui-testnet/object-EndpointV2AdminCap.json +5 -5
- package/deployments/sui-testnet/object-Executor.json +2 -2
- package/deployments/sui-testnet/object-ExecutorCap.json +5 -5
- package/deployments/sui-testnet/object-ExecutorFeeLib.json +5 -5
- package/deployments/sui-testnet/object-ExecutorOwnerCap.json +2 -2
- package/deployments/sui-testnet/object-OFT-TokenTwo.json +5 -0
- package/deployments/sui-testnet/object-OFTComposerManager.json +9 -0
- package/deployments/sui-testnet/object-OFTInitTicket-TokenTwo.json +9 -0
- package/deployments/sui-testnet/object-OFTOApp-TokenTwo.json +9 -0
- package/deployments/sui-testnet/object-PackageWhitelistValidator.json +5 -5
- package/deployments/sui-testnet/object-PriceFeed.json +5 -5
- package/deployments/sui-testnet/object-PriceFeedOwnerCap.json +5 -5
- package/deployments/sui-testnet/object-SimpleMessageLib.json +5 -5
- package/deployments/sui-testnet/object-SimpleMessageLibAdminCap.json +5 -5
- package/deployments/sui-testnet/object-SmlPtbBuilder.json +5 -5
- package/deployments/sui-testnet/object-TestCoinMetadata.json +9 -0
- package/deployments/sui-testnet/object-TestCoinTreasuryCap.json +9 -0
- package/deployments/sui-testnet/object-Treasury.json +5 -5
- package/deployments/sui-testnet/object-TreasuryAdminCap.json +5 -5
- package/deployments/sui-testnet/object-ULN302.json +5 -5
- package/deployments/sui-testnet/object-ULN302AdminCap.json +5 -5
- package/deployments/sui-testnet/object-Uln302PtbBuilder.json +5 -5
- package/deployments/sui-testnet/object-Uln302Verification.json +5 -5
- package/deployments/sui-testnet/object-WorkerRegistry.json +5 -5
- package/deployments/sui-testnet/object-ZroCoinMetadata.json +5 -5
- package/deployments/sui-testnet/object-ZroTreasuryCap.json +5 -5
- package/deployments/sui-testnet/oft-TokenTwo.json +82 -0
- package/deployments/sui-testnet/oft_common.json +61 -0
- package/deployments/sui-testnet/package_whitelist_validator.json +50 -50
- package/deployments/sui-testnet/price_feed.json +31 -31
- package/deployments/sui-testnet/price_feed_call_types.json +19 -19
- package/deployments/sui-testnet/ptb_move_call.json +13 -13
- package/deployments/sui-testnet/simple_message_lib.json +22 -22
- package/deployments/sui-testnet/simple_msglib_ptb_builder.json +25 -25
- package/deployments/sui-testnet/test_coin.json +69 -0
- package/deployments/sui-testnet/treasury.json +29 -29
- package/deployments/sui-testnet/uln_302.json +46 -46
- package/deployments/sui-testnet/uln_302_ptb_builder.json +18 -18
- package/deployments/sui-testnet/uln_common.json +21 -21
- package/deployments/sui-testnet/utils.json +20 -20
- package/deployments/sui-testnet/worker_common.json +13 -13
- package/deployments/sui-testnet/worker_registry.json +26 -26
- package/deployments/sui-testnet/zro.json +27 -27
- package/dist/index.cjs +218 -226
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +33 -34
- package/dist/index.d.ts +33 -34
- package/dist/index.mjs +218 -226
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/generated/addresses.ts +169 -169
- package/src/modules/call.ts +2 -2
- package/src/modules/endpoint.ts +46 -53
- package/src/modules/oapps/counter.ts +5 -8
- package/src/modules/oapps/oapp.ts +1 -1
- package/deployments/sui-testnet/sequential_multi_call.json +0 -45
package/dist/index.d.mts
CHANGED
|
@@ -667,10 +667,8 @@ declare const EndpointErrorCode: {
|
|
|
667
667
|
readonly MessagingComposer_EComposeNotFound: 3;
|
|
668
668
|
readonly MessagingComposer_EComposerNotRegistered: 4;
|
|
669
669
|
readonly MessagingComposer_EComposerRegistered: 5;
|
|
670
|
-
readonly
|
|
671
|
-
readonly
|
|
672
|
-
readonly OAppRegistry_EOAppNotRegistered: 2;
|
|
673
|
-
readonly OAppRegistry_EOAppRegistered: 3;
|
|
670
|
+
readonly OAppRegistry_EOAppNotRegistered: 1;
|
|
671
|
+
readonly OAppRegistry_EOAppRegistered: 2;
|
|
674
672
|
readonly Endpoint_EAlreadyInitialized: 1;
|
|
675
673
|
readonly Endpoint_EInvalidEid: 2;
|
|
676
674
|
readonly Endpoint_ENotInitialized: 3;
|
|
@@ -695,9 +693,10 @@ declare class Endpoint {
|
|
|
695
693
|
* Register an OApp with the endpoint
|
|
696
694
|
* @param tx - The transaction to add the move call to
|
|
697
695
|
* @param oappCap - The OApp capability object ID or transaction argument
|
|
698
|
-
* @param
|
|
696
|
+
* @param oappInfo - OApp information including lz_receive execution information
|
|
697
|
+
* @returns Transaction result containing the messaging channel address
|
|
699
698
|
*/
|
|
700
|
-
registerOAppMoveCall(tx: Transaction, oappCap: string | TransactionArgument,
|
|
699
|
+
registerOAppMoveCall(tx: Transaction, oappCap: string | TransactionArgument, oappInfo: Uint8Array | TransactionArgument): TransactionResult;
|
|
701
700
|
/**
|
|
702
701
|
* Set a delegate for an OApp
|
|
703
702
|
* @param tx - The transaction to add the move call to
|
|
@@ -706,13 +705,13 @@ declare class Endpoint {
|
|
|
706
705
|
*/
|
|
707
706
|
setDelegateMoveCall(tx: Transaction, oappCap: string | TransactionArgument, newDelegate: string | TransactionArgument): void;
|
|
708
707
|
/**
|
|
709
|
-
* Set
|
|
708
|
+
* Set OApp information for an OApp
|
|
710
709
|
* @param tx - The transaction to add the move call to
|
|
711
710
|
* @param callerCap - The caller capability object ID or transaction argument
|
|
712
711
|
* @param oapp - The OApp address or transaction argument
|
|
713
|
-
* @param
|
|
712
|
+
* @param oappInfo - The OApp information including lz_receive execution information as bytes or transaction argument
|
|
714
713
|
*/
|
|
715
|
-
|
|
714
|
+
setOappInfoMoveCall(tx: Transaction, callerCap: string | TransactionArgument, oapp: string | TransactionArgument, oappInfo: Uint8Array | TransactionArgument): void;
|
|
716
715
|
/**
|
|
717
716
|
* Initialize a messaging channel between local and remote OApps
|
|
718
717
|
* @param tx - The transaction to add the move call to
|
|
@@ -852,16 +851,17 @@ declare class Endpoint {
|
|
|
852
851
|
* Register a composer with the endpoint
|
|
853
852
|
* @param tx - The transaction to add the move call to
|
|
854
853
|
* @param composerCap - The composer capability object ID or transaction argument
|
|
855
|
-
* @param
|
|
854
|
+
* @param composerInfo - Composer information including lz_compose execution information as bytes
|
|
855
|
+
* @returns Transaction result containing the compose queue address
|
|
856
856
|
*/
|
|
857
|
-
registerComposerMoveCall(tx: Transaction, composerCap: string | TransactionArgument,
|
|
857
|
+
registerComposerMoveCall(tx: Transaction, composerCap: string | TransactionArgument, composerInfo: Uint8Array | TransactionArgument): TransactionResult;
|
|
858
858
|
/**
|
|
859
|
-
* Set
|
|
859
|
+
* Set composer information for a composer
|
|
860
860
|
* @param tx - The transaction to add the move call to
|
|
861
861
|
* @param composerCap - The composer capability object ID or transaction argument
|
|
862
|
-
* @param
|
|
862
|
+
* @param composerInfo - Composer information including lz_compose execution information as bytes or transaction argument
|
|
863
863
|
*/
|
|
864
|
-
|
|
864
|
+
setComposerInfoMoveCall(tx: Transaction, composerCap: string | TransactionArgument, composerInfo: Uint8Array | TransactionArgument): void;
|
|
865
865
|
/**
|
|
866
866
|
* Send compose message to queue
|
|
867
867
|
* @param tx - The transaction to add the move call to
|
|
@@ -1017,18 +1017,18 @@ declare class Endpoint {
|
|
|
1017
1017
|
*/
|
|
1018
1018
|
getMessagingChannel(oapp: string): Promise<string>;
|
|
1019
1019
|
/**
|
|
1020
|
-
* Get
|
|
1020
|
+
* Get OApp information for an OApp
|
|
1021
1021
|
* @param tx - The transaction to add the move call to
|
|
1022
1022
|
* @param oapp - The OApp address or transaction argument
|
|
1023
|
-
* @returns Transaction result containing the
|
|
1023
|
+
* @returns Transaction result containing the OApp information including lz_receive execution information
|
|
1024
1024
|
*/
|
|
1025
|
-
|
|
1025
|
+
getOappInfoMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
|
|
1026
1026
|
/**
|
|
1027
|
-
* Get
|
|
1027
|
+
* Get OApp information for an OApp
|
|
1028
1028
|
* @param oapp - The OApp address
|
|
1029
|
-
* @returns Promise<Uint8Array> - The
|
|
1029
|
+
* @returns Promise<Uint8Array> - The OApp information including lz_receive execution information as bytes
|
|
1030
1030
|
*/
|
|
1031
|
-
|
|
1031
|
+
getOappInfo(oapp: string): Promise<Uint8Array>;
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Get delegate address for an OApp
|
|
1034
1034
|
* @param tx - The transaction to add the move call to
|
|
@@ -1069,18 +1069,18 @@ declare class Endpoint {
|
|
|
1069
1069
|
*/
|
|
1070
1070
|
getComposeQueue(composer: string): Promise<string>;
|
|
1071
1071
|
/**
|
|
1072
|
-
* Get
|
|
1072
|
+
* Get composer information for a registered composer
|
|
1073
1073
|
* @param tx - The transaction to add the move call to
|
|
1074
1074
|
* @param composer - The composer address or transaction argument
|
|
1075
|
-
* @returns Transaction result containing the
|
|
1075
|
+
* @returns Transaction result containing the composer information
|
|
1076
1076
|
*/
|
|
1077
|
-
|
|
1077
|
+
getComposerInfoMoveCall(tx: Transaction, composer: string | TransactionArgument): TransactionResult;
|
|
1078
1078
|
/**
|
|
1079
|
-
* Get
|
|
1079
|
+
* Get composer information for a registered composer
|
|
1080
1080
|
* @param composer - The composer address
|
|
1081
|
-
* @returns Promise<Uint8Array> - The
|
|
1081
|
+
* @returns Promise<Uint8Array> - The composer information as bytes
|
|
1082
1082
|
*/
|
|
1083
|
-
|
|
1083
|
+
getComposerInfo(composer: string): Promise<Uint8Array>;
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Get composer address from compose queue
|
|
1086
1086
|
* @param tx - The transaction to add the move call to
|
|
@@ -1553,7 +1553,7 @@ declare class Endpoint {
|
|
|
1553
1553
|
* @throws Error if simulation fails or validation errors occur
|
|
1554
1554
|
* @returns Promise<MoveCall[]> - The final move calls that are built
|
|
1555
1555
|
*/
|
|
1556
|
-
populateLzReceiveTransaction(tx: Transaction, lzReceiveCall: TransactionResult, oapp: string, // receiver oapp
|
|
1556
|
+
populateLzReceiveTransaction(tx: Transaction, lzReceiveCall: TransactionResult, oapp: string | TransactionArgument, // receiver oapp
|
|
1557
1557
|
sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Populate a transaction with all necessary move calls for LayerZero compose
|
|
@@ -1569,7 +1569,7 @@ declare class Endpoint {
|
|
|
1569
1569
|
* @throws Error if simulation fails or validation errors occur
|
|
1570
1570
|
* @returns Promise<MoveCall[]> - The final move calls that are built
|
|
1571
1571
|
*/
|
|
1572
|
-
populateLzComposeTransaction(tx: Transaction, endpointLzComposeCall: TransactionResult, composer: string, sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
|
|
1572
|
+
populateLzComposeTransaction(tx: Transaction, endpointLzComposeCall: TransactionResult, composer: string | TransactionArgument, sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
1575
|
declare const BlockedMessageLibErrorCode: {
|
|
@@ -4385,18 +4385,17 @@ declare class Counter {
|
|
|
4385
4385
|
* @param dstEid - Destination endpoint ID
|
|
4386
4386
|
* @param msgType - Message type (SEND or SEND_AND_CALL)
|
|
4387
4387
|
* @param options - Execution options as bytes
|
|
4388
|
-
* @param sendValue - Value to send with the message
|
|
4389
4388
|
* @param nativeFee - Native token fee amount
|
|
4390
4389
|
* @param zroFee - ZRO token fee amount
|
|
4391
4390
|
* @param refundAddress - Address for fee refunds
|
|
4392
4391
|
*/
|
|
4393
|
-
incrementMoveCall(tx: Transaction, sender: string, dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument,
|
|
4392
|
+
incrementMoveCall(tx: Transaction, sender: string, dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument, nativeFee: bigint | TransactionArgument, zroFee: bigint | TransactionArgument, refundAddress: string | TransactionArgument, validators?: IPTBValidator[]): Promise<void>;
|
|
4394
4393
|
/**
|
|
4395
|
-
* Set
|
|
4394
|
+
* Set composer information for counter
|
|
4396
4395
|
* @param tx - The transaction to add the move call to
|
|
4397
|
-
* @param
|
|
4396
|
+
* @param composerInfo - Composer information including lz_compose execution information as bytes
|
|
4398
4397
|
*/
|
|
4399
|
-
|
|
4398
|
+
setComposerInfoMoveCall(tx: Transaction, composerInfo: Uint8Array | TransactionArgument): void;
|
|
4400
4399
|
/**
|
|
4401
4400
|
* Get counter EID
|
|
4402
4401
|
* @param tx - The transaction to add the move call to
|
|
@@ -4797,7 +4796,7 @@ declare const CallErrorCode: {
|
|
|
4797
4796
|
readonly Call_EParameterNotMutable: 9;
|
|
4798
4797
|
readonly Call_EUnauthorized: 10;
|
|
4799
4798
|
readonly CallCap_EBadWitness: 1;
|
|
4800
|
-
readonly
|
|
4799
|
+
readonly MultiCall_ENoMoreCalls: 1;
|
|
4801
4800
|
readonly MultiCall_EUnauthorized: 2;
|
|
4802
4801
|
};
|
|
4803
4802
|
declare class Call {
|
package/dist/index.d.ts
CHANGED
|
@@ -667,10 +667,8 @@ declare const EndpointErrorCode: {
|
|
|
667
667
|
readonly MessagingComposer_EComposeNotFound: 3;
|
|
668
668
|
readonly MessagingComposer_EComposerNotRegistered: 4;
|
|
669
669
|
readonly MessagingComposer_EComposerRegistered: 5;
|
|
670
|
-
readonly
|
|
671
|
-
readonly
|
|
672
|
-
readonly OAppRegistry_EOAppNotRegistered: 2;
|
|
673
|
-
readonly OAppRegistry_EOAppRegistered: 3;
|
|
670
|
+
readonly OAppRegistry_EOAppNotRegistered: 1;
|
|
671
|
+
readonly OAppRegistry_EOAppRegistered: 2;
|
|
674
672
|
readonly Endpoint_EAlreadyInitialized: 1;
|
|
675
673
|
readonly Endpoint_EInvalidEid: 2;
|
|
676
674
|
readonly Endpoint_ENotInitialized: 3;
|
|
@@ -695,9 +693,10 @@ declare class Endpoint {
|
|
|
695
693
|
* Register an OApp with the endpoint
|
|
696
694
|
* @param tx - The transaction to add the move call to
|
|
697
695
|
* @param oappCap - The OApp capability object ID or transaction argument
|
|
698
|
-
* @param
|
|
696
|
+
* @param oappInfo - OApp information including lz_receive execution information
|
|
697
|
+
* @returns Transaction result containing the messaging channel address
|
|
699
698
|
*/
|
|
700
|
-
registerOAppMoveCall(tx: Transaction, oappCap: string | TransactionArgument,
|
|
699
|
+
registerOAppMoveCall(tx: Transaction, oappCap: string | TransactionArgument, oappInfo: Uint8Array | TransactionArgument): TransactionResult;
|
|
701
700
|
/**
|
|
702
701
|
* Set a delegate for an OApp
|
|
703
702
|
* @param tx - The transaction to add the move call to
|
|
@@ -706,13 +705,13 @@ declare class Endpoint {
|
|
|
706
705
|
*/
|
|
707
706
|
setDelegateMoveCall(tx: Transaction, oappCap: string | TransactionArgument, newDelegate: string | TransactionArgument): void;
|
|
708
707
|
/**
|
|
709
|
-
* Set
|
|
708
|
+
* Set OApp information for an OApp
|
|
710
709
|
* @param tx - The transaction to add the move call to
|
|
711
710
|
* @param callerCap - The caller capability object ID or transaction argument
|
|
712
711
|
* @param oapp - The OApp address or transaction argument
|
|
713
|
-
* @param
|
|
712
|
+
* @param oappInfo - The OApp information including lz_receive execution information as bytes or transaction argument
|
|
714
713
|
*/
|
|
715
|
-
|
|
714
|
+
setOappInfoMoveCall(tx: Transaction, callerCap: string | TransactionArgument, oapp: string | TransactionArgument, oappInfo: Uint8Array | TransactionArgument): void;
|
|
716
715
|
/**
|
|
717
716
|
* Initialize a messaging channel between local and remote OApps
|
|
718
717
|
* @param tx - The transaction to add the move call to
|
|
@@ -852,16 +851,17 @@ declare class Endpoint {
|
|
|
852
851
|
* Register a composer with the endpoint
|
|
853
852
|
* @param tx - The transaction to add the move call to
|
|
854
853
|
* @param composerCap - The composer capability object ID or transaction argument
|
|
855
|
-
* @param
|
|
854
|
+
* @param composerInfo - Composer information including lz_compose execution information as bytes
|
|
855
|
+
* @returns Transaction result containing the compose queue address
|
|
856
856
|
*/
|
|
857
|
-
registerComposerMoveCall(tx: Transaction, composerCap: string | TransactionArgument,
|
|
857
|
+
registerComposerMoveCall(tx: Transaction, composerCap: string | TransactionArgument, composerInfo: Uint8Array | TransactionArgument): TransactionResult;
|
|
858
858
|
/**
|
|
859
|
-
* Set
|
|
859
|
+
* Set composer information for a composer
|
|
860
860
|
* @param tx - The transaction to add the move call to
|
|
861
861
|
* @param composerCap - The composer capability object ID or transaction argument
|
|
862
|
-
* @param
|
|
862
|
+
* @param composerInfo - Composer information including lz_compose execution information as bytes or transaction argument
|
|
863
863
|
*/
|
|
864
|
-
|
|
864
|
+
setComposerInfoMoveCall(tx: Transaction, composerCap: string | TransactionArgument, composerInfo: Uint8Array | TransactionArgument): void;
|
|
865
865
|
/**
|
|
866
866
|
* Send compose message to queue
|
|
867
867
|
* @param tx - The transaction to add the move call to
|
|
@@ -1017,18 +1017,18 @@ declare class Endpoint {
|
|
|
1017
1017
|
*/
|
|
1018
1018
|
getMessagingChannel(oapp: string): Promise<string>;
|
|
1019
1019
|
/**
|
|
1020
|
-
* Get
|
|
1020
|
+
* Get OApp information for an OApp
|
|
1021
1021
|
* @param tx - The transaction to add the move call to
|
|
1022
1022
|
* @param oapp - The OApp address or transaction argument
|
|
1023
|
-
* @returns Transaction result containing the
|
|
1023
|
+
* @returns Transaction result containing the OApp information including lz_receive execution information
|
|
1024
1024
|
*/
|
|
1025
|
-
|
|
1025
|
+
getOappInfoMoveCall(tx: Transaction, oapp: string | TransactionArgument): TransactionResult;
|
|
1026
1026
|
/**
|
|
1027
|
-
* Get
|
|
1027
|
+
* Get OApp information for an OApp
|
|
1028
1028
|
* @param oapp - The OApp address
|
|
1029
|
-
* @returns Promise<Uint8Array> - The
|
|
1029
|
+
* @returns Promise<Uint8Array> - The OApp information including lz_receive execution information as bytes
|
|
1030
1030
|
*/
|
|
1031
|
-
|
|
1031
|
+
getOappInfo(oapp: string): Promise<Uint8Array>;
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Get delegate address for an OApp
|
|
1034
1034
|
* @param tx - The transaction to add the move call to
|
|
@@ -1069,18 +1069,18 @@ declare class Endpoint {
|
|
|
1069
1069
|
*/
|
|
1070
1070
|
getComposeQueue(composer: string): Promise<string>;
|
|
1071
1071
|
/**
|
|
1072
|
-
* Get
|
|
1072
|
+
* Get composer information for a registered composer
|
|
1073
1073
|
* @param tx - The transaction to add the move call to
|
|
1074
1074
|
* @param composer - The composer address or transaction argument
|
|
1075
|
-
* @returns Transaction result containing the
|
|
1075
|
+
* @returns Transaction result containing the composer information
|
|
1076
1076
|
*/
|
|
1077
|
-
|
|
1077
|
+
getComposerInfoMoveCall(tx: Transaction, composer: string | TransactionArgument): TransactionResult;
|
|
1078
1078
|
/**
|
|
1079
|
-
* Get
|
|
1079
|
+
* Get composer information for a registered composer
|
|
1080
1080
|
* @param composer - The composer address
|
|
1081
|
-
* @returns Promise<Uint8Array> - The
|
|
1081
|
+
* @returns Promise<Uint8Array> - The composer information as bytes
|
|
1082
1082
|
*/
|
|
1083
|
-
|
|
1083
|
+
getComposerInfo(composer: string): Promise<Uint8Array>;
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Get composer address from compose queue
|
|
1086
1086
|
* @param tx - The transaction to add the move call to
|
|
@@ -1553,7 +1553,7 @@ declare class Endpoint {
|
|
|
1553
1553
|
* @throws Error if simulation fails or validation errors occur
|
|
1554
1554
|
* @returns Promise<MoveCall[]> - The final move calls that are built
|
|
1555
1555
|
*/
|
|
1556
|
-
populateLzReceiveTransaction(tx: Transaction, lzReceiveCall: TransactionResult, oapp: string, // receiver oapp
|
|
1556
|
+
populateLzReceiveTransaction(tx: Transaction, lzReceiveCall: TransactionResult, oapp: string | TransactionArgument, // receiver oapp
|
|
1557
1557
|
sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Populate a transaction with all necessary move calls for LayerZero compose
|
|
@@ -1569,7 +1569,7 @@ declare class Endpoint {
|
|
|
1569
1569
|
* @throws Error if simulation fails or validation errors occur
|
|
1570
1570
|
* @returns Promise<MoveCall[]> - The final move calls that are built
|
|
1571
1571
|
*/
|
|
1572
|
-
populateLzComposeTransaction(tx: Transaction, endpointLzComposeCall: TransactionResult, composer: string, sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
|
|
1572
|
+
populateLzComposeTransaction(tx: Transaction, endpointLzComposeCall: TransactionResult, composer: string | TransactionArgument, sender?: string | undefined, validators?: IPTBValidator[], maxSimulationTimes?: number): Promise<MoveCall[]>;
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
1575
|
declare const BlockedMessageLibErrorCode: {
|
|
@@ -4385,18 +4385,17 @@ declare class Counter {
|
|
|
4385
4385
|
* @param dstEid - Destination endpoint ID
|
|
4386
4386
|
* @param msgType - Message type (SEND or SEND_AND_CALL)
|
|
4387
4387
|
* @param options - Execution options as bytes
|
|
4388
|
-
* @param sendValue - Value to send with the message
|
|
4389
4388
|
* @param nativeFee - Native token fee amount
|
|
4390
4389
|
* @param zroFee - ZRO token fee amount
|
|
4391
4390
|
* @param refundAddress - Address for fee refunds
|
|
4392
4391
|
*/
|
|
4393
|
-
incrementMoveCall(tx: Transaction, sender: string, dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument,
|
|
4392
|
+
incrementMoveCall(tx: Transaction, sender: string, dstEid: EndpointId | TransactionArgument, msgType: number | TransactionArgument, options: Uint8Array | TransactionArgument, nativeFee: bigint | TransactionArgument, zroFee: bigint | TransactionArgument, refundAddress: string | TransactionArgument, validators?: IPTBValidator[]): Promise<void>;
|
|
4394
4393
|
/**
|
|
4395
|
-
* Set
|
|
4394
|
+
* Set composer information for counter
|
|
4396
4395
|
* @param tx - The transaction to add the move call to
|
|
4397
|
-
* @param
|
|
4396
|
+
* @param composerInfo - Composer information including lz_compose execution information as bytes
|
|
4398
4397
|
*/
|
|
4399
|
-
|
|
4398
|
+
setComposerInfoMoveCall(tx: Transaction, composerInfo: Uint8Array | TransactionArgument): void;
|
|
4400
4399
|
/**
|
|
4401
4400
|
* Get counter EID
|
|
4402
4401
|
* @param tx - The transaction to add the move call to
|
|
@@ -4797,7 +4796,7 @@ declare const CallErrorCode: {
|
|
|
4797
4796
|
readonly Call_EParameterNotMutable: 9;
|
|
4798
4797
|
readonly Call_EUnauthorized: 10;
|
|
4799
4798
|
readonly CallCap_EBadWitness: 1;
|
|
4800
|
-
readonly
|
|
4799
|
+
readonly MultiCall_ENoMoreCalls: 1;
|
|
4801
4800
|
readonly MultiCall_EUnauthorized: 2;
|
|
4802
4801
|
};
|
|
4803
4802
|
declare class Call {
|