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

@cosmjs/tendermint-rpc

Package Overview
Dependencies
Maintainers
2
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmjs/tendermint-rpc - npm Package Compare versions

Comparing version 0.28.12-0 to 0.28.13

build/addresses.spec.d.ts

10

build/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -50,8 +46,4 @@ if (k2 === undefined) k2 = k;

Object.defineProperty(exports, "Tendermint34Client", { enumerable: true, get: function () { return tendermint34_2.Tendermint34Client; } });
// Tendermint 0.35 support is not public. The implementation may break or be removed at any point in time.
// See https://github.com/cosmos/cosmjs/issues/1225 for more context.
// export * as tendermint35 from "./tendermint35";
// export { Tendermint35Client } from "./tendermint35";
var types_1 = require("./types");
Object.defineProperty(exports, "BlockIdFlag", { enumerable: true, get: function () { return types_1.BlockIdFlag; } });
//# sourceMappingURL=index.js.map
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -29,3 +25,2 @@ if (k2 === undefined) k2 = k;

const encoding_1 = require("@cosmjs/encoding");
const inthelpers_1 = require("../../inthelpers");
const jsonrpc_1 = require("../../jsonrpc");

@@ -36,3 +31,3 @@ const encodings_1 = require("../encodings");

return {
height: (0, encodings_1.may)(inthelpers_1.smallIntToApi, param.height),
height: (0, encodings_1.may)(encodings_1.Integer.encode, param.height),
};

@@ -42,4 +37,4 @@ }

return {
minHeight: (0, encodings_1.may)(inthelpers_1.smallIntToApi, param.minHeight),
maxHeight: (0, encodings_1.may)(inthelpers_1.smallIntToApi, param.maxHeight),
minHeight: (0, encodings_1.may)(encodings_1.Integer.encode, param.minHeight),
maxHeight: (0, encodings_1.may)(encodings_1.Integer.encode, param.maxHeight),
};

@@ -50,4 +45,4 @@ }

query: params.query,
page: (0, encodings_1.may)(inthelpers_1.smallIntToApi, params.page),
per_page: (0, encodings_1.may)(inthelpers_1.smallIntToApi, params.per_page),
page: (0, encodings_1.may)(encodings_1.Integer.encode, params.page),
per_page: (0, encodings_1.may)(encodings_1.Integer.encode, params.per_page),
order_by: params.order_by,

@@ -60,3 +55,3 @@ };

data: (0, encoding_1.toHex)(params.data),
height: (0, encodings_1.may)(inthelpers_1.smallIntToApi, params.height),
height: (0, encodings_1.may)(encodings_1.Integer.encode, params.height),
prove: params.prove,

@@ -80,4 +75,4 @@ };

prove: params.prove,
page: (0, encodings_1.may)(inthelpers_1.smallIntToApi, params.page),
per_page: (0, encodings_1.may)(inthelpers_1.smallIntToApi, params.per_page),
page: (0, encodings_1.may)(encodings_1.Integer.encode, params.page),
per_page: (0, encodings_1.may)(encodings_1.Integer.encode, params.per_page),
order_by: params.order_by,

@@ -88,5 +83,5 @@ };

return {
height: (0, encodings_1.may)(inthelpers_1.smallIntToApi, params.height),
page: (0, encodings_1.may)(inthelpers_1.smallIntToApi, params.page),
per_page: (0, encodings_1.may)(inthelpers_1.smallIntToApi, params.per_page),
height: (0, encodings_1.may)(encodings_1.Integer.encode, params.height),
page: (0, encodings_1.may)(encodings_1.Integer.encode, params.page),
per_page: (0, encodings_1.may)(encodings_1.Integer.encode, params.per_page),
};

@@ -93,0 +88,0 @@ }

@@ -18,3 +18,3 @@ import { JsonRpcSuccessResponse } from "@cosmjs/json-rpc";

/** base64 encoded */
readonly value?: string | null;
readonly value: string;
}

@@ -21,0 +21,0 @@ interface RpcEvent {

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

const dates_1 = require("../../dates");
const inthelpers_1 = require("../../inthelpers");
const types_1 = require("../../types");

@@ -16,3 +15,3 @@ const encodings_1 = require("../encodings");

data: data.data,
lastBlockHeight: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, data.last_block_height),
lastBlockHeight: (0, encodings_1.may)(encodings_1.Integer.parse, data.last_block_height),
lastBlockAppHash: (0, encodings_1.may)(encoding_1.fromBase64, data.last_block_app_hash),

