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

Update telescope with windows pathing fix #226

Merged
merged 2 commits into from
Feb 2, 2024
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
2 changes: 2 additions & 0 deletions packages/common-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Codegen failing on Windows by using forked version of `telescope` (#226)

## [4.0.0] - 2023-12-14
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"main": "dist/index.js",
"license": "GPL-3.0",
"dependencies": {
"@cosmology/telescope": "^0.104.0",
"@cosmwasm/ts-codegen": "^0.35.3",
"@protobufs/cosmos": "^0.1.0",
"@protobufs/cosmos_proto": "^0.0.10",
Expand All @@ -25,6 +24,7 @@
"@protobufs/tendermint": "^0.0.10",
"@subql/common": "^3.3.1",
"@subql/types-cosmos": "workspace:*",
"@subql/x-cosmology-telescope": "^1.4.12",
"fs-extra": "^11.1.1",
"js-yaml": "^4.1.0",
"reflect-metadata": "^0.1.13"
Expand Down
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/codegen/codegen-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

import fs from 'fs';
import path from 'path';
import telescope from '@cosmology/telescope';
import cosmwasmCodegen from '@cosmwasm/ts-codegen';
import {makeTempDir} from '@subql/common';
import {CosmosChaintypes, CustomModule, CosmosRuntimeDatasource} from '@subql/types-cosmos';
import telescope from '@subql/x-cosmology-telescope';
import {Data} from 'ejs';
import {copySync} from 'fs-extra';
import {upperFirst} from 'lodash';
Expand Down Expand Up @@ -238,7 +238,7 @@
renderTemplate: (templatePath: string, outputPath: string, templateData: Data) => Promise<void>,
upperFirst: (string?: string) => string,
/** @deprecated */
mkdirProto?: (projectPath: string) => Promise<string>

Check warning on line 241 in packages/common-cosmos/src/codegen/codegen-controller.ts

View workflow job for this annotation

GitHub Actions / code-style

'mkdirProto' is defined but never used
): Promise<void> {
let tmpPath: string;
try {
Expand All @@ -263,7 +263,7 @@
}
);
console.log('* Cosmos message wrappers generated !');
} catch (e: any) {

Check warning on line 266 in packages/common-cosmos/src/codegen/codegen-controller.ts

View workflow job for this annotation

GitHub Actions / code-style

Unexpected any. Specify a different type
const errorMessage = e.message.startsWith('Dependency')
? `Please add the missing protobuf file to ./proto directory`
: '';
Expand Down
3 changes: 1 addition & 2 deletions packages/common-cosmos/src/codegen/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2020-2023 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

import {TelescopeOptions} from '@cosmology/types/types/telescope';
import {TSBuilderInput, ContractFile} from '@cosmwasm/ts-codegen';
import {TelescopeOptions} from '@subql/x-cosmology-types/types/telescope';

export const TELESCOPE_OPTS: TelescopeOptions = {
removeUnusedImports: true,
Expand Down Expand Up @@ -54,7 +54,6 @@ export const TELESCOPE_OPTS: TelescopeOptions = {
aminoEncoding: {
enabled: false,
exceptions: {},
useRecursiveV2encoding: true,
},
lcdClients: {
enabled: false,
Expand Down
Loading
Loading