@bitgo-beta/utxo-lib 8.0.3-beta.54 → 8.0.3-beta.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,12 +3,13 @@
3
3
  This library is a wrapper around [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) adding altcoin support.
4
4
 
5
5
  ## Features
6
+
6
7
  - Multicoin support: Configurable behaviour based on [network](https://github.com/BitGo/bitgo-utxo-lib/blob/master/src/networks.js) objects.
7
8
  - Backed by [BitGo](https://www.bitgo.com/info/)
8
9
 
9
10
  ## Installation
10
11
 
11
- ``` bash
12
+ ```bash
12
13
  # using npm
13
14
  npm install @bitgo/utxo-lib
14
15
 
@@ -19,20 +20,22 @@ yarn add @bitgo/utxo-lib
19
20
  ## Setup
20
21
 
21
22
  JavaScript (ESM)
22
- ``` javascript
23
- import * as utxolib from '@bitgo/utxo-lib'
23
+
24
+ ```javascript
25
+ import * as utxolib from '@bitgo/utxo-lib';
24
26
  ```
25
27
 
26
28
  NodeJS (CJS)
27
- ``` javascript
28
- const utxolib = require('@bitgo/utxo-lib')
29
+
30
+ ```javascript
31
+ const utxolib = require('@bitgo/utxo-lib');
29
32
  ```
30
33
 
31
34
  ## Usage
32
35
 
33
36
  Support for parsing and building altcoin transactions is provided by the following methods
34
37
 
35
- ``` typescript
38
+ ```typescript
36
39
  utxolib.bitgo.createTransactionFromBuffer(buffer, network): UtxoTransaction
37
40
  // (similarly `createTransactionFromHex(string, network)`)
38
41
 
@@ -45,15 +48,15 @@ The `UtxoTransaction(Builder)` classes have the same interface as the `Transacti
45
48
 
46
49
  ## Supported coins
47
50
 
48
- |Network|Mainnet|Testnet|
49
- |---|---|---|
50
- |Bitcoin|`utxolib.networks.bitcoin`|`utxolib.networks.testnet`|
51
- |Bitcoin Cash|`utxolib.networks.bitcoincash`|`utxolib.networks.bitcoincashTestnet`|
52
- |Bitcoin Gold|`utxolib.networks.bitcoingold`|`utxolib.networks.bitcoingoldTestnet`|
53
- |Bitcoin SV (Satoshi Vision)|`utxolib.networks.bitcoinsv`|`utxolib.networks.bitcoinsvTestnet`|
54
- |Dash|`utxolib.networks.dash`|`utxolib.networks.dash`|
55
- |eCash|`utxolib.networks.ecash`|`utxolib.networks.ecashTestnet`|
56
- |Litecoin|`utxolib.networks.litecoin`|`utxolib.networks.litecoinTest`|
57
- |Zcash|`utxolib.networks.zcash`|`utxolib.networks.zcashTest`|
51
+ | Network | Mainnet | Testnet |
52
+ | --------------------------- | ------------------------------ | ------------------------------------- |
53
+ | Bitcoin | `utxolib.networks.bitcoin` | `utxolib.networks.testnet` |
54
+ | Bitcoin Cash | `utxolib.networks.bitcoincash` | `utxolib.networks.bitcoincashTestnet` |
55
+ | Bitcoin Gold | `utxolib.networks.bitcoingold` | `utxolib.networks.bitcoingoldTestnet` |
56
+ | Bitcoin SV (Satoshi Vision) | `utxolib.networks.bitcoinsv` | `utxolib.networks.bitcoinsvTestnet` |
57
+ | Dash | `utxolib.networks.dash` | `utxolib.networks.dash` |
58
+ | eCash | `utxolib.networks.ecash` | `utxolib.networks.ecashTestnet` |
59
+ | Litecoin | `utxolib.networks.litecoin` | `utxolib.networks.litecoinTest` |
60
+ | Zcash | `utxolib.networks.zcash` | `utxolib.networks.zcashTest` |
58
61
 
59
62
  > [Bitcoin SV](https://blog.bitgo.com/bsv-deprecation-6b3fff4df34c) no longer supports sending funds to BitGo wallets. Existing customers with Bitcoin SV in BitGo wallets will still be able to access and sweep funds to an external Bitcoin SV wallet.
@@ -18,7 +18,7 @@ export declare const chainCodesP2shP2wsh: readonly [10, 11];
18
18
  export declare const chainCodesP2wsh: readonly [20, 21];
19
19
  export declare const chainCodesP2tr: readonly [30, 31];
20
20
  export declare const chainCodesP2trMusig2: readonly [40, 41];
21
- export declare const chainCodes: (0 | 1 | 31 | 30 | 10 | 11 | 20 | 21 | 40 | 41)[];
21
+ export declare const chainCodes: (0 | 1 | 31 | 10 | 11 | 20 | 21 | 30 | 40 | 41)[];
22
22
  export declare type ChainCode = (typeof chainCodes)[number];
23
23
  export declare function isChainCode(n: unknown): n is ChainCode;
24
24
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo-beta/utxo-lib",
3
- "version": "8.0.3-beta.54",
3
+ "version": "8.0.3-beta.56",
4
4
  "description": "Client-side Bitcoin JavaScript library",
5
5
  "main": "./dist/src/index.js",
6
6
  "engines": {
@@ -46,7 +46,7 @@
46
46
  "dist/src"
47
47
  ],
48
48
  "dependencies": {
49
- "@bitgo-beta/blake2b": "3.0.4-beta.290",
49
+ "@bitgo-beta/blake2b": "3.0.4-beta.292",
50
50
  "@brandonblack/musig": "^0.0.1-alpha.0",
51
51
  "@noble/secp256k1": "1.6.3",
52
52
  "bech32": "^2.0.0",
@@ -84,5 +84,5 @@
84
84
  },
85
85
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
86
86
  "license": "MIT",
87
- "gitHead": "41253f93c7036bb7de1e610e66a41cc870d7c1ab"
87
+ "gitHead": "e36473b5c6eeb888fbc29f6774354702432b70cf"
88
88
  }