@bitcoinerlab/discovery
Version:
A TypeScript library for retrieving Bitcoin funds from ranged descriptors, leveraging @bitcoinerlab/explorer for standardized access to multiple blockchain explorers.
67 lines (66 loc) • 3.6 kB
JSON
{
"name": "@bitcoinerlab/discovery",
"description": "A TypeScript library for retrieving Bitcoin funds from ranged descriptors, leveraging @bitcoinerlab/explorer for standardized access to multiple blockchain explorers.",
"homepage": "https://github.com/bitcoinerlab/discovery",
"version": "2.0.0",
"author": "Jose-Luis Landabaso",
"license": "MIT",
"prettier": "@bitcoinerlab/configs/prettierConfig.json",
"eslintConfig": {
"extends": "./node_modules/@bitcoinerlab/configs/eslintConfig"
},
"jest": {
"preset": "@bitcoinerlab/configs"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"webdocs": "typedoc --options ./node_modules/@bitcoinerlab/configs/webtypedoc.json",
"docs": "typedoc --options ./node_modules/@bitcoinerlab/configs/typedoc.json",
"build:src": "tsc --project ./node_modules/@bitcoinerlab/configs/tsconfig.src.json",
"build:test": "tsc --project ./node_modules/@bitcoinerlab/configs/tsconfig.test.json",
"build": "npm run build:src && npm run build:test",
"lint": "./node_modules/@bitcoinerlab/configs/scripts/lint.sh",
"updatelocalexplorer": "cd ../explorer && npm install && npm run build && npm pack && mv *.tgz ../discovery && cd ../discovery && npm uninstall @bitcoinerlab/explorer && npm install ./bitcoinerlab-explorer-*.tgz && rm ./bitcoinerlab-explorer-*.tgz",
"COMMENT_ON_TESTER": "The testing setup below ensures that a fresh Docker container is started from scratch, providing a clean Bitcoin blockchain state. This is required by the Discovery tests, which rely on fixtures assuming that no previous transactions exist for certain addresses. Note that non-default ports are used so this container does not conflict with the regular 'bitcoinerlab_tester_instance', which may already be running. That instance is never reset and can be reused by other Bitcoinerlab modules.",
"ensureTmpTester": "REGTEST_SERVER_PORT=18080 ELECTRUM_PORT=16401 ESPLORA_PORT=13002 ESPLORA_BLOCK_EXPLORER_PORT=15000 CONTAINER_NAME=bitcoinerlab_tmp_tester_instance ./node_modules/@bitcoinerlab/configs/scripts/ensureTester.sh",
"cleanTmpTester": "CONTAINER_NAME=bitcoinerlab_tmp_tester_instance; VOLUME=$(docker inspect -f '{{range .Mounts}}{{.Name}}{{end}}' \"$CONTAINER_NAME\" 2>/dev/null); docker rm -fv \"$CONTAINER_NAME\" >/dev/null 2>&1 || true; if [ -n \"$VOLUME\" ]; then docker volume rm -f \"$VOLUME\" >/dev/null 2>&1 || true; fi",
"test": "npm run lint && npm run build && npm run cleanTmpTester && npm run ensureTmpTester && APIURL=\"http://127.0.0.1:18080/1\" ELECTRUM_PORT=16401 ESPLORA_PORT=13002 NODE_OPTIONS=\"--experimental-fetch\" jest; npm run cleanTmpTester",
"prepublishOnly": "npm test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bitcoinerlab/discovery.git"
},
"keywords": [
"bitcoin",
"discovery",
"esplora",
"electrum"
],
"bugs": {
"url": "https://github.com/bitcoinerlab/discovery/issues"
},
"files": [
"dist"
],
"dependencies": {
"@bitcoinerlab/descriptors": "^3.0.2",
"@bitcoinerlab/explorer": "^1.0.0",
"@bitcoinerlab/secp256k1": "^1.2.0",
"@types/memoizee": "^0.4.8",
"bitcoinjs-lib": "^7.0.1",
"immer": "^9.0.21",
"lodash.clonedeep": "^4.5.0",
"memoizee": "^0.4.15",
"shallow-equal": "^3.1.0",
"uint8array-tools": "^0.0.9"
},
"devDependencies": {
"@bitcoinerlab/configs": "^2.0.0",
"@bitcoinerlab/miniscript-policies": "^1.1.0",
"@types/lodash.clonedeep": "^4.5.9",
"bip39": "^3.1.0",
"regtest-client": "^0.2.1"
}
}