@@ -31,20 +30,16 @@ };

function decodeAbciQuery(data) {
var _a, _b, _c, _d;
return {
key: (0, encoding_1.fromBase64)((0, encodings_1.assertString)((_a = data.key) !== null && _a !== void 0 ? _a : "")),
value: (0, encoding_1.fromBase64)((0, encodings_1.assertString)((_b = data.value) !== null && _b !== void 0 ? _b : "")),
key: (0, encoding_1.fromBase64)((0, encodings_1.optional)(data.key, "")),
value: (0, encoding_1.fromBase64)((0, encodings_1.optional)(data.value, "")),
proof: (0, encodings_1.may)(decodeQueryProof, data.proofOps),
height: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, data.height),
code: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, data.code),
codespace: (0, encodings_1.assertString)((_c = data.codespace) !== null && _c !== void 0 ? _c : ""),
index: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, data.index),
height: (0, encodings_1.may)(encodings_1.Integer.parse, data.height),
code: (0, encodings_1.may)(encodings_1.Integer.parse, data.code),
index: (0, encodings_1.may)(encodings_1.Integer.parse, data.index),
log: data.log,
info: (0, encodings_1.assertString)((_d = data.info) !== null && _d !== void 0 ? _d : ""),
};
}
function decodeAttribute(attribute) {
var _a;
return {
key: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(attribute.key)),
value: (0, encoding_1.fromBase64)((0, encodings_1.assertString)((_a = attribute.value) !== null && _a !== void 0 ? _a : "")),
value: (0, encoding_1.fromBase64)((0, encodings_1.optional)(attribute.value, "")),
};

@@ -66,11 +61,10 @@ }

function decodeTxData(data) {
var _a, _b, _c;
return {
code: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNumber)((_a = data.code) !== null && _a !== void 0 ? _a : 0)),
codespace: data.codespace,
code: encodings_1.Integer.parse((0, encodings_1.assertNumber)((0, encodings_1.optional)(data.code, 0))),
codeSpace: data.codespace,
log: data.log,
data: (0, encodings_1.may)(encoding_1.fromBase64, data.data),
events: data.events ? decodeEvents(data.events) : [],
gasWanted: (0, inthelpers_1.apiToSmallInt)((_b = data.gas_wanted) !== null && _b !== void 0 ? _b : "0"),
gasUsed: (0, inthelpers_1.apiToSmallInt)((_c = data.gas_used) !== null && _c !== void 0 ? _c : "0"),
gasWanted: encodings_1.Integer.parse((0, encodings_1.optional)(data.gas_wanted, "0")),
gasUsed: encodings_1.Integer.parse((0, encodings_1.optional)(data.gas_used, "0")),
};

@@ -114,4 +108,4 @@ }

return {
maxBytes: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.max_bytes)),
maxGas: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.max_gas)),
maxBytes: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.max_bytes)),
maxGas: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.max_gas)),
};

@@ -121,4 +115,4 @@ }

return {
maxAgeNumBlocks: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.max_age_num_blocks)),
maxAgeDuration: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.max_age_duration)),
maxAgeNumBlocks: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.max_age_num_blocks)),
maxAgeDuration: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.max_age_duration)),
};

@@ -136,3 +130,3 @@ }

pubkey: decodePubkey((0, encodings_1.assertObject)(data.pub_key)),
votingPower: (0, inthelpers_1.apiToBigInt)((_a = data.power) !== null && _a !== void 0 ? _a : "0"),
votingPower: encodings_1.Integer.parse((_a = data.power) !== null && _a !== void 0 ? _a : 0),
};

@@ -143,3 +137,3 @@ }

return {
height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.height)),
height: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.height)),
results: (data.txs_results || []).map(decodeTxData),

@@ -164,4 +158,4 @@ validatorUpdates: (data.validator_updates || []).map(decodeValidatorUpdate),

return {
block: (0, inthelpers_1.apiToSmallInt)(data.block),
app: (0, inthelpers_1.apiToSmallInt)((_a = data.app) !== null && _a !== void 0 ? _a : 0),
block: encodings_1.Integer.parse(data.block),
app: encodings_1.Integer.parse((_a = data.app) !== null && _a !== void 0 ? _a : 0),
};

@@ -173,3 +167,3 @@ }

chainId: (0, encodings_1.assertNotEmpty)(data.chain_id),
height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.height)),
height: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.height)),
time: (0, dates_1.fromRfc3339WithNanoseconds)((0, encodings_1.assertNotEmpty)(data.time)),

