refactor: regenerate gRPC stubs for chain.v1 wire package
Some checks are pending
Security / Security check (push) Waiting to run
Some checks are pending
Security / Security check (push) Waiting to run
The hub renamed its gRPC package fai.v1 -> chain.v1 (proto dir proto/fai/v1 -> proto/chain/v1). Move the generated stubs to generated/chain/v1 and rewrite the wire package + service paths (/fai.v1.Hub/* -> /chain.v1.Hub/*) so the client talks to the renamed hub. Pure package rename — no message/field changes. HubClient public API is unchanged, so dependents need no edits. dart analyze: clean. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
75a4b2b306
commit
d680cf3462
18 changed files with 282 additions and 282 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
# Generate Dart bindings for the F∆I gRPC surface.
|
||||
#
|
||||
# Reads .proto files from the sibling fai_platform repo and
|
||||
# Reads .proto files from the sibling fai_chain repo and
|
||||
# writes Dart code into lib/src/generated/. Run after
|
||||
# `dart pub global activate protoc_plugin` so that
|
||||
# `protoc-gen-dart` is on PATH (`$HOME/.pub-cache/bin`).
|
||||
|
|
@ -10,19 +10,19 @@
|
|||
# tools/generate.sh
|
||||
#
|
||||
# Env overrides:
|
||||
# PROTO_ROOT Path to fai_platform/proto/ (default: ../fai_platform/proto)
|
||||
# PROTO_ROOT Path to fai_chain/proto/ (default: ../fai_chain/proto)
|
||||
# OUT_DIR Output dir (default: lib/src/generated)
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
SDK_ROOT="$( cd -- "$SCRIPT_DIR/.." && pwd )"
|
||||
|
||||
PROTO_ROOT="${PROTO_ROOT:-$SDK_ROOT/../fai_platform/proto}"
|
||||
PROTO_ROOT="${PROTO_ROOT:-$SDK_ROOT/../fai_chain/proto}"
|
||||
OUT_DIR="${OUT_DIR:-$SDK_ROOT/lib/src/generated}"
|
||||
|
||||
if [[ ! -d "$PROTO_ROOT" ]]; then
|
||||
echo "error: PROTO_ROOT does not exist: $PROTO_ROOT" >&2
|
||||
echo "Set PROTO_ROOT to the fai_platform/proto directory." >&2
|
||||
echo "Set PROTO_ROOT to the fai_chain/proto directory." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue