Merge pull request #8974 from ellemouton/falafelUpdate

lnrpc: update falafel version
This commit is contained in:
Elle 2024-08-05 19:20:06 +02:00 committed by GitHub
commit 4e5728f58a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
20 changed files with 24 additions and 31 deletions

View File

@ -118,6 +118,10 @@ commitment when the channel was force closed.
* [Added](https://github.com/lightningnetwork/lnd/pull/8836) a new failure
reason `FailureReasonCanceled` to the list of payment failure reasons. It
indicates that a payment was manually cancelled by the user.
* [Update the version](https://github.com/lightningnetwork/lnd/pull/8974) of
[falafel](https://github.com/lightninglabs/falafel) used to generate JSON/wasm
stubs. This latest version of falafel also supports proto3 optional fields.
## Breaking Changes
## Performance Improvements

View File

@ -12,7 +12,7 @@ ARG PROTOBUF_VERSION
ARG GRPC_GATEWAY_VERSION
ENV PROTOC_GEN_GO_GRPC_VERSION="v1.1.0"
ENV FALAFEL_VERSION="v0.9.1"
ENV FALAFEL_VERSION="v0.9.2"
ENV GOCACHE=/tmp/build/.cache
ENV GOMODCACHE=/tmp/build/.modcache

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: autopilot.proto
package autopilotrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: chainkit.proto
package chainrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: chainnotifier.proto
package chainrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: dev.proto
package devrpc

View File

@ -50,18 +50,7 @@ function generate() {
PACKAGES="autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc routerrpc signrpc verrpc walletrpc watchtowerrpc wtclientrpc devrpc"
for package in $PACKAGES; do
# Special import for the wallet kit.
manual_import=""
if [[ "$package" == "walletrpc" ]]; then
manual_import="github.com/lightningnetwork/lnd/lnrpc/signrpc"
fi
# Special import for devrpc.
if [[ "$package" == "devrpc" ]]; then
manual_import="github.com/lightningnetwork/lnd/lnrpc"
fi
opts="package_name=$package,manual_import=$manual_import,js_stubs=1"
opts="package_name=$package,js_stubs=1"
pushd $package
protoc -I/usr/local/include -I. -I.. \
--plugin=protoc-gen-custom=$falafel\

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: invoices.proto
package invoicesrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: lightning.proto
package lnrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: neutrino.proto
package neutrinorpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: peers.proto
package peersrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: router.proto
package routerrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: signer.proto
package signrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: stateservice.proto
package lnrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: verrpc.proto
package verrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: walletkit.proto
package walletrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: walletunlocker.proto
package lnrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: watchtower.proto
package watchtowerrpc

View File

@ -1,4 +1,4 @@
// Code generated by falafel 0.9.1. DO NOT EDIT.
// Code generated by falafel 0.9.2. DO NOT EDIT.
// source: wtclient.proto
package wtclientrpc

View File

@ -48,7 +48,7 @@ for file in $PROTOS; do
protoc -I/usr/local/include -I. \
--plugin=protoc-gen-custom=$falafel\
--custom_out=./build \
--custom_out=. \
--custom_opt="$opts" \
--proto_path=../lnrpc \
"${file}"
@ -78,7 +78,7 @@ do
protoc -I/usr/local/include -I. \
-I../lnrpc \
--plugin=protoc-gen-custom=$falafel \
--custom_out=./build \
--custom_out=. \
--custom_opt="$opts" \
--proto_path=${DIRECTORY} \
${file}