Skip to content
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

Open
wants to merge 53 commits into
base: cosmjs-elements
Choose a base branch
from

Conversation

Zetazzz
Copy link

@Zetazzz Zetazzz commented Oct 17, 2023

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 telescope

Thank you very much!

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
ignite scaffold message createGame black red --module checkers --response gameIndex
ignite scaffold message playMove gameIndex fromX:uint fromY:uint toX:uint toY:uint --module checkers --response capturedX:int,capturedY:int,winner
@Zetazzz Zetazzz changed the title Using telescope gen code instead of ts-proto build: Using telescope gen code instead of ts-proto Oct 17, 2023
@xavierlepretre
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Author

@Zetazzz Zetazzz Oct 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants