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

@cosmjs/stargate

Package Overview
Dependencies
Maintainers
3
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.26.2 to 0.26.3

5

build/queries/auth.d.ts

@@ -13,2 +13,7 @@ import { Any } from "cosmjs-types/google/protobuf/any";

readonly account: (address: string) => Promise<Any | null>;
/**
* @deprecated Verified queries are not supported with Cosmos SDK 0.44+.
* See "Known limitations" in README.md.
* Will be rmoved in CosmJS 0.27 (https://github.com/cosmos/cosmjs/pull/910).
*/
readonly verified: {

@@ -15,0 +20,0 @@ /**

6

build/queries/auth.spec.js

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

it("works for unused account", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42(); // Not supported with 0.44, see "Known limitations" in README.md
const [client, tmClient] = await makeClientWithAuth(testutils_spec_1.simapp.tendermintUrl);

@@ -75,3 +75,3 @@ const account = await client.auth.verified.account(testutils_spec_1.unused.address);

it("works for account with pubkey and non-zero sequence", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42(); // Not supported with 0.44, see "Known limitations" in README.md
const [client, tmClient] = await makeClientWithAuth(testutils_spec_1.simapp.tendermintUrl);

@@ -90,3 +90,3 @@ const account = await client.auth.verified.account(testutils_spec_1.validator.delegatorAddress);

it("returns null for non-existent address", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42(); // Not supported with 0.44, see "Known limitations" in README.md
const [client, tmClient] = await makeClientWithAuth(testutils_spec_1.simapp.tendermintUrl);

@@ -93,0 +93,0 @@ const account = await client.auth.verified.account(testutils_spec_1.nonExistentAddress);

@@ -9,2 +9,7 @@ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";

readonly supplyOf: (denom: string) => Promise<Coin>;
/**
* @deprecated Verified queries are not supported with Cosmos SDK 0.44+.
* See "Known limitations" in README.md.
* Will be rmoved in CosmJS 0.27 (https://github.com/cosmos/cosmjs/pull/910).
*/
readonly verified: {

@@ -11,0 +16,0 @@ readonly balance: (address: string, denom: string) => Promise<Coin | null>;

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

it("works for different existing balances", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42(); // Not supported with 0.44, see "Known limitations" in README.md
const [client, tmClient] = await makeClientWithBank(testutils_spec_1.simapp.tendermintUrl);

@@ -133,3 +133,3 @@ const response1 = await client.bank.verified.balance(testutils_spec_1.unused.address, testutils_spec_1.simapp.denomFee);

it("returns null for non-existent balance", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42(); // Not supported with 0.44, see "Known limitations" in README.md
const [client, tmClient] = await makeClientWithBank(testutils_spec_1.simapp.tendermintUrl);

@@ -141,3 +141,3 @@ const response = await client.bank.verified.balance(testutils_spec_1.unused.address, "gintonic");

it("returns null for non-existent address", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42(); // Not supported with 0.44, see "Known limitations" in README.md
const [client, tmClient] = await makeClientWithBank(testutils_spec_1.simapp.tendermintUrl);

@@ -144,0 +144,0 @@ const response = await client.bank.verified.balance(testutils_spec_1.nonExistentAddress, testutils_spec_1.simapp.denomFee);

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

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -51,3 +51,3 @@ const response = await client.ibc.channel.channel(ibcTest.portId, ibcTest.channelId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -63,3 +63,3 @@ const response = await client.ibc.channel.channels();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -73,3 +73,3 @@ const response = await client.ibc.channel.allChannels();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -85,3 +85,3 @@ const response = await client.ibc.channel.connectionChannels(ibcTest.connectionId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -95,3 +95,3 @@ const response = await client.ibc.channel.allConnectionChannels(ibcTest.connectionId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -111,3 +111,3 @@ const response = await client.ibc.channel.clientState(ibcTest.portId, ibcTest.channelId);

xit("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -127,3 +127,3 @@ const response = await client.ibc.channel.consensusState(ibcTest.portId, ibcTest.channelId,

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -139,3 +139,3 @@ const response = await client.ibc.channel.packetCommitment(ibcTest.portId, ibcTest.channelId, long_1.default.fromInt(ibcTest.commitment.sequence, true));

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -151,3 +151,3 @@ const response = await client.ibc.channel.packetCommitments(ibcTest.portId, ibcTest.channelId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -161,3 +161,3 @@ const response = await client.ibc.channel.allPacketCommitments(ibcTest.portId, ibcTest.channelId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -172,3 +172,3 @@ const response = await client.ibc.channel.packetReceipt(ibcTest.portId, ibcTest.channelId, 1);

pending("We don't have an acknowledgement for testing at the moment");
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -184,3 +184,3 @@ const response = await client.ibc.channel.packetAcknowledgement(ibcTest.portId, ibcTest.channelId, ibcTest.commitment.sequence);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -196,3 +196,3 @@ const response = await client.ibc.channel.packetAcknowledgements(ibcTest.portId, ibcTest.channelId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -206,3 +206,3 @@ const response = await client.ibc.channel.allPacketAcknowledgements(ibcTest.portId, ibcTest.channelId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -217,3 +217,3 @@ const response = await client.ibc.channel.unreceivedPackets(ibcTest.portId, ibcTest.channelId, [1, 2, 3]);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -228,3 +228,3 @@ const response = await client.ibc.channel.unreceivedAcks(ibcTest.portId, ibcTest.channelId, [1, 2, 3, 4, 5, 6, 7]);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -242,3 +242,3 @@ const response = await client.ibc.channel.nextSequenceReceive(ibcTest.portId, ibcTest.channelId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -255,3 +255,3 @@ const response = await client.ibc.client.state(ibcTest.clientId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -274,3 +274,3 @@ const response = await client.ibc.client.states();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -292,3 +292,3 @@ const response = await client.ibc.client.allStates();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -305,3 +305,3 @@ const response = await client.ibc.client.consensusState(ibcTest.clientId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -323,3 +323,3 @@ const response = await client.ibc.client.consensusStates(ibcTest.clientId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -341,3 +341,3 @@ const response = await client.ibc.client.allConsensusStates(ibcTest.clientId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -353,3 +353,3 @@ const response = await client.ibc.client.params();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -364,3 +364,3 @@ const response = await client.ibc.client.stateTm(ibcTest.clientId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -378,3 +378,3 @@ const response = await client.ibc.client.statesTm();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -392,3 +392,3 @@ const response = await client.ibc.client.allStatesTm();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -405,3 +405,3 @@ const response = await client.ibc.client.consensusStateTm(ibcTest.clientId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -417,3 +417,3 @@ const response = await client.ibc.connection.connection(ibcTest.connectionId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -429,3 +429,3 @@ const response = await client.ibc.connection.connections();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -439,3 +439,3 @@ const response = await client.ibc.connection.allConnections();

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -451,3 +451,3 @@ const response = await client.ibc.connection.clientConnections(ibcTest.clientId);

it("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -467,3 +467,3 @@ const response = await client.ibc.connection.clientState(ibcTest.connectionId);

xit("works", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const [client, tmClient] = await makeClientWithIbc(testutils_spec_1.simapp.tendermintUrl);

@@ -470,0 +470,0 @@ // TODO: Find valid values

@@ -11,3 +11,3 @@ import { Channel, IdentifiedChannel, PacketState } from "cosmjs-types/ibc/core/channel/v1/channel";

* ```
* jq ".channel_genesis.commitments[0]" scripts/simapp/genesis-ibc.json
* jq ".channel_genesis.commitments[0]" scripts/simapp42/genesis-ibc.json
* ```

@@ -24,3 +24,3 @@ */

* ```
* jq ".channel_genesis.acknowledgements" scripts/simapp/genesis-ibc.json
* jq ".channel_genesis.acknowledgements" scripts/simapp42/genesis-ibc.json
* ```

@@ -27,0 +27,0 @@ */

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

const long_1 = __importDefault(require("long"));
// From scripts/simapp/genesis-ibc.json
// From scripts/simapp42/genesis-ibc.json
exports.portId = "transfer";

@@ -42,3 +42,3 @@ exports.channelId = "channel-0";

* ```
* jq ".channel_genesis.commitments[0]" scripts/simapp/genesis-ibc.json
* jq ".channel_genesis.commitments[0]" scripts/simapp42/genesis-ibc.json
* ```

@@ -60,3 +60,3 @@ */

* ```
* jq ".channel_genesis.acknowledgements" scripts/simapp/genesis-ibc.json
* jq ".channel_genesis.acknowledgements" scripts/simapp42/genesis-ibc.json
* ```

@@ -63,0 +63,0 @@ */

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

const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc");
const bank_1 = require("cosmjs-types/cosmos/bank/v1beta1/bank");
const query_1 = require("cosmjs-types/cosmos/bank/v1beta1/query");
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
const testutils_spec_1 = require("../testutils.spec");
const queryclient_1 = require("./queryclient");
const utils_1 = require("./utils");
async function makeClient(rpcUrl) {

@@ -16,2 +15,8 @@ const tmClient = await tendermint_rpc_1.Tendermint34Client.connect(rpcUrl);

}
/**
* See
* - https://github.com/cosmos/cosmos-sdk/blob/v0.42.10/x/bank/types/key.go#L27
* - https://github.com/cosmos/cosmos-sdk/blob/v0.44.2/x/bank/types/key.go#L28
*/
const denomMetadataPrefix = new Uint8Array([0x01]);
describe("QueryClient", () => {

@@ -22,11 +27,13 @@ describe("queryVerified", () => {

const [client, tmClient] = await makeClient(testutils_spec_1.simapp.tendermintUrlWs);
// "keys before 0.45 had denom two times in the key"
// https://github.com/cosmos/cosmos-sdk/blob/10ad61a4dd/x/bank/migrations/v045/store_test.go#L91
const key = Uint8Array.from([
...encoding_1.toAscii("balances"),
...utils_1.toAccAddress(testutils_spec_1.unused.address),
...denomMetadataPrefix,
...encoding_1.toAscii(testutils_spec_1.simapp.denomFee),
...encoding_1.toAscii(testutils_spec_1.simapp.denomFee),
]);
const data = await client.queryVerified("bank", key);
const response = coin_1.Coin.decode(data);
expect(response.amount).toMatch(testutils_spec_1.nonNegativeIntegerMatcher);
expect(response.denom).toEqual(testutils_spec_1.simapp.denomFee);
const response = bank_1.Metadata.decode(data);
expect(response.base).toEqual(testutils_spec_1.simapp.denomFee);
expect(response.description).toEqual("The fee token of this test chain");
tmClient.disconnect();

@@ -37,11 +44,13 @@ });

const [client, tmClient] = await makeClient(testutils_spec_1.simapp.tendermintUrlHttp);
// "keys before 0.45 had denom two times in the key"
// https://github.com/cosmos/cosmos-sdk/blob/10ad61a4dd/x/bank/migrations/v045/store_test.go#L91
const key = Uint8Array.from([
...encoding_1.toAscii("balances"),
...utils_1.toAccAddress(testutils_spec_1.unused.address),
...denomMetadataPrefix,
...encoding_1.toAscii(testutils_spec_1.simapp.denomFee),
...encoding_1.toAscii(testutils_spec_1.simapp.denomFee),
]);
const data = await client.queryVerified("bank", key);
const response = coin_1.Coin.decode(data);
expect(response.amount).toMatch(testutils_spec_1.nonNegativeIntegerMatcher);
expect(response.denom).toEqual(testutils_spec_1.simapp.denomFee);
const response = bank_1.Metadata.decode(data);
expect(response.base).toEqual(testutils_spec_1.simapp.denomFee);
expect(response.description).toEqual("The fee token of this test chain");
tmClient.disconnect();

@@ -48,0 +57,0 @@ });

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

it("works with direct signing", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const wallet = await proto_signing_1.DirectSecp256k1HdWallet.fromMnemonic(testutils_spec_1.faucet.mnemonic);

@@ -103,3 +103,3 @@ const client = await signingstargateclient_1.SigningStargateClient.connectWithSigner(testutils_spec_1.simapp.tendermintUrl, wallet, testutils_spec_1.defaultSigningClientOptions);

it("works with Amino signing", async () => {
testutils_spec_1.pendingWithoutSimapp();
testutils_spec_1.pendingWithoutSimapp42();
const wallet = await amino_1.Secp256k1HdWallet.fromMnemonic(testutils_spec_1.faucet.mnemonic);

@@ -106,0 +106,0 @@ const client = await signingstargateclient_1.SigningStargateClient.connectWithSigner(testutils_spec_1.simapp.tendermintUrl, wallet, testutils_spec_1.defaultSigningClientOptions);

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

getAccount(searchAddress: string): Promise<Account | null>;
/**
* @deprecated Verified queries are not supported with Cosmos SDK 0.44+.
* See "Known limitations" in README.md.
* Will be rmoved in CosmJS 0.27 (https://github.com/cosmos/cosmjs/pull/910).
*/
getAccountVerified(searchAddress: string): Promise<Account | null>;

@@ -114,0 +119,0 @@ getSequence(address: string): Promise<SequenceResponse>;

@@ -91,2 +91,7 @@ "use strict";

}
/**
* @deprecated Verified queries are not supported with Cosmos SDK 0.44+.
* See "Known limitations" in README.md.
* Will be rmoved in CosmJS 0.27 (https://github.com/cosmos/cosmjs/pull/910).
*/
async getAccountVerified(searchAddress) {

@@ -93,0 +98,0 @@ const account = await this.forceGetQueryClient().auth.verified.account(searchAddress);

@@ -6,3 +6,6 @@ import { AminoSignResponse, Secp256k1HdWallet, Secp256k1HdWalletOptions, StdSignDoc } from "@cosmjs/amino";

import { SigningStargateClientOptions } from "./signingstargateclient";
export declare function simapp42Enabled(): boolean;
export declare function simapp44Enabled(): boolean;
export declare function simappEnabled(): boolean;
export declare function pendingWithoutSimapp42(): void;
export declare function pendingWithoutSimapp(): void;

@@ -82,6 +85,6 @@ export declare function slowSimappEnabled(): boolean;

/**
* From first gentx's auth_info.signer_infos in scripts/simapp/template/.simapp/config/genesis.json
* From first gentx's auth_info.signer_infos in scripts/simapp42/template/.simapp/config/genesis.json
*
* ```
* jq ".app_state.genutil.gen_txs[0].auth_info.signer_infos[0].public_key" scripts/simapp/template/.simapp/config/genesis.json
* jq ".app_state.genutil.gen_txs[0].auth_info.signer_infos[0].public_key" scripts/simapp42/template/.simapp/config/genesis.json
* ```

@@ -94,6 +97,6 @@ */

/**
* delegator_address from /cosmos.staking.v1beta1.MsgCreateValidator in scripts/simapp/template/.simapp/config/genesis.json
* delegator_address from /cosmos.staking.v1beta1.MsgCreateValidator in scripts/simapp42/template/.simapp/config/genesis.json
*
* ```
* jq ".app_state.genutil.gen_txs[0].body.messages[0].delegator_address" scripts/simapp/template/.simapp/config/genesis.json
* jq ".app_state.genutil.gen_txs[0].body.messages[0].delegator_address" scripts/simapp42/template/.simapp/config/genesis.json
* ```

@@ -103,6 +106,6 @@ */

/**
* validator_address from /cosmos.staking.v1beta1.MsgCreateValidator in scripts/simapp/template/.simapp/config/genesis.json
* validator_address from /cosmos.staking.v1beta1.MsgCreateValidator in scripts/simapp42/template/.simapp/config/genesis.json
*
* ```
* jq ".app_state.genutil.gen_txs[0].body.messages[0].validator_address" scripts/simapp/template/.simapp/config/genesis.json
* jq ".app_state.genutil.gen_txs[0].body.messages[0].validator_address" scripts/simapp42/template/.simapp/config/genesis.json
* ```

@@ -109,0 +112,0 @@ */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModifyingDirectSecp256k1HdWallet = exports.ModifyingSecp256k1HdWallet = exports.tendermintIdMatcher = exports.nonNegativeIntegerMatcher = exports.nonExistentAddress = exports.validator = exports.unused = exports.faucet = exports.defaultSigningClientOptions = exports.slowSimapp = exports.simapp = exports.defaultSendFee = exports.defaultGasPrice = exports.fromOneElementArray = exports.makeRandomAddress = exports.makeRandomAddressBytes = exports.pendingWithoutSlowSimapp = exports.slowSimappEnabled = exports.pendingWithoutSimapp = exports.simappEnabled = void 0;
exports.ModifyingDirectSecp256k1HdWallet = exports.ModifyingSecp256k1HdWallet = exports.tendermintIdMatcher = exports.nonNegativeIntegerMatcher = exports.nonExistentAddress = exports.validator = exports.unused = exports.faucet = exports.defaultSigningClientOptions = exports.slowSimapp = exports.simapp = exports.defaultSendFee = exports.defaultGasPrice = exports.fromOneElementArray = exports.makeRandomAddress = exports.makeRandomAddressBytes = exports.pendingWithoutSlowSimapp = exports.slowSimappEnabled = exports.pendingWithoutSimapp = exports.pendingWithoutSimapp42 = exports.simappEnabled = exports.simapp44Enabled = exports.simapp42Enabled = void 0;
/* eslint-disable @typescript-eslint/naming-convention */

@@ -12,9 +12,23 @@ const amino_1 = require("@cosmjs/amino");

const fee_1 = require("./fee");
function simapp42Enabled() {
return !!process.env.SIMAPP42_ENABLED;
}
exports.simapp42Enabled = simapp42Enabled;
function simapp44Enabled() {
return !!process.env.SIMAPP44_ENABLED;
}
exports.simapp44Enabled = simapp44Enabled;
function simappEnabled() {
return !!process.env.SIMAPP_ENABLED;
return simapp42Enabled() || simapp44Enabled();
}
exports.simappEnabled = simappEnabled;
function pendingWithoutSimapp42() {
if (!simapp42Enabled()) {
return pending("Set SIMAPP44_ENABLED to enable Simapp based tests");
}
}
exports.pendingWithoutSimapp42 = pendingWithoutSimapp42;
function pendingWithoutSimapp() {
if (!simappEnabled()) {
return pending("Set SIMAPP_ENABLED to enable Simapp based tests");
return pending("Set SIMAPP42_ENABLED or SIMAPP44_ENABLED to enable Simapp based tests");
}

@@ -24,3 +38,3 @@ }

function slowSimappEnabled() {
return !!process.env.SLOW_SIMAPP_ENABLED;
return !!process.env.SLOW_SIMAPP42_ENABLED || !!process.env.SLOW_SIMAPP44_ENABLED;
}

@@ -30,3 +44,3 @@ exports.slowSimappEnabled = slowSimappEnabled;

if (!slowSimappEnabled()) {
return pending("Set SLOW_SIMAPP_ENABLED to enable slow Simapp based tests");
return pending("Set SLOW_SIMAPP42_ENABLED or SLOW_SIMAPP44_ENABLED to enable slow Simapp based tests");
}

@@ -120,6 +134,6 @@ }

/**
* From first gentx's auth_info.signer_infos in scripts/simapp/template/.simapp/config/genesis.json
* From first gentx's auth_info.signer_infos in scripts/simapp42/template/.simapp/config/genesis.json
*
* ```
* jq ".app_state.genutil.gen_txs[0].auth_info.signer_infos[0].public_key" scripts/simapp/template/.simapp/config/genesis.json
* jq ".app_state.genutil.gen_txs[0].auth_info.signer_infos[0].public_key" scripts/simapp42/template/.simapp/config/genesis.json
* ```

@@ -132,6 +146,6 @@ */

/**
* delegator_address from /cosmos.staking.v1beta1.MsgCreateValidator in scripts/simapp/template/.simapp/config/genesis.json
* delegator_address from /cosmos.staking.v1beta1.MsgCreateValidator in scripts/simapp42/template/.simapp/config/genesis.json
*
* ```
* jq ".app_state.genutil.gen_txs[0].body.messages[0].delegator_address" scripts/simapp/template/.simapp/config/genesis.json
* jq ".app_state.genutil.gen_txs[0].body.messages[0].delegator_address" scripts/simapp42/template/.simapp/config/genesis.json
* ```

@@ -141,6 +155,6 @@ */

/**
* validator_address from /cosmos.staking.v1beta1.MsgCreateValidator in scripts/simapp/template/.simapp/config/genesis.json
* validator_address from /cosmos.staking.v1beta1.MsgCreateValidator in scripts/simapp42/template/.simapp/config/genesis.json
*
* ```
* jq ".app_state.genutil.gen_txs[0].body.messages[0].validator_address" scripts/simapp/template/.simapp/config/genesis.json
* jq ".app_state.genutil.gen_txs[0].body.messages[0].validator_address" scripts/simapp42/template/.simapp/config/genesis.json
* ```

@@ -147,0 +161,0 @@ */

{
"name": "@cosmjs/stargate",
"version": "0.26.2",
"version": "0.26.3",
"description": "Utilities for Cosmos SDK 0.40",

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

"@confio/ics23": "^0.6.3",
"@cosmjs/amino": "0.26.2",
"@cosmjs/encoding": "0.26.2",
"@cosmjs/math": "0.26.2",
"@cosmjs/proto-signing": "0.26.2",
"@cosmjs/stream": "0.26.2",
"@cosmjs/tendermint-rpc": "0.26.2",
"@cosmjs/utils": "0.26.2",
"@cosmjs/amino": "0.26.3",
"@cosmjs/encoding": "0.26.3",
"@cosmjs/math": "0.26.3",
"@cosmjs/proto-signing": "0.26.3",
"@cosmjs/stream": "0.26.3",
"@cosmjs/tendermint-rpc": "0.26.3",
"@cosmjs/utils": "0.26.3",
"cosmjs-types": "^0.2.0",

@@ -56,3 +56,3 @@ "long": "^4.0.0",

"devDependencies": {
"@cosmjs/crypto": "0.26.2",
"@cosmjs/crypto": "0.26.3",
"@istanbuljs/nyc-config-typescript": "^1.0.1",

@@ -59,0 +59,0 @@ "@types/eslint-plugin-prettier": "^3",

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

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