OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-wallet-lib commits / 2909acb

Update BTC config to WDK beta.7 client descriptor format
wdk-wallet-btc beta.7 changed BTC client config from flat { host, port } to { client: { type: 'electrum', clientConfig: { host, port } } }. Updated wdk-integration.cjs, config.cjs, and config-loader.cjs defaults. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2909acb7efb849cce111d2834b31f4db1b513510
by plankatron <fleeky@gmail.com> · 2026-03-25T01:21:10.000Z

Changed files (3) +21 -7

config-loader.cjs +7 -2
……@@ -81,8 +81,13 @@ function getDefaultConfig() {
8181 },
8282 bitcoin: {
8383 network: 'testnet',
84 host: 'electrum.blockstream.info',
85 port: 60001
84 client: {
85 type: 'electrum',
86 clientConfig: {
87 host: 'electrum.blockstream.info',
88 port: 60001
89 }
90 }
8691 }
8792 }
8893 }
config.cjs +7 -3
……@@ -21,9 +21,13 @@ const DEFAULT_CONFIG = {
2121 rpcUrl: null
2222 },
2323 bitcoin: {
24 provider: 'electrum',
25 host: 'electrum.blockstream.info',
26 port: 60001
24 client: {
25 type: 'electrum',
26 clientConfig: {
27 host: 'electrum.blockstream.info',
28 port: 60001
29 }
30 }
2731 }
2832 },
2933
wdk-integration.cjs +7 -2
……@@ -93,8 +93,13 @@ async function initializeWDK(walletMnemonic, config = { testnet: true, testnet4:
9393 const wdk = new WDK.default(walletMnemonic)
9494 .registerWallet('bitcoin', WalletManagerBtc.default, {
9595 network: config.testnet4 ? 'testnet4' : (config.testnet ? 'testnet' : 'bitcoin'),
96 host: config.testnet4 ? 'blackie.c3-soft.com' : 'electrum.blockstream.info',
97 port: config.testnet4 ? 50001 : (config.testnet ? 60001 : 50001)
96 client: {
97 type: 'electrum',
98 clientConfig: {
99 host: config.testnet4 ? 'blackie.c3-soft.com' : 'electrum.blockstream.info',
100 port: config.testnet4 ? 50001 : (config.testnet ? 60001 : 50001)
101 }
102 }
98103 })
99104 .registerWallet('ethereum', WalletManagerEvm.default, {
100105 provider: config.testnet