@layerzerolabs/lz-movevm-sdk-v2 3.0.4 → 3.0.6
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.d.mts
CHANGED
|
@@ -359,13 +359,12 @@ interface MoveSdkImpl<AccountType> {
|
|
|
359
359
|
* @param {AccountType | PrivateKey | MnemonicAndPath} signer - The signer of the transaction.
|
|
360
360
|
* @param {MoveFunction} func - The function to call.
|
|
361
361
|
* @param {EntryFunctionArgumentTypes[]} funcArgs - The arguments for the function.
|
|
362
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
363
362
|
* @param {string[]} [funcArgTypes] - The types of the function arguments.
|
|
364
363
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
365
364
|
* @param {string[]} [typeArguments] - The type arguments.
|
|
366
365
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
367
366
|
*/
|
|
368
|
-
sendAndConfirmTransaction(signer: AccountType | PrivateKey | MnemonicAndPath, func: MoveFunction, funcArgs: EntryFunctionArgumentTypes[],
|
|
367
|
+
sendAndConfirmTransaction(signer: AccountType | PrivateKey | MnemonicAndPath, func: MoveFunction, funcArgs: EntryFunctionArgumentTypes[], funcArgTypes?: string[], gasOptions?: GasOptions, typeArguments?: string[]): Promise<TransactionResponse>;
|
|
369
368
|
/**
|
|
370
369
|
* Gets an account resource.
|
|
371
370
|
*
|
|
@@ -495,10 +494,9 @@ declare class Counter<AccountType> {
|
|
|
495
494
|
* @param {bigint} feeInNative - The fee in native currency.
|
|
496
495
|
* @param {Uint8Array} options - Additional options for the payload.
|
|
497
496
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
498
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
499
497
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
500
498
|
*/
|
|
501
|
-
send(signer: AccountType | PrivateKey | MnemonicAndPath, dstEid: EndpointId, type: number, feeInNative: bigint, options: Uint8Array, gasOptions?: GasOptions
|
|
499
|
+
send(signer: AccountType | PrivateKey | MnemonicAndPath, dstEid: EndpointId, type: number, feeInNative: bigint, options: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
502
500
|
/**
|
|
503
501
|
* Sets the peer for the specified remote endpoint.
|
|
504
502
|
*
|
|
@@ -506,10 +504,9 @@ declare class Counter<AccountType> {
|
|
|
506
504
|
* @param {EndpointId} remoteEid - The remote endpoint ID.
|
|
507
505
|
* @param {string} remoteOapp - The remote OAPP address.
|
|
508
506
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
509
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
510
507
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
511
508
|
*/
|
|
512
|
-
setPeer(signer: AccountType | PrivateKey | MnemonicAndPath, remoteEid: EndpointId, remoteOapp: string, gasOptions?: GasOptions
|
|
509
|
+
setPeer(signer: AccountType | PrivateKey | MnemonicAndPath, remoteEid: EndpointId, remoteOapp: string, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
513
510
|
/**
|
|
514
511
|
* Gets the peer for the specified remote endpoint.
|
|
515
512
|
*
|
|
@@ -683,10 +680,9 @@ declare class Endpoint<AccountType> {
|
|
|
683
680
|
* @param {Uint8Array} packetHeader - The packet header.
|
|
684
681
|
* @param {Uint8Array} hash - The hash of the payload.
|
|
685
682
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
686
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
687
683
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
688
684
|
*/
|
|
689
|
-
verify(signer: AccountType | PrivateKey | MnemonicAndPath, receiveLib: string, packetHeader: Uint8Array, hash: Uint8Array, gasOptions?: GasOptions
|
|
685
|
+
verify(signer: AccountType | PrivateKey | MnemonicAndPath, receiveLib: string, packetHeader: Uint8Array, hash: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
690
686
|
/**
|
|
691
687
|
* Gets a quote for sending a message.
|
|
692
688
|
*
|
|
@@ -888,10 +884,9 @@ declare class Endpoint<AccountType> {
|
|
|
888
884
|
* @param {AccountType | PrivateKey | MnemonicAndPath} signer - The signer of the transaction.
|
|
889
885
|
* @param {string} msgLib - The message library address.
|
|
890
886
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
891
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
892
887
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
893
888
|
*/
|
|
894
|
-
registerMsgLib(signer: AccountType | PrivateKey | MnemonicAndPath, msgLib: string, gasOptions?: GasOptions
|
|
889
|
+
registerMsgLib(signer: AccountType | PrivateKey | MnemonicAndPath, msgLib: string, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
895
890
|
/**
|
|
896
891
|
* Creates a payload for setting the default send library.
|
|
897
892
|
*
|
|
@@ -907,10 +902,9 @@ declare class Endpoint<AccountType> {
|
|
|
907
902
|
* @param {number} remoteChainId - The remote chain ID.
|
|
908
903
|
* @param {string} sendLib - The send library address.
|
|
909
904
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
910
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
911
905
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
912
906
|
*/
|
|
913
|
-
setDefaultSendLib(signer: AccountType | PrivateKey | MnemonicAndPath, remoteChainId: number, sendLib: string, gasOptions?: GasOptions
|
|
907
|
+
setDefaultSendLib(signer: AccountType | PrivateKey | MnemonicAndPath, remoteChainId: number, sendLib: string, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
914
908
|
/**
|
|
915
909
|
* Creates a payload for setting the default receive library.
|
|
916
910
|
*
|
|
@@ -928,10 +922,9 @@ declare class Endpoint<AccountType> {
|
|
|
928
922
|
* @param {string} receiveLib - The receive library address.
|
|
929
923
|
* @param {bigint} periodSecond - The period in seconds.
|
|
930
924
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
931
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
932
925
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
933
926
|
*/
|
|
934
|
-
setDefaultReceiveLib(signer: AccountType | PrivateKey | MnemonicAndPath, remoteChainId: number, receiveLib: string, periodSecond: bigint, gasOptions?: GasOptions
|
|
927
|
+
setDefaultReceiveLib(signer: AccountType | PrivateKey | MnemonicAndPath, remoteChainId: number, receiveLib: string, periodSecond: bigint, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
935
928
|
/**
|
|
936
929
|
* Creates a payload for setting the ZRO.
|
|
937
930
|
*
|
|
@@ -1013,10 +1006,9 @@ declare class Executor<AccountType> {
|
|
|
1013
1006
|
* @param {string[]} msgLibs - The list of message libraries.
|
|
1014
1007
|
* @param {string} feeLib - The fee library address.
|
|
1015
1008
|
* @param {GasOptions} [gasOptions] - The gas options.
|
|
1016
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
1017
1009
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
1018
1010
|
*/
|
|
1019
|
-
initialize(signer: AccountType | PrivateKey | MnemonicAndPath, workerId: number, roleAdmin: string, admins: string[], msgLibs: string[], feeLib: string, gasOptions?: GasOptions
|
|
1011
|
+
initialize(signer: AccountType | PrivateKey | MnemonicAndPath, workerId: number, roleAdmin: string, admins: string[], msgLibs: string[], feeLib: string, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1020
1012
|
/**
|
|
1021
1013
|
* Gets the destination configuration for the specified endpoint.
|
|
1022
1014
|
*
|
|
@@ -1412,10 +1404,9 @@ declare class Oft<AccountType> {
|
|
|
1412
1404
|
* @param tokenInfo.localDecimals (optional) required only for oft_fa / oft_coin, default is 8
|
|
1413
1405
|
* @param tokenInfo.monitorSupply (optional) required only for oft_coin, default is false
|
|
1414
1406
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1415
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1416
1407
|
* @returns transaction response of initialize function
|
|
1417
1408
|
*/
|
|
1418
|
-
initialize(signer: AccountType | PrivateKey | MnemonicAndPath, tokenInfo: OftTokenInfo, gasOptions?: GasOptions
|
|
1409
|
+
initialize(signer: AccountType | PrivateKey | MnemonicAndPath, tokenInfo: OftTokenInfo, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1419
1410
|
/**
|
|
1420
1411
|
* Initialize the OFT, must be called before wiring
|
|
1421
1412
|
* @see {@link initialize}
|
|
@@ -1455,10 +1446,9 @@ declare class Oft<AccountType> {
|
|
|
1455
1446
|
* @param composeMsg (optional) compose message to send in vector<u8>
|
|
1456
1447
|
* @param oftCmd (optional) oft command to send in vector<u8>
|
|
1457
1448
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1458
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1459
1449
|
* @returns transaction response of send_withdraw or send_withdraw_coin function
|
|
1460
1450
|
*/
|
|
1461
|
-
send(signer: AccountType | PrivateKey | MnemonicAndPath, dstEid: number, to: Uint8Array, amountLd: bigint, minAmountLd: bigint, nativeFee: bigint, zroFee: bigint, extraOptions?: Uint8Array, composeMsg?: Uint8Array, oftCmd?: Uint8Array, gasOptions?: GasOptions
|
|
1451
|
+
send(signer: AccountType | PrivateKey | MnemonicAndPath, dstEid: number, to: Uint8Array, amountLd: bigint, minAmountLd: bigint, nativeFee: bigint, zroFee: bigint, extraOptions?: Uint8Array, composeMsg?: Uint8Array, oftCmd?: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1462
1452
|
/**
|
|
1463
1453
|
* Claim provides a way to retreive tokens that could not be delivered because, at the time of delivery, the
|
|
1464
1454
|
* account wasn't registered to receive that amount (relevant for Coin-enabled implementations)
|
|
@@ -1474,10 +1464,9 @@ declare class Oft<AccountType> {
|
|
|
1474
1464
|
*
|
|
1475
1465
|
* @param signer oapp account
|
|
1476
1466
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1477
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1478
1467
|
* @returns transaction response of claim function
|
|
1479
1468
|
*/
|
|
1480
|
-
claim(signer: AccountType | PrivateKey | MnemonicAndPath, gasOptions?: GasOptions
|
|
1469
|
+
claim(signer: AccountType | PrivateKey | MnemonicAndPath, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1481
1470
|
/**
|
|
1482
1471
|
* Set the OApp configuration for a Message Library
|
|
1483
1472
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1497,10 +1486,9 @@ declare class Oft<AccountType> {
|
|
|
1497
1486
|
* @param configType (CONFIG_TYPE_EXECUTOR=1, CONFIG_TYPE_SEND_ULN=2, CONFIG_TYPE_RECV_ULN=3)
|
|
1498
1487
|
* @param config configuration in vector<u8> format. (struct UlnConfig or ExecutorConfig)
|
|
1499
1488
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1500
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1501
1489
|
* @returns transaction response of set_config function
|
|
1502
1490
|
*/
|
|
1503
|
-
setConfig(signer: AccountType | PrivateKey | MnemonicAndPath, msgLib: string, configType: number, config: Uint8Array, gasOptions?: GasOptions
|
|
1491
|
+
setConfig(signer: AccountType | PrivateKey | MnemonicAndPath, msgLib: string, configType: number, config: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1504
1492
|
/**
|
|
1505
1493
|
* Set the Send Library for an OApp
|
|
1506
1494
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1518,10 +1506,9 @@ declare class Oft<AccountType> {
|
|
|
1518
1506
|
* @param remoteEid EndpointId details: packages/layerzero-definitions/src/enums/endpoint-id.ts
|
|
1519
1507
|
* @param msgLib Message Library address
|
|
1520
1508
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1521
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1522
1509
|
* @returns transaction response of set_send_library function
|
|
1523
1510
|
*/
|
|
1524
|
-
setSendLibrary(signer: AccountType | PrivateKey | MnemonicAndPath, remoteEid: number, msgLib: string, gasOptions?: GasOptions
|
|
1511
|
+
setSendLibrary(signer: AccountType | PrivateKey | MnemonicAndPath, remoteEid: number, msgLib: string, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1525
1512
|
/**
|
|
1526
1513
|
* Set the Receive Library for an OApp
|
|
1527
1514
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1541,10 +1528,9 @@ declare class Oft<AccountType> {
|
|
|
1541
1528
|
* @param msgLib Message Library address
|
|
1542
1529
|
* @param gracePeriod The block number at which the grace period expires in u64
|
|
1543
1530
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1544
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1545
1531
|
* @returns transaction response of set_receive_library function
|
|
1546
1532
|
*/
|
|
1547
|
-
setReceiveLibrary(signer: AccountType | PrivateKey | MnemonicAndPath, remoteEid: number, msgLib: string, gracePeriod: bigint, gasOptions?: GasOptions
|
|
1533
|
+
setReceiveLibrary(signer: AccountType | PrivateKey | MnemonicAndPath, remoteEid: number, msgLib: string, gracePeriod: bigint, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1548
1534
|
/**
|
|
1549
1535
|
* Update the Receive Library Expiry for an OApp
|
|
1550
1536
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1564,10 +1550,9 @@ declare class Oft<AccountType> {
|
|
|
1564
1550
|
* @param msgLib Message Library address
|
|
1565
1551
|
* @param expiry The block number at which the timeout expires in u64
|
|
1566
1552
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1567
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1568
1553
|
* @returns transaction response of set_receive_library_timeout function
|
|
1569
1554
|
*/
|
|
1570
|
-
setReceiveLibraryTimeout(signer: AccountType | PrivateKey | MnemonicAndPath, remoteEid: number, msgLib: string, expiry: bigint, gasOptions?: GasOptions
|
|
1555
|
+
setReceiveLibraryTimeout(signer: AccountType | PrivateKey | MnemonicAndPath, remoteEid: number, msgLib: string, expiry: bigint, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1571
1556
|
/**
|
|
1572
1557
|
* Register a Receive Pathway for an OApp
|
|
1573
1558
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1585,10 +1570,9 @@ declare class Oft<AccountType> {
|
|
|
1585
1570
|
* @param srcEid Source EndpointId details: packages/layerzero-definitions/src/enums/endpoint-id.ts
|
|
1586
1571
|
* @param srcOapp Source OApp address
|
|
1587
1572
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1588
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1589
1573
|
* @returns transaction response of register_receive_pathway function
|
|
1590
1574
|
*/
|
|
1591
|
-
registerReceivePathway(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, srcOapp: Uint8Array, gasOptions?: GasOptions
|
|
1575
|
+
registerReceivePathway(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, srcOapp: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1592
1576
|
/**
|
|
1593
1577
|
* Set the Enforced Options for an OApp
|
|
1594
1578
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1608,10 +1592,9 @@ declare class Oft<AccountType> {
|
|
|
1608
1592
|
* @param msgType Message type identifier
|
|
1609
1593
|
* @param enforcedOptions Enforced options in vector<u8> format
|
|
1610
1594
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1611
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1612
1595
|
* @returns transaction response of set_enforced_options function
|
|
1613
1596
|
*/
|
|
1614
|
-
setEnforcedOptions(signer: AccountType | PrivateKey | MnemonicAndPath, eid: number, msgType: number, enforcedOptions: Uint8Array, gasOptions?: GasOptions
|
|
1597
|
+
setEnforcedOptions(signer: AccountType | PrivateKey | MnemonicAndPath, eid: number, msgType: number, enforcedOptions: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1615
1598
|
/**
|
|
1616
1599
|
* Transfer the Admin role to a new address
|
|
1617
1600
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1627,10 +1610,9 @@ declare class Oft<AccountType> {
|
|
|
1627
1610
|
* @param signer oapp account
|
|
1628
1611
|
* @param newAdmin New admin address
|
|
1629
1612
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1630
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1631
1613
|
* @returns transaction response of transfer_admin function
|
|
1632
1614
|
*/
|
|
1633
|
-
transferAdmin(signer: AccountType | PrivateKey | MnemonicAndPath, newAdmin: string, gasOptions?: GasOptions
|
|
1615
|
+
transferAdmin(signer: AccountType | PrivateKey | MnemonicAndPath, newAdmin: string, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1634
1616
|
/**
|
|
1635
1617
|
* renounce current admin
|
|
1636
1618
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1644,10 +1626,9 @@ declare class Oft<AccountType> {
|
|
|
1644
1626
|
*
|
|
1645
1627
|
* @param signer admin account
|
|
1646
1628
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1647
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1648
1629
|
* @returns transaction response of renounce_admin function
|
|
1649
1630
|
*/
|
|
1650
|
-
renounceAdmin(signer: AccountType | PrivateKey | MnemonicAndPath, gasOptions?: GasOptions
|
|
1631
|
+
renounceAdmin(signer: AccountType | PrivateKey | MnemonicAndPath, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1651
1632
|
/**
|
|
1652
1633
|
* Set the Peer for an OApp
|
|
1653
1634
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1665,10 +1646,9 @@ declare class Oft<AccountType> {
|
|
|
1665
1646
|
* @param eid EndpointId details: packages/layerzero-definitions/src/enums/endpoint-id.ts
|
|
1666
1647
|
* @param peer Peer address in vector<u8> format
|
|
1667
1648
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1668
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1669
1649
|
* @returns transaction response of set_peer function
|
|
1670
1650
|
*/
|
|
1671
|
-
setPeer(signer: AccountType | PrivateKey | MnemonicAndPath, eid: number, peer: Uint8Array, gasOptions?: GasOptions
|
|
1651
|
+
setPeer(signer: AccountType | PrivateKey | MnemonicAndPath, eid: number, peer: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1672
1652
|
/**
|
|
1673
1653
|
* Remove the Peer for an OApp
|
|
1674
1654
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1685,10 +1665,9 @@ declare class Oft<AccountType> {
|
|
|
1685
1665
|
* @param signer admin account
|
|
1686
1666
|
* @param eid EndpointId details: packages/layerzero-definitions/src/enums/endpoint-id.ts
|
|
1687
1667
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1688
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1689
1668
|
* @returns transaction response of remove_peer function
|
|
1690
1669
|
*/
|
|
1691
|
-
removePeer(signer: AccountType | PrivateKey | MnemonicAndPath, eid: number, gasOptions?: GasOptions
|
|
1670
|
+
removePeer(signer: AccountType | PrivateKey | MnemonicAndPath, eid: number, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1692
1671
|
/**
|
|
1693
1672
|
* Set the delegate address for the OApp - set to @0x0 to remove the delegate
|
|
1694
1673
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1704,10 +1683,9 @@ declare class Oft<AccountType> {
|
|
|
1704
1683
|
* @param signer admin account
|
|
1705
1684
|
* @param delegate Delegate address
|
|
1706
1685
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1707
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1708
1686
|
* @returns transaction response of set_delegate function
|
|
1709
1687
|
*/
|
|
1710
|
-
setDelegate(signer: AccountType | PrivateKey | MnemonicAndPath, delegate: string, gasOptions?: GasOptions
|
|
1688
|
+
setDelegate(signer: AccountType | PrivateKey | MnemonicAndPath, delegate: string, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1711
1689
|
/**
|
|
1712
1690
|
* Receive a LayerZero message for an OApp
|
|
1713
1691
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_receive.move
|
|
@@ -1733,10 +1711,9 @@ declare class Oft<AccountType> {
|
|
|
1733
1711
|
* @param message Message content in vector<u8> format
|
|
1734
1712
|
* @param extraData Additional data in vector<u8> format
|
|
1735
1713
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1736
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1737
1714
|
* @returns transaction response of lz_receive function
|
|
1738
1715
|
*/
|
|
1739
|
-
lzReceive(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, guid: Uint8Array, message: Uint8Array, extraData: Uint8Array, gasOptions?: GasOptions
|
|
1716
|
+
lzReceive(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, guid: Uint8Array, message: Uint8Array, extraData: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1740
1717
|
/**
|
|
1741
1718
|
* Clear a message for an OApp
|
|
1742
1719
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1760,10 +1737,9 @@ declare class Oft<AccountType> {
|
|
|
1760
1737
|
* @param guid Message GUID in vector<u8> format
|
|
1761
1738
|
* @param message Message content in vector<u8> format
|
|
1762
1739
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1763
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1764
1740
|
* @returns transaction response of clear function
|
|
1765
1741
|
*/
|
|
1766
|
-
clear(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, guid: Uint8Array, message: Uint8Array, gasOptions?: GasOptions
|
|
1742
|
+
clear(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, guid: Uint8Array, message: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1767
1743
|
/**
|
|
1768
1744
|
* Skip a message for an OApp
|
|
1769
1745
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1783,10 +1759,9 @@ declare class Oft<AccountType> {
|
|
|
1783
1759
|
* @param sender Sender address in vector<u8> format
|
|
1784
1760
|
* @param nonce Message nonce in u64
|
|
1785
1761
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1786
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1787
1762
|
* @returns transaction response of skip function
|
|
1788
1763
|
*/
|
|
1789
|
-
skip(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, gasOptions?: GasOptions
|
|
1764
|
+
skip(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1790
1765
|
/**
|
|
1791
1766
|
* Burn a message for an OApp
|
|
1792
1767
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1808,10 +1783,9 @@ declare class Oft<AccountType> {
|
|
|
1808
1783
|
* @param nonce Message nonce in u64
|
|
1809
1784
|
* @param payloadHash Hash of the payload in vector<u8> format
|
|
1810
1785
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1811
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1812
1786
|
* @returns transaction response of burn function
|
|
1813
1787
|
*/
|
|
1814
|
-
burn(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, payloadHash: Uint8Array, gasOptions?: GasOptions
|
|
1788
|
+
burn(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, payloadHash: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1815
1789
|
/**
|
|
1816
1790
|
* Nilify a message for an OApp
|
|
1817
1791
|
* location: packages/layerzero-v2/aptos/contracts/oapps/oft/sources/internal_oapp/oapp_core.move
|
|
@@ -1833,10 +1807,9 @@ declare class Oft<AccountType> {
|
|
|
1833
1807
|
* @param nonce Message nonce in u64
|
|
1834
1808
|
* @param payloadHash Hash of the payload in vector<u8> format
|
|
1835
1809
|
* @param gasOptions (optional) @see {@link GasOptions}
|
|
1836
|
-
* @param multisig (optional) address of another account to sign the transaction
|
|
1837
1810
|
* @returns transaction response of nilify function
|
|
1838
1811
|
*/
|
|
1839
|
-
nilify(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, payloadHash: Uint8Array, gasOptions?: GasOptions
|
|
1812
|
+
nilify(signer: AccountType | PrivateKey | MnemonicAndPath, srcEid: number, sender: Uint8Array, nonce: bigint, payloadHash: Uint8Array, gasOptions?: GasOptions): Promise<TransactionResponse>;
|
|
1840
1813
|
}
|
|
1841
1814
|
|
|
1842
1815
|
/**
|
|
@@ -2003,10 +1976,9 @@ declare class SimpleMsgLib<AccountType> {
|
|
|
2003
1976
|
* @param {AccountType | PrivateKey | MnemonicAndPath} signer - The signer of the transaction.
|
|
2004
1977
|
* @param {bigint} fee - The native fee.
|
|
2005
1978
|
* @param {bigint} lz - The LayerZero token fee.
|
|
2006
|
-
* @param {string | Uint8Array} [multisig] - The multisig address.
|
|
2007
1979
|
* @returns {Promise<TransactionResponse>} The transaction response.
|
|
2008
1980
|
*/
|
|
2009
|
-
setMessagingFee(signer: AccountType | PrivateKey | MnemonicAndPath, fee: bigint, lz: bigint
|
|
1981
|
+
setMessagingFee(signer: AccountType | PrivateKey | MnemonicAndPath, fee: bigint, lz: bigint): Promise<TransactionResponse>;
|
|
2010
1982
|
/**
|
|
2011
1983
|
* Gets the messaging fee.
|
|
2012
1984
|
*
|