From 49ac1037b0963e035a3282bd573c8ebe92c832ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20E=2E=20F=2E=20Mota?= Date: Tue, 17 Oct 2023 18:40:02 -0300 Subject: [PATCH] Updated the Tendermint version --- package.json | 6 +++--- src/connectors/kujira/kujira.model.ts | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 104e3bfd1e..f7700d1046 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "test:scripts": "jest -i --verbose ./test-scripts/*.test.ts" }, "dependencies": { - "@cosmjs/proto-signing": "^0.30.1", - "@cosmjs/stargate": "^0.30.1", + "@cosmjs/proto-signing": "^0.31.1", + "@cosmjs/stargate": "^0.31.1", "@crocswap/sdk": "^2.4.5", "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/address": "5.7.0", @@ -80,7 +80,7 @@ "http-status-codes": "2.2.0", "immutable": "^4.2.4", "js-yaml": "^4.1.0", - "kujira.js": "^0.8.145", + "kujira.js": "0.9.6", "level": "^8.0.0", "lodash": "^4.17.21", "lru-cache": "^7.14.1", diff --git a/src/connectors/kujira/kujira.model.ts b/src/connectors/kujira/kujira.model.ts index ef09fcf570..96795e7fa9 100644 --- a/src/connectors/kujira/kujira.model.ts +++ b/src/connectors/kujira/kujira.model.ts @@ -154,7 +154,7 @@ import { DirectSecp256k1HdWallet, EncodeObject, } from '@cosmjs/proto-signing'; -import { HttpBatchClient, Tendermint34Client } from '@cosmjs/tendermint-rpc'; +import { HttpBatchClient, Tendermint37Client } from '@cosmjs/tendermint-rpc'; import { StdFee } from '@cosmjs/amino'; import { IndexedTx } from '@cosmjs/stargate/build/stargateclient'; import { BigNumber } from 'bignumber.js'; @@ -245,7 +245,7 @@ export class KujiraModel { */ // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - private tendermint34Client: Tendermint34Client; + private tendermint37Client: Tendermint37Client; /** * @@ -385,7 +385,7 @@ export class KujiraModel { this.kujiraGetHttpBatchClient(rpcEndpoint); - await this.kujiraGetTendermint34Client(); + await this.kujiraGetTendermint37Client(); this.kujiraGetKujiraQueryClient(); @@ -411,12 +411,12 @@ export class KujiraModel { private kujiraGetKujiraQueryClient() { this.kujiraQueryClient = kujiraQueryClient({ - client: this.tendermint34Client, + client: this.tendermint37Client, }); } - private async kujiraGetTendermint34Client() { - this.tendermint34Client = await Tendermint34Client.create( + private async kujiraGetTendermint37Client() { + this.tendermint37Client = await Tendermint37Client.create( this.httpBatchClient ); } @@ -1960,8 +1960,8 @@ export class KujiraModel { return JSON.parse(decryptedString); } - async toClient(endpoint: string): Promise<[Tendermint34Client, string]> { - const client = await Tendermint34Client.create( + async toClient(endpoint: string): Promise<[Tendermint37Client, string]> { + const client = await Tendermint37Client.create( new HttpBatchClient(endpoint, { dispatchInterval: 100, batchSizeLimit: 200,