Skip to content

Commit f6d7860

Browse files
Merge pull request #5119 from BitGo/bump-to-prettier-3
chore: bump to prettier 3
2 parents 2ff5b4a + 2827144 commit f6d7860

File tree

7 files changed

+33
-32
lines changed

7 files changed

+33
-32
lines changed

modules/bitgo/.mocharc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ reporter: 'min'
44
reporter-option:
55
- 'cdn=true'
66
- 'json=false'
7-
exit: true
7+
exit: true

modules/express/EXTERNAL_SIGNER.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ The file is located at `src/fetchEncryptedPrivKeys.ts`. Before using this tool,
3030
1. Fill in the `TODOs` by providing a valid `accessToken` as well as the list of `walletIds`, grouped by the cryptocurrency.
3131
2. Using the same information as #1, update the .env file with the `accessToken` and `walletIds` information.
3232

33-
| Name | Value | Description |
34-
| ----------------------------------------- | ------ | ---------------------------------------------- |
35-
| BITGO_EXTERNAL_SIGNER_ENV | string | test |
36-
| BITGO_EXTERNAL_SIGNER_ACCESS_TOKEN | string | Access token used for access BitGo Wallets |
37-
| BITGO_EXTERNAL_SIGNER_WALLET_IDS | string | JSON formatted string of wallets and their |
38-
| | | ids, the secret is optional for unencrypted |
39-
| | | private material |
40-
| BITGO_EXTERNAL_SIGNER_WALLET_IDS_WITH_PRV | string | JSON formatted string of wallets ids and |
41-
| | | their encrypted private keys |
33+
| Name | Value | Description |
34+
| ----------------------------------------- | ------ | ------------------------------------------- |
35+
| BITGO_EXTERNAL_SIGNER_ENV | string | test |
36+
| BITGO_EXTERNAL_SIGNER_ACCESS_TOKEN | string | Access token used for access BitGo Wallets |
37+
| BITGO_EXTERNAL_SIGNER_WALLET_IDS | string | JSON formatted string of wallets and their |
38+
| | | ids, the secret is optional for unencrypted |
39+
| | | private material |
40+
| BITGO_EXTERNAL_SIGNER_WALLET_IDS_WITH_PRV | string | JSON formatted string of wallets ids and |
41+
| | | their encrypted private keys |
4242

4343
BITGO_EXTERNAL_SIGNER_WALLET_IDS examples:
4444

