-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grpc -> grpcjs + generated ts types from proto files
notes: * grpcjs doesnt like ByteBuffer, it has been replaced with the nodejs native Buffer * grpcjs doesnt like calls without an argument, add {} instead see src/grpc/subscribe.ts:24 * grpcjs converts uint64 in a map key (map<uint64, ...>) to some hash, this is fixed with protobuf_long.patch which is automatically applied after running `npm install` this pr would fix the bug upstream protobufjs/protobuf.js#1669
- Loading branch information
Showing
596 changed files
with
20,619 additions
and
1,153 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: Update proto files | ||
on: | ||
schedule: | ||
- cron: "0 0 1 * *" | ||
- cron: '0 0 1 * *' | ||
|
||
jobs: | ||
update_proto: | ||
|
@@ -22,5 +22,14 @@ jobs: | |
find lnd/lnrpc -name '*.proto' -exec bash -c 'test -e proto/`basename {}` && cp {} proto' \; | ||
sed -i 's/^import.*\//import "/' proto/* | ||
git add proto | ||
git commit -m "Update proto files" || echo -n | ||
- name: update generated types | ||
run: | | ||
bash grpc_gen_types.sh | ||
npm run build | ||
git add src/grpc/types dist | ||
- name: commit changes | ||
run: | | ||
git config user.name 'Github Actions' | ||
git config user.email [email protected] | ||
git commit -m 'Update proto files and types' || echo -n | ||
git push |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.