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

@cosmjs/launchpad

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmjs/launchpad - npm Package Compare versions

Comparing version 0.24.0-alpha.23 to 0.24.0-alpha.24

build/paths.d.ts

3

build/index.d.ts

@@ -10,2 +10,3 @@ import * as logs from "./logs";

export { isMsgBeginRedelegate, isMsgCreateValidator, isMsgDelegate, isMsgEditValidator, isMsgFundCommunityPool, isMsgMultiSend, isMsgSend, isMsgSetWithdrawAddress, isMsgUndelegate, isMsgWithdrawDelegatorReward, isMsgWithdrawValidatorCommission, Msg, MsgBeginRedelegate, MsgCreateValidator, MsgDelegate, MsgEditValidator, MsgFundCommunityPool, MsgMultiSend, MsgSend, MsgSetWithdrawAddress, MsgUndelegate, MsgWithdrawDelegatorReward, MsgWithdrawValidatorCommission, } from "./msgs";
export { makeCosmoshubPath } from "./paths";
export { decodeAminoPubkey, decodeBech32Pubkey, encodeAminoPubkey, encodeBech32Pubkey, encodeSecp256k1Pubkey, } from "./pubkey";

@@ -18,4 +19,4 @@ export { findSequenceForSignedTx } from "./sequence";

export { pubkeyType, PubKey, StdFee, StdSignature } from "./types";
export { makeCosmoshubPath, executeKdf, KdfConfiguration } from "./wallet";
export { executeKdf, KdfConfiguration } from "./wallet";
export { extractKdfConfiguration, Secp256k1HdWallet } from "./secp256k1hdwallet";
export { Secp256k1Wallet } from "./secp256k1wallet";

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Secp256k1Wallet = exports.Secp256k1HdWallet = exports.extractKdfConfiguration = exports.executeKdf = exports.makeCosmoshubPath = exports.pubkeyType = exports.makeStdTx = exports.isWrappedStdTx = exports.isStdTx = exports.SigningCosmosClient = exports.decodeSignature = exports.encodeSecp256k1Signature = exports.findSequenceForSignedTx = exports.encodeSecp256k1Pubkey = exports.encodeBech32Pubkey = exports.encodeAminoPubkey = exports.decodeBech32Pubkey = exports.decodeAminoPubkey = exports.isMsgWithdrawValidatorCommission = exports.isMsgWithdrawDelegatorReward = exports.isMsgUndelegate = exports.isMsgSetWithdrawAddress = exports.isMsgSend = exports.isMsgMultiSend = exports.isMsgFundCommunityPool = exports.isMsgEditValidator = exports.isMsgDelegate = exports.isMsgCreateValidator = exports.isMsgBeginRedelegate = exports.uint64ToString = exports.uint64ToNumber = exports.setupSupplyExtension = exports.setupStakingExtension = exports.setupSlashingExtension = exports.setupMintExtension = exports.setupGovExtension = exports.setupDistributionExtension = exports.setupBankExtension = exports.setupAuthExtension = exports.normalizePubkey = exports.normalizeLcdApiArray = exports.LcdClient = exports.BroadcastMode = exports.GasPrice = exports.buildFeeTable = exports.serializeSignDoc = exports.makeSignDoc = exports.isSearchByTagsQuery = exports.isSearchBySentFromOrToQuery = exports.isSearchByHeightQuery = exports.isBroadcastTxSuccess = exports.isBroadcastTxFailure = exports.CosmosClient = exports.assertIsBroadcastTxSuccess = exports.parseCoins = exports.coins = exports.coin = exports.rawSecp256k1PubkeyToAddress = exports.pubkeyToAddress = exports.logs = void 0;
exports.Secp256k1Wallet = exports.Secp256k1HdWallet = exports.extractKdfConfiguration = exports.executeKdf = exports.pubkeyType = exports.makeStdTx = exports.isWrappedStdTx = exports.isStdTx = exports.SigningCosmosClient = exports.decodeSignature = exports.encodeSecp256k1Signature = exports.findSequenceForSignedTx = exports.encodeSecp256k1Pubkey = exports.encodeBech32Pubkey = exports.encodeAminoPubkey = exports.decodeBech32Pubkey = exports.decodeAminoPubkey = exports.makeCosmoshubPath = exports.isMsgWithdrawValidatorCommission = exports.isMsgWithdrawDelegatorReward = exports.isMsgUndelegate = exports.isMsgSetWithdrawAddress = exports.isMsgSend = exports.isMsgMultiSend = exports.isMsgFundCommunityPool = exports.isMsgEditValidator = exports.isMsgDelegate = exports.isMsgCreateValidator = exports.isMsgBeginRedelegate = exports.uint64ToString = exports.uint64ToNumber = exports.setupSupplyExtension = exports.setupStakingExtension = exports.setupSlashingExtension = exports.setupMintExtension = exports.setupGovExtension = exports.setupDistributionExtension = exports.setupBankExtension = exports.setupAuthExtension = exports.normalizePubkey = exports.normalizeLcdApiArray = exports.LcdClient = exports.BroadcastMode = exports.GasPrice = exports.buildFeeTable = exports.serializeSignDoc = exports.makeSignDoc = exports.isSearchByTagsQuery = exports.isSearchBySentFromOrToQuery = exports.isSearchByHeightQuery = exports.isBroadcastTxSuccess = exports.isBroadcastTxFailure = exports.CosmosClient = exports.assertIsBroadcastTxSuccess = exports.parseCoins = exports.coins = exports.coin = exports.rawSecp256k1PubkeyToAddress = exports.pubkeyToAddress = exports.logs = void 0;
const logs = __importStar(require("./logs"));

