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.18 to 0.24.0-alpha.19

build/queries/distribution.js

57

build/aminotypes.js

@@ -64,2 +64,59 @@ "use strict";

},
"/cosmos.distribution.v1beta1.MsgFundCommunityPool": {
aminoType: "cosmos-sdk/MsgFundCommunityPool",
toAmino: ({ amount, depositor }) => {
utils_1.assertDefinedAndNotNull(amount);
utils_1.assertDefinedAndNotNull(depositor);
return {
amount: amount.map(stargateclient_1.coinFromProto),
depositor: depositor,
};
},
fromAmino: ({ amount, depositor }) => ({
amount: [...amount],
depositor: depositor,
}),
},
"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": {
aminoType: "cosmos-sdk/MsgSetWithdrawAddress",
toAmino: ({ delegatorAddress, withdrawAddress, }) => {
utils_1.assertDefinedAndNotNull(delegatorAddress);
utils_1.assertDefinedAndNotNull(withdrawAddress);
return {
delegator_address: delegatorAddress,
withdraw_address: withdrawAddress,
};
},
fromAmino: ({ delegator_address, withdraw_address, }) => ({
delegatorAddress: delegator_address,
withdrawAddress: withdraw_address,
}),
},
"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": {
aminoType: "cosmos-sdk/MsgWithdrawDelegatorReward",
toAmino: ({ delegatorAddress, validatorAddress, }) => {
utils_1.assertDefinedAndNotNull(delegatorAddress);
utils_1.assertDefinedAndNotNull(validatorAddress);
return {
delegator_address: delegatorAddress,
validator_address: validatorAddress,
};
},
fromAmino: ({ delegator_address, validator_address, }) => ({
delegatorAddress: delegator_address,
validatorAddress: validator_address,
}),
},
"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission": {
aminoType: "cosmos-sdk/MsgWithdrawValidatorCommission",
toAmino: ({ validatorAddress, }) => {
utils_1.assertDefinedAndNotNull(validatorAddress);
return {
validator_address: validatorAddress,
};
},
fromAmino: ({ validator_address, }) => ({
validatorAddress: validator_address,
}),
},
"/cosmos.staking.v1beta1.MsgBeginRedelegate": {

@@ -66,0 +123,0 @@ aminoType: "cosmos-sdk/MsgBeginRedelegate",

4

build/index.js

@@ -22,3 +22,3 @@ "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.AminoTypes = exports.codec = void 0;
exports.SigningStargateClient = exports.StargateClient = exports.isBroadcastTxSuccess = exports.isBroadcastTxFailure = exports.coinFromProto = exports.assertIsBroadcastTxSuccess = exports.accountFromProto = exports.setupStakingExtension = exports.setupIbcExtension = exports.setupDistributionExtension = exports.setupBankExtension = exports.setupAuthExtension = exports.QueryClient = exports.parseRawLog = exports.AminoTypes = exports.codec = void 0;
exports.codec = __importStar(require("./codec"));

@@ -33,3 +33,5 @@ var aminotypes_1 = require("./aminotypes");

Object.defineProperty(exports, "setupBankExtension", { enumerable: true, get: function () { return queries_1.setupBankExtension; } });
Object.defineProperty(exports, "setupDistributionExtension", { enumerable: true, get: function () { return queries_1.setupDistributionExtension; } });
Object.defineProperty(exports, "setupIbcExtension", { enumerable: true, get: function () { return queries_1.setupIbcExtension; } });
Object.defineProperty(exports, "setupStakingExtension", { enumerable: true, get: function () { return queries_1.setupStakingExtension; } });
var stargateclient_1 = require("./stargateclient");

@@ -36,0 +38,0 @@ Object.defineProperty(exports, "accountFromProto", { enumerable: true, get: function () { return stargateclient_1.accountFromProto; } });

"use strict";
// Base symbols
Object.defineProperty(exports, "__esModule", { value: true });
exports.setupIbcExtension = exports.setupBankExtension = exports.setupAuthExtension = exports.QueryClient = void 0;
exports.setupStakingExtension = exports.setupIbcExtension = exports.setupDistributionExtension = exports.setupBankExtension = exports.setupAuthExtension = exports.QueryClient = void 0;
var queryclient_1 = require("./queryclient");

@@ -12,4 +12,8 @@ Object.defineProperty(exports, "QueryClient", { enumerable: true, get: function () { return queryclient_1.QueryClient; } });

Object.defineProperty(exports, "setupBankExtension", { enumerable: true, get: function () { return bank_1.setupBankExtension; } });
var distribution_1 = require("./distribution");
Object.defineProperty(exports, "setupDistributionExtension", { enumerable: true, get: function () { return distribution_1.setupDistributionExtension; } });
var ibc_1 = require("./ibc");
Object.defineProperty(exports, "setupIbcExtension", { enumerable: true, get: function () { return ibc_1.setupIbcExtension; } });
var staking_1 = require("./staking");
Object.defineProperty(exports, "setupStakingExtension", { enumerable: true, get: function () { return staking_1.setupStakingExtension; } });
//# sourceMappingURL=index.js.map

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

const { MsgMultiSend } = codec_1.cosmos.bank.v1beta1;
const { MsgFundCommunityPool, MsgSetWithdrawAddress, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, } = codec_1.cosmos.distribution.v1beta1;
const { MsgBeginRedelegate, MsgCreateValidator, MsgDelegate, MsgEditValidator, MsgUndelegate, } = codec_1.cosmos.staking.v1beta1;

@@ -27,2 +28,6 @@ const { TxRaw } = codec_1.cosmos.tx.v1beta1;

["/cosmos.staking.v1beta1.MsgUndelegate", MsgUndelegate],
["/cosmos.distribution.v1beta1.MsgFundCommunityPool", MsgFundCommunityPool],
["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", MsgSetWithdrawAddress],
["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", MsgWithdrawDelegatorReward],
["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", MsgWithdrawValidatorCommission],
]);

@@ -29,0 +34,0 @@ }

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

this.tmClient = tmClient;
this.queryClient = queries_1.QueryClient.withExtensions(tmClient, queries_1.setupAuthExtension, queries_1.setupBankExtension);
this.queryClient = queries_1.QueryClient.withExtensions(tmClient, queries_1.setupAuthExtension, queries_1.setupBankExtension, queries_1.setupDistributionExtension, queries_1.setupIbcExtension, queries_1.setupStakingExtension);
}

@@ -63,0 +63,0 @@ static async connect(endpoint) {

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

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

"type": "git",
"url": "https://github.com/CosmWasm/cosmjs/tree/master/packages/stargate"
"url": "https://github.com/cosmos/cosmjs/tree/main/packages/stargate"
},

@@ -52,13 +52,13 @@ "publishConfig": {

"@confio/ics23": "^0.6.3",
"@cosmjs/encoding": "^0.24.0-alpha.18",
"@cosmjs/launchpad": "^0.24.0-alpha.18",
"@cosmjs/math": "^0.24.0-alpha.18",
"@cosmjs/proto-signing": "^0.24.0-alpha.18",
"@cosmjs/stream": "^0.24.0-alpha.18",
"@cosmjs/tendermint-rpc": "^0.24.0-alpha.18",
"@cosmjs/utils": "^0.24.0-alpha.18",
"@cosmjs/encoding": "^0.24.0-alpha.19",
"@cosmjs/launchpad": "^0.24.0-alpha.19",
"@cosmjs/math": "^0.24.0-alpha.19",
"@cosmjs/proto-signing": "^0.24.0-alpha.19",
"@cosmjs/stream": "^0.24.0-alpha.19",
"@cosmjs/tendermint-rpc": "^0.24.0-alpha.19",
"@cosmjs/utils": "^0.24.0-alpha.19",
"long": "^4.0.0",
"protobufjs": "~6.10.2"
},
"gitHead": "967002cf3ef1c7a452b4b31428fa797f62d8958b"
"gitHead": "429a339e382aaad927b1e124dcf34f7ff3afa7d9"
}

@@ -19,3 +19,3 @@ # @cosmjs/stargate

This package is part of the cosmjs repository, licensed under the Apache License
2.0 (see [NOTICE](https://github.com/CosmWasm/cosmjs/blob/master/NOTICE) and
[LICENSE](https://github.com/CosmWasm/cosmjs/blob/master/LICENSE)).
2.0 (see [NOTICE](https://github.com/cosmos/cosmjs/blob/main/NOTICE) and
[LICENSE](https://github.com/cosmos/cosmjs/blob/main/LICENSE)).

@@ -34,3 +34,3 @@ # How to generate test vectors

You want to ensure you use the same keys as in the test vector,
[taken from here](https://github.com/CosmWasm/cosmjs/blob/db1f183/packages/proto-signing/src/signing.spec.ts#L19-L27).
[taken from here](https://github.com/cosmos/cosmjs/blob/db1f183/packages/proto-signing/src/signing.spec.ts#L19-L27).
This uses the testgen mnemonic:

@@ -37,0 +37,0 @@

@@ -7,2 +7,3 @@ export * as codec from "./codec";

BankExtension,
DistributionExtension,
IbcExtension,

@@ -12,3 +13,6 @@ QueryClient,

setupBankExtension,
setupDistributionExtension,
setupIbcExtension,
setupStakingExtension,
StakingExtension,
} from "./queries";

@@ -15,0 +19,0 @@ export {

export { QueryClient } from "./queryclient";
export { AuthExtension, setupAuthExtension } from "./auth";
export { BankExtension, setupBankExtension } from "./bank";
export { DistributionExtension, setupDistributionExtension } from "./distribution";
export { IbcExtension, setupIbcExtension } from "./ibc";
export { setupStakingExtension, StakingExtension } from "./staking";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

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