Skip to content

Commit

Permalink
btc: add support for regtest
Browse files Browse the repository at this point in the history
05b3cb5 already updated the protobuf files.
  • Loading branch information
benma committed Oct 28, 2024
1 parent 7a76931 commit ce7d7b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

## 0.6.0

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

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

## 0.5.0
Expand Down
3 changes: 2 additions & 1 deletion sandbox/src/Bitcoin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ShowError } from './Error';

type Props = { bb02: bitbox.PairedBitBox };

const btcCoinOptions = ['btc', 'tbtc', 'ltc', 'tltc'];
const btcCoinOptions = ['btc', 'tbtc', 'ltc', 'tltc', 'rbtc'];

function BtcXPub({ bb02 } : Props) {
const [coin, setCoin] = useState<bitbox.BtcCoin>('btc');
Expand Down Expand Up @@ -95,6 +95,7 @@ function BtcAddressSimple({ bb02 }: Props) {
case 'tbtc':
case 'tltc': return 1;
case 'ltc': return 2;
case 'rbtc': return 1;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/wasm/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extern "C" {
const TS_TYPES: &'static str = r#"
type OnCloseCb = undefined | (() => void);
type Product = 'unknown' | 'bitbox02-multi' | 'bitbox02-btconly';
type BtcCoin = 'btc' | 'tbtc' | 'ltc' | 'tltc';
type BtcCoin = 'btc' | 'tbtc' | 'ltc' | 'tltc' | 'rbtc';
type BtcFormatUnit = 'default' | 'sat';
type XPubType = 'tpub' | 'xpub' | 'ypub' | 'zpub' | 'vpub' | 'upub' | 'Vpub' | 'Zpub' | 'Upub' | 'Ypub';
type Keypath = string | number[];
Expand Down

0 comments on commit ce7d7b6

Please sign in to comment.