
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@cosmonauts/cosmjs
Advanced tools
Wrapper of @cosmonauts/auth and @cosmonauts/cosmos to fit corresponding interfaces in @cosmjs
Wrapper of @cosmonauts/auth
and @cosmonauts/cosmos
to fit corresponding interfaces in @cosmjs
npm install @cosmonauts/cosmjs
To sign messages (taking stargate
signing client as example)
// import * from "@cosmonauts/cosmjs"; // Error: use sub-imports, to ensure small app size
import { StargateSigningClient } from "@cosmonauts/cosmjs/stargate";
const client = StargateSigningClient.connectWithSigner(<rpc-endpoint>, <offline signer>);
const result = await client.signAndBroadcast(<address>, <messages>, "auto");
console.log(result.transactionHash); // the hash of TxRaw
To construct an offline signer (taking direct
signer as example)
import { Secp256k1Wallet } from "@cosmonauts/cosmjs/wallets/secp256k1";
const wallet = Secp256k1Wallet.fromMnemonic("<mnemonic-words>", { prefix: "<prefix>" });
const directOfflineSigner = wallet.toOfflineDirectSigner();
To make queries
import { RpcQuery } from "@cosmonauts/cosmjs/query/rpc";
const rpcQuery = new RpcQuery(chain.osmosis.rpc);
const { validators } = await rpcQuery.validators({
status: bondStatusToJSON(BondStatus.BOND_STATUS_BONDED),
});
@cosmonauts/cosmjs/signing-client
@cosmonauts/cosmjs/stargate
@cosmonauts/cosmjs/cosmwasm-stargate
@cosmonauts/cosmjs/wallets/secp256k1
@cosmonauts/cosmjs/query/rpc
MIT License (MIT) & Apache License
Copyright (c) 2024 Cosmology (https://cosmology.zone/)
FAQs
Wrapper of @cosmonauts/auth and @cosmonauts/cosmos to fit corresponding interfaces in @cosmjs
We found that @cosmonauts/cosmjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.