Comparing version 0.0.46 to 0.0.47
@@ -64,3 +64,3 @@ import { promises as fs } from 'fs'; | ||
tcp: 8911, | ||
protocol: EProtocol.ssl | ||
protocol: EProtocol.tcp | ||
} | ||
@@ -67,0 +67,0 @@ ], |
import { EAvailableNetworks, generateMnemonic, Wallet } from '../src'; | ||
import { getData, onMessage, servers, setData } from './helpers'; | ||
import * as repl from 'repl'; | ||
import net from 'net'; | ||
import tls from 'tls'; | ||
@@ -18,2 +20,4 @@ const network: EAvailableNetworks = EAvailableNetworks.mainnet; | ||
electrumOptions: { | ||
net, | ||
tls, | ||
servers: servers[network] | ||
@@ -23,3 +27,5 @@ }, | ||
lookAhead: 5, | ||
lookBehind: 5 | ||
lookBehind: 5, | ||
lookAheadChange: 5, | ||
lookBehindChange: 5 | ||
} | ||
@@ -26,0 +32,0 @@ }); |
{ | ||
"name": "beignet", | ||
"version": "0.0.46", | ||
"version": "0.0.47", | ||
"description": "A self-custodial, JS Bitcoin wallet management library.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -79,2 +79,3 @@ import BitcoinJsonRpc from 'bitcoin-json-rpc'; | ||
wallet = res.value; | ||
await wallet.refreshWallet({}); | ||
}); | ||
@@ -81,0 +82,0 @@ |
@@ -16,3 +16,3 @@ import * as chai from 'chai'; | ||
let wallet; | ||
let wallet: Wallet; | ||
@@ -37,2 +37,3 @@ before(async function () { | ||
wallet = res.value; | ||
await wallet.refreshWallet({}); | ||
}); | ||
@@ -45,2 +46,3 @@ | ||
expect(connectResponse.isErr()).to.equal(false); | ||
if (connectResponse.isErr()) return; | ||
expect(connectResponse.value).to.equal('Connected to Electrum server.'); | ||
@@ -47,0 +49,0 @@ }); |
@@ -22,3 +22,3 @@ import * as chai from 'chai'; | ||
let wallet; | ||
let wallet: Wallet; | ||
const WALLET_NAME = 'storagetestwallet0'; | ||
@@ -25,0 +25,0 @@ |
@@ -20,3 +20,3 @@ import * as chai from 'chai'; | ||
let wallet; | ||
let wallet: Wallet; | ||
@@ -39,2 +39,3 @@ before(async function () { | ||
wallet = res.value; | ||
await wallet.refreshWallet({}); | ||
}); | ||
@@ -163,3 +164,7 @@ | ||
outputs: [ | ||
{ address: 'tb1qaq7jszepjuntxx494xhwrxs746v94583ls02ke', value: 5000 } | ||
{ | ||
index: 0, | ||
address: 'tb1qaq7jszepjuntxx494xhwrxs746v94583ls02ke', | ||
value: 5000 | ||
} | ||
] | ||
@@ -166,0 +171,0 @@ }); |
@@ -55,2 +55,3 @@ import * as chai from 'chai'; | ||
wallet = res.value; | ||
await wallet.refreshWallet({}); | ||
}); | ||
@@ -57,0 +58,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
9381136
18707