Skip to content

Commit ce7d7b6

Browse files
committed
btc: add support for regtest
05b3cb5 already updated the protobuf files.
1 parent 7a76931 commit ce7d7b6

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

CHANGELOG-npm.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## 0.7.0
66
- btc: handle error when an input's previous transaction is required but missing
7+
- btc: add support for regtest
78

89
## 0.6.0
910

CHANGELOG-rust.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## 0.6.0
66
- btc: handle error when an input's previous transaction is required but missing
7+
- btc: add support for regtest
78
- cardano: added support for vote delegation
89

910
## 0.5.0

sandbox/src/Bitcoin.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ShowError } from './Error';
55

66
type Props = { bb02: bitbox.PairedBitBox };
77

8-
const btcCoinOptions = ['btc', 'tbtc', 'ltc', 'tltc'];
8+
const btcCoinOptions = ['btc', 'tbtc', 'ltc', 'tltc', 'rbtc'];
99

1010
function BtcXPub({ bb02 } : Props) {
1111
const [coin, setCoin] = useState<bitbox.BtcCoin>('btc');
@@ -95,6 +95,7 @@ function BtcAddressSimple({ bb02 }: Props) {
9595
case 'tbtc':
9696
case 'tltc': return 1;
9797
case 'ltc': return 2;
98+
case 'rbtc': return 1;
9899
}
99100
}
100101

src/wasm/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extern "C" {
1212
const TS_TYPES: &'static str = r#"
1313
type OnCloseCb = undefined | (() => void);
1414
type Product = 'unknown' | 'bitbox02-multi' | 'bitbox02-btconly';
15-
type BtcCoin = 'btc' | 'tbtc' | 'ltc' | 'tltc';
15+
type BtcCoin = 'btc' | 'tbtc' | 'ltc' | 'tltc' | 'rbtc';
1616
type BtcFormatUnit = 'default' | 'sat';
1717
type XPubType = 'tpub' | 'xpub' | 'ypub' | 'zpub' | 'vpub' | 'upub' | 'Vpub' | 'Zpub' | 'Upub' | 'Ypub';
1818
type Keypath = string | number[];

0 commit comments

Comments
 (0)