@@ -57,30 +57,30 @@ import {
5757 VerifyAddressOptions as BaseVerifyAddressOptions ,
5858 VerifyTransactionOptions as BaseVerifyTransactionOptions ,
5959 Wallet ,
60- WalletData ,
6160} from '@bitgo/sdk-core' ;
6261import { isReplayProtectionUnspent } from './replayProtection' ;
6362import { signAndVerifyPsbt , signAndVerifyWalletTransaction } from './sign' ;
6463import { supportedCrossChainRecoveries } from './config' ;
6564import {
6665 assertValidTransactionRecipient ,
6766 explainTx ,
68- parseTransaction ,
69- verifyTransaction ,
7067 fromExtendedAddressFormat ,
7168 isScriptRecipient ,
69+ parseTransaction ,
70+ verifyTransaction ,
7271} from './transaction' ;
7372import { assertDescriptorWalletAddress , getDescriptorMapFromWallet , isDescriptorWallet } from './descriptor' ;
7473
7574import { getChainFromNetwork , getFamilyFromNetwork , getFullNameFromNetwork } from './names' ;
7675import { CustomChangeOptions } from './transaction/fixedScript' ;
7776import { toBip32Triple , UtxoKeychain , UtxoNamedKeychains } from './keychains' ;
77+ import { verifyKeySignature , verifyUserPublicKey } from './verifyKey' ;
78+ import { getPolicyForEnv } from './descriptor/validatePolicy' ;
79+ import { AbstractUtxoCoinWallet } from './wallet' ;
7880
7981const debug = debugLib ( 'bitgo:v2:utxo' ) ;
8082
8183import ScriptType2Of3 = utxolib . bitgo . outputScripts . ScriptType2Of3 ;
82- import { verifyKeySignature , verifyUserPublicKey } from './verifyKey' ;
83- import { getPolicyForEnv } from './descriptor/validatePolicy' ;
8484
8585type UtxoCustomSigningFunction < TNumber extends number | bigint > = {
8686 ( params : {
@@ -198,23 +198,6 @@ export interface TransactionParams extends BaseTransactionParams {
198198 rbfTxIds ?: string [ ] ;
199199}
200200
201- // parseTransactions' return type makes use of WalletData's type but with customChangeKeySignatures as required.
202- export interface AbstractUtxoCoinWalletData extends WalletData {
203- customChangeKeySignatures : {
204- user : string ;
205- backup : string ;
206- bitgo : string ;
207- } ;
208- }
209-
210- export class AbstractUtxoCoinWallet extends Wallet {
211- public _wallet : AbstractUtxoCoinWalletData ;
212-
213- constructor ( bitgo : BitGoBase , baseCoin : IBaseCoin , walletData : any ) {
214- super ( bitgo , baseCoin , walletData ) ;
215- }
216- }
217-
218201export interface ParseTransactionOptions < TNumber extends number | bigint = number > extends BaseParseTransactionOptions {
219202 txParams : TransactionParams ;
220203 txPrebuild : TransactionPrebuild < TNumber > ;
0 commit comments