@layerzerolabs/lz-aptos-sdk-v1 2.1.24 → 2.1.26
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 +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -80
- package/dist/index.d.ts +18 -80
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -353,11 +353,7 @@ declare function getLzReceiveTypeArguments(bytecode: aptos.BCS.Bytes, sdk: SDK,
|
|
|
353
353
|
declare function getResourceAddress(source: aptos.MaybeHexString, seed: Uint8Array): aptos.HexString;
|
|
354
354
|
declare function getAccountFromPrivateKey(key: string): aptos.AptosAccount;
|
|
355
355
|
declare function getAccountFromMnemonic(mnemonic: string, path?: string): aptos.AptosAccount;
|
|
356
|
-
declare function normalizeTypeInfo(typeInfo: TypeInfo):
|
|
357
|
-
account_address: string;
|
|
358
|
-
module_name: string;
|
|
359
|
-
struct_name: string;
|
|
360
|
-
};
|
|
356
|
+
declare function normalizeTypeInfo(typeInfo: TypeInfo): TypeInfo;
|
|
361
357
|
declare function buildStructTagFromTypeInfo(typeInfo: TypeInfo): string;
|
|
362
358
|
declare function isTypeInfo(value: TypeInfo | any): value is TypeInfo;
|
|
363
359
|
|
|
@@ -576,7 +572,7 @@ declare class Bridge {
|
|
|
576
572
|
SEND_PAYLOAD_LENGTH: number;
|
|
577
573
|
constructor(sdk: SDK, coin: Coin, bridge?: aptos.MaybeHexString, lzApp?: aptos.MaybeHexString);
|
|
578
574
|
setAppConfig(signer: aptos.AptosAccount, major: aptos.BCS.Uint16, minor: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, configType: aptos.BCS.Uint8, configBytes: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
579
|
-
getMinDstGas(dstChainId: aptos.BCS.Uint16, type: aptos.BCS.Uint64): Promise<
|
|
575
|
+
getMinDstGas(dstChainId: aptos.BCS.Uint16, type: aptos.BCS.Uint64): Promise<aptos.BCS.Uint64>;
|
|
580
576
|
setMinDstGasPayload(dstChainId: aptos.BCS.Uint16, packetType: aptos.BCS.Uint64, minGas: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
581
577
|
/** @deprecated use {@link isCustomAdapterParamsEnabled} instead */
|
|
582
578
|
customAdapterParamsEnabled(): Promise<boolean>;
|
|
@@ -659,11 +655,7 @@ declare class Counter {
|
|
|
659
655
|
setAppConfigPayload(majorVersion: aptos.BCS.Uint16, minorVersion: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, configType: aptos.BCS.Uint8, configBytes: aptos.BCS.Bytes): aptos.Types.EntryFunctionPayload;
|
|
660
656
|
setAppConfig(signer: aptos.AptosAccount, majorVersion: aptos.BCS.Uint16, minorVersion: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, configType: aptos.BCS.Uint8, configBytes: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
661
657
|
setAppConfigBundle(signer: aptos.AptosAccount, majorVersion: aptos.BCS.Uint16, minorVersion: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, config: UlnConfigType): Promise<void>;
|
|
662
|
-
sendToRemotePayload(remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array):
|
|
663
|
-
function: string;
|
|
664
|
-
type_arguments: string[];
|
|
665
|
-
arguments: any[];
|
|
666
|
-
};
|
|
658
|
+
sendToRemotePayload(remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
667
659
|
sendToRemote(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
668
660
|
lzReceive(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint16, remoteAddress: aptos.BCS.Bytes, payload: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
669
661
|
isCounterCreated(address: aptos.MaybeHexString): Promise<boolean>;
|
|
@@ -678,41 +670,17 @@ declare class MultisigOracle {
|
|
|
678
670
|
getProposePayload(hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): aptos.Types.EntryFunctionPayload;
|
|
679
671
|
propose(signer: aptos.AptosAccount, hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): Promise<aptos.Types.Transaction>;
|
|
680
672
|
getProposeEntryFunction(hash: aptos.MaybeHexString, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): aptos.TxnBuilderTypes.TransactionPayloadEntryFunction;
|
|
681
|
-
getTransferValidatorPayload(newValidator: aptos.MaybeHexString):
|
|
682
|
-
function: string;
|
|
683
|
-
type_arguments: string[];
|
|
684
|
-
arguments: any[];
|
|
685
|
-
};
|
|
673
|
+
getTransferValidatorPayload(newValidator: aptos.MaybeHexString): aptos.Types.EntryFunctionPayload;
|
|
686
674
|
setValidator(signer: aptos.AptosAccount, newValidator: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
687
|
-
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean):
|
|
688
|
-
function: string;
|
|
689
|
-
type_arguments: string[];
|
|
690
|
-
arguments: any[];
|
|
691
|
-
};
|
|
675
|
+
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean): aptos.Types.EntryFunctionPayload;
|
|
692
676
|
setAdmin(signer: aptos.AptosAccount, candidate: aptos.MaybeHexString, active: boolean): Promise<aptos.Types.Transaction>;
|
|
693
|
-
getAllowlistPayload(ua: aptos.MaybeHexString):
|
|
694
|
-
function: string;
|
|
695
|
-
type_arguments: string[];
|
|
696
|
-
arguments: any[];
|
|
697
|
-
};
|
|
677
|
+
getAllowlistPayload(ua: aptos.MaybeHexString): aptos.Types.EntryFunctionPayload;
|
|
698
678
|
allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
699
|
-
getDenylistPayload(ua: aptos.MaybeHexString):
|
|
700
|
-
function: string;
|
|
701
|
-
type_arguments: string[];
|
|
702
|
-
arguments: any[];
|
|
703
|
-
};
|
|
679
|
+
getDenylistPayload(ua: aptos.MaybeHexString): aptos.Types.EntryFunctionPayload;
|
|
704
680
|
denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
705
|
-
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64):
|
|
706
|
-
function: string;
|
|
707
|
-
type_arguments: string[];
|
|
708
|
-
arguments: any[];
|
|
709
|
-
};
|
|
681
|
+
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
710
682
|
setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
711
|
-
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64):
|
|
712
|
-
function: string;
|
|
713
|
-
type_arguments: string[];
|
|
714
|
-
arguments: any[];
|
|
715
|
-
};
|
|
683
|
+
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
716
684
|
withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
717
685
|
isAdmin(account: aptos.MaybeHexString): Promise<boolean>;
|
|
718
686
|
getValidator(): Promise<aptos.MaybeHexString>;
|
|
@@ -729,47 +697,19 @@ declare class MultisigOracleTss {
|
|
|
729
697
|
constructor(sdk: SDK, address: aptos.MaybeHexString);
|
|
730
698
|
getProposePayload(hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
731
699
|
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
|
-
getSetValidatorPayload(validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
733
|
-
function: string;
|
|
734
|
-
type_arguments: string[];
|
|
735
|
-
arguments: any[];
|
|
736
|
-
};
|
|
700
|
+
getSetValidatorPayload(validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
737
701
|
setValidator(signer: aptos.AptosAccount, validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
738
|
-
getSetThresholdPayload(threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
739
|
-
function: string;
|
|
740
|
-
type_arguments: string[];
|
|
741
|
-
arguments: any[];
|
|
742
|
-
};
|
|
702
|
+
getSetThresholdPayload(threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
743
703
|
setThreshold(signer: aptos.AptosAccount, threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
744
|
-
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
745
|
-
function: string;
|
|
746
|
-
type_arguments: string[];
|
|
747
|
-
arguments: any[];
|
|
748
|
-
};
|
|
704
|
+
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
749
705
|
setAdmin(signer: aptos.AptosAccount, candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
750
|
-
getAllowlistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
751
|
-
function: string;
|
|
752
|
-
type_arguments: string[];
|
|
753
|
-
arguments: any[];
|
|
754
|
-
};
|
|
706
|
+
getAllowlistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
755
707
|
allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
756
|
-
getDenylistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
757
|
-
function: string;
|
|
758
|
-
type_arguments: string[];
|
|
759
|
-
arguments: any[];
|
|
760
|
-
};
|
|
708
|
+
getDenylistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
761
709
|
denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
762
|
-
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64):
|
|
763
|
-
function: string;
|
|
764
|
-
type_arguments: string[];
|
|
765
|
-
arguments: any[];
|
|
766
|
-
};
|
|
710
|
+
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
767
711
|
setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
768
|
-
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64):
|
|
769
|
-
function: string;
|
|
770
|
-
type_arguments: string[];
|
|
771
|
-
arguments: any[];
|
|
772
|
-
};
|
|
712
|
+
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
773
713
|
withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
774
714
|
getAdmins(): Promise<aptos.MaybeHexString[]>;
|
|
775
715
|
getValidators(): Promise<aptos.MaybeHexString[]>;
|
|
@@ -792,7 +732,7 @@ declare class OFT {
|
|
|
792
732
|
private lzApp;
|
|
793
733
|
constructor(sdk: SDK);
|
|
794
734
|
setAppConfig(signer: aptos.AptosAccount, oftType: string, major: aptos.BCS.Uint16, minor: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, configType: aptos.BCS.Uint8, configBytes: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
795
|
-
getMinDstGas(oftType: string, dstChainId: aptos.BCS.Uint16, type: aptos.BCS.Uint64): Promise<
|
|
735
|
+
getMinDstGas(oftType: string, dstChainId: aptos.BCS.Uint16, type: aptos.BCS.Uint64): Promise<aptos.BCS.Uint64>;
|
|
796
736
|
setMinDstGasPayload(oftType: string, dstChainId: aptos.BCS.Uint16, packetType: aptos.BCS.Uint64, minGas: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
797
737
|
customAdapterParamsEnabled(oftType: string): Promise<boolean>;
|
|
798
738
|
enableCustomAdapterParamsPayload(oftType: string, enable: boolean): aptos.Types.EntryFunctionPayload;
|
|
@@ -951,9 +891,7 @@ declare class SDK {
|
|
|
951
891
|
max_gas_amount: string;
|
|
952
892
|
gas_unit_price: string;
|
|
953
893
|
}>;
|
|
954
|
-
sendAndConfirmMultiSigTransaction(client: aptos.AptosClient, multisigAccountAddress: string, multisigAccountPubkey: aptos.TxnBuilderTypes.MultiEd25519PublicKey, payload: aptos.TxnBuilderTypes.TransactionPayload, signFunc?: MultipleSignFunc, signedItems?: MutipleSignatureItem[]): Promise<
|
|
955
|
-
type: string;
|
|
956
|
-
} & aptos.Types.UserTransaction>;
|
|
894
|
+
sendAndConfirmMultiSigTransaction(client: aptos.AptosClient, multisigAccountAddress: string, multisigAccountPubkey: aptos.TxnBuilderTypes.MultiEd25519PublicKey, payload: aptos.TxnBuilderTypes.TransactionPayload, signFunc?: MultipleSignFunc, signedItems?: MutipleSignatureItem[]): Promise<aptos.Types.Transaction_UserTransaction>;
|
|
957
895
|
deploy(signer: aptos.AptosAccount, metadata: Uint8Array, modules: aptos.TxnBuilderTypes.Module[]): Promise<string>;
|
|
958
896
|
private waitAndGetTransaction;
|
|
959
897
|
private sendAndConfirmRawTransaction;
|
package/dist/index.d.ts
CHANGED
|
@@ -353,11 +353,7 @@ declare function getLzReceiveTypeArguments(bytecode: aptos.BCS.Bytes, sdk: SDK,
|
|
|
353
353
|
declare function getResourceAddress(source: aptos.MaybeHexString, seed: Uint8Array): aptos.HexString;
|
|
354
354
|
declare function getAccountFromPrivateKey(key: string): aptos.AptosAccount;
|
|
355
355
|
declare function getAccountFromMnemonic(mnemonic: string, path?: string): aptos.AptosAccount;
|
|
356
|
-
declare function normalizeTypeInfo(typeInfo: TypeInfo):
|
|
357
|
-
account_address: string;
|
|
358
|
-
module_name: string;
|
|
359
|
-
struct_name: string;
|
|
360
|
-
};
|
|
356
|
+
declare function normalizeTypeInfo(typeInfo: TypeInfo): TypeInfo;
|
|
361
357
|
declare function buildStructTagFromTypeInfo(typeInfo: TypeInfo): string;
|
|
362
358
|
declare function isTypeInfo(value: TypeInfo | any): value is TypeInfo;
|
|
363
359
|
|
|
@@ -576,7 +572,7 @@ declare class Bridge {
|
|
|
576
572
|
SEND_PAYLOAD_LENGTH: number;
|
|
577
573
|
constructor(sdk: SDK, coin: Coin, bridge?: aptos.MaybeHexString, lzApp?: aptos.MaybeHexString);
|
|
578
574
|
setAppConfig(signer: aptos.AptosAccount, major: aptos.BCS.Uint16, minor: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, configType: aptos.BCS.Uint8, configBytes: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
579
|
-
getMinDstGas(dstChainId: aptos.BCS.Uint16, type: aptos.BCS.Uint64): Promise<
|
|
575
|
+
getMinDstGas(dstChainId: aptos.BCS.Uint16, type: aptos.BCS.Uint64): Promise<aptos.BCS.Uint64>;
|
|
580
576
|
setMinDstGasPayload(dstChainId: aptos.BCS.Uint16, packetType: aptos.BCS.Uint64, minGas: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
581
577
|
/** @deprecated use {@link isCustomAdapterParamsEnabled} instead */
|
|
582
578
|
customAdapterParamsEnabled(): Promise<boolean>;
|
|
@@ -659,11 +655,7 @@ declare class Counter {
|
|
|
659
655
|
setAppConfigPayload(majorVersion: aptos.BCS.Uint16, minorVersion: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, configType: aptos.BCS.Uint8, configBytes: aptos.BCS.Bytes): aptos.Types.EntryFunctionPayload;
|
|
660
656
|
setAppConfig(signer: aptos.AptosAccount, majorVersion: aptos.BCS.Uint16, minorVersion: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, configType: aptos.BCS.Uint8, configBytes: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
661
657
|
setAppConfigBundle(signer: aptos.AptosAccount, majorVersion: aptos.BCS.Uint16, minorVersion: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, config: UlnConfigType): Promise<void>;
|
|
662
|
-
sendToRemotePayload(remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array):
|
|
663
|
-
function: string;
|
|
664
|
-
type_arguments: string[];
|
|
665
|
-
arguments: any[];
|
|
666
|
-
};
|
|
658
|
+
sendToRemotePayload(remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
667
659
|
sendToRemote(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint16, fee: aptos.BCS.Uint64 | aptos.BCS.Uint32, adapterParams: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
668
660
|
lzReceive(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint16, remoteAddress: aptos.BCS.Bytes, payload: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
669
661
|
isCounterCreated(address: aptos.MaybeHexString): Promise<boolean>;
|
|
@@ -678,41 +670,17 @@ declare class MultisigOracle {
|
|
|
678
670
|
getProposePayload(hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): aptos.Types.EntryFunctionPayload;
|
|
679
671
|
propose(signer: aptos.AptosAccount, hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): Promise<aptos.Types.Transaction>;
|
|
680
672
|
getProposeEntryFunction(hash: aptos.MaybeHexString, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32): aptos.TxnBuilderTypes.TransactionPayloadEntryFunction;
|
|
681
|
-
getTransferValidatorPayload(newValidator: aptos.MaybeHexString):
|
|
682
|
-
function: string;
|
|
683
|
-
type_arguments: string[];
|
|
684
|
-
arguments: any[];
|
|
685
|
-
};
|
|
673
|
+
getTransferValidatorPayload(newValidator: aptos.MaybeHexString): aptos.Types.EntryFunctionPayload;
|
|
686
674
|
setValidator(signer: aptos.AptosAccount, newValidator: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
687
|
-
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean):
|
|
688
|
-
function: string;
|
|
689
|
-
type_arguments: string[];
|
|
690
|
-
arguments: any[];
|
|
691
|
-
};
|
|
675
|
+
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean): aptos.Types.EntryFunctionPayload;
|
|
692
676
|
setAdmin(signer: aptos.AptosAccount, candidate: aptos.MaybeHexString, active: boolean): Promise<aptos.Types.Transaction>;
|
|
693
|
-
getAllowlistPayload(ua: aptos.MaybeHexString):
|
|
694
|
-
function: string;
|
|
695
|
-
type_arguments: string[];
|
|
696
|
-
arguments: any[];
|
|
697
|
-
};
|
|
677
|
+
getAllowlistPayload(ua: aptos.MaybeHexString): aptos.Types.EntryFunctionPayload;
|
|
698
678
|
allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
699
|
-
getDenylistPayload(ua: aptos.MaybeHexString):
|
|
700
|
-
function: string;
|
|
701
|
-
type_arguments: string[];
|
|
702
|
-
arguments: any[];
|
|
703
|
-
};
|
|
679
|
+
getDenylistPayload(ua: aptos.MaybeHexString): aptos.Types.EntryFunctionPayload;
|
|
704
680
|
denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString): Promise<aptos.Types.Transaction>;
|
|
705
|
-
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64):
|
|
706
|
-
function: string;
|
|
707
|
-
type_arguments: string[];
|
|
708
|
-
arguments: any[];
|
|
709
|
-
};
|
|
681
|
+
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
710
682
|
setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
711
|
-
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64):
|
|
712
|
-
function: string;
|
|
713
|
-
type_arguments: string[];
|
|
714
|
-
arguments: any[];
|
|
715
|
-
};
|
|
683
|
+
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
716
684
|
withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
717
685
|
isAdmin(account: aptos.MaybeHexString): Promise<boolean>;
|
|
718
686
|
getValidator(): Promise<aptos.MaybeHexString>;
|
|
@@ -729,47 +697,19 @@ declare class MultisigOracleTss {
|
|
|
729
697
|
constructor(sdk: SDK, address: aptos.MaybeHexString);
|
|
730
698
|
getProposePayload(hash: Uint8Array, confirmations: aptos.BCS.Uint64 | aptos.BCS.Uint32, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
731
699
|
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
|
-
getSetValidatorPayload(validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
733
|
-
function: string;
|
|
734
|
-
type_arguments: string[];
|
|
735
|
-
arguments: any[];
|
|
736
|
-
};
|
|
700
|
+
getSetValidatorPayload(validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
737
701
|
setValidator(signer: aptos.AptosAccount, validator: Uint8Array, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
738
|
-
getSetThresholdPayload(threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
739
|
-
function: string;
|
|
740
|
-
type_arguments: string[];
|
|
741
|
-
arguments: any[];
|
|
742
|
-
};
|
|
702
|
+
getSetThresholdPayload(threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
743
703
|
setThreshold(signer: aptos.AptosAccount, threshold: aptos.BCS.Uint8, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
744
|
-
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
745
|
-
function: string;
|
|
746
|
-
type_arguments: string[];
|
|
747
|
-
arguments: any[];
|
|
748
|
-
};
|
|
704
|
+
getSetAdminPayload(candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
749
705
|
setAdmin(signer: aptos.AptosAccount, candidate: aptos.MaybeHexString, active: boolean, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
750
|
-
getAllowlistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
751
|
-
function: string;
|
|
752
|
-
type_arguments: string[];
|
|
753
|
-
arguments: any[];
|
|
754
|
-
};
|
|
706
|
+
getAllowlistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
755
707
|
allowlist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
756
|
-
getDenylistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array):
|
|
757
|
-
function: string;
|
|
758
|
-
type_arguments: string[];
|
|
759
|
-
arguments: any[];
|
|
760
|
-
};
|
|
708
|
+
getDenylistPayload(ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): aptos.Types.EntryFunctionPayload;
|
|
761
709
|
denylist(signer: aptos.AptosAccount, ua: aptos.MaybeHexString, expiration: aptos.BCS.Uint64 | aptos.BCS.Uint32, signatures: Uint8Array): Promise<aptos.Types.Transaction>;
|
|
762
|
-
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64):
|
|
763
|
-
function: string;
|
|
764
|
-
type_arguments: string[];
|
|
765
|
-
arguments: any[];
|
|
766
|
-
};
|
|
710
|
+
getSetFeePayload(remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
767
711
|
setFee(signer: aptos.AptosAccount, remoteChainId: aptos.BCS.Uint64, baseFee: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
768
|
-
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64):
|
|
769
|
-
function: string;
|
|
770
|
-
type_arguments: string[];
|
|
771
|
-
arguments: any[];
|
|
772
|
-
};
|
|
712
|
+
getWithdrawFeePayload(receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
773
713
|
withdrawFee(signer: aptos.AptosAccount, receiver: aptos.MaybeHexString, amount: aptos.BCS.Uint64): Promise<aptos.Types.Transaction>;
|
|
774
714
|
getAdmins(): Promise<aptos.MaybeHexString[]>;
|
|
775
715
|
getValidators(): Promise<aptos.MaybeHexString[]>;
|
|
@@ -792,7 +732,7 @@ declare class OFT {
|
|
|
792
732
|
private lzApp;
|
|
793
733
|
constructor(sdk: SDK);
|
|
794
734
|
setAppConfig(signer: aptos.AptosAccount, oftType: string, major: aptos.BCS.Uint16, minor: aptos.BCS.Uint8, remoteChainId: aptos.BCS.Uint16, configType: aptos.BCS.Uint8, configBytes: aptos.BCS.Bytes): Promise<aptos.Types.Transaction>;
|
|
795
|
-
getMinDstGas(oftType: string, dstChainId: aptos.BCS.Uint16, type: aptos.BCS.Uint64): Promise<
|
|
735
|
+
getMinDstGas(oftType: string, dstChainId: aptos.BCS.Uint16, type: aptos.BCS.Uint64): Promise<aptos.BCS.Uint64>;
|
|
796
736
|
setMinDstGasPayload(oftType: string, dstChainId: aptos.BCS.Uint16, packetType: aptos.BCS.Uint64, minGas: aptos.BCS.Uint64): aptos.Types.EntryFunctionPayload;
|
|
797
737
|
customAdapterParamsEnabled(oftType: string): Promise<boolean>;
|
|
798
738
|
enableCustomAdapterParamsPayload(oftType: string, enable: boolean): aptos.Types.EntryFunctionPayload;
|
|
@@ -951,9 +891,7 @@ declare class SDK {
|
|
|
951
891
|
max_gas_amount: string;
|
|
952
892
|
gas_unit_price: string;
|
|
953
893
|
}>;
|
|
954
|
-
sendAndConfirmMultiSigTransaction(client: aptos.AptosClient, multisigAccountAddress: string, multisigAccountPubkey: aptos.TxnBuilderTypes.MultiEd25519PublicKey, payload: aptos.TxnBuilderTypes.TransactionPayload, signFunc?: MultipleSignFunc, signedItems?: MutipleSignatureItem[]): Promise<
|
|
955
|
-
type: string;
|
|
956
|
-
} & aptos.Types.UserTransaction>;
|
|
894
|
+
sendAndConfirmMultiSigTransaction(client: aptos.AptosClient, multisigAccountAddress: string, multisigAccountPubkey: aptos.TxnBuilderTypes.MultiEd25519PublicKey, payload: aptos.TxnBuilderTypes.TransactionPayload, signFunc?: MultipleSignFunc, signedItems?: MutipleSignatureItem[]): Promise<aptos.Types.Transaction_UserTransaction>;
|
|
957
895
|
deploy(signer: aptos.AptosAccount, metadata: Uint8Array, modules: aptos.TxnBuilderTypes.Module[]): Promise<string>;
|
|
958
896
|
private waitAndGetTransaction;
|
|
959
897
|
private sendAndConfirmRawTransaction;
|
package/dist/index.mjs
CHANGED
|
@@ -423,7 +423,7 @@ function stringToUint8Array(str) {
|
|
|
423
423
|
return Uint8Array.from(Buffer.from(value.padStart(len, "0"), "hex"));
|
|
424
424
|
}
|
|
425
425
|
function makeSignFuncWithMultipleSigners(...signers) {
|
|
426
|
-
return function(data) {
|
|
426
|
+
return async function(data) {
|
|
427
427
|
const retval = signers.map((s, index) => {
|
|
428
428
|
return {
|
|
429
429
|
signature: s.signBuffer(data),
|