We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca28b5 commit 5155cadCopy full SHA for 5155cad
modules/abstract-utxo/src/wallet.ts
@@ -1,14 +1,21 @@
1
import { Wallet, WalletData } from '@bitgo/sdk-core';
2
3
+import { isUtxoCoinName, UtxoCoinName } from './names';
4
+
5
// parseTransactions' return type makes use of WalletData's type but with customChangeKeySignatures as required.
6
export interface UtxoWalletData extends WalletData {
7
+ coin: UtxoCoinName;
8
customChangeKeySignatures: {
9
user: string;
10
backup: string;
11
bitgo: string;
12
};
13
}
14
15
+export function isUtxoWalletData(obj: WalletData): obj is UtxoWalletData {
16
+ return isUtxoCoinName(obj.coin);
17
+}
18
19
export interface UtxoWallet extends Wallet {
20
_wallet: UtxoWalletData;
21
0 commit comments