-
Install cosmology/telescope & create-cosmos-app
npm install -g @cosmology/telescope create-cosmos-app
-
Generate the telescope boilerplate. Add author, module name, description, email, github username, etc.
cca --boilerplate telescope
-
Install proto templates (osmosis, cosmos, ibc, etc.). Add AssetMantle module and schema proto folders, also add the License and README file to the folder.
telescope install
telescope install @protobufs/osmosis
Select all the proto templates that are needed (select using space)
-
Transpile using yarn
yarn codegen
-
Complete transpilation
telescope transpile
proto path - ./proto
src/codegen path - ./src/codegen
-
Typescript code will be generated for all the protos in the codegen folder inside src.