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.25.0-alpha.3 to 0.25.0

3

build/multisignature.d.ts

@@ -1,3 +0,2 @@

import { StdFee } from "@cosmjs/amino";
import { MultisigThresholdPubkey } from "../../amino/build";
import { MultisigThresholdPubkey, StdFee } from "@cosmjs/amino";
import { CompactBitArray } from "./codec/cosmos/crypto/multisig/v1beta1/multisig";

@@ -4,0 +3,0 @@ import { TxRaw } from "./codec/cosmos/tx/v1beta1/tx";

@@ -7,6 +7,6 @@ "use strict";

exports.makeMultisignedTx = exports.makeCompactBitArray = void 0;
const amino_1 = require("@cosmjs/amino");
const encoding_1 = require("@cosmjs/encoding");
const proto_signing_1 = require("@cosmjs/proto-signing");
const long_1 = __importDefault(require("long"));
const build_1 = require("../../amino/build");
const multisig_1 = require("./codec/cosmos/crypto/multisig/v1beta1/multisig");

@@ -36,3 +36,3 @@ const signing_1 = require("./codec/cosmos/tx/signing/v1beta1/signing");

for (let i = 0; i < multisigPubkey.value.pubkeys.length; i++) {
const signerAddress = build_1.pubkeyToAddress(multisigPubkey.value.pubkeys[i], prefix);
const signerAddress = amino_1.pubkeyToAddress(multisigPubkey.value.pubkeys[i], prefix);
const signature = signatures.get(signerAddress);

@@ -39,0 +39,0 @@ if (signature) {

@@ -29,2 +29,22 @@ import { Tendermint34Client } from "@cosmjs/tendermint-rpc";

static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>): QueryClient & A & B & C & D & E & F & G & H;
/** Constructs a QueryClient with 9 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>): QueryClient & A & B & C & D & E & F & G & H & I;
/** Constructs a QueryClient with 10 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>): QueryClient & A & B & C & D & E & F & G & H & I & J;
/** Constructs a QueryClient with 11 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object, K extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>, setupExtensionK: QueryExtensionSetup<K>): QueryClient & A & B & C & D & E & F & G & H & I & J & K;
/** Constructs a QueryClient with 12 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object, K extends object, L extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>, setupExtensionK: QueryExtensionSetup<K>, setupExtensionL: QueryExtensionSetup<L>): QueryClient & A & B & C & D & E & F & G & H & I & J & K & L;
/** Constructs a QueryClient with 13 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object, K extends object, L extends object, M extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>, setupExtensionK: QueryExtensionSetup<K>, setupExtensionL: QueryExtensionSetup<L>, setupExtensionM: QueryExtensionSetup<M>): QueryClient & A & B & C & D & E & F & G & H & I & J & K & L & M;
/** Constructs a QueryClient with 14 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object, K extends object, L extends object, M extends object, N extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>, setupExtensionK: QueryExtensionSetup<K>, setupExtensionL: QueryExtensionSetup<L>, setupExtensionM: QueryExtensionSetup<M>, setupExtensionN: QueryExtensionSetup<N>): QueryClient & A & B & C & D & E & F & G & H & I & J & K & L & M & N;
/** Constructs a QueryClient with 15 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object, K extends object, L extends object, M extends object, N extends object, O extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>, setupExtensionK: QueryExtensionSetup<K>, setupExtensionL: QueryExtensionSetup<L>, setupExtensionM: QueryExtensionSetup<M>, setupExtensionN: QueryExtensionSetup<N>, setupExtensionO: QueryExtensionSetup<O>): QueryClient & A & B & C & D & E & F & G & H & I & J & K & L & M & N & O;
/** Constructs a QueryClient with 16 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object, K extends object, L extends object, M extends object, N extends object, O extends object, P extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>, setupExtensionK: QueryExtensionSetup<K>, setupExtensionL: QueryExtensionSetup<L>, setupExtensionM: QueryExtensionSetup<M>, setupExtensionN: QueryExtensionSetup<N>, setupExtensionO: QueryExtensionSetup<O>, setupExtensionP: QueryExtensionSetup<P>): QueryClient & A & B & C & D & E & F & G & H & I & J & K & L & M & N & O & P;
/** Constructs a QueryClient with 17 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object, K extends object, L extends object, M extends object, N extends object, O extends object, P extends object, Q extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>, setupExtensionK: QueryExtensionSetup<K>, setupExtensionL: QueryExtensionSetup<L>, setupExtensionM: QueryExtensionSetup<M>, setupExtensionN: QueryExtensionSetup<N>, setupExtensionO: QueryExtensionSetup<O>, setupExtensionP: QueryExtensionSetup<P>, setupExtensionQ: QueryExtensionSetup<Q>): QueryClient & A & B & C & D & E & F & G & H & I & J & K & L & M & N & O & P & Q;
/** Constructs a QueryClient with 18 extensions */
static withExtensions<A extends object, B extends object, C extends object, D extends object, E extends object, F extends object, G extends object, H extends object, I extends object, J extends object, K extends object, L extends object, M extends object, N extends object, O extends object, P extends object, Q extends object, R extends object>(tmClient: Tendermint34Client, setupExtensionA: QueryExtensionSetup<A>, setupExtensionB: QueryExtensionSetup<B>, setupExtensionC: QueryExtensionSetup<C>, setupExtensionD: QueryExtensionSetup<D>, setupExtensionE: QueryExtensionSetup<E>, setupExtensionF: QueryExtensionSetup<F>, setupExtensionG: QueryExtensionSetup<G>, setupExtensionH: QueryExtensionSetup<H>, setupExtensionI: QueryExtensionSetup<I>, setupExtensionJ: QueryExtensionSetup<J>, setupExtensionK: QueryExtensionSetup<K>, setupExtensionL: QueryExtensionSetup<L>, setupExtensionM: QueryExtensionSetup<M>, setupExtensionN: QueryExtensionSetup<N>, setupExtensionO: QueryExtensionSetup<O>, setupExtensionP: QueryExtensionSetup<P>, setupExtensionQ: QueryExtensionSetup<Q>, setupExtensionR: QueryExtensionSetup<R>): QueryClient & A & B & C & D & E & F & G & H & I & J & K & L & M & N & O & P & Q & R;
private readonly tmClient;

@@ -31,0 +51,0 @@ constructor(tmClient: Tendermint34Client);

@@ -11,2 +11,3 @@ "use strict";

const minimal_1 = __importDefault(require("protobufjs/minimal"));
const build_1 = require("../../proto-signing/build");
const aminotypes_1 = require("./aminotypes");

@@ -348,3 +349,3 @@ const tx_1 = require("./codec/cosmos/bank/v1beta1/tx");

utils_1.assert(searchResult, "Must find transaction");
const tx = tx_3.Tx.decode(searchResult.tx);
const tx = build_1.decodeTxRaw(searchResult.tx);
// From ModifyingDirectSecp256k1HdWallet

@@ -519,3 +520,3 @@ expect(tx.body.memo).toEqual("This was modified");

utils_1.assert(searchResult, "Must find transaction");
const tx = tx_3.Tx.decode(searchResult.tx);
const tx = build_1.decodeTxRaw(searchResult.tx);
// From ModifyingSecp256k1HdWallet

@@ -522,0 +523,0 @@ expect(tx.body.memo).toEqual("This was modified");

@@ -42,2 +42,16 @@ import { Tendermint34Client } from "@cosmjs/tendermint-rpc";

readonly rawLog: string;
/**
* Raw transaction bytes stored in Tendermint.
*
* If you hash this, you get the transaction hash (= transaction ID):
*
* ```js
* import { sha256 } from "@cosmjs/crypto";
* import { toHex } from "@cosmjs/encoding";
*
* const transactionId = toHex(sha256(indexTx.tx)).toUpperCase();
* ```
*
* Use `decodeTxRaw` from @cosmjs/proto-signing to decode this.
*/
readonly tx: Uint8Array;

@@ -44,0 +58,0 @@ readonly gasUsed: number;

@@ -6,2 +6,3 @@ "use strict";

const utils_1 = require("@cosmjs/utils");
const build_1 = require("../../proto-signing/build");
const tx_1 = require("./codec/cosmos/tx/v1beta1/tx");

@@ -161,3 +162,3 @@ const encodeobjects_1 = require("./encodeobjects");

for (const result of results) {
const tx = tx_1.Tx.decode(result.tx);
const tx = build_1.decodeTxRaw(result.tx);
const filteredMsgs = tx.body.messages.filter((msg) => {

@@ -186,3 +187,3 @@ if (!encodeobjects_1.isMsgSendEncodeObject(msg))

for (const result of results) {
const tx = tx_1.Tx.decode(result.tx);
const tx = build_1.decodeTxRaw(result.tx);
const filteredMsgs = tx.body.messages.filter((msg) => {

@@ -259,3 +260,3 @@ if (!encodeobjects_1.isMsgSendEncodeObject(msg))

for (const result of results) {
const tx = tx_1.Tx.decode(result.tx);
const tx = build_1.decodeTxRaw(result.tx);
const msg = testutils_spec_1.fromOneElementArray(tx.body.messages);

@@ -262,0 +263,0 @@ expect(msg.typeUrl).toEqual("/cosmos.bank.v1beta1.MsgSend");

{
"name": "@cosmjs/stargate",
"version": "0.25.0-alpha.3",
"version": "0.25.0",
"description": "Utilities for Cosmos SDK 0.40",

@@ -27,3 +27,3 @@ "contributors": [

"format": "prettier --write --loglevel warn \"./src/**/*.ts\"",
"format-text": "prettier --write --prose-wrap always --print-width 80 \"./*.md\"",
"format-text": "prettier --write \"./*.md\"",
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"",

@@ -47,13 +47,13 @@ "lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix",

"@confio/ics23": "^0.6.3",
"@cosmjs/amino": "^0.25.0-alpha.3",
"@cosmjs/encoding": "^0.25.0-alpha.3",
"@cosmjs/math": "^0.25.0-alpha.3",
"@cosmjs/proto-signing": "^0.25.0-alpha.3",
"@cosmjs/stream": "^0.25.0-alpha.3",
"@cosmjs/tendermint-rpc": "^0.25.0-alpha.3",
"@cosmjs/utils": "^0.25.0-alpha.3",
"@cosmjs/amino": "^0.25.0",
"@cosmjs/encoding": "^0.25.0",
"@cosmjs/math": "^0.25.0",
"@cosmjs/proto-signing": "^0.25.0",
"@cosmjs/stream": "^0.25.0",
"@cosmjs/tendermint-rpc": "^0.25.0",
"@cosmjs/utils": "^0.25.0",
"long": "^4.0.0",
"protobufjs": "~6.10.2"
},
"gitHead": "1471bf018fd89c162dd334d92a6c79a270975e70"
"gitHead": "1a396b8e7a0529cb1e5fad2e1b2a1cffd73da0cb"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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