@@ -74,2 +74,4 @@ exports.logs = logs;

Object.defineProperty(exports, "isMsgWithdrawValidatorCommission", { enumerable: true, get: function () { return msgs_1.isMsgWithdrawValidatorCommission; } });
var paths_1 = require("./paths");
Object.defineProperty(exports, "makeCosmoshubPath", { enumerable: true, get: function () { return paths_1.makeCosmoshubPath; } });
var pubkey_1 = require("./pubkey");

@@ -95,3 +97,2 @@ Object.defineProperty(exports, "decodeAminoPubkey", { enumerable: true, get: function () { return pubkey_1.decodeAminoPubkey; } });

var wallet_1 = require("./wallet");
Object.defineProperty(exports, "makeCosmoshubPath", { enumerable: true, get: function () { return wallet_1.makeCosmoshubPath; } });
Object.defineProperty(exports, "executeKdf", { enumerable: true, get: function () { return wallet_1.executeKdf; } });

@@ -98,0 +99,0 @@ var secp256k1hdwallet_1 = require("./secp256k1hdwallet");

@@ -24,2 +24,2 @@ export interface Attribute {

*/
export declare function findAttribute(logs: readonly Log[], eventType: "message" | "transfer", attrKey: string): Attribute;
export declare function findAttribute(logs: readonly Log[], eventType: string, attrKey: string): Attribute;

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

const encoding_2 = require("./encoding");
const paths_1 = require("./paths");
const signature_1 = require("./signature");

@@ -68,3 +69,3 @@ const wallet_1 = require("./wallet");

*/
static async fromMnemonic(mnemonic, hdPath = wallet_1.makeCosmoshubPath(0), prefix = "cosmos") {
static async fromMnemonic(mnemonic, hdPath = paths_1.makeCosmoshubPath(0), prefix = "cosmos") {
const mnemonicChecked = new crypto_1.EnglishMnemonic(mnemonic);

@@ -83,3 +84,3 @@ const seed = await crypto_1.Bip39.mnemonicToSeed(mnemonicChecked);

*/
static async generate(length = 12, hdPath = wallet_1.makeCosmoshubPath(0), prefix = "cosmos") {
static async generate(length = 12, hdPath = paths_1.makeCosmoshubPath(0), prefix = "cosmos") {
const entropyLength = 4 * Math.floor((11 * length) / 33);

@@ -86,0 +87,0 @@ const entropy = crypto_1.Random.getBytes(entropyLength);

@@ -1,8 +0,2 @@

import { HdPath } from "@cosmjs/crypto";
/**
* The Cosmoshub derivation path in the form `m/44'/118'/0'/0/a`
* with 0-based account index `a`.
*/
export declare function makeCosmoshubPath(a: number): HdPath;
/**
* A fixed salt is chosen to archive a deterministic password to key derivation.

@@ -9,0 +3,0 @@ * This reduces the scope of a potential rainbow attack to all CosmJS users.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decrypt = exports.encrypt = exports.supportedAlgorithms = exports.executeKdf = exports.cosmjsSalt = exports.makeCosmoshubPath = void 0;
exports.decrypt = exports.encrypt = exports.supportedAlgorithms = exports.executeKdf = exports.cosmjsSalt = void 0;
const crypto_1 = require("@cosmjs/crypto");
const encoding_1 = require("@cosmjs/encoding");
/**
* The Cosmoshub derivation path in the form `m/44'/118'/0'/0/a`
* with 0-based account index `a`.
*/
function makeCosmoshubPath(a) {
return [
crypto_1.Slip10RawIndex.hardened(44),
crypto_1.Slip10RawIndex.hardened(118),
crypto_1.Slip10RawIndex.hardened(0),
crypto_1.Slip10RawIndex.normal(0),
crypto_1.Slip10RawIndex.normal(a),
];
}
exports.makeCosmoshubPath = makeCosmoshubPath;
/**
* A fixed salt is chosen to archive a deterministic password to key derivation.

@@ -22,0 +8,0 @@ * This reduces the scope of a potential rainbow attack to all CosmJS users.

{
"name": "@cosmjs/launchpad",
"version": "0.24.0-alpha.23",
"version": "0.24.0-alpha.24",
"description": "A client library for the Cosmos SDK 0.37 (cosmoshub-3), 0.38 and 0.39 (Launchpad)",

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

"dependencies": {
"@cosmjs/crypto": "^0.24.0-alpha.23",
"@cosmjs/encoding": "^0.24.0-alpha.23",
"@cosmjs/math": "^0.24.0-alpha.23",
"@cosmjs/utils": "^0.24.0-alpha.23",
"@cosmjs/crypto": "^0.24.0-alpha.24",
"@cosmjs/encoding": "^0.24.0-alpha.24",
"@cosmjs/math": "^0.24.0-alpha.24",
"@cosmjs/utils": "^0.24.0-alpha.24",
"axios": "^0.21.1",

@@ -53,3 +53,3 @@ "fast-deep-equal": "^3.1.3"

},
"gitHead": "52dc82bbe4799c2b4fcd1e69a81c9980ffcdc7c8"
"gitHead": "15a3a9b83a2cfe3deae389128ede5e58e3041569"
}

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