Skip to content

Commit

Permalink
refactor(api): uses same peer deps versions (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Apr 22, 2024
1 parent fc0057a commit 868d61a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 201 deletions.
238 changes: 40 additions & 198 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@cosmjs/launchpad": "^0.27.0",
"@cosmjs/proto-signing": "^0.28.11",
"@cosmjs/stargate": "^0.28.0",
"@cosmjs/tendermint-rpc": "^0.25.4",
"@cosmjs/tendermint-rpc": "^0.28.11",
"asn1js": "^2.1.1",
"atob": "^2.1.2",
"axios": "^0.24.0",
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";
import { createProtobufRpcClient, GasPrice, QueryClient, SigningStargateClient, SigningStargateClientOptions } from "@cosmjs/stargate";
import { getAkashTypeRegistry } from "../stargate";
import { OfflineSigner, Registry } from "@cosmjs/proto-signing";
import { Tendermint34Client } from "@cosmjs/tendermint-rpc";

export async function getRpc(endpoint: string) {
return getQueryClient(endpoint);
}

export async function getQueryClient(endpoint: string) {
const tmClient: any = await Tendermint34Client.connect(endpoint);
const tmClient = await Tendermint34Client.connect(endpoint);
const queryClient = new QueryClient(tmClient);
return createProtobufRpcClient(queryClient);
}
Expand Down

0 comments on commit 868d61a

Please sign in to comment.