
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.