diff --git a/CHANGELOG-npm.md b/CHANGELOG-npm.md index dfc4016..dffaae0 100644 --- a/CHANGELOG-npm.md +++ b/CHANGELOG-npm.md @@ -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 diff --git a/CHANGELOG-rust.md b/CHANGELOG-rust.md index ef3a339..fe36322 100644 --- a/CHANGELOG-rust.md +++ b/CHANGELOG-rust.md @@ -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 diff --git a/sandbox/src/Bitcoin.tsx b/sandbox/src/Bitcoin.tsx index 019d9d2..e6c8636 100644 --- a/sandbox/src/Bitcoin.tsx +++ b/sandbox/src/Bitcoin.tsx @@ -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('btc'); @@ -95,6 +95,7 @@ function BtcAddressSimple({ bb02 }: Props) { case 'tbtc': case 'tltc': return 1; case 'ltc': return 2; + case 'rbtc': return 1; } } diff --git a/src/wasm/types.rs b/src/wasm/types.rs index 5cdb0dc..bfc889d 100644 --- a/src/wasm/types.rs +++ b/src/wasm/types.rs @@ -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[];