Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions modules/abstract-utxo/src/abstractUtxoCoin.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
/**
* @prettier
*/
import assert from 'assert';
import { randomBytes } from 'crypto';
import _ from 'lodash';
import * as utxolib from '@bitgo/utxo-lib';
import { bip32, BIP32Interface, bitgo, getMainnet, isMainnet, isTestnet } from '@bitgo/utxo-lib';
import * as assert from 'assert';
import * as bitcoinMessage from 'bitcoinjs-message';
import { randomBytes } from 'crypto';
import * as debugLib from 'debug';
import * as _ from 'lodash';
import debugLib from 'debug';
import BigNumber from 'bignumber.js';

import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as assert from 'assert';
import assert from 'assert';
import * as t from 'io-ts';
import * as utxolib from '@bitgo/utxo-lib';
import { Descriptor } from '@bitgo/wasm-miniscript';
Expand Down
8 changes: 2 additions & 6 deletions modules/abstract-utxo/src/parseOutput.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/**
* @prettier
*/

import * as debugLib from 'debug';
import * as _ from 'lodash';
import debugLib from 'debug';
import _ from 'lodash';
import {
AddressVerificationData,
IRequestTracer,
Expand Down
8 changes: 2 additions & 6 deletions modules/abstract-utxo/src/recovery/backupKeyRecovery.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/**
* @prettier
*/

import * as assert from 'assert';
import * as _ from 'lodash';
import assert from 'assert';
import _ from 'lodash';
import * as utxolib from '@bitgo/utxo-lib';
const { getInternalChainCode, scriptTypeForChain, outputScripts, getExternalChainCode } = utxolib.bitgo;

Expand Down
5 changes: 1 addition & 4 deletions modules/abstract-utxo/src/recovery/baseApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/**
* @prettier
*/
import * as superagent from 'superagent';
import superagent from 'superagent';
import { BitGoJsError } from '@bitgo/sdk-core';

export class ApiNotImplementedError extends BitGoJsError {
Expand Down
3 changes: 0 additions & 3 deletions modules/abstract-utxo/src/recovery/coingeckoApi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/**
* @prettier
*/
import { BaseApi } from './baseApi';

const familyNamesToCoinGeckoIds = new Map()
Expand Down
6 changes: 1 addition & 5 deletions modules/abstract-utxo/src/recovery/crossChainRecovery.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/**
* @prettier
*/
import * as Bluebird from 'bluebird';

import Bluebird from 'bluebird';
import * as utxolib from '@bitgo/utxo-lib';
import { bip32, BIP32Interface } from '@bitgo/utxo-lib';

Expand Down
5 changes: 1 addition & 4 deletions modules/abstract-utxo/src/recovery/mempoolApi.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/**
* @prettier
*/
import * as _ from 'lodash';
import _ from 'lodash';

import { ApiNotImplementedError, BaseApi } from './baseApi';

Expand Down
14 changes: 7 additions & 7 deletions modules/abstract-utxo/src/sign.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/**
* @prettier
*/
import * as utxolib from '@bitgo/utxo-lib';
const { isWalletUnspent, signInputWithUnspent, toOutput } = utxolib.bitgo;
type Unspent<TNumber extends number | bigint = number> = utxolib.bitgo.Unspent<TNumber>;
type RootWalletKeys = utxolib.bitgo.RootWalletKeys;

import * as debugLib from 'debug';
import debugLib from 'debug';

import { isReplayProtectionUnspent } from './replayProtection';

const debug = debugLib('bitgo:v2:utxo');

const { isWalletUnspent, signInputWithUnspent, toOutput } = utxolib.bitgo;

type Unspent<TNumber extends number | bigint = number> = utxolib.bitgo.Unspent<TNumber>;

type RootWalletKeys = utxolib.bitgo.RootWalletKeys;

type PsbtParsedScriptTypes =
| 'p2sh'
| 'p2wsh'
Expand Down
2 changes: 1 addition & 1 deletion modules/abstract-utxo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"outDir": "./dist",
"rootDir": "./",
"strictPropertyInitialization": false,
"esModuleInterop": false,
"esModuleInterop": true,
"typeRoots": ["../../types", "./node_modules/@types", "../../node_modules/@types"]
},
"include": ["src/**/*"],
Expand Down
Loading