Skip to content

Commit

Permalink
refactor: move getNetworkForName to args/
Browse files Browse the repository at this point in the history
TICKET: BTC-1351
  • Loading branch information
OttoAllmendinger committed Sep 26, 2024
1 parent bb2a70d commit ec3ebca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/utxo-bin/src/args/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './parseString';
export * from './walletKeys';
export * from './parseNetwork';
File renamed without changes.
11 changes: 9 additions & 2 deletions modules/utxo-bin/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ import { AddressParser } from './AddressParser';
import { parseUnknown } from './parseUnknown';
import { getParserTxProperties } from './ParserTx';
import { ScriptParser } from './ScriptParser';
import { argToString, KeyOptions, keyOptions, readStringOptions, stringToBuffer } from './args';
import {
argToString,
KeyOptions,
keyOptions,
readStringOptions,
stringToBuffer,
getNetwork,
getNetworkForName,
} from './args';
import {
formatAddressTree,
formatAddressWithFormatString,
Expand All @@ -27,7 +35,6 @@ import {
parseIndexRange,
} from './generateAddress';
import { parseXpub } from './bip32';
import { getNetwork, getNetworkForName } from './getNetworkForName';

type OutputFormat = 'tree' | 'json';

Expand Down

0 comments on commit ec3ebca

Please sign in to comment.