@layerzerolabs/lz-movevm-sdk-v2 3.0.5 → 3.0.7
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 +28 -0
- package/dist/index.cjs +27 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +28 -56
- package/dist/index.d.ts +28 -56
- package/dist/index.mjs +27 -81
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -193,15 +193,13 @@ var Counter = class {
|
|
|
193
193
|
* @param {bigint} feeInNative - The fee in native currency.
|
|
194
194
|
* @param {Uint8Array} options - Additional options for the payload.
|
|
195
195
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
196
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
197
196
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
198
197
|
*/
|
|
199
|
-
async send(signer, dstEid, type, feeInNative, options, gasOptions
|
|
198
|
+
async send(signer, dstEid, type, feeInNative, options, gasOptions) {
|
|
200
199
|
return this.sdk.sendAndConfirmTransaction(
|
|
201
200
|
signer,
|
|
202
201
|
`${this.module[0]}::${this.module[1]}::send`,
|
|
203
202
|
[dstEid, type, options, feeInNative],
|
|
204
|
-
multisig,
|
|
205
203
|
["u32", "u8", "vector<u8>", "u64"],
|
|
206
204
|
gasOptions
|
|
207
205
|
);
|
|
@@ -213,16 +211,14 @@ var Counter = class {
|
|
|
213
211
|
* @param {EndpointId} remoteEid - The remote endpoint ID.
|
|
214
212
|
* @param {string} remoteOapp - The remote OAPP address.
|
|
215
213
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
216
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
217
214
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
218
215
|
*/
|
|
219
|
-
async setPeer(signer, remoteEid, remoteOapp, gasOptions
|
|
216
|
+
async setPeer(signer, remoteEid, remoteOapp, gasOptions) {
|
|
220
217
|
const remoteOappBytes32 = addressToBytes32(remoteOapp);
|
|
221
218
|
return this.sdk.sendAndConfirmTransaction(
|
|
222
219
|
signer,
|
|
223
220
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::set_peer`,
|
|
224
221
|
[remoteEid, remoteOappBytes32],
|
|
225
|
-
multisig,
|
|
226
222
|
["u32", "vector<u8>"],
|
|
227
223
|
gasOptions
|
|
228
224
|
);
|
|
@@ -564,15 +560,13 @@ var Endpoint = class {
|
|
|
564
560
|
* @param {Uint8Array} packetHeader - The packet header.
|
|
565
561
|
* @param {Uint8Array} hash - The hash of the payload.
|
|
566
562
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
567
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
568
563
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
569
564
|
*/
|
|
570
|
-
async verify(signer, receiveLib, packetHeader, hash, gasOptions
|
|
565
|
+
async verify(signer, receiveLib, packetHeader, hash, gasOptions) {
|
|
571
566
|
return this.sdk.sendAndConfirmTransaction(
|
|
572
567
|
signer,
|
|
573
568
|
`${this.module[0]}::${this.module[1]}::verify`,
|
|
574
569
|
[receiveLib, packetHeader, hash],
|
|
575
|
-
multisig,
|
|
576
570
|
["address", "vector<u8>", "vector<u8>"],
|
|
577
571
|
gasOptions
|
|
578
572
|
);
|
|
@@ -987,15 +981,13 @@ var Endpoint = class {
|
|
|
987
981
|
* @param {AccountType | PrivateKey | MnemonicAndPath} signer - The signer of the transaction.
|
|
988
982
|
* @param {string} msgLib - The message library address.
|
|
989
983
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
990
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
991
984
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
992
985
|
*/
|
|
993
|
-
async registerMsgLib(signer, msgLib, gasOptions
|
|
986
|
+
async registerMsgLib(signer, msgLib, gasOptions) {
|
|
994
987
|
return this.sdk.sendAndConfirmTransaction(
|
|
995
988
|
signer,
|
|
996
989
|
`${this.adminModule[0]}::${this.adminModule[1]}::register_library`,
|
|
997
990
|
[msgLib],
|
|
998
|
-
multisig,
|
|
999
991
|
["address"],
|
|
1000
992
|
gasOptions
|
|
1001
993
|
);
|
|
@@ -1021,15 +1013,13 @@ var Endpoint = class {
|
|
|
1021
1013
|
* @param {number} remoteChainId - The remote chain ID.
|
|
1022
1014
|
* @param {string} sendLib - The send library address.
|
|
1023
1015
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
1024
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
1025
1016
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
1026
1017
|
*/
|
|
1027
|
-
async setDefaultSendLib(signer, remoteChainId, sendLib, gasOptions
|
|
1018
|
+
async setDefaultSendLib(signer, remoteChainId, sendLib, gasOptions) {
|
|
1028
1019
|
return this.sdk.sendAndConfirmTransaction(
|
|
1029
1020
|
signer,
|
|
1030
1021
|
`${this.adminModule[0]}::${this.adminModule[1]}::set_default_send_library`,
|
|
1031
1022
|
[Number(remoteChainId), sendLib.toString()],
|
|
1032
|
-
multisig,
|
|
1033
1023
|
["u32", "address"],
|
|
1034
1024
|
gasOptions
|
|
1035
1025
|
);
|
|
@@ -1057,15 +1047,13 @@ var Endpoint = class {
|
|
|
1057
1047
|
* @param {string} receiveLib - The receive library address.
|
|
1058
1048
|
* @param {bigint} periodSecond - The period in seconds.
|
|
1059
1049
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
1060
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
1061
1050
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
1062
1051
|
*/
|
|
1063
|
-
async setDefaultReceiveLib(signer, remoteChainId, receiveLib, periodSecond, gasOptions
|
|
1052
|
+
async setDefaultReceiveLib(signer, remoteChainId, receiveLib, periodSecond, gasOptions) {
|
|
1064
1053
|
return this.sdk.sendAndConfirmTransaction(
|
|
1065
1054
|
signer,
|
|
1066
1055
|
`${this.adminModule[0]}::${this.adminModule[1]}::set_default_receive_library`,
|
|
1067
1056
|
[Number(remoteChainId), receiveLib.toString(), periodSecond],
|
|
1068
|
-
multisig,
|
|
1069
1057
|
["u32", "address", "u64"],
|
|
1070
1058
|
gasOptions
|
|
1071
1059
|
);
|
|
@@ -1178,15 +1166,13 @@ var Executor = class {
|
|
|
1178
1166
|
* @param {string[]} msgLibs - The list of message libraries.
|
|
1179
1167
|
* @param {string} feeLib - The fee library address.
|
|
1180
1168
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
1181
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
1182
1169
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
1183
1170
|
*/
|
|
1184
|
-
async initialize(signer, workerId, roleAdmin, admins, msgLibs, feeLib, gasOptions
|
|
1171
|
+
async initialize(signer, workerId, roleAdmin, admins, msgLibs, feeLib, gasOptions) {
|
|
1185
1172
|
return this.sdk.sendAndConfirmTransaction(
|
|
1186
1173
|
signer,
|
|
1187
1174
|
`${this.module[0]}::${this.module[1]}::initialize`,
|
|
1188
1175
|
[workerId, roleAdmin, admins, msgLibs, feeLib],
|
|
1189
|
-
multisig,
|
|
1190
1176
|
["u8", "address", "vector<address>", "vector<address>", "address"],
|
|
1191
1177
|
gasOptions
|
|
1192
1178
|
);
|
|
@@ -2061,10 +2047,9 @@ var Oft = class {
|
|
|
2061
2047
|
* @param tokenInfo.localDecimals (optional) required only for oft_fa / oft_coin, default is 8
|
|
2062
2048
|
* @param tokenInfo.monitorSupply (optional) required only for oft_coin, default is false
|
|
2063
2049
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2064
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2065
2050
|
* @returns transaction response of initialize function
|
|
2066
2051
|
*/
|
|
2067
|
-
async initialize(signer, tokenInfo, gasOptions
|
|
2052
|
+
async initialize(signer, tokenInfo, gasOptions) {
|
|
2068
2053
|
const {
|
|
2069
2054
|
tokenName,
|
|
2070
2055
|
symbol,
|
|
@@ -2114,7 +2099,6 @@ var Oft = class {
|
|
|
2114
2099
|
signer,
|
|
2115
2100
|
`${implModule[0]}::${implModule[1]}::initialize`,
|
|
2116
2101
|
params,
|
|
2117
|
-
multisig,
|
|
2118
2102
|
paramTypes,
|
|
2119
2103
|
gasOptions
|
|
2120
2104
|
);
|
|
@@ -2225,15 +2209,13 @@ var Oft = class {
|
|
|
2225
2209
|
* @param composeMsg (optional) compose message to send in vector<u8>
|
|
2226
2210
|
* @param oftCmd (optional) oft command to send in vector<u8>
|
|
2227
2211
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2228
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2229
2212
|
* @returns transaction response of send_withdraw or send_withdraw_coin function
|
|
2230
2213
|
*/
|
|
2231
|
-
async send(signer, dstEid, to, amountLd, minAmountLd, nativeFee, zroFee, extraOptions = EmptyUint8Array, composeMsg = EmptyUint8Array, oftCmd = EmptyUint8Array, gasOptions
|
|
2214
|
+
async send(signer, dstEid, to, amountLd, minAmountLd, nativeFee, zroFee, extraOptions = EmptyUint8Array, composeMsg = EmptyUint8Array, oftCmd = EmptyUint8Array, gasOptions) {
|
|
2232
2215
|
return this.sdk.sendAndConfirmTransaction(
|
|
2233
2216
|
signer,
|
|
2234
2217
|
await this.isCoin() ? `${this.module[0]}::${this.module[1]}::send_withdraw_coin` : `${this.module[0]}::${this.module[1]}::send_withdraw`,
|
|
2235
2218
|
[dstEid, to, amountLd, minAmountLd, extraOptions, composeMsg, oftCmd, nativeFee, zroFee],
|
|
2236
|
-
multisig,
|
|
2237
2219
|
["u32", "vector<u8>", "u64", "u64", "vector<u8>", "vector<u8>", "vector<u8>", "u64", "u64"],
|
|
2238
2220
|
gasOptions
|
|
2239
2221
|
);
|
|
@@ -2259,15 +2241,13 @@ var Oft = class {
|
|
|
2259
2241
|
*
|
|
2260
2242
|
* @param signer oapp account
|
|
2261
2243
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2262
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2263
2244
|
* @returns transaction response of claim function
|
|
2264
2245
|
*/
|
|
2265
|
-
async claim(signer, gasOptions
|
|
2246
|
+
async claim(signer, gasOptions) {
|
|
2266
2247
|
return this.sdk.sendAndConfirmTransaction(
|
|
2267
2248
|
signer,
|
|
2268
2249
|
`${this.module[0]}::${this.module[1]}::claim`,
|
|
2269
2250
|
[],
|
|
2270
|
-
multisig,
|
|
2271
2251
|
[],
|
|
2272
2252
|
gasOptions
|
|
2273
2253
|
);
|
|
@@ -2297,15 +2277,13 @@ var Oft = class {
|
|
|
2297
2277
|
* @param configType (CONFIG_TYPE_EXECUTOR=1, CONFIG_TYPE_SEND_ULN=2, CONFIG_TYPE_RECV_ULN=3)
|
|
2298
2278
|
* @param config configuration in vector<u8> format. (struct UlnConfig or ExecutorConfig)
|
|
2299
2279
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2300
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2301
2280
|
* @returns transaction response of set_config function
|
|
2302
2281
|
*/
|
|
2303
|
-
async setConfig(signer, msgLib, configType, config, gasOptions
|
|
2282
|
+
async setConfig(signer, msgLib, configType, config, gasOptions) {
|
|
2304
2283
|
return this.sdk.sendAndConfirmTransaction(
|
|
2305
2284
|
signer,
|
|
2306
2285
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::set_config`,
|
|
2307
2286
|
[msgLib, configType, config],
|
|
2308
|
-
multisig,
|
|
2309
2287
|
["address", "u32", "vector<u8>"],
|
|
2310
2288
|
gasOptions
|
|
2311
2289
|
);
|
|
@@ -2333,15 +2311,13 @@ var Oft = class {
|
|
|
2333
2311
|
* @param remoteEid EndpointId details: packages/layerzero-definitions/src/enums/endpoint-id.ts
|
|
2334
2312
|
* @param msgLib Message Library address
|
|
2335
2313
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2336
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2337
2314
|
* @returns transaction response of set_send_library function
|
|
2338
2315
|
*/
|
|
2339
|
-
async setSendLibrary(signer, remoteEid, msgLib, gasOptions
|
|
2316
|
+
async setSendLibrary(signer, remoteEid, msgLib, gasOptions) {
|
|
2340
2317
|
return this.sdk.sendAndConfirmTransaction(
|
|
2341
2318
|
signer,
|
|
2342
2319
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::set_send_library`,
|
|
2343
2320
|
[remoteEid, msgLib],
|
|
2344
|
-
multisig,
|
|
2345
2321
|
["u32", "address"],
|
|
2346
2322
|
gasOptions
|
|
2347
2323
|
);
|
|
@@ -2371,15 +2347,13 @@ var Oft = class {
|
|
|
2371
2347
|
* @param msgLib Message Library address
|
|
2372
2348
|
* @param gracePeriod The block number at which the grace period expires in u64
|
|
2373
2349
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2374
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2375
2350
|
* @returns transaction response of set_receive_library function
|
|
2376
2351
|
*/
|
|
2377
|
-
async setReceiveLibrary(signer, remoteEid, msgLib, gracePeriod, gasOptions
|
|
2352
|
+
async setReceiveLibrary(signer, remoteEid, msgLib, gracePeriod, gasOptions) {
|
|
2378
2353
|
return this.sdk.sendAndConfirmTransaction(
|
|
2379
2354
|
signer,
|
|
2380
2355
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::set_receive_library`,
|
|
2381
2356
|
[remoteEid, msgLib, gracePeriod],
|
|
2382
|
-
multisig,
|
|
2383
2357
|
["u32", "address", "u64"],
|
|
2384
2358
|
gasOptions
|
|
2385
2359
|
);
|
|
@@ -2409,15 +2383,13 @@ var Oft = class {
|
|
|
2409
2383
|
* @param msgLib Message Library address
|
|
2410
2384
|
* @param expiry The block number at which the timeout expires in u64
|
|
2411
2385
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2412
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2413
2386
|
* @returns transaction response of set_receive_library_timeout function
|
|
2414
2387
|
*/
|
|
2415
|
-
async setReceiveLibraryTimeout(signer, remoteEid, msgLib, expiry, gasOptions
|
|
2388
|
+
async setReceiveLibraryTimeout(signer, remoteEid, msgLib, expiry, gasOptions) {
|
|
2416
2389
|
return this.sdk.sendAndConfirmTransaction(
|
|
2417
2390
|
signer,
|
|
2418
2391
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::set_receive_library_timeout`,
|
|
2419
2392
|
[remoteEid, msgLib, expiry],
|
|
2420
|
-
multisig,
|
|
2421
2393
|
["u32", "address", "u64"],
|
|
2422
2394
|
gasOptions
|
|
2423
2395
|
);
|
|
@@ -2445,15 +2417,13 @@ var Oft = class {
|
|
|
2445
2417
|
* @param srcEid Source EndpointId details: packages/layerzero-definitions/src/enums/endpoint-id.ts
|
|
2446
2418
|
* @param srcOapp Source OApp address
|
|
2447
2419
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2448
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2449
2420
|
* @returns transaction response of register_receive_pathway function
|
|
2450
2421
|
*/
|
|
2451
|
-
async registerReceivePathway(signer, srcEid, srcOapp, gasOptions
|
|
2422
|
+
async registerReceivePathway(signer, srcEid, srcOapp, gasOptions) {
|
|
2452
2423
|
return this.sdk.sendAndConfirmTransaction(
|
|
2453
2424
|
signer,
|
|
2454
2425
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::register_receive_pathway`,
|
|
2455
2426
|
[srcEid, srcOapp],
|
|
2456
|
-
multisig,
|
|
2457
2427
|
["u32", "vector<u8>"],
|
|
2458
2428
|
gasOptions
|
|
2459
2429
|
);
|
|
@@ -2483,15 +2453,13 @@ var Oft = class {
|
|
|
2483
2453
|
* @param msgType Message type identifier
|
|
2484
2454
|
* @param enforcedOptions Enforced options in vector<u8> format
|
|
2485
2455
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2486
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2487
2456
|
* @returns transaction response of set_enforced_options function
|
|
2488
2457
|
*/
|
|
2489
|
-
async setEnforcedOptions(signer, eid, msgType, enforcedOptions, gasOptions
|
|
2458
|
+
async setEnforcedOptions(signer, eid, msgType, enforcedOptions, gasOptions) {
|
|
2490
2459
|
return this.sdk.sendAndConfirmTransaction(
|
|
2491
2460
|
signer,
|
|
2492
2461
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::set_enforced_options`,
|
|
2493
2462
|
[eid, msgType, enforcedOptions],
|
|
2494
|
-
multisig,
|
|
2495
2463
|
["u32", "u16", "vector<u8>"],
|
|
2496
2464
|
gasOptions
|
|
2497
2465
|
);
|
|
@@ -2517,15 +2485,13 @@ var Oft = class {
|
|
|
2517
2485
|
* @param signer oapp account
|
|
2518
2486
|
* @param newAdmin New admin address
|
|
2519
2487
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2520
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2521
2488
|
* @returns transaction response of transfer_admin function
|
|
2522
2489
|
*/
|
|
2523
|
-
async transferAdmin(signer, newAdmin, gasOptions
|
|
2490
|
+
async transferAdmin(signer, newAdmin, gasOptions) {
|
|
2524
2491
|
return this.sdk.sendAndConfirmTransaction(
|
|
2525
2492
|
signer,
|
|
2526
2493
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::transfer_admin`,
|
|
2527
2494
|
[newAdmin],
|
|
2528
|
-
multisig,
|
|
2529
2495
|
["address"],
|
|
2530
2496
|
gasOptions
|
|
2531
2497
|
);
|
|
@@ -2549,15 +2515,13 @@ var Oft = class {
|
|
|
2549
2515
|
*
|
|
2550
2516
|
* @param signer admin account
|
|
2551
2517
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2552
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2553
2518
|
* @returns transaction response of renounce_admin function
|
|
2554
2519
|
*/
|
|
2555
|
-
async renounceAdmin(signer, gasOptions
|
|
2520
|
+
async renounceAdmin(signer, gasOptions) {
|
|
2556
2521
|
return this.sdk.sendAndConfirmTransaction(
|
|
2557
2522
|
signer,
|
|
2558
2523
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::renounce_admin`,
|
|
2559
2524
|
[],
|
|
2560
|
-
multisig,
|
|
2561
2525
|
[],
|
|
2562
2526
|
gasOptions
|
|
2563
2527
|
);
|
|
@@ -2585,15 +2549,13 @@ var Oft = class {
|
|
|
2585
2549
|
* @param eid EndpointId details: packages/layerzero-definitions/src/enums/endpoint-id.ts
|
|
2586
2550
|
* @param peer Peer address in vector<u8> format
|
|
2587
2551
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2588
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2589
2552
|
* @returns transaction response of set_peer function
|
|
2590
2553
|
*/
|
|
2591
|
-
async setPeer(signer, eid, peer, gasOptions
|
|
2554
|
+
async setPeer(signer, eid, peer, gasOptions) {
|
|
2592
2555
|
return this.sdk.sendAndConfirmTransaction(
|
|
2593
2556
|
signer,
|
|
2594
2557
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::set_peer`,
|
|
2595
2558
|
[eid, peer],
|
|
2596
|
-
multisig,
|
|
2597
2559
|
["u32", "vector<u8>"],
|
|
2598
2560
|
gasOptions
|
|
2599
2561
|
);
|
|
@@ -2620,15 +2582,13 @@ var Oft = class {
|
|
|
2620
2582
|
* @param signer admin account
|
|
2621
2583
|
* @param eid EndpointId details: packages/layerzero-definitions/src/enums/endpoint-id.ts
|
|
2622
2584
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2623
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2624
2585
|
* @returns transaction response of remove_peer function
|
|
2625
2586
|
*/
|
|
2626
|
-
async removePeer(signer, eid, gasOptions
|
|
2587
|
+
async removePeer(signer, eid, gasOptions) {
|
|
2627
2588
|
return this.sdk.sendAndConfirmTransaction(
|
|
2628
2589
|
signer,
|
|
2629
2590
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::remove_peer`,
|
|
2630
2591
|
[eid],
|
|
2631
|
-
multisig,
|
|
2632
2592
|
["u32"],
|
|
2633
2593
|
gasOptions
|
|
2634
2594
|
);
|
|
@@ -2654,15 +2614,13 @@ var Oft = class {
|
|
|
2654
2614
|
* @param signer admin account
|
|
2655
2615
|
* @param delegate Delegate address
|
|
2656
2616
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2657
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2658
2617
|
* @returns transaction response of set_delegate function
|
|
2659
2618
|
*/
|
|
2660
|
-
async setDelegate(signer, delegate, gasOptions
|
|
2619
|
+
async setDelegate(signer, delegate, gasOptions) {
|
|
2661
2620
|
return this.sdk.sendAndConfirmTransaction(
|
|
2662
2621
|
signer,
|
|
2663
2622
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::set_delegate`,
|
|
2664
2623
|
[delegate],
|
|
2665
|
-
multisig,
|
|
2666
2624
|
["address"],
|
|
2667
2625
|
gasOptions
|
|
2668
2626
|
);
|
|
@@ -2698,15 +2656,13 @@ var Oft = class {
|
|
|
2698
2656
|
* @param message Message content in vector<u8> format
|
|
2699
2657
|
* @param extraData Additional data in vector<u8> format
|
|
2700
2658
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2701
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2702
2659
|
* @returns transaction response of lz_receive function
|
|
2703
2660
|
*/
|
|
2704
|
-
async lzReceive(signer, srcEid, sender, nonce, guid, message, extraData, gasOptions
|
|
2661
|
+
async lzReceive(signer, srcEid, sender, nonce, guid, message, extraData, gasOptions) {
|
|
2705
2662
|
return this.sdk.sendAndConfirmTransaction(
|
|
2706
2663
|
signer,
|
|
2707
2664
|
`${this.oappReceiveModule[0]}::${this.oappReceiveModule[1]}::lz_receive`,
|
|
2708
2665
|
[srcEid, sender, nonce, guid, message, extraData],
|
|
2709
|
-
multisig,
|
|
2710
2666
|
["u32", "vector<u8>", "u64", "vector<u8>", "vector<u8>", "vector<u8>"],
|
|
2711
2667
|
gasOptions
|
|
2712
2668
|
);
|
|
@@ -2740,15 +2696,13 @@ var Oft = class {
|
|
|
2740
2696
|
* @param guid Message GUID in vector<u8> format
|
|
2741
2697
|
* @param message Message content in vector<u8> format
|
|
2742
2698
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2743
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2744
2699
|
* @returns transaction response of clear function
|
|
2745
2700
|
*/
|
|
2746
|
-
async clear(signer, srcEid, sender, nonce, guid, message, gasOptions
|
|
2701
|
+
async clear(signer, srcEid, sender, nonce, guid, message, gasOptions) {
|
|
2747
2702
|
return this.sdk.sendAndConfirmTransaction(
|
|
2748
2703
|
signer,
|
|
2749
2704
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::clear`,
|
|
2750
2705
|
[srcEid, sender, nonce, guid, message],
|
|
2751
|
-
multisig,
|
|
2752
2706
|
["u32", "vector<u8>", "u64", "vector<u8>", "vector<u8>"],
|
|
2753
2707
|
gasOptions
|
|
2754
2708
|
);
|
|
@@ -2778,15 +2732,13 @@ var Oft = class {
|
|
|
2778
2732
|
* @param sender Sender address in vector<u8> format
|
|
2779
2733
|
* @param nonce Message nonce in u64
|
|
2780
2734
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2781
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2782
2735
|
* @returns transaction response of skip function
|
|
2783
2736
|
*/
|
|
2784
|
-
async skip(signer, srcEid, sender, nonce, gasOptions
|
|
2737
|
+
async skip(signer, srcEid, sender, nonce, gasOptions) {
|
|
2785
2738
|
return this.sdk.sendAndConfirmTransaction(
|
|
2786
2739
|
signer,
|
|
2787
2740
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::skip`,
|
|
2788
2741
|
[srcEid, sender, nonce],
|
|
2789
|
-
multisig,
|
|
2790
2742
|
["u32", "vector<u8>", "u64"],
|
|
2791
2743
|
gasOptions
|
|
2792
2744
|
);
|
|
@@ -2818,15 +2770,13 @@ var Oft = class {
|
|
|
2818
2770
|
* @param nonce Message nonce in u64
|
|
2819
2771
|
* @param payloadHash Hash of the payload in vector<u8> format
|
|
2820
2772
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2821
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2822
2773
|
* @returns transaction response of burn function
|
|
2823
2774
|
*/
|
|
2824
|
-
async burn(signer, srcEid, sender, nonce, payloadHash, gasOptions
|
|
2775
|
+
async burn(signer, srcEid, sender, nonce, payloadHash, gasOptions) {
|
|
2825
2776
|
return this.sdk.sendAndConfirmTransaction(
|
|
2826
2777
|
signer,
|
|
2827
2778
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::burn`,
|
|
2828
2779
|
[srcEid, sender, nonce, payloadHash],
|
|
2829
|
-
multisig,
|
|
2830
2780
|
["u32", "vector<u8>", "u64", "vector<u8>"],
|
|
2831
2781
|
gasOptions
|
|
2832
2782
|
);
|
|
@@ -2858,15 +2808,13 @@ var Oft = class {
|
|
|
2858
2808
|
* @param nonce Message nonce in u64
|
|
2859
2809
|
* @param payloadHash Hash of the payload in vector<u8> format
|
|
2860
2810
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
2861
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
2862
2811
|
* @returns transaction response of nilify function
|
|
2863
2812
|
*/
|
|
2864
|
-
async nilify(signer, srcEid, sender, nonce, payloadHash, gasOptions
|
|
2813
|
+
async nilify(signer, srcEid, sender, nonce, payloadHash, gasOptions) {
|
|
2865
2814
|
return this.sdk.sendAndConfirmTransaction(
|
|
2866
2815
|
signer,
|
|
2867
2816
|
`${this.oappCoreModule[0]}::${this.oappCoreModule[1]}::nilify`,
|
|
2868
2817
|
[srcEid, sender, nonce, payloadHash],
|
|
2869
|
-
multisig,
|
|
2870
2818
|
["u32", "vector<u8>", "u64", "vector<u8>"],
|
|
2871
2819
|
gasOptions
|
|
2872
2820
|
);
|
|
@@ -3208,15 +3156,13 @@ var SimpleMsgLib = class {
|
|
|
3208
3156
|
* @param {AccountType | PrivateKey | MnemonicAndPath} signer - The signer of the transaction.
|
|
3209
3157
|
* @param {bigint} fee - The native fee.
|
|
3210
3158
|
* @param {bigint} lz - The LayerZero token fee.
|
|
3211
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
3212
3159
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
3213
3160
|
*/
|
|
3214
|
-
async setMessagingFee(signer, fee, lz
|
|
3161
|
+
async setMessagingFee(signer, fee, lz) {
|
|
3215
3162
|
return this.sdk.sendAndConfirmTransaction(
|
|
3216
3163
|
signer,
|
|
3217
3164
|
`${this.module[0]}::${this.module[1]}::set_messaging_fee`,
|
|
3218
3165
|
[fee, lz],
|
|
3219
|
-
multisig,
|
|
3220
3166
|
["u64", "u64"]
|
|
3221
3167
|
);
|
|
3222
3168
|
}
|