modules/express/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ $ docker run -it --volume /path/to/certs:/private -p 4000:4000 bitgo/express:lat
8080
```
8181

8282
An alternative way to provide the ssl certification is to export them as environment variables.
83+
8384
```bash
8485
$ export BITGO_SSL_KEY=$(cat /private/cert.key)
8586
$ export BITGO_SSL_CERT=$(cat /private/cert.cert)
@@ -217,10 +218,10 @@ BitGo Express is able to take configuration options from either command line arg
217218
| -t | --timeout | `BITGO_TIMEOUT` | 305000 | Number of milliseconds to wait before requests made by `bitgo-express` time out. |
218219
| -d | --debug | N/A, use `BITGO_DEBUG_NAMESPACE` instead | N/A | Enable debug output for bitgo-express. This is equivalent to passing `--debugnamespace bitgo:express`. |
219220
| -D | --debugnamespace | `BITGO_DEBUG_NAMESPACE` | N/A | Enable debug output for a particular debug namespace. Multiple debug namespaces can be given as a comma separated list. See the [`bitgo` package README](https://github.com/BitGo/BitGoJS/blob/master/modules/bitgo/README.md#available-debug-namespaces) for a complete list of recognized options, in addition to those listed in the table below. |
220-
| -k | --keypath | `BITGO_KEYPATH` | N/A | Path to SSL .key file (either `keypath` or `sslkey` required if running against production environment). |
221-
| N/A | --sslkey | `BITGO_SSL_KEY` | N/A | The SSL key (either `keypath` or `sslkey` required if running against production environment). |
221+
| -k | --keypath | `BITGO_KEYPATH` | N/A | Path to SSL .key file (either `keypath` or `sslkey` required if running against production environment). |
222+
| N/A | --sslkey | `BITGO_SSL_KEY` | N/A | The SSL key (either `keypath` or `sslkey` required if running against production environment). |
222223
| -c | --crtpath | `BITGO_CRTPATH` | N/A | Path to SSL .crt file (required if running against production environment). |
223-
| N/A | --sslcert | `BITGO_SSL_CERT` | N/A | The SSL cert (either `crtpath` or `sslcert` required if running against production environment). |
224+
| N/A | --sslcert | `BITGO_SSL_CERT` | N/A | The SSL cert (either `crtpath` or `sslcert` required if running against production environment). |
224225
| -u | --customrooturi | `BITGO_CUSTOM_ROOT_URI` | N/A | Force a custom BitGo URI. |
225226
| -n | --custombitcoinnetwork | `BITGO_CUSTOM_BITCOIN_NETWORK` | N/A | Force a custom BitGo network |
226227
| -l | --logfile | `BITGO_LOGFILE` | N/A | Filepath to write access logs. |

modules/express/bin/bitgo-express

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ process.on('unhandledRejection', (reason, promise) => {
1111
const { init } = require('../dist/src/expressApp');
1212

1313
if (require.main === module) {
14-
init()
15-
.catch(err => {
14+
init().catch((err) => {
1615
console.log(`Fatal error: ${err.message}`);
1716
console.log(err.stack);
1817
});
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Input Costs
2+
23
This document contains the worst-case input costs for various script types and spend types.
34
The input costs are calculated using the `Dimensions` class from `@bitgo/unspents`.
45

5-
| Script Type | Chain Codes | Spend Type | Input Size (Virtual Bytes) | Relative Size (p2trMusig2 = 1.00) |
6-
| --- | --- | --- | --- | --- |
7-
| p2sh | 0/1 | all | 298 | 5.14 |
8-
| p2shP2wsh | 10/11 | all | 140 | 2.41 |
9-
| p2wsh | 20/21 | all | 105 | 1.81 |
10-
| p2tr | 30/31 | Script Path, Level 2 (Backup/User, Backup/BitGo) | 116 | 2.00 |
11-
| p2tr | 30/31 | Script Path, Level 1 (User/BitGo) | 108 | 1.86 |
12-
| p2trMusig2 | 40/41 | Script Path (Backup/User, Backup/BitGo) | 108 | 1.86 |
13-
| p2trMusig2 | 40/41 | Key Path (User/BitGo) | 58 | 1.00 |
6+
| Script Type | Chain Codes | Spend Type | Input Size (Virtual Bytes) | Relative Size (p2trMusig2 = 1.00) |
7+
| ----------- | ----------- | ------------------------------------------------ | -------------------------- | --------------------------------- |
8+
| p2sh | 0/1 | all | 298 | 5.14 |
9+
| p2shP2wsh | 10/11 | all | 140 | 2.41 |
10+
| p2wsh | 20/21 | all | 105 | 1.81 |
11+
| p2tr | 30/31 | Script Path, Level 2 (Backup/User, Backup/BitGo) | 116 | 2.00 |
12+
| p2tr | 30/31 | Script Path, Level 1 (User/BitGo) | 108 | 1.86 |
13+
| p2trMusig2 | 40/41 | Script Path (Backup/User, Backup/BitGo) | 108 | 1.86 |
14+
| p2trMusig2 | 40/41 | Key Path (User/BitGo) | 58 | 1.00 |

modules/utxo-bin/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
This repository contains a CLI tool for parsing BitGo wallet transactions (withdrawals) and
44
formatting them for terminal output.
55

6-
76
# Installation
87

98
## npm
@@ -75,9 +74,9 @@ utxo-bin -n bitcoin parseTx \
7574

7675
Supported transactions formats are
7776

78-
* full-signed transactions
79-
* half-signed transactions in proprietary bitcoinjs-lib format ("legacy")
80-
* half-signed transactions in PSBT/BIP174 format
77+
- full-signed transactions
78+
- half-signed transactions in proprietary bitcoinjs-lib format ("legacy")
79+
- half-signed transactions in PSBT/BIP174 format
8180

8281
Supported encodings are hex and base64.
8382

@@ -94,6 +93,7 @@ utxo-bin -n bitcoin parseAddress 3QJmV3qfvL9SuYo34YihAf3sRCW3qSinyC --convert
9493
```
9594

9695
## Generate addresses
96+
9797
```
9898
utxo-bin generateAddresses \
9999
--userKey xpub661MyMwAqRbcEvoSo4qrsT5xhByHzUoBjm88hdCPohF1rdQ4TkntuHfccN2N7FbmAmBgmaBxD7VY1QZ43YfgGRLBL37BBkBhYbezgnsPRVP \
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
77
<title>Components App</title>
88
</head>
99
<body>
1010
<div data-cy-root></div>
1111
</body>
12-
</html>
12+
</html>

0 commit comments

Comments
 (0)