-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from babylonlabs-io/cut-v3-release
Cut v3 release
- Loading branch information
Showing
24 changed files
with
1,529 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v22.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,35 @@ | ||
/* eslint-disable no-undef */ | ||
import { build } from "esbuild"; | ||
import pkg from "./package.json" assert { type: "json" }; | ||
const { dependencies } = pkg; | ||
import { readFile } from "fs/promises"; | ||
import path from "path"; | ||
|
||
const shared = { | ||
entryPoints: ["src/index.ts"], | ||
bundle: true, | ||
external: Object.keys(dependencies || {}), | ||
}; | ||
async function main() { | ||
const pkgPath = path.resolve("./package.json"); | ||
const pkg = JSON.parse(await readFile(pkgPath, "utf8")); | ||
const { dependencies } = pkg; | ||
|
||
build({ | ||
...shared, | ||
platform: "node", // for CJS | ||
outfile: "dist/index.cjs", | ||
}); | ||
const shared = { | ||
entryPoints: ["src/index.ts"], | ||
bundle: true, | ||
external: Object.keys(dependencies || {}), | ||
}; | ||
|
||
build({ | ||
...shared, | ||
platform: "node", // for ESM | ||
outfile: "dist/index.js", | ||
format: "esm", | ||
}); | ||
await build({ | ||
...shared, | ||
platform: "node", // for CJS | ||
outfile: "dist/index.cjs", | ||
format: "cjs", | ||
}); | ||
|
||
await build({ | ||
...shared, | ||
platform: "node", // for ESM | ||
outfile: "dist/index.js", | ||
format: "esm", | ||
}); | ||
} | ||
|
||
main().catch((err) => { | ||
console.error(err); | ||
process.exit(1); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// This sequence enables both the locktime field and also replace-by-fee | ||
export const RBF_SEQUENCE = 0xfffffffd; | ||
// This sequence means the transaction is not replaceable | ||
export const NON_RBF_SEQUENCE = 0xffffffff; | ||
// The Transaction version number used across the library(to be set in the psbt) | ||
export const TRANSACTION_VERSION = 2; |
Oops, something went wrong.