-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Using telescope gen code instead of ts-proto #62
base: cosmjs-elements
Are you sure you want to change the base?
Conversation
And some linting.
ignite scaffold single systemInfo nextId:uint --module checkers --no-message
ignite scaffold map storedGame board turn black red --index index --module checkers --no-message
And unit test.
Signed-off-by: Pranay Valson <[email protected]>
ignite scaffold message createGame black red --module checkers --response gameIndex
And unit tests.
ignite scaffold message playMove gameIndex fromX:uint fromY:uint toX:uint toY:uint --module checkers --response capturedX:int,capturedY:int,winner
And unit tests.
ignite scaffold query canPlayMove gameIndex player fromX:uint fromY:uint toX:uint toY:uint --module checkers --response possible:bool,reason
Submodule contains elements.
Thank you. I will not make it part of this code just yet. And when I do, it will not be just a merge of this PR because I have to keep the succession of commits "clean". So I take your work then reorder and squash. |
remove install part from gen-proto-ts in makefile
@@ -17,5 +17,5 @@ download-cosmos-proto: | |||
mkdir -p proto/gogoproto | |||
curl https://raw.githubusercontent.com/cosmos/cosmos-sdk/${cosmos-version}/third_party/proto/gogoproto/gogo.proto -o proto/gogoproto/gogo.proto | |||
|
|||
gen-proto-ts: download-cosmos-proto install-gen-tool | |||
gen-proto-ts: download-cosmos-proto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if download-cosmos-proto
will also cause issues if we are not careful with what folders are mapped within Docker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that protoDirs
is set to ../proto
and outPath
is set to ../client/src/types/generated
in the .telescope.json file, so as long as the working dir is /checkers
, I guess there wouldn't be issue when executing npx telescope transpile --config .telescope.json
inside scripts
folder.
9ecf56f
to
2073448
Compare
2073448
to
21655f9
Compare
21655f9
to
f3c524e
Compare
I'm updating Hands on exercise, Cosmjs-adv section with Using telescope gen code instead of ts-proto and I found I also need to update the code here. And I think I also need to update the code gen part in branches derived from this branch(I'll do that after this change's reviewed)
And I also need to update the
client
project in another PR with generated code using telescopeThank you very much!