@layerzerolabs/lz-sui-sdk-v2 3.0.134-sui.1 → 3.0.134-sui.2
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/deployments/sui-sandbox-local/blocked_message_lib.json +26 -26
- package/deployments/sui-sandbox-local/blocked_msglib_ptb_builder.json +26 -26
- package/deployments/sui-sandbox-local/counter.json +58 -58
- package/deployments/sui-sandbox-local/dvn.json +14 -14
- package/deployments/sui-sandbox-local/dvn_call_type.json +28 -28
- package/deployments/sui-sandbox-local/dvn_fee_lib.json +27 -27
- package/deployments/sui-sandbox-local/dvn_layerzero.json +17 -17
- package/deployments/sui-sandbox-local/dvn_ptb_builder.json +14 -14
- package/deployments/sui-sandbox-local/endpoint_ptb_builder.json +26 -26
- package/deployments/sui-sandbox-local/endpoint_v2.json +28 -28
- package/deployments/sui-sandbox-local/executor.json +22 -22
- package/deployments/sui-sandbox-local/executor_call_type.json +21 -21
- package/deployments/sui-sandbox-local/executor_fee_lib.json +27 -27
- package/deployments/sui-sandbox-local/executor_layerzero.json +19 -19
- package/deployments/sui-sandbox-local/executor_ptb_builder.json +21 -21
- package/deployments/sui-sandbox-local/layerzero_views.json +21 -21
- package/deployments/sui-sandbox-local/message_lib_common.json +21 -21
- package/deployments/sui-sandbox-local/msglib_ptb_builder_call_types.json +13 -13
- package/deployments/sui-sandbox-local/oapp.json +21 -21
- package/deployments/sui-sandbox-local/object-BlockedMessageLib.json +5 -5
- package/deployments/sui-sandbox-local/object-BlockedMsglibPtbBuilder.json +5 -5
- package/deployments/sui-sandbox-local/object-Counter.json +5 -5
- package/deployments/sui-sandbox-local/object-CounterAdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-CounterOApp.json +5 -5
- 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 +5 -5
- package/deployments/sui-sandbox-local/object-EndpointPtbBuilder.json +5 -5
- package/deployments/sui-sandbox-local/object-EndpointPtbBuilderAdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-EndpointV2.json +5 -5
- package/deployments/sui-sandbox-local/object-EndpointV2AdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-Executor.json +2 -2
- package/deployments/sui-sandbox-local/object-ExecutorCap.json +4 -4
- 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 +5 -5
- package/deployments/sui-sandbox-local/object-PriceFeed.json +5 -5
- package/deployments/sui-sandbox-local/object-PriceFeedOwnerCap.json +5 -5
- package/deployments/sui-sandbox-local/object-SimpleMessageLib.json +5 -5
- package/deployments/sui-sandbox-local/object-SimpleMessageLibAdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-SmlPtbBuilder.json +5 -5
- package/deployments/sui-sandbox-local/object-Treasury.json +5 -5
- package/deployments/sui-sandbox-local/object-TreasuryAdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-ULN302.json +5 -5
- package/deployments/sui-sandbox-local/object-ULN302AdminCap.json +5 -5
- package/deployments/sui-sandbox-local/object-Uln302PtbBuilder.json +5 -5
- package/deployments/sui-sandbox-local/object-Uln302Verification.json +5 -5
- package/deployments/sui-sandbox-local/object-WorkerRegistry.json +5 -5
- package/deployments/sui-sandbox-local/package_whitelist_validator.json +44 -44
- package/deployments/sui-sandbox-local/price_feed.json +40 -40
- package/deployments/sui-sandbox-local/price_feed_call_types.json +12 -12
- package/deployments/sui-sandbox-local/ptb_move_call.json +20 -20
- package/deployments/sui-sandbox-local/simple_message_lib.json +22 -22
- package/deployments/sui-sandbox-local/simple_msglib_ptb_builder.json +26 -26
- package/deployments/sui-sandbox-local/treasury.json +38 -38
- package/deployments/sui-sandbox-local/uln_302.json +42 -46
- package/deployments/sui-sandbox-local/uln_302_ptb_builder.json +25 -25
- package/deployments/sui-sandbox-local/uln_common.json +49 -0
- package/deployments/sui-sandbox-local/worker_common.json +21 -21
- package/deployments/sui-sandbox-local/worker_registry.json +24 -24
- package/dist/index.cjs +220 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +69 -12
- package/dist/index.d.ts +69 -12
- package/dist/index.mjs +220 -76
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/generated/addresses.ts +54 -54
- package/src/modules/message-libs/uln302.ts +5 -21
- package/src/modules/workers/dvn-layerzero.ts +3 -0
- package/src/modules/workers/dvn.ts +140 -6
- package/src/modules/workers/executor-layerzero.ts +3 -0
- package/src/modules/workers/executor.ts +52 -0
package/dist/index.d.mts
CHANGED
|
@@ -1793,16 +1793,13 @@ declare class Uln302 {
|
|
|
1793
1793
|
*/
|
|
1794
1794
|
setConfigMoveCall(tx: Transaction, call: TransactionArgument): void;
|
|
1795
1795
|
/**
|
|
1796
|
-
* Verify packet move call with DVN
|
|
1797
|
-
* Note: This is typically called by DVNs, not directly by users
|
|
1796
|
+
* Verify packet move call with DVN call (new API)
|
|
1797
|
+
* Note: This is typically called by DVNs via Call objects, not directly by users
|
|
1798
1798
|
* @param tx - The transaction to add the move call to
|
|
1799
1799
|
* @param verification - The verification object address or transaction argument
|
|
1800
|
-
* @param
|
|
1801
|
-
* @param packetHeader - The packet header as bytes or transaction argument
|
|
1802
|
-
* @param payloadHash - The payload hash as bytes or transaction argument
|
|
1803
|
-
* @param confirmations - Required confirmations count or transaction argument
|
|
1800
|
+
* @param call - The DVN verification call containing verification parameters
|
|
1804
1801
|
*/
|
|
1805
|
-
verifyMoveCall(tx: Transaction, verification: string | TransactionArgument,
|
|
1802
|
+
verifyMoveCall(tx: Transaction, verification: string | TransactionArgument, call: TransactionArgument): void;
|
|
1806
1803
|
/**
|
|
1807
1804
|
* Commit verification move call after all DVN verifications are complete
|
|
1808
1805
|
* Note: This is typically called by relayers/executors, not directly by users
|
|
@@ -2149,6 +2146,16 @@ declare class DVN {
|
|
|
2149
2146
|
* @returns Transaction result containing the set PTB builder call
|
|
2150
2147
|
*/
|
|
2151
2148
|
setPtbBuilderMoveCallsMoveCall(tx: Transaction, adminCap: string | TransactionArgument, targetPtbBuilder: string | TransactionArgument, getFeeMoveCalls: TransactionArgument, assignJobMoveCalls: TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): TransactionResult;
|
|
2149
|
+
/**
|
|
2150
|
+
* Set supported message library (admin with signatures)
|
|
2151
|
+
* @param tx - The transaction to add the move call to
|
|
2152
|
+
* @param adminCap - The admin capability object ID
|
|
2153
|
+
* @param messageLib - The message library address
|
|
2154
|
+
* @param supported - Whether to support or remove support for the message library
|
|
2155
|
+
* @param expiration - Signature expiration timestamp
|
|
2156
|
+
* @param signatures - Multisig signatures for authorization
|
|
2157
|
+
*/
|
|
2158
|
+
setSupportedMessageLibMoveCall(tx: Transaction, adminCap: string | TransactionArgument, messageLib: string | TransactionArgument, supported: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
|
|
2152
2159
|
/**
|
|
2153
2160
|
* Set allowlist status for an OApp sender (admin with signatures)
|
|
2154
2161
|
* @param tx - The transaction to add the move call to
|
|
@@ -2207,17 +2214,18 @@ declare class DVN {
|
|
|
2207
2214
|
*/
|
|
2208
2215
|
quorumChangeAdminMoveCall(tx: Transaction, admin: string | TransactionArgument, active: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
|
|
2209
2216
|
/**
|
|
2210
|
-
* Verify a packet with DVN signatures (admin with signatures)
|
|
2217
|
+
* Verify a packet with DVN signatures (admin with signatures) - returns Call object for ULN302
|
|
2211
2218
|
* @param tx - The transaction to add the move call to
|
|
2212
2219
|
* @param adminCap - The admin capability object ID
|
|
2213
|
-
* @param
|
|
2220
|
+
* @param targetMessageLib - The target message library address (usually ULN302)
|
|
2214
2221
|
* @param packetHeader - The packet header as bytes
|
|
2215
2222
|
* @param payloadHash - The payload hash as bytes
|
|
2216
2223
|
* @param confirmations - Required confirmations count
|
|
2217
2224
|
* @param expiration - Signature expiration timestamp
|
|
2218
2225
|
* @param signatures - DVN multisig signatures
|
|
2226
|
+
* @returns Transaction result containing the verification Call object
|
|
2219
2227
|
*/
|
|
2220
|
-
verifyMoveCall(tx: Transaction, adminCap: string | TransactionArgument,
|
|
2228
|
+
verifyMoveCall(tx: Transaction, adminCap: string | TransactionArgument, targetMessageLib: string | TransactionArgument, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | number | string | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): TransactionResult;
|
|
2221
2229
|
/**
|
|
2222
2230
|
* Assign verification job for DVN (called via PTB with MultiCall created by send function in ULN302)
|
|
2223
2231
|
* @param tx - The transaction to add the move call to
|
|
@@ -2342,6 +2350,19 @@ declare class DVN {
|
|
|
2342
2350
|
* @returns Promise<boolean> - True if the address is an admin
|
|
2343
2351
|
*/
|
|
2344
2352
|
isAdminAddress(admin: string): Promise<boolean>;
|
|
2353
|
+
/**
|
|
2354
|
+
* Check if a message library is supported by this DVN
|
|
2355
|
+
* @param tx - The transaction to add the move call to
|
|
2356
|
+
* @param messageLib - The message library address to check
|
|
2357
|
+
* @returns Transaction result containing the support status
|
|
2358
|
+
*/
|
|
2359
|
+
isSupportedMessageLibMoveCall(tx: Transaction, messageLib: string | TransactionArgument): TransactionResult;
|
|
2360
|
+
/**
|
|
2361
|
+
* Check if a message library is supported by this DVN
|
|
2362
|
+
* @param messageLib - The message library address to check
|
|
2363
|
+
* @returns Promise<boolean> - True if the message library is supported
|
|
2364
|
+
*/
|
|
2365
|
+
isSupportedMessageLib(messageLib: string): Promise<boolean>;
|
|
2345
2366
|
/**
|
|
2346
2367
|
* Check if an address is allowlisted
|
|
2347
2368
|
* @param tx - The transaction to add the move call to
|
|
@@ -2670,6 +2691,19 @@ declare class DVN {
|
|
|
2670
2691
|
* @returns Transaction result containing the set PTB builder move calls hash
|
|
2671
2692
|
*/
|
|
2672
2693
|
createSetPtbBuilderMoveCallsHashMoveCall(tx: Transaction, targetPtbBuilder: string | TransactionArgument, getFeeMoveCalls: TransactionArgument, assignJobMoveCalls: TransactionArgument, vid: number | TransactionArgument, expiration: bigint | number | string | TransactionArgument): TransactionResult;
|
|
2694
|
+
/**
|
|
2695
|
+
* Populate verify with DVN verification and ULN verify call
|
|
2696
|
+
* @param tx - The transaction to add the move call to
|
|
2697
|
+
* @param adminCap - The admin capability object ID
|
|
2698
|
+
* @param targetMessageLib - The target message library address (usually ULN302)
|
|
2699
|
+
* @param targetVerification - The verification object address for the target message library
|
|
2700
|
+
* @param packetHeader - The packet header as bytes
|
|
2701
|
+
* @param payloadHash - The payload hash as bytes
|
|
2702
|
+
* @param confirmations - Required confirmations count
|
|
2703
|
+
* @param expiration - Signature expiration timestamp
|
|
2704
|
+
* @param signatures - DVN multisig signatures
|
|
2705
|
+
*/
|
|
2706
|
+
populateVerify(tx: Transaction, adminCap: string | TransactionArgument, targetMessageLib: string, targetVerification: string, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | number | string | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
|
|
2673
2707
|
}
|
|
2674
2708
|
|
|
2675
2709
|
declare const DVNFeeLibErrorCode: {
|
|
@@ -2725,6 +2759,7 @@ declare class DvnLayerZero {
|
|
|
2725
2759
|
* @param workerCap - Worker capability object ID or transaction argument
|
|
2726
2760
|
* @param vid - Verifier ID for the DVN or transaction argument
|
|
2727
2761
|
* @param depositAddress - Address for fee deposits or transaction argument
|
|
2762
|
+
* @param supportedMessageLibs - Array of supported message library addresses or transaction argument
|
|
2728
2763
|
* @param priceFeed - Price feed object address or transaction argument
|
|
2729
2764
|
* @param workerFeeLib - Worker fee library address or transaction argument
|
|
2730
2765
|
* @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
|
|
@@ -2732,7 +2767,7 @@ declare class DvnLayerZero {
|
|
|
2732
2767
|
* @param signers - Array of signer public keys as bytes or transaction argument
|
|
2733
2768
|
* @param quorum - Required signature threshold or transaction argument
|
|
2734
2769
|
*/
|
|
2735
|
-
initDvnMoveCall(tx: Transaction, workerCap: string | TransactionArgument, vid: number | TransactionArgument, depositAddress: string | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, admins: string[] | TransactionArgument, signers: Uint8Array[] | TransactionArgument, quorum: bigint | number | string | TransactionArgument): void;
|
|
2770
|
+
initDvnMoveCall(tx: Transaction, workerCap: string | TransactionArgument, vid: number | TransactionArgument, depositAddress: string | TransactionArgument, supportedMessageLibs: string[] | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, admins: string[] | TransactionArgument, signers: Uint8Array[] | TransactionArgument, quorum: bigint | number | string | TransactionArgument): void;
|
|
2736
2771
|
}
|
|
2737
2772
|
|
|
2738
2773
|
declare const ExecutorErrorCode: {
|
|
@@ -2918,6 +2953,14 @@ declare class Executor {
|
|
|
2918
2953
|
* @param active - Whether to grant or revoke admin role
|
|
2919
2954
|
*/
|
|
2920
2955
|
setAdminMoveCall(tx: Transaction, ownerCap: string | TransactionArgument, admin: string | TransactionArgument, active: boolean | TransactionArgument): void;
|
|
2956
|
+
/**
|
|
2957
|
+
* Set supported message library (owner only)
|
|
2958
|
+
* @param tx - The transaction to add the move call to
|
|
2959
|
+
* @param ownerCap - The owner capability object ID
|
|
2960
|
+
* @param messageLib - The message library address
|
|
2961
|
+
* @param supported - Whether to support or remove support for the message library
|
|
2962
|
+
*/
|
|
2963
|
+
setSupportedMessageLibMoveCall(tx: Transaction, ownerCap: string | TransactionArgument, messageLib: string | TransactionArgument, supported: boolean | TransactionArgument): void;
|
|
2921
2964
|
/**
|
|
2922
2965
|
* Set allowlist status for an OApp sender (owner only)
|
|
2923
2966
|
* @param tx - The transaction to add the move call to
|
|
@@ -3037,6 +3080,19 @@ declare class Executor {
|
|
|
3037
3080
|
* @returns Promise<boolean> - True if the address is an admin
|
|
3038
3081
|
*/
|
|
3039
3082
|
isAdminAddress(admin: string): Promise<boolean>;
|
|
3083
|
+
/**
|
|
3084
|
+
* Check if a message library is supported by this executor
|
|
3085
|
+
* @param tx - The transaction to add the move call to
|
|
3086
|
+
* @param messageLib - The message library address to check
|
|
3087
|
+
* @returns Transaction result containing the support status
|
|
3088
|
+
*/
|
|
3089
|
+
isSupportedMessageLibMoveCall(tx: Transaction, messageLib: string | TransactionArgument): TransactionResult;
|
|
3090
|
+
/**
|
|
3091
|
+
* Check if a message library is supported by this executor
|
|
3092
|
+
* @param messageLib - The message library address to check
|
|
3093
|
+
* @returns Promise<boolean> - True if the message library is supported
|
|
3094
|
+
*/
|
|
3095
|
+
isSupportedMessageLib(messageLib: string): Promise<boolean>;
|
|
3040
3096
|
/**
|
|
3041
3097
|
* Check if an address is allowlisted
|
|
3042
3098
|
* @param tx - The transaction to add the move call to
|
|
@@ -3207,13 +3263,14 @@ declare class ExecutorLayerZero {
|
|
|
3207
3263
|
* @param tx - The transaction to add the move call to
|
|
3208
3264
|
* @param workerCap - Worker capability object ID or transaction argument
|
|
3209
3265
|
* @param depositAddress - Address for fee deposits or transaction argument
|
|
3266
|
+
* @param supportedMessageLibs - Array of supported message library addresses or transaction argument
|
|
3210
3267
|
* @param priceFeed - Price feed object address or transaction argument
|
|
3211
3268
|
* @param workerFeeLib - Worker fee library address or transaction argument
|
|
3212
3269
|
* @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
|
|
3213
3270
|
* @param owner - Owner address for the executor or transaction argument
|
|
3214
3271
|
* @param admins - Array of admin addresses or transaction argument
|
|
3215
3272
|
*/
|
|
3216
|
-
initExecutorMoveCall(tx: Transaction, workerCap: string | TransactionArgument, depositAddress: string | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, owner: string | TransactionArgument, admins: string[] | TransactionArgument): void;
|
|
3273
|
+
initExecutorMoveCall(tx: Transaction, workerCap: string | TransactionArgument, depositAddress: string | TransactionArgument, supportedMessageLibs: string[] | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, owner: string | TransactionArgument, admins: string[] | TransactionArgument): void;
|
|
3217
3274
|
}
|
|
3218
3275
|
|
|
3219
3276
|
declare const PriceFeedErrorCode: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1793,16 +1793,13 @@ declare class Uln302 {
|
|
|
1793
1793
|
*/
|
|
1794
1794
|
setConfigMoveCall(tx: Transaction, call: TransactionArgument): void;
|
|
1795
1795
|
/**
|
|
1796
|
-
* Verify packet move call with DVN
|
|
1797
|
-
* Note: This is typically called by DVNs, not directly by users
|
|
1796
|
+
* Verify packet move call with DVN call (new API)
|
|
1797
|
+
* Note: This is typically called by DVNs via Call objects, not directly by users
|
|
1798
1798
|
* @param tx - The transaction to add the move call to
|
|
1799
1799
|
* @param verification - The verification object address or transaction argument
|
|
1800
|
-
* @param
|
|
1801
|
-
* @param packetHeader - The packet header as bytes or transaction argument
|
|
1802
|
-
* @param payloadHash - The payload hash as bytes or transaction argument
|
|
1803
|
-
* @param confirmations - Required confirmations count or transaction argument
|
|
1800
|
+
* @param call - The DVN verification call containing verification parameters
|
|
1804
1801
|
*/
|
|
1805
|
-
verifyMoveCall(tx: Transaction, verification: string | TransactionArgument,
|
|
1802
|
+
verifyMoveCall(tx: Transaction, verification: string | TransactionArgument, call: TransactionArgument): void;
|
|
1806
1803
|
/**
|
|
1807
1804
|
* Commit verification move call after all DVN verifications are complete
|
|
1808
1805
|
* Note: This is typically called by relayers/executors, not directly by users
|
|
@@ -2149,6 +2146,16 @@ declare class DVN {
|
|
|
2149
2146
|
* @returns Transaction result containing the set PTB builder call
|
|
2150
2147
|
*/
|
|
2151
2148
|
setPtbBuilderMoveCallsMoveCall(tx: Transaction, adminCap: string | TransactionArgument, targetPtbBuilder: string | TransactionArgument, getFeeMoveCalls: TransactionArgument, assignJobMoveCalls: TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): TransactionResult;
|
|
2149
|
+
/**
|
|
2150
|
+
* Set supported message library (admin with signatures)
|
|
2151
|
+
* @param tx - The transaction to add the move call to
|
|
2152
|
+
* @param adminCap - The admin capability object ID
|
|
2153
|
+
* @param messageLib - The message library address
|
|
2154
|
+
* @param supported - Whether to support or remove support for the message library
|
|
2155
|
+
* @param expiration - Signature expiration timestamp
|
|
2156
|
+
* @param signatures - Multisig signatures for authorization
|
|
2157
|
+
*/
|
|
2158
|
+
setSupportedMessageLibMoveCall(tx: Transaction, adminCap: string | TransactionArgument, messageLib: string | TransactionArgument, supported: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
|
|
2152
2159
|
/**
|
|
2153
2160
|
* Set allowlist status for an OApp sender (admin with signatures)
|
|
2154
2161
|
* @param tx - The transaction to add the move call to
|
|
@@ -2207,17 +2214,18 @@ declare class DVN {
|
|
|
2207
2214
|
*/
|
|
2208
2215
|
quorumChangeAdminMoveCall(tx: Transaction, admin: string | TransactionArgument, active: boolean | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
|
|
2209
2216
|
/**
|
|
2210
|
-
* Verify a packet with DVN signatures (admin with signatures)
|
|
2217
|
+
* Verify a packet with DVN signatures (admin with signatures) - returns Call object for ULN302
|
|
2211
2218
|
* @param tx - The transaction to add the move call to
|
|
2212
2219
|
* @param adminCap - The admin capability object ID
|
|
2213
|
-
* @param
|
|
2220
|
+
* @param targetMessageLib - The target message library address (usually ULN302)
|
|
2214
2221
|
* @param packetHeader - The packet header as bytes
|
|
2215
2222
|
* @param payloadHash - The payload hash as bytes
|
|
2216
2223
|
* @param confirmations - Required confirmations count
|
|
2217
2224
|
* @param expiration - Signature expiration timestamp
|
|
2218
2225
|
* @param signatures - DVN multisig signatures
|
|
2226
|
+
* @returns Transaction result containing the verification Call object
|
|
2219
2227
|
*/
|
|
2220
|
-
verifyMoveCall(tx: Transaction, adminCap: string | TransactionArgument,
|
|
2228
|
+
verifyMoveCall(tx: Transaction, adminCap: string | TransactionArgument, targetMessageLib: string | TransactionArgument, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | number | string | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): TransactionResult;
|
|
2221
2229
|
/**
|
|
2222
2230
|
* Assign verification job for DVN (called via PTB with MultiCall created by send function in ULN302)
|
|
2223
2231
|
* @param tx - The transaction to add the move call to
|
|
@@ -2342,6 +2350,19 @@ declare class DVN {
|
|
|
2342
2350
|
* @returns Promise<boolean> - True if the address is an admin
|
|
2343
2351
|
*/
|
|
2344
2352
|
isAdminAddress(admin: string): Promise<boolean>;
|
|
2353
|
+
/**
|
|
2354
|
+
* Check if a message library is supported by this DVN
|
|
2355
|
+
* @param tx - The transaction to add the move call to
|
|
2356
|
+
* @param messageLib - The message library address to check
|
|
2357
|
+
* @returns Transaction result containing the support status
|
|
2358
|
+
*/
|
|
2359
|
+
isSupportedMessageLibMoveCall(tx: Transaction, messageLib: string | TransactionArgument): TransactionResult;
|
|
2360
|
+
/**
|
|
2361
|
+
* Check if a message library is supported by this DVN
|
|
2362
|
+
* @param messageLib - The message library address to check
|
|
2363
|
+
* @returns Promise<boolean> - True if the message library is supported
|
|
2364
|
+
*/
|
|
2365
|
+
isSupportedMessageLib(messageLib: string): Promise<boolean>;
|
|
2345
2366
|
/**
|
|
2346
2367
|
* Check if an address is allowlisted
|
|
2347
2368
|
* @param tx - The transaction to add the move call to
|
|
@@ -2670,6 +2691,19 @@ declare class DVN {
|
|
|
2670
2691
|
* @returns Transaction result containing the set PTB builder move calls hash
|
|
2671
2692
|
*/
|
|
2672
2693
|
createSetPtbBuilderMoveCallsHashMoveCall(tx: Transaction, targetPtbBuilder: string | TransactionArgument, getFeeMoveCalls: TransactionArgument, assignJobMoveCalls: TransactionArgument, vid: number | TransactionArgument, expiration: bigint | number | string | TransactionArgument): TransactionResult;
|
|
2694
|
+
/**
|
|
2695
|
+
* Populate verify with DVN verification and ULN verify call
|
|
2696
|
+
* @param tx - The transaction to add the move call to
|
|
2697
|
+
* @param adminCap - The admin capability object ID
|
|
2698
|
+
* @param targetMessageLib - The target message library address (usually ULN302)
|
|
2699
|
+
* @param targetVerification - The verification object address for the target message library
|
|
2700
|
+
* @param packetHeader - The packet header as bytes
|
|
2701
|
+
* @param payloadHash - The payload hash as bytes
|
|
2702
|
+
* @param confirmations - Required confirmations count
|
|
2703
|
+
* @param expiration - Signature expiration timestamp
|
|
2704
|
+
* @param signatures - DVN multisig signatures
|
|
2705
|
+
*/
|
|
2706
|
+
populateVerify(tx: Transaction, adminCap: string | TransactionArgument, targetMessageLib: string, targetVerification: string, packetHeader: Uint8Array | TransactionArgument, payloadHash: Uint8Array | TransactionArgument, confirmations: bigint | number | string | TransactionArgument, expiration: bigint | number | string | TransactionArgument, signatures: Uint8Array | TransactionArgument): void;
|
|
2673
2707
|
}
|
|
2674
2708
|
|
|
2675
2709
|
declare const DVNFeeLibErrorCode: {
|
|
@@ -2725,6 +2759,7 @@ declare class DvnLayerZero {
|
|
|
2725
2759
|
* @param workerCap - Worker capability object ID or transaction argument
|
|
2726
2760
|
* @param vid - Verifier ID for the DVN or transaction argument
|
|
2727
2761
|
* @param depositAddress - Address for fee deposits or transaction argument
|
|
2762
|
+
* @param supportedMessageLibs - Array of supported message library addresses or transaction argument
|
|
2728
2763
|
* @param priceFeed - Price feed object address or transaction argument
|
|
2729
2764
|
* @param workerFeeLib - Worker fee library address or transaction argument
|
|
2730
2765
|
* @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
|
|
@@ -2732,7 +2767,7 @@ declare class DvnLayerZero {
|
|
|
2732
2767
|
* @param signers - Array of signer public keys as bytes or transaction argument
|
|
2733
2768
|
* @param quorum - Required signature threshold or transaction argument
|
|
2734
2769
|
*/
|
|
2735
|
-
initDvnMoveCall(tx: Transaction, workerCap: string | TransactionArgument, vid: number | TransactionArgument, depositAddress: string | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, admins: string[] | TransactionArgument, signers: Uint8Array[] | TransactionArgument, quorum: bigint | number | string | TransactionArgument): void;
|
|
2770
|
+
initDvnMoveCall(tx: Transaction, workerCap: string | TransactionArgument, vid: number | TransactionArgument, depositAddress: string | TransactionArgument, supportedMessageLibs: string[] | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, admins: string[] | TransactionArgument, signers: Uint8Array[] | TransactionArgument, quorum: bigint | number | string | TransactionArgument): void;
|
|
2736
2771
|
}
|
|
2737
2772
|
|
|
2738
2773
|
declare const ExecutorErrorCode: {
|
|
@@ -2918,6 +2953,14 @@ declare class Executor {
|
|
|
2918
2953
|
* @param active - Whether to grant or revoke admin role
|
|
2919
2954
|
*/
|
|
2920
2955
|
setAdminMoveCall(tx: Transaction, ownerCap: string | TransactionArgument, admin: string | TransactionArgument, active: boolean | TransactionArgument): void;
|
|
2956
|
+
/**
|
|
2957
|
+
* Set supported message library (owner only)
|
|
2958
|
+
* @param tx - The transaction to add the move call to
|
|
2959
|
+
* @param ownerCap - The owner capability object ID
|
|
2960
|
+
* @param messageLib - The message library address
|
|
2961
|
+
* @param supported - Whether to support or remove support for the message library
|
|
2962
|
+
*/
|
|
2963
|
+
setSupportedMessageLibMoveCall(tx: Transaction, ownerCap: string | TransactionArgument, messageLib: string | TransactionArgument, supported: boolean | TransactionArgument): void;
|
|
2921
2964
|
/**
|
|
2922
2965
|
* Set allowlist status for an OApp sender (owner only)
|
|
2923
2966
|
* @param tx - The transaction to add the move call to
|
|
@@ -3037,6 +3080,19 @@ declare class Executor {
|
|
|
3037
3080
|
* @returns Promise<boolean> - True if the address is an admin
|
|
3038
3081
|
*/
|
|
3039
3082
|
isAdminAddress(admin: string): Promise<boolean>;
|
|
3083
|
+
/**
|
|
3084
|
+
* Check if a message library is supported by this executor
|
|
3085
|
+
* @param tx - The transaction to add the move call to
|
|
3086
|
+
* @param messageLib - The message library address to check
|
|
3087
|
+
* @returns Transaction result containing the support status
|
|
3088
|
+
*/
|
|
3089
|
+
isSupportedMessageLibMoveCall(tx: Transaction, messageLib: string | TransactionArgument): TransactionResult;
|
|
3090
|
+
/**
|
|
3091
|
+
* Check if a message library is supported by this executor
|
|
3092
|
+
* @param messageLib - The message library address to check
|
|
3093
|
+
* @returns Promise<boolean> - True if the message library is supported
|
|
3094
|
+
*/
|
|
3095
|
+
isSupportedMessageLib(messageLib: string): Promise<boolean>;
|
|
3040
3096
|
/**
|
|
3041
3097
|
* Check if an address is allowlisted
|
|
3042
3098
|
* @param tx - The transaction to add the move call to
|
|
@@ -3207,13 +3263,14 @@ declare class ExecutorLayerZero {
|
|
|
3207
3263
|
* @param tx - The transaction to add the move call to
|
|
3208
3264
|
* @param workerCap - Worker capability object ID or transaction argument
|
|
3209
3265
|
* @param depositAddress - Address for fee deposits or transaction argument
|
|
3266
|
+
* @param supportedMessageLibs - Array of supported message library addresses or transaction argument
|
|
3210
3267
|
* @param priceFeed - Price feed object address or transaction argument
|
|
3211
3268
|
* @param workerFeeLib - Worker fee library address or transaction argument
|
|
3212
3269
|
* @param defaultMultiplierBps - Default multiplier in basis points or transaction argument
|
|
3213
3270
|
* @param owner - Owner address for the executor or transaction argument
|
|
3214
3271
|
* @param admins - Array of admin addresses or transaction argument
|
|
3215
3272
|
*/
|
|
3216
|
-
initExecutorMoveCall(tx: Transaction, workerCap: string | TransactionArgument, depositAddress: string | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, owner: string | TransactionArgument, admins: string[] | TransactionArgument): void;
|
|
3273
|
+
initExecutorMoveCall(tx: Transaction, workerCap: string | TransactionArgument, depositAddress: string | TransactionArgument, supportedMessageLibs: string[] | TransactionArgument, priceFeed: string | TransactionArgument, workerFeeLib: string | TransactionArgument, defaultMultiplierBps: number | TransactionArgument, owner: string | TransactionArgument, admins: string[] | TransactionArgument): void;
|
|
3217
3274
|
}
|
|
3218
3275
|
|
|
3219
3276
|
declare const PriceFeedErrorCode: {
|