Socket
Socket
Sign inDemoInstall

@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.11 to 0.24.0-alpha.12

build/aminotypes.js

7

build/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.SigningStargateClient = exports.StargateClient = exports.isBroadcastTxSuccess = exports.isBroadcastTxFailure = exports.coinFromProto = exports.assertIsBroadcastTxSuccess = exports.accountFromProto = exports.setupIbcExtension = exports.setupBankExtension = exports.setupAuthExtension = exports.QueryClient = exports.parseRawLog = exports.getMsgTypeUrl = exports.getMsgType = exports.codec = void 0;
exports.SigningStargateClient = exports.StargateClient = exports.isBroadcastTxSuccess = exports.isBroadcastTxFailure = exports.coinFromProto = exports.assertIsBroadcastTxSuccess = exports.accountFromProto = exports.setupIbcExtension = exports.setupBankExtension = exports.setupAuthExtension = exports.QueryClient = exports.parseRawLog = exports.AminoTypes = exports.codec = void 0;
exports.codec = __importStar(require("./codec"));
var encoding_1 = require("./encoding");
Object.defineProperty(exports, "getMsgType", { enumerable: true, get: function () { return encoding_1.getMsgType; } });
Object.defineProperty(exports, "getMsgTypeUrl", { enumerable: true, get: function () { return encoding_1.getMsgTypeUrl; } });
var aminotypes_1 = require("./aminotypes");
Object.defineProperty(exports, "AminoTypes", { enumerable: true, get: function () { return aminotypes_1.AminoTypes; } });
var logs_1 = require("./logs");

@@ -29,0 +28,0 @@ Object.defineProperty(exports, "parseRawLog", { enumerable: true, get: function () { return logs_1.parseRawLog; } });

@@ -10,4 +10,4 @@ "use strict";

const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc");
const aminotypes_1 = require("./aminotypes");
const codec_1 = require("./codec");
const encoding_2 = require("./encoding");
const stargateclient_1 = require("./stargateclient");

@@ -20,2 +20,3 @@ const { TxRaw } = codec_1.cosmos.tx.v1beta1;

super(tmClient);
this.aminoTypes = new aminotypes_1.AminoTypes();
const { registry = new proto_signing_1.Registry(), gasPrice = defaultGasPrice, gasLimits = defaultGasLimits } = options;

@@ -81,3 +82,3 @@ this.fees = launchpad_1.buildFeeTable(gasPrice, defaultGasLimits, gasLimits);

const msgs = messages.map((msg) => ({
type: encoding_2.getMsgType(msg.typeUrl),
type: this.aminoTypes.toAmino(msg.typeUrl),
value: msg.value,

@@ -89,3 +90,3 @@ }));

messages: signed.msgs.map((msg) => ({
typeUrl: encoding_2.getMsgTypeUrl(msg.type),
typeUrl: this.aminoTypes.fromAmino(msg.type),
value: msg.value,

@@ -92,0 +93,0 @@ })),

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

async txsQuery(query) {
const params = {
query: query,
};
const results = await this.tmClient.txSearchAll(params);
const results = await this.tmClient.txSearchAll({ query: query });
return results.txs.map((tx) => {

@@ -202,0 +199,0 @@ return {

{
"name": "@cosmjs/stargate",
"version": "0.24.0-alpha.11",
"version": "0.24.0-alpha.12",
"description": "Utilities for Cosmos SDK 0.40",

@@ -51,13 +51,13 @@ "contributors": [

"@confio/ics23": "^0.6.3",
"@cosmjs/encoding": "^0.24.0-alpha.11",
"@cosmjs/launchpad": "^0.24.0-alpha.11",
"@cosmjs/math": "^0.24.0-alpha.11",
"@cosmjs/proto-signing": "^0.24.0-alpha.11",
"@cosmjs/stream": "^0.24.0-alpha.11",
"@cosmjs/tendermint-rpc": "^0.24.0-alpha.11",
"@cosmjs/utils": "^0.24.0-alpha.11",
"@cosmjs/encoding": "^0.24.0-alpha.12",
"@cosmjs/launchpad": "^0.24.0-alpha.12",
"@cosmjs/math": "^0.24.0-alpha.12",
"@cosmjs/proto-signing": "^0.24.0-alpha.12",
"@cosmjs/stream": "^0.24.0-alpha.12",
"@cosmjs/tendermint-rpc": "^0.24.0-alpha.12",
"@cosmjs/utils": "^0.24.0-alpha.12",
"long": "^4.0.0",
"protobufjs": "~6.10.2"
},
"gitHead": "858bd2e08322fa3304fdd94bfd4f055f20671d6f"
"gitHead": "fbf5d412c44fa3487128a7967035f97ee45c6b8c"
}
export * as codec from "./codec";
export { getMsgType, getMsgTypeUrl } from "./encoding";
export { AminoTypes } from "./aminotypes";
export { parseRawLog } from "./logs";

@@ -4,0 +4,0 @@ export {

@@ -18,2 +18,3 @@ import { Coin, CosmosFeeTable, GasLimits, GasPrice, StdFee } from "@cosmjs/launchpad";

private readonly signer;
private readonly aminoTypes;
static connectWithWallet(

@@ -20,0 +21,0 @@ endpoint: string,

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