@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/dist/index.d.cts
CHANGED
|
@@ -661,8 +661,8 @@ declare class Counter {
|
|
|
661
661
|
setAppConfigBundle(signer: aptos.AptosAccount, majorVersion: aptos.BCS.Uint16, minorVersion: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, config: UlnConfigType): Promise<void>;
|
|
662
662
|
sendToRemotePayload(remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array): {
|
|
663
663
|
function: string;
|
|
664
|
-
type_arguments:
|
|
665
|
-
arguments:
|
|
664
|
+
type_arguments: string[];
|
|
665
|
+
arguments: any[];
|
|
666
666
|
};
|
|
667
667
|
sendToRemote(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
668
668
|
lzReceive(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint16, remoteAddress: aptos.BCS.Bytes, payload: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
@@ -680,38 +680,38 @@ declare class MultisigOracle {
|
|
|
680
680
|
getProposeEntryFunction(hash: aptos.MaybeHexString, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): aptos.TxnBuilderTypes.TransactionPayloadEntryFunction;
|
|
681
681
|
getTransferValidatorPayload(newValidator: aptos.MaybeHexString): {
|
|
682
682
|
function: string;
|
|
683
|
-
type_arguments:
|
|
684
|
-
arguments:
|
|
683
|
+
type_arguments: string[];
|
|
684
|
+
arguments: any[];
|
|
685
685
|
};
|
|
686
686
|
setValidator(signer: aptos.AptosAccount, newValidator: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
687
687
|
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean): {
|
|
688
688
|
function: string;
|
|
689
|
-
type_arguments:
|
|
690
|
-
arguments:
|
|
689
|
+
type_arguments: string[];
|
|
690
|
+
arguments: any[];
|
|
691
691
|
};
|
|
692
692
|
setAdmin(signer: aptos.AptosAccount, candidate: aptos.MaybeHexString, active: boolean): Promise<aptos.Types.Transaction>;
|
|
693
693
|
getAllowlistPayload(ua: aptos.MaybeHexString): {
|
|
694
694
|
function: string;
|
|
695
|
-
type_arguments:
|
|
696
|
-
arguments:
|
|
695
|
+
type_arguments: string[];
|
|
696
|
+
arguments: any[];
|
|
697
697
|
};
|
|
698
698
|
allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
699
699
|
getDenylistPayload(ua: aptos.MaybeHexString): {
|
|
700
700
|
function: string;
|
|
701
|
-
type_arguments:
|
|
702
|
-
arguments:
|
|
701
|
+
type_arguments: string[];
|
|
702
|
+
arguments: any[];
|
|
703
703
|
};
|
|
704
704
|
denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
705
705
|
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): {
|
|
706
706
|
function: string;
|
|
707
|
-
type_arguments:
|
|
708
|
-
arguments:
|
|
707
|
+
type_arguments: string[];
|
|
708
|
+
arguments: any[];
|
|
709
709
|
};
|
|
710
710
|
setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
711
711
|
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): {
|
|
712
712
|
function: string;
|
|
713
|
-
type_arguments:
|
|
714
|
-
arguments:
|
|
713
|
+
type_arguments: string[];
|
|
714
|
+
arguments: any[];
|
|
715
715
|
};
|
|
716
716
|
withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
717
717
|
isAdmin(account: aptos.MaybeHexString): Promise<boolean>;
|
|
@@ -731,44 +731,44 @@ declare class MultisigOracleTss {
|
|
|
731
731
|
propose(signer: aptos.AptosAccount, hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
732
732
|
getSetValidatorPayload(validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
733
733
|
function: string;
|
|
734
|
-
type_arguments:
|
|
735
|
-
arguments:
|
|
734
|
+
type_arguments: string[];
|
|
735
|
+
arguments: any[];
|
|
736
736
|
};
|
|
737
737
|
setValidator(signer: aptos.AptosAccount, validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
738
738
|
getSetThresholdPayload(threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
739
739
|
function: string;
|
|
740
|
-
type_arguments:
|
|
741
|
-
arguments:
|
|
740
|
+
type_arguments: string[];
|
|
741
|
+
arguments: any[];
|
|
742
742
|
};
|
|
743
743
|
setThreshold(signer: aptos.AptosAccount, threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
744
744
|
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
745
745
|
function: string;
|
|
746
|
-
type_arguments:
|
|
747
|
-
arguments:
|
|
746
|
+
type_arguments: string[];
|
|
747
|
+
arguments: any[];
|
|
748
748
|
};
|
|
749
749
|
setAdmin(signer: aptos.AptosAccount, candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
750
750
|
getAllowlistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
751
751
|
function: string;
|
|
752
|
-
type_arguments:
|
|
753
|
-
arguments:
|
|
752
|
+
type_arguments: string[];
|
|
753
|
+
arguments: any[];
|
|
754
754
|
};
|
|
755
755
|
allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
756
756
|
getDenylistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
757
757
|
function: string;
|
|
758
|
-
type_arguments:
|
|
759
|
-
arguments:
|
|
758
|
+
type_arguments: string[];
|
|
759
|
+
arguments: any[];
|
|
760
760
|
};
|
|
761
761
|
denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
762
762
|
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): {
|
|
763
763
|
function: string;
|
|
764
|
-
type_arguments:
|
|
765
|
-
arguments:
|
|
764
|
+
type_arguments: string[];
|
|
765
|
+
arguments: any[];
|
|
766
766
|
};
|
|
767
767
|
setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
768
768
|
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): {
|
|
769
769
|
function: string;
|
|
770
|
-
type_arguments:
|
|
771
|
-
arguments:
|
|
770
|
+
type_arguments: string[];
|
|
771
|
+
arguments: any[];
|
|
772
772
|
};
|
|
773
773
|
withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
774
774
|
getAdmins(): Promise<aptos.MaybeHexString[]>;
|
package/dist/index.d.ts
CHANGED
|
@@ -661,8 +661,8 @@ declare class Counter {
|
|
|
661
661
|
setAppConfigBundle(signer: aptos.AptosAccount, majorVersion: aptos.BCS.Uint16, minorVersion: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, config: UlnConfigType): Promise<void>;
|
|
662
662
|
sendToRemotePayload(remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array): {
|
|
663
663
|
function: string;
|
|
664
|
-
type_arguments:
|
|
665
|
-
arguments:
|
|
664
|
+
type_arguments: string[];
|
|
665
|
+
arguments: any[];
|
|
666
666
|
};
|
|
667
667
|
sendToRemote(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
668
668
|
lzReceive(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint16, remoteAddress: aptos.BCS.Bytes, payload: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
@@ -680,38 +680,38 @@ declare class MultisigOracle {
|
|
|
680
680
|
getProposeEntryFunction(hash: aptos.MaybeHexString, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): aptos.TxnBuilderTypes.TransactionPayloadEntryFunction;
|
|
681
681
|
getTransferValidatorPayload(newValidator: aptos.MaybeHexString): {
|
|
682
682
|
function: string;
|
|
683
|
-
type_arguments:
|
|
684
|
-
arguments:
|
|
683
|
+
type_arguments: string[];
|
|
684
|
+
arguments: any[];
|
|
685
685
|
};
|
|
686
686
|
setValidator(signer: aptos.AptosAccount, newValidator: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
687
687
|
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean): {
|
|
688
688
|
function: string;
|
|
689
|
-
type_arguments:
|
|
690
|
-
arguments:
|
|
689
|
+
type_arguments: string[];
|
|
690
|
+
arguments: any[];
|
|
691
691
|
};
|
|
692
692
|
setAdmin(signer: aptos.AptosAccount, candidate: aptos.MaybeHexString, active: boolean): Promise<aptos.Types.Transaction>;
|
|
693
693
|
getAllowlistPayload(ua: aptos.MaybeHexString): {
|
|
694
694
|
function: string;
|
|
695
|
-
type_arguments:
|
|
696
|
-
arguments:
|
|
695
|
+
type_arguments: string[];
|
|
696
|
+
arguments: any[];
|
|
697
697
|
};
|
|
698
698
|
allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
699
699
|
getDenylistPayload(ua: aptos.MaybeHexString): {
|
|
700
700
|
function: string;
|
|
701
|
-
type_arguments:
|
|
702
|
-
arguments:
|
|
701
|
+
type_arguments: string[];
|
|
702
|
+
arguments: any[];
|
|
703
703
|
};
|
|
704
704
|
denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
705
705
|
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): {
|
|
706
706
|
function: string;
|
|
707
|
-
type_arguments:
|
|
708
|
-
arguments:
|
|
707
|
+
type_arguments: string[];
|
|
708
|
+
arguments: any[];
|
|
709
709
|
};
|
|
710
710
|
setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
711
711
|
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): {
|
|
712
712
|
function: string;
|
|
713
|
-
type_arguments:
|
|
714
|
-
arguments:
|
|
713
|
+
type_arguments: string[];
|
|
714
|
+
arguments: any[];
|
|
715
715
|
};
|
|
716
716
|
withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
717
717
|
isAdmin(account: aptos.MaybeHexString): Promise<boolean>;
|
|
@@ -731,44 +731,44 @@ declare class MultisigOracleTss {
|
|
|
731
731
|
propose(signer: aptos.AptosAccount, hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
732
732
|
getSetValidatorPayload(validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
733
733
|
function: string;
|
|
734
|
-
type_arguments:
|
|
735
|
-
arguments:
|
|
734
|
+
type_arguments: string[];
|
|
735
|
+
arguments: any[];
|
|
736
736
|
};
|
|
737
737
|
setValidator(signer: aptos.AptosAccount, validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
738
738
|
getSetThresholdPayload(threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
739
739
|
function: string;
|
|
740
|
-
type_arguments:
|
|
741
|
-
arguments:
|
|
740
|
+
type_arguments: string[];
|
|
741
|
+
arguments: any[];
|
|
742
742
|
};
|
|
743
743
|
setThreshold(signer: aptos.AptosAccount, threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
744
744
|
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
745
745
|
function: string;
|
|
746
|
-
type_arguments:
|
|
747
|
-
arguments:
|
|
746
|
+
type_arguments: string[];
|
|
747
|
+
arguments: any[];
|
|
748
748
|
};
|
|
749
749
|
setAdmin(signer: aptos.AptosAccount, candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
750
750
|
getAllowlistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
751
751
|
function: string;
|
|
752
|
-
type_arguments:
|
|
753
|
-
arguments:
|
|
752
|
+
type_arguments: string[];
|
|
753
|
+
arguments: any[];
|
|
754
754
|
};
|
|
755
755
|
allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
756
756
|
getDenylistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): {
|
|
757
757
|
function: string;
|
|
758
|
-
type_arguments:
|
|
759
|
-
arguments:
|
|
758
|
+
type_arguments: string[];
|
|
759
|
+
arguments: any[];
|
|
760
760
|
};
|
|
761
761
|
denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
762
762
|
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): {
|
|
763
763
|
function: string;
|
|
764
|
-
type_arguments:
|
|
765
|
-
arguments:
|
|
764
|
+
type_arguments: string[];
|
|
765
|
+
arguments: any[];
|
|
766
766
|
};
|
|
767
767
|
setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
768
768
|
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): {
|
|
769
769
|
function: string;
|
|
770
|
-
type_arguments:
|
|
771
|
-
arguments:
|
|
770
|
+
type_arguments: string[];
|
|
771
|
+
arguments: any[];
|
|
772
772
|
};
|
|
773
773
|
withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
774
774
|
getAdmins(): Promise<aptos.MaybeHexString[]>;
|
package/dist/index.mjs
CHANGED
|
@@ -3390,11 +3390,12 @@ var Counter = class {
|
|
|
3390
3390
|
await this.lzApp.setConfigBundle(signer, this.uaType, majorVersion, minorVersion, remoteChainId, config);
|
|
3391
3391
|
}
|
|
3392
3392
|
sendToRemotePayload(remoteChainId, fee, adapterParams) {
|
|
3393
|
-
|
|
3393
|
+
const result = {
|
|
3394
3394
|
function: `${this.address}::counter::send_to_remote`,
|
|
3395
3395
|
type_arguments: [],
|
|
3396
3396
|
arguments: [remoteChainId, fee, Array.from(adapterParams)]
|
|
3397
3397
|
};
|
|
3398
|
+
return result;
|
|
3398
3399
|
}
|
|
3399
3400
|
async sendToRemote(signer, remoteChainId, fee, adapterParams) {
|
|
3400
3401
|
const transaction = {
|
|
@@ -3460,44 +3461,48 @@ var MultisigOracle = class {
|
|
|
3460
3461
|
);
|
|
3461
3462
|
}
|
|
3462
3463
|
getTransferValidatorPayload(newValidator) {
|
|
3463
|
-
|
|
3464
|
+
const result = {
|
|
3464
3465
|
function: `${this.module}::transfer_validator`,
|
|
3465
3466
|
type_arguments: [],
|
|
3466
3467
|
arguments: [newValidator]
|
|
3467
3468
|
};
|
|
3469
|
+
return result;
|
|
3468
3470
|
}
|
|
3469
3471
|
async setValidator(signer, newValidator) {
|
|
3470
3472
|
const transaction = this.getTransferValidatorPayload(newValidator);
|
|
3471
3473
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3472
3474
|
}
|
|
3473
3475
|
getSetAdminPayload(candidate, active) {
|
|
3474
|
-
|
|
3476
|
+
const result = {
|
|
3475
3477
|
function: `${this.module}::set_admin`,
|
|
3476
3478
|
type_arguments: [],
|
|
3477
3479
|
arguments: [candidate, active]
|
|
3478
3480
|
};
|
|
3481
|
+
return result;
|
|
3479
3482
|
}
|
|
3480
3483
|
async setAdmin(signer, candidate, active) {
|
|
3481
3484
|
const transaction = this.getSetAdminPayload(candidate, active);
|
|
3482
3485
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3483
3486
|
}
|
|
3484
3487
|
getAllowlistPayload(ua) {
|
|
3485
|
-
|
|
3488
|
+
const result = {
|
|
3486
3489
|
function: `${this.module}::allowlist`,
|
|
3487
3490
|
type_arguments: [],
|
|
3488
3491
|
arguments: [ua]
|
|
3489
3492
|
};
|
|
3493
|
+
return result;
|
|
3490
3494
|
}
|
|
3491
3495
|
async allowlist(signer, ua) {
|
|
3492
3496
|
const transaction = this.getAllowlistPayload(ua);
|
|
3493
3497
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3494
3498
|
}
|
|
3495
3499
|
getDenylistPayload(ua) {
|
|
3496
|
-
|
|
3500
|
+
const result = {
|
|
3497
3501
|
function: `${this.module}::denylist`,
|
|
3498
3502
|
type_arguments: [],
|
|
3499
3503
|
arguments: [ua]
|
|
3500
3504
|
};
|
|
3505
|
+
return result;
|
|
3501
3506
|
}
|
|
3502
3507
|
async denylist(signer, ua) {
|
|
3503
3508
|
const transaction = this.getDenylistPayload(ua);
|
|
@@ -3505,22 +3510,24 @@ var MultisigOracle = class {
|
|
|
3505
3510
|
}
|
|
3506
3511
|
// Admin Functions
|
|
3507
3512
|
getSetFeePayload(remoteChainId, baseFee) {
|
|
3508
|
-
|
|
3513
|
+
const result = {
|
|
3509
3514
|
function: `${this.module}::set_fee`,
|
|
3510
3515
|
type_arguments: [],
|
|
3511
3516
|
arguments: [remoteChainId, baseFee]
|
|
3512
3517
|
};
|
|
3518
|
+
return result;
|
|
3513
3519
|
}
|
|
3514
3520
|
async setFee(signer, remoteChainId, baseFee) {
|
|
3515
3521
|
const transaction = this.getSetFeePayload(remoteChainId, baseFee);
|
|
3516
3522
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3517
3523
|
}
|
|
3518
3524
|
getWithdrawFeePayload(receiver, amount) {
|
|
3519
|
-
|
|
3525
|
+
const result = {
|
|
3520
3526
|
function: `${this.module}::withdraw_fee`,
|
|
3521
3527
|
type_arguments: [],
|
|
3522
3528
|
arguments: [receiver, amount]
|
|
3523
3529
|
};
|
|
3530
|
+
return result;
|
|
3524
3531
|
}
|
|
3525
3532
|
async withdrawFee(signer, receiver, amount) {
|
|
3526
3533
|
const transaction = this.getWithdrawFeePayload(receiver, amount);
|
|
@@ -3575,55 +3582,60 @@ var MultisigOracleTss = class {
|
|
|
3575
3582
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3576
3583
|
}
|
|
3577
3584
|
getSetValidatorPayload(validator, active, expiration, signatures) {
|
|
3578
|
-
|
|
3585
|
+
const result = {
|
|
3579
3586
|
function: `${this.module}::mso_set_validator`,
|
|
3580
3587
|
type_arguments: [],
|
|
3581
3588
|
arguments: [Array.from(validator), active, expiration, Array.from(signatures)]
|
|
3582
3589
|
};
|
|
3590
|
+
return result;
|
|
3583
3591
|
}
|
|
3584
3592
|
async setValidator(signer, validator, active, expiration, signatures) {
|
|
3585
3593
|
const transaction = this.getSetValidatorPayload(validator, active, expiration, signatures);
|
|
3586
3594
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3587
3595
|
}
|
|
3588
3596
|
getSetThresholdPayload(threshold, expiration, signatures) {
|
|
3589
|
-
|
|
3597
|
+
const result = {
|
|
3590
3598
|
function: `${this.module}::mso_set_threshold`,
|
|
3591
3599
|
type_arguments: [],
|
|
3592
3600
|
arguments: [threshold, expiration, Array.from(signatures)]
|
|
3593
3601
|
};
|
|
3602
|
+
return result;
|
|
3594
3603
|
}
|
|
3595
3604
|
async setThreshold(signer, threshold, expiration, signatures) {
|
|
3596
3605
|
const transaction = this.getSetThresholdPayload(threshold, expiration, signatures);
|
|
3597
3606
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3598
3607
|
}
|
|
3599
3608
|
getSetAdminPayload(candidate, active, expiration, signatures) {
|
|
3600
|
-
|
|
3609
|
+
const result = {
|
|
3601
3610
|
function: `${this.module}::mso_set_admin`,
|
|
3602
3611
|
type_arguments: [],
|
|
3603
3612
|
arguments: [candidate, active, expiration, Array.from(signatures)]
|
|
3604
3613
|
};
|
|
3614
|
+
return result;
|
|
3605
3615
|
}
|
|
3606
3616
|
async setAdmin(signer, candidate, active, expiration, signatures) {
|
|
3607
3617
|
const transaction = this.getSetAdminPayload(candidate, active, expiration, signatures);
|
|
3608
3618
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3609
3619
|
}
|
|
3610
3620
|
getAllowlistPayload(ua, expiration, signatures) {
|
|
3611
|
-
|
|
3621
|
+
const result = {
|
|
3612
3622
|
function: `${this.module}::mso_allowlist`,
|
|
3613
3623
|
type_arguments: [],
|
|
3614
3624
|
arguments: [ua, expiration, Array.from(signatures)]
|
|
3615
3625
|
};
|
|
3626
|
+
return result;
|
|
3616
3627
|
}
|
|
3617
3628
|
async allowlist(signer, ua, expiration, signatures) {
|
|
3618
3629
|
const transaction = this.getAllowlistPayload(ua, expiration, signatures);
|
|
3619
3630
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3620
3631
|
}
|
|
3621
3632
|
getDenylistPayload(ua, expiration, signatures) {
|
|
3622
|
-
|
|
3633
|
+
const result = {
|
|
3623
3634
|
function: `${this.module}::mso_denylist`,
|
|
3624
3635
|
type_arguments: [],
|
|
3625
3636
|
arguments: [ua, expiration, Array.from(signatures)]
|
|
3626
3637
|
};
|
|
3638
|
+
return result;
|
|
3627
3639
|
}
|
|
3628
3640
|
async denylist(signer, ua, expiration, signatures) {
|
|
3629
3641
|
const transaction = this.getDenylistPayload(ua, expiration, signatures);
|
|
@@ -3631,22 +3643,24 @@ var MultisigOracleTss = class {
|
|
|
3631
3643
|
}
|
|
3632
3644
|
// Admin Functions
|
|
3633
3645
|
getSetFeePayload(remoteChainId, baseFee) {
|
|
3634
|
-
|
|
3646
|
+
const result = {
|
|
3635
3647
|
function: `${this.module}::mso_set_fee`,
|
|
3636
3648
|
type_arguments: [],
|
|
3637
3649
|
arguments: [remoteChainId, baseFee]
|
|
3638
3650
|
};
|
|
3651
|
+
return result;
|
|
3639
3652
|
}
|
|
3640
3653
|
async setFee(signer, remoteChainId, baseFee) {
|
|
3641
3654
|
const transaction = this.getSetFeePayload(remoteChainId, baseFee);
|
|
3642
3655
|
return this.sdk.sendAndConfirmTransaction(signer, transaction);
|
|
3643
3656
|
}
|
|
3644
3657
|
getWithdrawFeePayload(receiver, amount) {
|
|
3645
|
-
|
|
3658
|
+
const result = {
|
|
3646
3659
|
function: `${this.module}::mso_withdraw_fee`,
|
|
3647
3660
|
type_arguments: [],
|
|
3648
3661
|
arguments: [receiver, amount]
|
|
3649
3662
|
};
|
|
3663
|
+
return result;
|
|
3650
3664
|
}
|
|
3651
3665
|
async withdrawFee(signer, receiver, amount) {
|
|
3652
3666
|
const transaction = this.getWithdrawFeePayload(receiver, amount);
|