Skip to content

Commit 2d50512

Browse files
Merge pull request #7331 from BitGo/BTC-2652.move-abstract-utxo-tests
feat(abstract-utxo): move utxo tests from `bitgo/` to `abstract-utxo/`
2 parents c19b6cb + 0a59a50 commit 2d50512

File tree

346 files changed

+595
-621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

346 files changed

+595
-621
lines changed

modules/abstract-utxo/src/impl/bch/bch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BitGoBase, BaseCoin } from '@bitgo/sdk-core';
1+
import { BitGoBase } from '@bitgo/sdk-core';
22
import * as utxolib from '@bitgo/utxo-lib';
33

44
import { AbstractUtxoCoin, UtxoNetwork } from '../../abstractUtxoCoin';
@@ -8,7 +8,7 @@ export class Bch extends AbstractUtxoCoin {
88
super(bitgo, network || utxolib.networks.bitcoincash);
99
}
1010

11-
static createInstance(bitgo: BitGoBase): BaseCoin {
11+
static createInstance(bitgo: BitGoBase): Bch {
1212
return new Bch(bitgo);
1313
}
1414

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @prettier
33
*/
4-
import { BaseCoin, BitGoBase } from '@bitgo/sdk-core';
4+
import { BitGoBase } from '@bitgo/sdk-core';
55
import * as bitcoin from '@bitgo/utxo-lib';
66

77
import { Bch } from './bch';
@@ -11,7 +11,7 @@ export class Tbch extends Bch {
1111
super(bitgo, bitcoin.networks.bitcoincashTestnet);
1212
}
1313

14-
static createInstance(bitgo: BitGoBase): BaseCoin {
14+
static createInstance(bitgo: BitGoBase): Tbch {
1515
return new Tbch(bitgo);
1616
}
1717
}

modules/abstract-utxo/src/impl/bcha/bcha.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BitGoBase, BaseCoin } from '@bitgo/sdk-core';
1+
import { BitGoBase } from '@bitgo/sdk-core';
22
import * as utxolib from '@bitgo/utxo-lib';
33

44
import { Bch } from '../bch/bch';
@@ -9,7 +9,7 @@ export class Bcha extends Bch {
99
super(bitgo, network || utxolib.networks.ecash);
1010
}
1111

12-
static createInstance(bitgo: BitGoBase): BaseCoin {
12+
static createInstance(bitgo: BitGoBase): Bcha {
1313
return new Bcha(bitgo);
1414
}
1515

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @prettier
33
*/
4-
import { BitGoBase, BaseCoin } from '@bitgo/sdk-core';
4+
import { BitGoBase } from '@bitgo/sdk-core';
55
import * as utxolib from '@bitgo/utxo-lib';
66

77
import { Bcha } from './bcha';
@@ -11,7 +11,7 @@ export class Tbcha extends Bcha {
1111
super(bitgo, utxolib.networks.ecashTest);
1212
}
1313

14-
static createInstance(bitgo: BitGoBase): BaseCoin {
14+
static createInstance(bitgo: BitGoBase): Tbcha {
1515
return new Tbcha(bitgo);
1616
}
1717
}

modules/abstract-utxo/src/impl/bsv/bsv.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BitGoBase, BaseCoin } from '@bitgo/sdk-core';
1+
import { BitGoBase } from '@bitgo/sdk-core';
22
import * as utxolib from '@bitgo/utxo-lib';
33

44
import { UtxoNetwork } from '../../abstractUtxoCoin';
@@ -9,7 +9,7 @@ export class Bsv extends Bch {
99
super(bitgo, network || utxolib.networks.bitcoinsv);
1010
}
1111

12-
static createInstance(bitgo: BitGoBase): BaseCoin {
12+
static createInstance(bitgo: BitGoBase): Bsv {
1313
return new Bsv(bitgo);
1414
}
1515
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @prettier
33
*/
4-
import { BitGoBase, BaseCoin } from '@bitgo/sdk-core';
4+
import { BitGoBase } from '@bitgo/sdk-core';
55
import * as utxolib from '@bitgo/utxo-lib';
66

77
import { Bsv } from './bsv';
@@ -11,7 +11,7 @@ export class Tbsv extends Bsv {
1111
super(bitgo, utxolib.networks.bitcoinsvTestnet);
1212
}
1313

14-
static createInstance(bitgo: BitGoBase): BaseCoin {
14+
static createInstance(bitgo: BitGoBase): Tbsv {
1515
return new Tbsv(bitgo);
1616
}
1717
}

modules/abstract-utxo/src/impl/btc/btc.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
BitGoBase,
3-
BaseCoin,
43
VerifyRecoveryTransactionOptions as BaseVerifyRecoveryTransactionOptions,
54
Wallet,
65
} from '@bitgo/sdk-core';
@@ -19,7 +18,7 @@ export class Btc extends AbstractUtxoCoin {
1918
super(bitgo, network || utxolib.networks.bitcoin);
2019
}
2120

22-
static createInstance(bitgo: BitGoBase): BaseCoin {
21+
static createInstance(bitgo: BitGoBase): Btc {
2322
return new Btc(bitgo);
2423
}
2524

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @prettier
33
*/
4-
import { BaseCoin, BitGoBase } from '@bitgo/sdk-core';
4+
import { BitGoBase } from '@bitgo/sdk-core';
55
import * as utxolib from '@bitgo/utxo-lib';
66

77
import { Btc } from './btc';
@@ -11,7 +11,7 @@ export class Tbtc extends Btc {
1111
super(bitgo, utxolib.networks.testnet);
1212
}
1313

14-
static createInstance(bitgo: BitGoBase): BaseCoin {
14+
static createInstance(bitgo: BitGoBase): Tbtc {
1515
return new Tbtc(bitgo);
1616
}
1717
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @prettier
33
*/
4-
import { BaseCoin, BitGoBase } from '@bitgo/sdk-core';
4+
import { BitGoBase } from '@bitgo/sdk-core';
55
import * as utxolib from '@bitgo/utxo-lib';
66

77
import { Btc } from './btc';
@@ -11,7 +11,7 @@ export class Tbtc4 extends Btc {
1111
super(bitgo, utxolib.networks.bitcoinTestnet4);
1212
}
1313

14-
static createInstance(bitgo: BitGoBase): BaseCoin {
14+
static createInstance(bitgo: BitGoBase): Tbtc4 {
1515
return new Tbtc4(bitgo);
1616
}
1717
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @prettier
33
*/
4-
import { BaseCoin, BitGoBase } from '@bitgo/sdk-core';
4+
import { BitGoBase } from '@bitgo/sdk-core';
55
import * as utxolib from '@bitgo/utxo-lib';
66

77
import { Btc } from './btc';
@@ -11,7 +11,7 @@ export class Tbtcbgsig extends Btc {
1111
super(bitgo, utxolib.networks.bitcoinBitGoSignet);
1212
}
1313

14-
static createInstance(bitgo: BitGoBase): BaseCoin {
14+
static createInstance(bitgo: BitGoBase): Tbtcbgsig {
1515
return new Tbtcbgsig(bitgo);
1616
}
1717
}

0 commit comments

Comments
 (0)