@@ -193,5 +187,5 @@ // When there is no last block ID (i.e. this block's height is 1), we get an empty structure like this:

blockId: decodeBlockId(data.block_id),
blockSize: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.block_size)),
blockSize: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.block_size)),
header: decodeHeader(data.header),
numTxs: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.num_txs)),
numTxs: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.num_txs)),
};

@@ -201,3 +195,3 @@ }

return {
lastHeight: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.last_height)),
lastHeight: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.last_height)),
blockMetas: (0, encodings_1.assertArray)(data.block_metas).map(decodeBlockMeta),

@@ -214,3 +208,3 @@ };

return {
height: (0, inthelpers_1.apiToSmallInt)(data.height),
height: encodings_1.Integer.parse(data.height),
hash: (0, encoding_1.fromHex)((0, encodings_1.assertNotEmpty)(data.hash)),

@@ -246,4 +240,4 @@ checkTx: decodeTxData((0, encodings_1.assertObject)(data.check_tx)),

blockId: decodeBlockId((0, encodings_1.assertObject)(data.block_id)),
height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.height)),
round: (0, inthelpers_1.apiToSmallInt)(data.round),
height: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.height)),
round: encodings_1.Integer.parse(data.round),
signatures: (0, encodings_1.assertArray)(data.signatures).map(decodeCommitSignature),

@@ -263,3 +257,3 @@ };

pubkey: decodePubkey((0, encodings_1.assertObject)(data.pub_key)),
votingPower: (0, inthelpers_1.apiToBigInt)((0, encodings_1.assertNotEmpty)(data.power)),
votingPower: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.power)),
};

@@ -281,5 +275,5 @@ }

pubkey: decodePubkey((0, encodings_1.assertObject)(data.pub_key)),
votingPower: (0, inthelpers_1.apiToBigInt)((0, encodings_1.assertNotEmpty)(data.voting_power)),
votingPower: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.voting_power)),
address: (0, encoding_1.fromHex)((0, encodings_1.assertNotEmpty)(data.address)),
proposerPriority: data.proposer_priority ? (0, inthelpers_1.apiToSmallInt)(data.proposer_priority) : undefined,
proposerPriority: data.proposer_priority ? encodings_1.Integer.parse(data.proposer_priority) : undefined,
};

@@ -298,5 +292,5 @@ }

protocolVersion: {
app: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.protocol_version.app)),
block: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.protocol_version.block)),
p2p: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.protocol_version.p2p)),
app: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.protocol_version.app)),
block: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.protocol_version.block)),
p2p: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.protocol_version.p2p)),
},

@@ -310,3 +304,3 @@ };

latestBlockTime: (0, dates_1.fromRfc3339WithNanoseconds)((0, encodings_1.assertNotEmpty)(data.latest_block_time)),
latestBlockHeight: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.latest_block_height)),
latestBlockHeight: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.latest_block_height)),
catchingUp: (0, encodings_1.assertBoolean)(data.catching_up),

@@ -327,4 +321,4 @@ };

proof: {
total: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.proof.total)),
index: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.proof.index)),
total: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.proof.total)),
index: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.proof.index)),
leafHash: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.proof.leaf_hash)),

@@ -339,4 +333,4 @@ aunts: (0, encodings_1.assertArray)(data.proof.aunts).map(encoding_1.fromBase64),

result: decodeTxData((0, encodings_1.assertObject)(data.tx_result)),
height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.height)),
index: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNumber)(data.index)),
height: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.height)),
index: encodings_1.Integer.parse((0, encodings_1.assertNumber)(data.index)),
hash: (0, encoding_1.fromHex)((0, encodings_1.assertNotEmpty)(data.hash)),

@@ -348,3 +342,3 @@ proof: (0, encodings_1.may)(decodeTxProof, data.proof),

return {
totalCount: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.total_count)),
totalCount: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.total_count)),
txs: (0, encodings_1.assertArray)(data.txs).map(decodeTxResponse),

@@ -359,4 +353,4 @@ };

result: decodeTxData(data.result),
height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.height)),
index: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, data.index),
height: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.height)),
index: (0, encodings_1.may)(encodings_1.Integer.parse, data.index),
};

@@ -366,6 +360,6 @@ }

return {
blockHeight: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.block_height)),
blockHeight: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.block_height)),
validators: (0, encodings_1.assertArray)(data.validators).map(decodeValidatorInfo),
count: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.count)),
total: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.total)),
count: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.count)),
total: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.total)),
};

@@ -394,3 +388,3 @@ }

