Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "bip174", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -14,5 +14,5 @@ "main": "src/lib/psbt.js", | ||
"scripts": { | ||
"build": "npm run clean && tsc -p ./tsconfig.json ; npm run formatjs", | ||
"build": "npm run clean && tsc -p ./tsconfig.json && rimraf 'src/tests/**/*.d.ts' && npm run formatjs", | ||
"clean": "rimraf src types", | ||
"coverage": "nyc --check-coverage --reporter=lcov --reporter=text --branches 40 --functions 70 --lines 60 npm run unit", | ||
"coverage": "nyc --check-coverage --reporter=lcov --reporter=text --branches 75 --functions 90 --lines 90 npm run unit", | ||
"format": "npm run prettier -- --write", | ||
@@ -35,2 +35,3 @@ "formatjs": "npm run prettierjs -- --write > /dev/null 2>&1", | ||
"@types/tape": "4.2.33", | ||
"json-buffer": "^3.0.1", | ||
"nyc": "^14.1.1", | ||
@@ -37,0 +38,0 @@ "prettier": "^1.18.2", |
/// <reference types="node" /> | ||
export declare function encode(_number: number, buffer: Buffer, offset: number): Buffer; | ||
export declare function decode(buffer: Buffer, offset: number): number; | ||
export declare function encode(_number: number, buffer?: Buffer, offset?: number): Buffer; | ||
export declare function decode(buffer: Buffer, offset?: number): number; | ||
export declare function encodingLength(_number: number): number; |
@@ -19,3 +19,3 @@ 'use strict'; | ||
const psbt = new Psbt(); | ||
psbt.globalMap.keyVals[0].value = txBuf; | ||
psbt.globalMap.unsignedTx = txBuf; | ||
while (result.inputCount > 0) { | ||
@@ -69,5 +69,2 @@ psbt.inputs.push({ | ||
} | ||
// TODO: | ||
// Add methods to update various parts. (ie. "updater" responsibility) | ||
// Return self for chaining. | ||
addNonWitnessUtxoToInput(inputIndex, nonWitnessUtxo) { | ||
@@ -74,0 +71,0 @@ const input = checkForInput(this.inputs, inputIndex); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71502
9
1914