Skip to content
Open
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]
### Changed
- Switch back to official telescope (#343)

## [5.4.5] - 2025-07-22
### 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 @@ -15,6 +15,7 @@
"license": "GPL-3.0",
"dependencies": {
"@cosmwasm/ts-codegen": "^1.11.1",
"@hyperweb/telescope": "^1.17.0",
"@protobufs/cosmos": "^0.1.0",
"@protobufs/cosmos_proto": "^0.0.10",
"@protobufs/cosmwasm": "^0.1.1",
Expand All @@ -24,7 +25,6 @@
"@protobufs/tendermint": "^0.0.10",
"@subql/common": "^5.7.2",
"@subql/types-cosmos": "workspace:*",
"@subql/x-cosmology-telescope": "^1.4.14",
"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 @@ -4,6 +4,7 @@
import fs from 'fs';
import path from 'path';
import cosmwasmCodegen from '@cosmwasm/ts-codegen';
import telescope from '@hyperweb/telescope';
import {makeTempDir} from '@subql/common';
import {ProjectManifestV1_0_0} from '@subql/types-core/dist/project/versioned/v1_0_0/types';
import {
Expand All @@ -12,7 +13,6 @@
CosmosRuntimeDatasource,
CosmosProjectManifestV1_0_0,
} 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 @@ -169,7 +169,7 @@
);
})
);
} catch (e: any) {

Check warning on line 172 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
console.error(
`! Unable to generate from provided cosmwasm interface. ${e.message}\n` +
'Please check the path of your abi path in the project.yaml'
Expand Down Expand Up @@ -270,7 +270,7 @@
}
);
console.log('* Cosmos message wrappers generated !');
} catch (e: any) {

Check warning on line 273 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
2 changes: 1 addition & 1 deletion packages/common-cosmos/src/codegen/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// // Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

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

export const TELESCOPE_OPTS: TelescopeOptions = {
removeUnusedImports: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@cosmjs/proto-signing": "^0.32.4",
"@cosmjs/stargate": "npm:@subql/x-cosmjs-stargate@0.33.0",
"@cosmjs/tendermint-rpc": "npm:@subql/x-cosmos-tendermint-rpc@0.32.4",
"@kyvejs/sdk": "^1.3.2",
"@kyvejs/sdk": "^1.4.5",
"@nestjs/common": "^11.0.16",
"@nestjs/core": "^11.0.10",
"@nestjs/event-emitter": "^2.0.0",
Expand All @@ -34,7 +34,7 @@
"@subql/node-core": "^18.2.1",
"@subql/types-cosmos": "workspace:*",
"lodash": "^4.17.21",
"protobufjs": "^6.11.4",
"protobufjs": "^7.5.3",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"yargs": "^16.2.0"
Expand Down
8 changes: 4 additions & 4 deletions packages/node/src/utils/cosmos.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
MsgStoreCode,
MsgUpdateAdmin,
} from 'cosmjs-types/cosmwasm/wasm/v1/tx';
import { fromInt } from 'long';
import long from 'long';
import { CosmosClient } from '../indexer/api.service';
import { BlockContent } from '../indexer/types';
import {
Expand Down Expand Up @@ -199,7 +199,7 @@ describe('CosmosUtils', () => {
msg: {
typeUrl: '/cosmwasm.wasm.v1.MsgInstantiateContract',
decodedMsg: {
codeId: fromInt(4),
codeId: long.fromInt(4),
},
},
} as unknown as CosmosMessage;
Expand All @@ -222,7 +222,7 @@ describe('CosmosUtils', () => {
msg: {
typeUrl: '/cosmwasm.wasm.v1.MsgInstantiateContract',
decodedMsg: {
codeId: fromInt(4),
codeId: long.fromInt(4),
},
},
} as unknown as CosmosMessage;
Expand All @@ -245,7 +245,7 @@ describe('CosmosUtils', () => {
msg: {
typeUrl: '/cosmwasm.wasm.v1.MsgInstantiateContract',
decodedMsg: {
codeId: fromInt(4),
codeId: long.fromInt(4),
},
},
} as unknown as CosmosMessage;
Expand Down
4 changes: 2 additions & 2 deletions packages/node/src/utils/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
CosmosTxFilter,
} from '@subql/types-cosmos';
import { isObjectLike, omit } from 'lodash';
import { isLong } from 'long';
import long from 'long';
import { SubqlProjectBlockFilter } from '../configure/SubqueryProject';
import { CosmosClient } from '../indexer/api.service';
import {
Expand Down Expand Up @@ -134,7 +134,7 @@ export function filterMessageData(
}

//stringify Long for equality check
if (isLong(decodedMsgData)) {
if (long.isLong(decodedMsgData)) {
decodedMsgData =
typeof filter.values[key] === 'number'
? decodedMsgData.toNumber()
Expand Down
Loading
Loading