Skip to content

Conversation

stwiname
Copy link
Contributor

Description

Updates to the official telescope for codegen, this reduces maintenance for SubQuery. This is waiting on a fix for the minimatch dep hyperweb-io/telescope#802

Fixes subquery/subql#2863

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

Copy link
Contributor

github-actions bot commented Aug 11, 2025

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🔴 Statements 53.83% 3121/5798
🟡 Branches 75.84% 317/418
🔴 Functions 44.19% 133/301
🔴 Lines 53.83% 3121/5798

Test suite run failed

Failed tests: 16/79. Failed suites: 3/10.
  ● Dictionary Queries › Message Filter Queries › Basic wasm filter works

    ApolloError: Response not successful: Received status code 404

      at new ApolloError (node_modules/@apollo/client/errors/index.js:40:28)
      at node_modules/@apollo/client/core/QueryManager.js:785:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:170:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17

    Cause:
    ServerError: Response not successful: Received status code 404

      at Object.throwServerError (node_modules/@apollo/client/link/utils/throwServerError.js:2:17)
      at throwServerError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:120:9)
      at node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:176:48

  ● Dictionary Queries › Message Filter Queries › Wasm with contract filter builds a valid query

    ApolloError: Response not successful: Received status code 404

      at new ApolloError (node_modules/@apollo/client/errors/index.js:40:28)
      at node_modules/@apollo/client/core/QueryManager.js:785:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:170:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17

    Cause:
    ServerError: Response not successful: Received status code 404

      at Object.throwServerError (node_modules/@apollo/client/link/utils/throwServerError.js:2:17)
      at throwServerError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:120:9)
      at node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:176:48

  ● Dictionary Queries › Message Filter Queries › Wasm with nested filter works

    ApolloError: Response not successful: Received status code 404

      at new ApolloError (node_modules/@apollo/client/errors/index.js:40:28)
      at node_modules/@apollo/client/core/QueryManager.js:785:71
      at both (node_modules/@apollo/client/utilities/observables/asyncMap.js:22:31)
      at node_modules/@apollo/client/utilities/observables/asyncMap.js:11:72
      at Object.then (node_modules/@apollo/client/utilities/observables/asyncMap.js:11:24)
      at Object.error (node_modules/@apollo/client/utilities/observables/asyncMap.js:24:49)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at node_modules/@apollo/client/utilities/observables/iteration.js:7:68
          at Array.forEach (<anonymous>)
      at iterateObserversSafely (node_modules/@apollo/client/utilities/observables/iteration.js:7:25)
      at Object.error (node_modules/@apollo/client/utilities/observables/Concast.js:76:21)
      at notifySubscription (node_modules/zen-observable/lib/Observable.js:140:18)
      at onNotify (node_modules/zen-observable/lib/Observable.js:179:3)
      at SubscriptionObserver.error (node_modules/zen-observable/lib/Observable.js:240:7)
      at handleError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:170:14)
      at node_modules/@apollo/client/link/http/createHttpLink.js:145:17

    Cause:
    ServerError: Response not successful: Received status code 404

      at Object.throwServerError (node_modules/@apollo/client/link/utils/throwServerError.js:2:17)
      at throwServerError (node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:120:9)
      at node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js:176:48


  ● Cosmos 0.50 support › Is a cosmos 0.50 network

    height 19091812 is not available, lowest height is 30488670
    INFO: This most likely means the provided endpoint is a pruned node. An archive/full node is needed to access historical data

      501 |   blockArray: number[],
      502 | ): Promise<IBlock<BlockContent>[]> {
    > 503 |   const blocks = await fetchCosmosBlocksArray(
          |                  ^
      504 |     (height: number) => getBlockByHeightByRpc(api, height),
      505 |     blockArray,
      506 |   );

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 0)
          at async Promise.all (index 0)
      at fetchBlocksBatches (packages/node/src/utils/cosmos.ts:503:18)
      at Object.<anonymous> (packages/node/src/utils/cosmos.spec.ts:364:26)

  ● Cosmos 0.50 support › correctly has finalized block events instead of being/end block events

    height 19091812 is not available, lowest height is 30488670
    INFO: This most likely means the provided endpoint is a pruned node. An archive/full node is needed to access historical data

      501 |   blockArray: number[],
      502 | ): Promise<IBlock<BlockContent>[]> {
    > 503 |   const blocks = await fetchCosmosBlocksArray(
          |                  ^
      504 |     (height: number) => getBlockByHeightByRpc(api, height),
      505 |     blockArray,
      506 |   );

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 0)
          at async Promise.all (index 0)
      at fetchBlocksBatches (packages/node/src/utils/cosmos.ts:503:18)
      at Object.<anonymous> (packages/node/src/utils/cosmos.spec.ts:364:26)

  ● Cosmos 0.50 support › correctly parses events

    height 19091812 is not available, lowest height is 30488670
    INFO: This most likely means the provided endpoint is a pruned node. An archive/full node is needed to access historical data

      501 |   blockArray: number[],
      502 | ): Promise<IBlock<BlockContent>[]> {
    > 503 |   const blocks = await fetchCosmosBlocksArray(
          |                  ^
      504 |     (height: number) => getBlockByHeightByRpc(api, height),
      505 |     blockArray,
      506 |   );

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 0)
          at async Promise.all (index 0)
      at fetchBlocksBatches (packages/node/src/utils/cosmos.ts:503:18)
      at Object.<anonymous> (packages/node/src/utils/cosmos.spec.ts:364:26)

  ● Cosmos 0.50 support › Correctly wraps events not associated to a message

    height 19091812 is not available, lowest height is 30488670
    INFO: This most likely means the provided endpoint is a pruned node. An archive/full node is needed to access historical data

      501 |   blockArray: number[],
      502 | ): Promise<IBlock<BlockContent>[]> {
    > 503 |   const blocks = await fetchCosmosBlocksArray(
          |                  ^
      504 |     (height: number) => getBlockByHeightByRpc(api, height),
      505 |     blockArray,
      506 |   );

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 0)
          at async Promise.all (index 0)
      at fetchBlocksBatches (packages/node/src/utils/cosmos.ts:503:18)
      at Object.<anonymous> (packages/node/src/utils/cosmos.spec.ts:364:26)

  ● Cosmos 0.50 support › Can stringify a block

    height 19091812 is not available, lowest height is 30488670
    INFO: This most likely means the provided endpoint is a pruned node. An archive/full node is needed to access historical data

      501 |   blockArray: number[],
      502 | ): Promise<IBlock<BlockContent>[]> {
    > 503 |   const blocks = await fetchCosmosBlocksArray(
          |                  ^
      504 |     (height: number) => getBlockByHeightByRpc(api, height),
      505 |     blockArray,
      506 |   );

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 0)
          at async Promise.all (index 0)
      at fetchBlocksBatches (packages/node/src/utils/cosmos.ts:503:18)
      at Object.<anonymous> (packages/node/src/utils/cosmos.spec.ts:364:26)

  ● Cosmos 0.50 support › doesnt throw when a block contains ExtendedCommitInfo in the transactions

    height 19091812 is not available, lowest height is 30488670
    INFO: This most likely means the provided endpoint is a pruned node. An archive/full node is needed to access historical data

      501 |   blockArray: number[],
      502 | ): Promise<IBlock<BlockContent>[]> {
    > 503 |   const blocks = await fetchCosmosBlocksArray(
          |                  ^
      504 |     (height: number) => getBlockByHeightByRpc(api, height),
      505 |     blockArray,
      506 |   );

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 0)
          at async Promise.all (index 0)
      at fetchBlocksBatches (packages/node/src/utils/cosmos.ts:503:18)
      at Object.<anonymous> (packages/node/src/utils/cosmos.spec.ts:364:26)

  ● Failed transaction events › The block includes events from failed transactions

    expect(received).toBeDefined()

    Received: undefined

      518 |
      519 |     const tx = block.transactions.find((tx) => tx.hash === failedTx);
    > 520 |     expect(tx).toBeDefined();
          |                ^
      521 |
      522 |     const evts = block.events.filter((evt) => evt.tx.hash === failedTx);
      523 |     expect(evts.length).toBeGreaterThan(0);

      at Object.<anonymous> (packages/node/src/utils/cosmos.spec.ts:520:16)


  ● KyveApi › ensure bundleDetails

    expect(received).toEqual(expected) // deep equality

    - Expected  - 1
    + Received  + 1

    @@ -1,7 +1,7 @@
      Object {
    -   "bundle_summary": "150",
    +   "bundle_summary": "{\"merkle_root\":\"3de6043d2c909a48f412140f59f7356de6328367363aee726f591fe92300b72e\"}",
        "compression_id": "1",
        "data_hash": "a5915a350030e60224909c82c0c7058f7096d401202fb8a05724e059d89ff7a5",
        "finalized_at": Object {
          "height": "2589775",
          "timestamp": "2023-09-06T12:20:22Z",

      124 |   it('ensure bundleDetails', async () => {
      125 |     const bundleDetails = await (kyveApi as any).getBundleById(0);
    > 126 |     expect(bundleDetails).toEqual({
          |                           ^
      127 |       pool_id: '2',
      128 |       id: '0',
      129 |       storage_id: 'YLpTxtj_0ICoWq9HUEOx6VcIzKk8Qui1rnkhH4acbTU',

      at Object.<anonymous> (packages/node/src/utils/kyve/kyve.spec.ts:126:27)

  ● KyveApi › compare block info

    {"code":-32603,"message":"Internal error","data":"height 4282099 is not available, lowest height is 9342000"}

      342 |   it('compare block info', async () => {
      343 |     const height = 4282099;
    > 344 |     const tendermintBlockInfo = await tendermint.block(height);
          |                                 ^
      345 |     const [kyveBlockInfo] = await kyveApi.getBlockByHeight(height);
      346 |     expect(isEqual(tendermintBlockInfo, kyveBlockInfo)).toBe(true);
      347 |   });

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
      at Object.<anonymous> (packages/node/src/utils/kyve/kyve.spec.ts:344:33)

  ● KyveApi › able to wrap kyveBlock › wrapTransaction

    {"code":-32603,"message":"Internal error","data":"height 4326863 is not available, lowest height is 9342000"}

      505 |     beforeAll(async () => {
      506 |       const height = 4326863;
    > 507 |       [tendermintBlockInfo, tendermintBlockResult] = await Promise.all([
          |                                                      ^
      508 |         tendermint.block(height),
      509 |         tendermint.blockResults(height),
      510 |       ]);

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 1)
      at Object.<anonymous> (packages/node/src/utils/kyve/kyve.spec.ts:507:54)

  ● KyveApi › able to wrap kyveBlock › wrapMessages

    {"code":-32603,"message":"Internal error","data":"height 4326863 is not available, lowest height is 9342000"}

      505 |     beforeAll(async () => {
      506 |       const height = 4326863;
    > 507 |       [tendermintBlockInfo, tendermintBlockResult] = await Promise.all([
          |                                                      ^
      508 |         tendermint.block(height),
      509 |         tendermint.blockResults(height),
      510 |       ]);

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 1)
      at Object.<anonymous> (packages/node/src/utils/kyve/kyve.spec.ts:507:54)

  ● KyveApi › able to wrap kyveBlock › wrapBlock

    {"code":-32603,"message":"Internal error","data":"height 4326863 is not available, lowest height is 9342000"}

      505 |     beforeAll(async () => {
      506 |       const height = 4326863;
    > 507 |       [tendermintBlockInfo, tendermintBlockResult] = await Promise.all([
          |                                                      ^
      508 |         tendermint.block(height),
      509 |         tendermint.blockResults(height),
      510 |       ]);

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 1)
      at Object.<anonymous> (packages/node/src/utils/kyve/kyve.spec.ts:507:54)

  ● KyveApi › able to wrap kyveBlock › wrapEvents

    {"code":-32603,"message":"Internal error","data":"height 4326863 is not available, lowest height is 9342000"}

      505 |     beforeAll(async () => {
      506 |       const height = 4326863;
    > 507 |       [tendermintBlockInfo, tendermintBlockResult] = await Promise.all([
          |                                                      ^
      508 |         tendermint.block(height),
      509 |         tendermint.blockResults(height),
      510 |       ]);

      at HttpClient.execute (node_modules/@cosmjs/tendermint-rpc/src/rpcclients/httpclient.ts:48:13)
      at Comet38Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/comet38/comet38client.ts:346:20)
          at async Promise.all (index 1)
      at Object.<anonymous> (packages/node/src/utils/kyve/kyve.spec.ts:507:54)

Report generated by 🧪jest coverage report action from 8449585

@lorrod
Copy link

lorrod commented Aug 20, 2025

Hi! Could you take a look at this PR? It’s currently blocking the development of Cosmos SDK–based indexers: subquery/subql#2863

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.

Can't create basic Injective project
2 participants