Skip to content

Commit

Permalink
Add types (#11)
Browse files Browse the repository at this point in the history
* feat: export types
  • Loading branch information
jrwbabylonlab authored Oct 29, 2024
1 parent 11d093c commit 2719ba3
Show file tree
Hide file tree
Showing 28 changed files with 3,856 additions and 576 deletions.
21 changes: 18 additions & 3 deletions package-lock.json

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

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@babylonlabs-io/babylon-proto-ts",
"version": "0.0.3",
"main": "index.js",
"version": "0.0.3-canary.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "node scripts/build-proto.js",
"build": "tsc && node scripts/build-proto.js",
"prepublishOnly": "npm run build"
},
"files": [
Expand All @@ -15,12 +16,13 @@
"description": "",
"devDependencies": {
"@bufbuild/buf": "^1.45.0",
"shelljs": "^0.8.5"
"shelljs": "^0.8.5",
"typescript": "^5.6.3"
},
"dependencies": {
"@bufbuild/protobuf": "^2.2.0"
},
"publishConfig": {
"access": "public"
}
}
}
2 changes: 1 addition & 1 deletion scripts/build-proto.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// scripts/build-proto.js
const shell = require("shelljs")

const BABYLON_REPO_URL = "https://github.com/babylonchain/babylon.git"
const BABYLON_REPO_URL = "https://github.com/babylonlabs-io/babylon.git"
const BABYLON_REPO_DIR = "babylon"
const PROTO_DIR = "proto"

Expand Down
4 changes: 2 additions & 2 deletions src/generated/babylon/btccheckpoint/v1/btccheckpoint.ts

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

19 changes: 4 additions & 15 deletions src/generated/babylon/btccheckpoint/v1/params.ts

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

4 changes: 2 additions & 2 deletions src/generated/babylon/btccheckpoint/v1/query.ts

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

2 changes: 1 addition & 1 deletion src/generated/babylon/btccheckpoint/v1/tx.ts

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

15 changes: 2 additions & 13 deletions src/generated/babylon/btclightclient/v1/btclightclient.ts

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

21 changes: 5 additions & 16 deletions src/generated/babylon/btclightclient/v1/query.ts

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

Loading

0 comments on commit 2719ba3

Please sign in to comment.