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

Sync deps, start work on strict ts #278

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Sync deps, start work on strict ts #278

merged 1 commit into from
Aug 12, 2024

Conversation

stwiname
Copy link
Contributor

Description

Updates deps and applies any relevant changes, including support for endpoint configs. enable strict ts on types and common-cosmos.

Fixes # (issue)

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

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

Copy link

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🔴 Statements 43.52% 2304/5294
🟡 Branches 76.86% 289/376
🔴 Functions 51.26% 122/238
🔴 Lines 43.52% 2304/5294

Test suite run failed

Failed tests: 8/71. Failed suites: 2/8.
  ● Dictionary Queries › Message Filter Queries › Basic wasm filter works

    ApolloError: Response not successful: Received status code 500

      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 500

      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 500

      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 500

      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 500

      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 500

      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


  ● KyveApi › compare block info

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

      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 Tendermint37Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/tendermint37/tendermint37client.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 5823001"}

      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 Tendermint37Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/tendermint37/tendermint37client.ts:346:20)
          at async Promise.all (index 0)
      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 5823001"}

      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 Tendermint37Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/tendermint37/tendermint37client.ts:346:20)
          at async Promise.all (index 0)
      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 5823001"}

      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 Tendermint37Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/tendermint37/tendermint37client.ts:346:20)
          at async Promise.all (index 0)
      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 5823001"}

      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 Tendermint37Client.doCall (node_modules/@cosmjs/tendermint-rpc/src/tendermint37/tendermint37client.ts:346:20)
          at async Promise.all (index 0)
      at Object.<anonymous> (packages/node/src/utils/kyve/kyve.spec.ts:507:54)

Report generated by 🧪jest coverage report action from c35f729

@stwiname stwiname merged commit e77a555 into main Aug 12, 2024
2 of 3 checks passed
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.

2 participants