@layerzerolabs/lz-aptos-sdk-v1 2.1.21 → 2.1.23
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 +10 -0
- package/dist/index.cjs +28 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -28
- package/dist/index.d.ts +28 -28
- package/dist/index.mjs +28 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
ADDED
package/dist/index.cjs
CHANGED
|
@@ -3417,11 +3417,12 @@ var Counter = class {
|
|
|
3417
3417
|
await this.lzApp.setConfigBundle(signer, this.uaType, majorVersion, minorVersion, remoteChainId, config);
|
|
3418
3418
|
}
|
|
3419
3419
|
sendToRemotePayload(remoteChainId, fee, adapterParams) {
|
|
3420
|
-
|
|
3420
|
+
const result = {
|
|
3421
3421
|
function: `${this.address}::counter::send_to_remote`,
|
|
3422
3422
|
type_arguments: [],
|
|
3423
3423
|
arguments: [remoteChainId, fee, Array.from(adapterParams)]
|
|
3424
3424
|
};
|
|
3425
|
+
return result;
|
|
3425
3426
|
}
|
|
3426
3427
|
async sendToRemote(signer, remoteChainId, fee, adapterParams) {
|
|
3427
3428
|
const transaction = {
|
|
@@ -3487,44 +3488,48 @@ var MultisigOracle = class {
|
|
|
3487
3488
|
);
|
|
3488
3489
|
}
|
|
3489
3490
|
getTransferValidatorPayload(newValidator) {
|
|
3490
|
-
|
|
3491
|
+
const result = {
|
|
3491
3492
|
function: `${this.module}::transfer_validator`,
|
|
3492
3493
|
type_arguments: [],
|
|
3493
3494
|
arguments: [newValidator]
|
|
3494
3495
|
};
|
|
3496
|
+
return result;
|
|
3495
3497
|
}
|
|
3496
3498
|
async setValidator(signer, newValidator) {
|
|
3497
3499
|
const transaction = this.getTransferValidatorPayload(newValidator);
|
|
3498
3500
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3499
3501
|
}
|
|
3500
3502
|
getSetAdminPayload(candidate, active) {
|
|
3501
|
-
|
|
3503
|
+
const result = {
|
|
3502
3504
|
function: `${this.module}::set_admin`,
|
|
3503
3505
|
type_arguments: [],
|
|
3504
3506
|
arguments: [candidate, active]
|
|
3505
3507
|
};
|
|
3508
|
+
return result;
|
|
3506
3509
|
}
|
|
3507
3510
|
async setAdmin(signer, candidate, active) {
|
|
3508
3511
|
const transaction = this.getSetAdminPayload(candidate, active);
|
|
3509
3512
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3510
3513
|
}
|
|
3511
3514
|
getAllowlistPayload(ua) {
|
|
3512
|
-
|
|
3515
|
+
const result = {
|
|
3513
3516
|
function: `${this.module}::allowlist`,
|
|
3514
3517
|
type_arguments: [],
|
|
3515
3518
|
arguments: [ua]
|
|
3516
3519
|
};
|
|
3520
|
+
return result;
|
|
3517
3521
|
}
|
|
3518
3522
|
async allowlist(signer, ua) {
|
|
3519
3523
|
const transaction = this.getAllowlistPayload(ua);
|
|
3520
3524
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3521
3525
|
}
|
|
3522
3526
|
getDenylistPayload(ua) {
|
|
3523
|
-
|
|
3527
|
+
const result = {
|
|
3524
3528
|
function: `${this.module}::denylist`,
|
|
3525
3529
|
type_arguments: [],
|
|
3526
3530
|
arguments: [ua]
|
|
3527
3531
|
};
|
|
3532
|
+
return result;
|
|
3528
3533
|
}
|
|
3529
3534
|
async denylist(signer, ua) {
|
|
3530
3535
|
const transaction = this.getDenylistPayload(ua);
|
|
@@ -3532,22 +3537,24 @@ var MultisigOracle = class {
|
|
|
3532
3537
|
}
|
|
3533
3538
|
// Admin Functions
|
|
3534
3539
|
getSetFeePayload(remoteChainId, baseFee) {
|
|
3535
|
-
|
|
3540
|
+
const result = {
|
|
3536
3541
|
function: `${this.module}::set_fee`,
|
|
3537
3542
|
type_arguments: [],
|
|
3538
3543
|
arguments: [remoteChainId, baseFee]
|
|
3539
3544
|
};
|
|
3545
|
+
return result;
|
|
3540
3546
|
}
|
|
3541
3547
|
async setFee(signer, remoteChainId, baseFee) {
|
|
3542
3548
|
const transaction = this.getSetFeePayload(remoteChainId, baseFee);
|
|
3543
3549
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3544
3550
|
}
|
|
3545
3551
|
getWithdrawFeePayload(receiver, amount) {
|
|
3546
|
-
|
|
3552
|
+
const result = {
|
|
3547
3553
|
function: `${this.module}::withdraw_fee`,
|
|
3548
3554
|
type_arguments: [],
|
|
3549
3555
|
arguments: [receiver, amount]
|
|
3550
3556
|
};
|
|
3557
|
+
return result;
|
|
3551
3558
|
}
|
|
3552
3559
|
async withdrawFee(signer, receiver, amount) {
|
|
3553
3560
|
const transaction = this.getWithdrawFeePayload(receiver, amount);
|
|
@@ -3602,55 +3609,60 @@ var MultisigOracleTss = class {
|
|
|
3602
3609
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3603
3610
|
}
|
|
3604
3611
|
getSetValidatorPayload(validator, active, expiration, signatures) {
|
|
3605
|
-
|
|
3612
|
+
const result = {
|
|
3606
3613
|
function: `${this.module}::mso_set_validator`,
|
|
3607
3614
|
type_arguments: [],
|
|
3608
3615
|
arguments: [Array.from(validator), active, expiration, Array.from(signatures)]
|
|
3609
3616
|
};
|
|
3617
|
+
return result;
|
|
3610
3618
|
}
|
|
3611
3619
|
async setValidator(signer, validator, active, expiration, signatures) {
|
|
3612
3620
|
const transaction = this.getSetValidatorPayload(validator, active, expiration, signatures);
|
|
3613
3621
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3614
3622
|
}
|
|
3615
3623
|
getSetThresholdPayload(threshold, expiration, signatures) {
|
|
3616
|
-
|
|
3624
|
+
const result = {
|
|
3617
3625
|
function: `${this.module}::mso_set_threshold`,
|
|
3618
3626
|
type_arguments: [],
|
|
3619
3627
|
arguments: [threshold, expiration, Array.from(signatures)]
|
|
3620
3628
|
};
|
|
3629
|
+
return result;
|
|
3621
3630
|
}
|
|
3622
3631
|
async setThreshold(signer, threshold, expiration, signatures) {
|
|
3623
3632
|
const transaction = this.getSetThresholdPayload(threshold, expiration, signatures);
|
|
3624
3633
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3625
3634
|
}
|
|
3626
3635
|
getSetAdminPayload(candidate, active, expiration, signatures) {
|
|
3627
|
-
|
|
3636
|
+
const result = {
|
|
3628
3637
|
function: `${this.module}::mso_set_admin`,
|
|
3629
3638
|
type_arguments: [],
|
|
3630
3639
|
arguments: [candidate, active, expiration, Array.from(signatures)]
|
|
3631
3640
|
};
|
|
3641
|
+
return result;
|
|
3632
3642
|
}
|
|
3633
3643
|
async setAdmin(signer, candidate, active, expiration, signatures) {
|
|
3634
3644
|
const transaction = this.getSetAdminPayload(candidate, active, expiration, signatures);
|
|
3635
3645
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3636
3646
|
}
|
|
3637
3647
|
getAllowlistPayload(ua, expiration, signatures) {
|
|
3638
|
-
|
|
3648
|
+
const result = {
|
|
3639
3649
|
function: `${this.module}::mso_allowlist`,
|
|
3640
3650
|
type_arguments: [],
|
|
3641
3651
|
arguments: [ua, expiration, Array.from(signatures)]
|
|
3642
3652
|
};
|
|
3653
|
+
return result;
|
|
3643
3654
|
}
|
|
3644
3655
|
async allowlist(signer, ua, expiration, signatures) {
|
|
3645
3656
|
const transaction = this.getAllowlistPayload(ua, expiration, signatures);
|
|
3646
3657
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3647
3658
|
}
|
|
3648
3659
|
getDenylistPayload(ua, expiration, signatures) {
|
|
3649
|
-
|
|
3660
|
+
const result = {
|
|
3650
3661
|
function: `${this.module}::mso_denylist`,
|
|
3651
3662
|
type_arguments: [],
|
|
3652
3663
|
arguments: [ua, expiration, Array.from(signatures)]
|
|
3653
3664
|
};
|
|
3665
|
+
return result;
|
|
3654
3666
|
}
|
|
3655
3667
|
async denylist(signer, ua, expiration, signatures) {
|
|
3656
3668
|
const transaction = this.getDenylistPayload(ua, expiration, signatures);
|
|
@@ -3658,22 +3670,24 @@ var MultisigOracleTss = class {
|
|
|
3658
3670
|
}
|
|
3659
3671
|
// Admin Functions
|
|
3660
3672
|
getSetFeePayload(remoteChainId, baseFee) {
|
|
3661
|
-
|
|
3673
|
+
const result = {
|
|
3662
3674
|
function: `${this.module}::mso_set_fee`,
|
|
3663
3675
|
type_arguments: [],
|
|
3664
3676
|
arguments: [remoteChainId, baseFee]
|
|
3665
3677
|
};
|
|
3678
|
+
return result;
|
|
3666
3679
|
}
|
|
3667
3680
|
async setFee(signer, remoteChainId, baseFee) {
|
|
3668
3681
|
const transaction = this.getSetFeePayload(remoteChainId, baseFee);
|
|
3669
3682
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3670
3683
|
}
|
|
3671
3684
|
getWithdrawFeePayload(receiver, amount) {
|
|
3672
|
-
|
|
3685
|
+
const result = {
|
|
3673
3686
|
function: `${this.module}::mso_withdraw_fee`,
|
|
3674
3687
|
type_arguments: [],
|
|
3675
3688
|
arguments: [receiver, amount]
|
|
3676
3689
|
};
|
|
3690
|
+
return result;
|
|
3677
3691
|
}
|
|
3678
3692
|
async withdrawFee(signer, receiver, amount) {
|
|
3679
3693
|
const transaction = this.getWithdrawFeePayload(receiver, amount);
|