Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cosmjs/stargate

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmjs/stargate - npm Package Compare versions

Comparing version 0.24.0-alpha.23 to 0.24.0-alpha.24

4

build/queries/queryclient.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc