Skip to content

Commit

Permalink
extract psbt module from caravan-bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko13 committed Feb 1, 2024
1 parent c82ce8b commit 79c110d
Show file tree
Hide file tree
Showing 10 changed files with 3,398 additions and 4 deletions.
41 changes: 37 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/caravan-psbt/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "node"
};
39 changes: 39 additions & 0 deletions packages/caravan-psbt/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "@caravan/psbt",
"version": "0.0.0-beta",
"description": "typescript library for working with PSBTs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"engines": {
"node": ">=16"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "npm run build -- --watch",
"test": "jest src",
"test:watch": "jest --watch src",
"test:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand"
},
"keywords": [
"bitcoin",
"psbt"
],
"dependencies": {
"@caravan/bitcoin": "*",
"bignumber.js": "^8.1.1",
"bitcoinjs-lib": "^5.1.10",
"buffer": "^6.0.3",
"bufio": "^1.2.1",
"esbuild-plugin-polyfill-node": "^0.3.0"
},
"author": "unchained capital",
"license": "ISC",
"devDependencies": {
"@types/jest": "^29.5.8",
"jest": "^29.4.1",
"ts-jest": "^29.1.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
}
}
2 changes: 2 additions & 0 deletions packages/caravan-psbt/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { PsbtV2, getPsbtVersionNumber } from './psbtv2';

338 changes: 338 additions & 0 deletions packages/caravan-psbt/src/psbt.test.ts

Large diffs are not rendered by default.

Loading

0 comments on commit 79c110d

Please sign in to comment.