@meshsdk/core 1.5.12 → 1.5.14
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.
|
@@ -30,6 +30,7 @@ export declare class AppWallet implements IInitiator, ISigner, ISubmitter {
|
|
|
30
30
|
getUsedUTxOs(accountIndex?: number): Promise<TransactionUnspentOutput[]>;
|
|
31
31
|
signData(address: string, payload: string, accountIndex?: number): DataSignature;
|
|
32
32
|
signTx(unsignedTx: string, partialSign?: boolean, accountIndex?: number): Promise<string>;
|
|
33
|
+
signTxs(unsignedTxs: string[], partialSign: boolean): Promise<string[]>;
|
|
33
34
|
submitTx(tx: string): Promise<string>;
|
|
34
35
|
static brew(strength?: number): string[];
|
|
35
36
|
}
|
|
@@ -2,7 +2,8 @@ import { IInitiator, ISigner, ISubmitter } from '@mesh/common/contracts';
|
|
|
2
2
|
import type { Address, TransactionUnspentOutput } from '@mesh/core';
|
|
3
3
|
import type { Asset, AssetExtended, DataSignature, UTxO, Wallet } from '@mesh/common/types';
|
|
4
4
|
export declare class BrowserWallet implements IInitiator, ISigner, ISubmitter {
|
|
5
|
-
|
|
5
|
+
readonly _walletInstance: WalletInstance;
|
|
6
|
+
walletInstance: WalletInstance;
|
|
6
7
|
private constructor();
|
|
7
8
|
static getInstalledWallets(): Wallet[];
|
|
8
9
|
static enable(walletName: string): Promise<BrowserWallet>;
|
|
@@ -16,6 +17,13 @@ export declare class BrowserWallet implements IInitiator, ISigner, ISubmitter {
|
|
|
16
17
|
getUtxos(amount?: Asset[] | undefined): Promise<UTxO[]>;
|
|
17
18
|
signData(address: string, payload: string): Promise<DataSignature>;
|
|
18
19
|
signTx(unsignedTx: string, partialSign?: boolean): Promise<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Experimental feature - sign multiple transactions at once (Supported wallet(s): Typhon)
|
|
22
|
+
* @param unsignedTxs - array of unsigned transactions in CborHex string
|
|
23
|
+
* @param partialSign - if the transactions are signed partially
|
|
24
|
+
* @returns array of signed transactions CborHex string
|
|
25
|
+
*/
|
|
26
|
+
signTxs(unsignedTxs: string[], partialSign?: boolean): Promise<string[]>;
|
|
19
27
|
submitTx(tx: string): Promise<string>;
|
|
20
28
|
getUsedAddress(): Promise<Address>;
|
|
21
29
|
getUsedCollateral(limit?: number): Promise<TransactionUnspentOutput[]>;
|
|
@@ -50,6 +58,7 @@ declare type WalletInstance = {
|
|
|
50
58
|
getUtxos(amount: string | undefined): Promise<string[] | undefined>;
|
|
51
59
|
signData(address: string, payload: string): Promise<DataSignature>;
|
|
52
60
|
signTx(tx: string, partialSign: boolean): Promise<string>;
|
|
61
|
+
signTxs(txs: string[], partialSign: boolean): Promise<string[]>;
|
|
53
62
|
submitTx(tx: string): Promise<string>;
|
|
54
63
|
};
|
|
55
64
|
declare type ExperimentalFeatures = {
|
package/package.json
CHANGED