@cosmjs/stargate
Advanced tools
Comparing version 0.24.0-alpha.23 to 0.24.0-alpha.24
@@ -31,4 +31,4 @@ import { Client as TendermintClient } from "@cosmjs/tendermint-rpc"; | ||
constructor(tmClient: TendermintClient); | ||
queryVerified(store: string, key: Uint8Array): Promise<Uint8Array>; | ||
queryRawProof(store: string, queryKey: Uint8Array): Promise<ProvenQuery>; | ||
queryVerified(store: string, key: Uint8Array, desiredHeight?: number): Promise<Uint8Array>; | ||
queryRawProof(store: string, queryKey: Uint8Array, desiredHeight?: number): Promise<ProvenQuery>; | ||
queryUnverified(path: string, request: Uint8Array): Promise<Uint8Array>; | ||
@@ -35,0 +35,0 @@ private getNextHeader; |
@@ -35,4 +35,4 @@ "use strict"; | ||
} | ||
async queryVerified(store, key) { | ||
const { height, proof, value } = await this.queryRawProof(store, key); | ||
async queryVerified(store, key, desiredHeight) { | ||
const { height, proof, value } = await this.queryRawProof(store, key, desiredHeight); | ||
const subProof = checkAndParseOp(proof.ops[0], "ics23:iavl", key); | ||
@@ -62,3 +62,3 @@ const storeProof = checkAndParseOp(proof.ops[1], "ics23:simple", encoding_1.toAscii(store)); | ||
} | ||
async queryRawProof(store, queryKey) { | ||
async queryRawProof(store, queryKey, desiredHeight) { | ||
var _a; | ||
@@ -71,2 +71,3 @@ const { key, value, height, proof, code, log } = await this.tmClient.abciQuery({ | ||
prove: true, | ||
height: desiredHeight, | ||
}); | ||
@@ -73,0 +74,0 @@ if (code) { |
@@ -63,3 +63,3 @@ "use strict"; | ||
const pubkey = launchpad_1.encodeSecp256k1Pubkey(accountFromSigner.pubkey); | ||
const accountFromChain = await this.getAccount(signerAddress); | ||
const accountFromChain = await this.getAccountUnverified(signerAddress); | ||
if (!accountFromChain) { | ||
@@ -66,0 +66,0 @@ throw new Error("Account not found"); |
{ | ||
"name": "@cosmjs/stargate", | ||
"version": "0.24.0-alpha.23", | ||
"version": "0.24.0-alpha.24", | ||
"description": "Utilities for Cosmos SDK 0.40", | ||
@@ -46,13 +46,13 @@ "contributors": [ | ||
"@confio/ics23": "^0.6.3", | ||
"@cosmjs/encoding": "^0.24.0-alpha.23", | ||
"@cosmjs/launchpad": "^0.24.0-alpha.23", | ||
"@cosmjs/math": "^0.24.0-alpha.23", | ||
"@cosmjs/proto-signing": "^0.24.0-alpha.23", | ||
"@cosmjs/stream": "^0.24.0-alpha.23", | ||
"@cosmjs/tendermint-rpc": "^0.24.0-alpha.23", | ||
"@cosmjs/utils": "^0.24.0-alpha.23", | ||
"@cosmjs/encoding": "^0.24.0-alpha.24", | ||
"@cosmjs/launchpad": "^0.24.0-alpha.24", | ||
"@cosmjs/math": "^0.24.0-alpha.24", | ||
"@cosmjs/proto-signing": "^0.24.0-alpha.24", | ||
"@cosmjs/stream": "^0.24.0-alpha.24", | ||
"@cosmjs/tendermint-rpc": "^0.24.0-alpha.24", | ||
"@cosmjs/utils": "^0.24.0-alpha.24", | ||
"long": "^4.0.0", | ||
"protobufjs": "~6.10.2" | ||
}, | ||
"gitHead": "52dc82bbe4799c2b4fcd1e69a81c9980ffcdc7c8" | ||
"gitHead": "15a3a9b83a2cfe3deae389128ede5e58e3041569" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2418785
34606
0