Skip to content

Commit 31bf5b1

Browse files
chore(scripts): remove utxo boilerplate from sdk-coin-generator
The utxo boilerplate template depended on @bitgo/utxo-lib and abstract-utxo's legacy code paths, and was producing TS compile errors after recent abstract-utxo refactors. New utxo coins are not being added via this generator; remove the template and the related dependency/menu entries. Refs: T1-3279
1 parent d68cfc4 commit 31bf5b1

7 files changed

Lines changed: 0 additions & 121 deletions

File tree

scripts/sdk-coin-generator/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const Generator = require('yeoman-generator');
22
const fs = require('fs');
33

4-
const UTXO_DEPENDENCIES = ['abstract-utxo', 'sdk-core', 'utxo-lib'];
54
const ACCOUNT_DEPENDENCIES = ['abstract-eth', 'sdk-core', 'statics'];
65
const SIMPLE_DEPENDENCIES = ['sdk-core'];
76

@@ -82,7 +81,6 @@ module.exports = class extends Generator {
8281
choices: [
8382
{ name: 'Simple (default)', value: 'simple' },
8483
{ name: 'Account', value: 'account' },
85-
{ name: 'Utxo', value: 'utxo' },
8684
],
8785
},
8886
]);
@@ -127,9 +125,6 @@ module.exports = class extends Generator {
127125
case 'account':
128126
templatePath = './boilerplates/account';
129127
break;
130-
case 'utxo':
131-
templatePath = './boilerplates/utxo';
132-
break;
133128
default:
134129
templatePath = './boilerplates/simple';
135130
break;
@@ -160,11 +155,6 @@ module.exports = class extends Generator {
160155
addNewCoinToBitgoTsConfig(this.contextRoot, this.answers);
161156

162157
switch (this.answers.boilerplate) {
163-
case 'utxo': {
164-
const dependencies = getDependencies(this.contextRoot, UTXO_DEPENDENCIES);
165-
await this.addDependencies(dependencies);
166-
break;
167-
}
168158
case 'account': {
169159
const dependencies = getDependencies(this.contextRoot, ACCOUNT_DEPENDENCIES);
170160
await this.addDependencies(dependencies);

scripts/sdk-coin-generator/template/boilerplates/utxo/.mainnet.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

scripts/sdk-coin-generator/template/boilerplates/utxo/.testnet.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

scripts/sdk-coin-generator/template/boilerplates/utxo/.tsconfig.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

scripts/sdk-coin-generator/template/boilerplates/utxo/index.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/sdk-coin-generator/template/boilerplates/utxo/transaction.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

scripts/sdk-coin-generator/template/boilerplates/utxo/transactionBuilder.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)