return {
totalCount: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.total_count)),
totalCount: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.total_count)),
blocks: (0, encodings_1.assertArray)(data.blocks).map(decodeBlockResponse),

@@ -401,4 +395,4 @@ };

return {
total: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.total)),
totalBytes: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(data.total_bytes)),
total: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.total)),
totalBytes: encodings_1.Integer.parse((0, encodings_1.assertNotEmpty)(data.total_bytes)),
};

@@ -405,0 +399,0 @@ }

@@ -54,6 +54,11 @@ import { ReadonlyDateWithNanoseconds } from "../dates";

export declare function assertNotEmpty<T>(value: T): T;
export declare function optional<T>(value: T | null | undefined, fallback: T): T;
export declare function may<T, U>(transform: (val: T) => U, value: T | null | undefined): U | undefined;
export declare function dictionaryToStringMap(obj: Record<string, unknown>): Map<string, string>;
export declare class Integer {
static parse(input: string | number): number;
static encode(num: number): string;
}
export declare function encodeString(s: string): Uint8Array;
export declare function encodeUvarint(n: number): Uint8Array;
export declare function encodeInt(n: number): Uint8Array;
export declare function encodeTime(time: ReadonlyDateWithNanoseconds): Uint8Array;

@@ -60,0 +65,0 @@ export declare function encodeBytes(bytes: Uint8Array): Uint8Array;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.encodeBlockId = exports.encodeVersion = exports.encodeBytes = exports.encodeTime = exports.encodeUvarint = exports.encodeString = exports.dictionaryToStringMap = exports.may = exports.assertNotEmpty = exports.assertObject = exports.assertArray = exports.assertNumber = exports.assertString = exports.assertBoolean = exports.assertSet = void 0;
exports.encodeBlockId = exports.encodeVersion = exports.encodeBytes = exports.encodeTime = exports.encodeInt = exports.encodeString = exports.Integer = exports.dictionaryToStringMap = exports.may = exports.optional = exports.assertNotEmpty = exports.assertObject = exports.assertArray = exports.assertNumber = exports.assertString = exports.assertBoolean = exports.assertSet = void 0;
const encoding_1 = require("@cosmjs/encoding");
const math_1 = require("@cosmjs/math");
/**

@@ -116,2 +117,7 @@ * A runtime checker that ensures a given value is set (i.e. not undefined or null)

exports.assertNotEmpty = assertNotEmpty;
// optional uses the value or provides a default
function optional(value, fallback) {
return value === undefined || value === null ? fallback : value;
}
exports.optional = optional;
// may will run the transform if value is defined, otherwise returns undefined

@@ -134,2 +140,12 @@ function may(transform, value) {

exports.dictionaryToStringMap = dictionaryToStringMap;
class Integer {
static parse(input) {
const asInt = typeof input === "number" ? new math_1.Int53(input) : math_1.Int53.fromString(input);
return asInt.toNumber();
}
static encode(num) {
return new math_1.Int53(num).toString();
}
}
exports.Integer = Integer;
// Encodings needed for hashing block headers

@@ -144,10 +160,7 @@ // Several of these functions are inspired by https://github.com/nomic-io/js-tendermint/blob/tendermint-0.30/src/

// See https://github.com/tendermint/go-amino/blob/v0.15.0/encoder.go#L79-L87
function encodeUvarint(n) {
return n >= 0x80
? // eslint-disable-next-line no-bitwise
Uint8Array.from([(n & 0xff) | 0x80, ...encodeUvarint(n >> 7)])
: // eslint-disable-next-line no-bitwise
Uint8Array.from([n & 0xff]);
function encodeInt(n) {
// eslint-disable-next-line no-bitwise
return n >= 0x80 ? Uint8Array.from([(n & 0xff) | 0x80, ...encodeInt(n >> 7)]) : Uint8Array.from([n & 0xff]);
}
exports.encodeUvarint = encodeUvarint;
exports.encodeInt = encodeInt;
// See https://github.com/tendermint/go-amino/blob/v0.15.0/encoder.go#L134-L178

@@ -157,5 +170,5 @@ function encodeTime(time) {

const seconds = Math.floor(milliseconds / 1000);
const secondsArray = seconds ? [0x08, ...encodeUvarint(seconds)] : new Uint8Array();
const secondsArray = seconds ? [0x08, ...encodeInt(seconds)] : new Uint8Array();
const nanoseconds = (time.nanoseconds || 0) + (milliseconds % 1000) * 1e6;
const nanosecondsArray = nanoseconds ? [0x10, ...encodeUvarint(nanoseconds)] : new Uint8Array();
const nanosecondsArray = nanoseconds ? [0x10, ...encodeInt(nanoseconds)] : new Uint8Array();
return Uint8Array.from([...secondsArray, ...nanosecondsArray]);

@@ -173,6 +186,4 @@ }

function encodeVersion(version) {
const blockArray = version.block
? Uint8Array.from([0x08, ...encodeUvarint(version.block)])
: new Uint8Array();
const appArray = version.app ? Uint8Array.from([0x10, ...encodeUvarint(version.app)]) : new Uint8Array();
const blockArray = version.block ? Uint8Array.from([0x08, ...encodeInt(version.block)]) : new Uint8Array();
const appArray = version.app ? Uint8Array.from([0x10, ...encodeInt(version.app)]) : new Uint8Array();
return Uint8Array.from([...blockArray, ...appArray]);

@@ -179,0 +190,0 @@ }

@@ -52,3 +52,3 @@ "use strict";

(0, encodings_1.encodeString)(header.chainId),
(0, encodings_1.encodeUvarint)(header.height),
(0, encodings_1.encodeInt)(header.height),
(0, encodings_1.encodeTime)(header.time),

@@ -55,0 +55,0 @@ (0, encodings_1.encodeBlockId)(header.lastBlockId),

@@ -25,5 +25,3 @@ import { ReadonlyDate } from "readonly-date";

readonly code?: number;
readonly codespace: string;
readonly log?: string;
readonly info: string;
}

@@ -143,3 +141,3 @@ export interface BlockResponse {

readonly code: number;
readonly codespace?: string;
readonly codeSpace?: string;
readonly log?: string;

@@ -258,5 +256,2 @@ readonly data?: Uint8Array;

readonly network: string;
/**
* The Tendermint version. Can be empty (see https://github.com/cosmos/cosmos-sdk/issues/7963).
*/
readonly version: string;

