Update regtest-client

This commit is contained in:
junderw 2019-07-25 17:13:36 +09:00
parent af8f41a1e5
commit a3b6cdabb9
No known key found for this signature in database
GPG key ID: B256185D3A971908
3 changed files with 8 additions and 7 deletions

10
package-lock.json generated
View file

@ -1499,12 +1499,14 @@
} }
}, },
"regtest-client": { "regtest-client": {
"version": "0.1.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/regtest-client/-/regtest-client-0.1.0.tgz", "resolved": "https://registry.npmjs.org/regtest-client/-/regtest-client-0.2.0.tgz",
"integrity": "sha512-qTy+VvEKx8NRxSCr1jr+l9d+DeF06lxxWU9kmS8+kRVtgWHBTZYgQwRN6KkVqBGYP1Vls6dlG9X874WWTEurSQ==", "integrity": "sha512-eIcC8Kle/wjS47pRlw7nJpstrJDWp0bkvVPl2KJpJcK3JDNW0fMxJgE/CGpMEUSjhhFXW1rtJMN6kyKw5NIzqg==",
"dev": true, "dev": true,
"requires": { "requires": {
"dhttp": "^3.0.3" "bs58check": "^2.1.2",
"dhttp": "^3.0.3",
"randombytes": "^2.1.0"
} }
}, },
"release-zalgo": { "release-zalgo": {

View file

@ -75,7 +75,7 @@
"nyc": "^14.1.1", "nyc": "^14.1.1",
"prettier": "1.16.4", "prettier": "1.16.4",
"proxyquire": "^2.0.1", "proxyquire": "^2.0.1",
"regtest-client": "0.1.0", "regtest-client": "0.2.0",
"rimraf": "^2.6.3", "rimraf": "^2.6.3",
"tslint": "^5.16.0", "tslint": "^5.16.0",
"typescript": "3.2.2" "typescript": "3.2.2"

View file

@ -1,9 +1,8 @@
const { RegtestUtils } = require('regtest-client') const { RegtestUtils } = require('regtest-client')
const bitcoin = require('../..')
const APIPASS = process.env.APIPASS || 'satoshi' const APIPASS = process.env.APIPASS || 'satoshi'
const APIURL = process.env.APIURL || 'https://regtest.bitbank.cc/1' const APIURL = process.env.APIURL || 'https://regtest.bitbank.cc/1'
const regtestUtils = new RegtestUtils(bitcoin, { APIPASS, APIURL }) const regtestUtils = new RegtestUtils({ APIPASS, APIURL })
module.exports = regtestUtils; module.exports = regtestUtils;