Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions boilerplates/telescope/packages/__MODULENAME__/.protod.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"repos": [
{ "owner": "cosmos", "repo": "cosmos-sdk", "branch": "release/v0.50.x" },
{ "owner": "cosmos", "repo": "ibc-go" },
{ "owner": "injectivelabs", "repo": "sdk-go" }
],
"protoDirMapping": {
"gogo/protobuf/master": ".",
"googleapis/googleapis/master": ".",
"protocolbuffers/protobuf/main": "src"
},
"outDir": "protos",
"ssh": false,
"tempRepoDir": "git-modules",
"targets": [
"cosmos/**/*.proto",
"cosmwasm/**/*.proto",
"ibc/**/*.proto",
"injective/types/v1beta1/account.proto"
]
}
8 changes: 6 additions & 2 deletions boilerplates/telescope/packages/__MODULENAME__/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"copy": "copyfiles -f ../../LICENSE README.md package.json dist",
"clean": "rimraf dist/**",
"prepare": "npm run build",
"download-protos": "cia protod --config ./.protod.config.json",
"codegen": "ts-node scripts/codegen.ts",
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
"build:dev": "npm run clean; npm run codegen; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
Expand All @@ -31,15 +32,18 @@
"test:watch": "jest --watch"
},
"devDependencies": {
"@cosmology/telescope": "^1.10.0"
"@types/node": "^22.14.1",
"ts-node": "^10.9.2",
"typescript": "^5.8.3"
},
"dependencies": {
"@cosmjs/encoding": "0.32.3",
"@cosmjs/math": "0.32.3",
"@cosmjs/amino": "0.32.3",
"@cosmjs/proto-signing": "0.32.3",
"@cosmjs/stargate": "0.32.3",
"@cosmology/lcd": "^0.14.0"
"@cosmology/lcd": "^0.14.0",
"create-interchain-app": "^2.4.7"
},
"keywords": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { rimrafSync as rimraf } from 'rimraf';

import { AMINO_MAP } from './aminos';

const protoDirs: string[] = [join(__dirname, '/../proto')];
const protoDirs: string[] = [join(__dirname, '/../protos')];
const outPath: string = join(__dirname, '../src');
rimraf(outPath);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src/"
"rootDir": ".",
},
"include": ["src/**/*.ts"],
"exclude": ["dist", "node_modules", "**/*.spec.*", "**/*.test.*"]
Expand Down
Loading