-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: stargate: Add
protodep.toml
, protocgen.sh
and @cosmjs
pac…
…kages (#38)
- Loading branch information
Youngjoon Lee
committed
Jun 16, 2021
1 parent
a307c79
commit c97d62f
Showing
7 changed files
with
430 additions
and
4 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 |
---|---|---|
|
@@ -17,3 +17,5 @@ docs/_build | |
|
||
#Logs | ||
npm-debug.log* | ||
|
||
third_party/proto/ |
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,20 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
|
||
SRC_PATH="${SCRIPT_DIR}/third_party/proto" | ||
DST_PATH="${SCRIPT_DIR}/src/proto" | ||
|
||
# Fetch 3rd-party proto files | ||
protodep up -u | ||
|
||
# Compile only Panacea proto files | ||
mkdir -p ${DST_PATH} | ||
protoc \ | ||
--plugin=./node_modules/.bin/protoc-gen-ts_proto \ | ||
--ts_proto_out="${DST_PATH}" \ | ||
--proto_path="${SRC_PATH}" \ | ||
--ts_proto_opt="esModuleInterop=true,forceLong=long,useOptional=true" \ | ||
$(find "${SRC_PATH}/panacea" -name '*.proto') |
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,22 @@ | ||
proto_outdir = "./third_party/proto" | ||
|
||
[[dependencies]] | ||
target = "github.com/medibloc/panacea-core/proto" | ||
revision = "8f8223bd73d6d1aabb9eb0a56f1f402ff7c49f47" | ||
branch = "stargate" | ||
path = "" | ||
protocol = "" | ||
|
||
[[dependencies]] | ||
target = "github.com/cosmos/cosmos-sdk/third_party/proto" | ||
revision = "842b06003f97d31e4ec83847e9fe8185d51a1fc7" | ||
branch = "" | ||
path = "" | ||
protocol = "" | ||
|
||
[[dependencies]] | ||
target = "github.com/cosmos/cosmos-sdk/proto" | ||
revision = "842b06003f97d31e4ec83847e9fe8185d51a1fc7" | ||
branch = "" | ||
path = "" | ||
protocol = "" |
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,15 @@ | ||
proto_outdir = "./third_party/proto" | ||
|
||
[[dependencies]] | ||
target = "github.com/medibloc/panacea-core/proto" | ||
branch = "stargate" # TODO: use a specific revision | ||
|
||
[[dependencies]] | ||
target = "github.com/cosmos/cosmos-sdk/third_party/proto" | ||
revision = "v0.42.5" | ||
|
||
[[dependencies]] | ||
target = "github.com/cosmos/cosmos-sdk/proto" | ||
revision = "v0.42.5" | ||
|
||
|
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
Oops, something went wrong.