@@ -282,3 +277,3 @@ readonly channels: string;

readonly pubkey?: ValidatorPubkey;
readonly votingPower: bigint;
readonly votingPower: number;
readonly proposerPriority?: number;

@@ -288,3 +283,3 @@ }

readonly pubkey: ValidatorPubkey;
readonly votingPower: bigint;
readonly votingPower: number;
}

@@ -291,0 +286,0 @@ export interface ConsensusParams {

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -10,0 +6,0 @@ if (k2 === undefined) k2 = k;

{
"name": "@cosmjs/tendermint-rpc",
"version": "0.28.12-0",
"version": "0.28.13",
"description": "Tendermint RPC clients",

@@ -45,9 +45,9 @@ "contributors": [

"dependencies": {
"@cosmjs/crypto": "0.28.12-0",
"@cosmjs/encoding": "0.28.12-0",
"@cosmjs/json-rpc": "0.28.12-0",
"@cosmjs/math": "0.28.12-0",
"@cosmjs/socket": "0.28.12-0",
"@cosmjs/stream": "0.28.12-0",
"@cosmjs/utils": "0.28.12-0",
"@cosmjs/crypto": "0.28.13",
"@cosmjs/encoding": "0.28.13",
"@cosmjs/json-rpc": "0.28.13",
"@cosmjs/math": "0.28.13",
"@cosmjs/socket": "0.28.13",
"@cosmjs/stream": "0.28.13",
"@cosmjs/utils": "0.28.13",
"axios": "^0.21.2",

@@ -60,3 +60,3 @@ "readonly-date": "^1.0.0",

"@types/eslint-plugin-prettier": "^3",
"@types/jasmine": "^4",
"@types/jasmine": "^3.8",
"@types/karma-firefox-launcher": "^2",

@@ -76,3 +76,3 @@ "@types/karma-jasmine": "^4",

"glob": "^7.1.6",
"jasmine": "^4",
"jasmine": "^3.99",
"jasmine-spec-reporter": "^6",

@@ -82,3 +82,3 @@ "karma": "^6.3.14",

"karma-firefox-launcher": "^2.1.0",
"karma-jasmine": "^5",
"karma-jasmine": "^4.0.1",
"karma-jasmine-html-reporter": "^1.5.4",

@@ -91,7 +91,6 @@ "nyc": "^15.1.0",

"typedoc": "^0.22",
"typescript": "~4.6",
"typescript": "~4.4",
"webpack": "^5.32.0",
"webpack-cli": "^4.6.0"
},
"stableVersion": "0.28.11"
}
}

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

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