
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@cosmology/cosmjs
Advanced tools
Wrapper of @uni-sign/auth and @uni-sign/cosmos to fit corresponding interfaces in @cosmjs
Wrapper of @uni-sign/auth
and @uni-sign/cosmos
to fit corresponding interfaces in @cosmjs
npm install @cosmology/cosmjs
To sign messages (taking stargate
signing client as example)
// import * from "@cosmology/cosmjs"; // Error: use sub-imports, to ensure small app size
import { StargateSigningClient } from "@cosmology/cosmjs/stargate";
const client = StargateSigningClient.connectWithSigner(<rpc-endpoint>, <offline signer>);
const result = await client.signAndBroadcast(<ADDRESS>, <MESSAGE>[], "auto");
// or you can use helper functions to do `signAndBroadcast`. taking send tokens as example
const result = await client.helpers.send(<ADDRESS>, <MsgSend message>, "auto", "");
console.log(result.transactionHash); // the hash of TxRaw
To construct an offline signer (taking direct
signer as example)
import { Secp256k1Wallet } from "@cosmology/cosmjs/wallets/secp256k1";
const wallet = Secp256k1Wallet.fromMnemonic("<MNEMONIC_WORDS>", { prefix: "<prefix>" });
const directOfflineSigner = wallet.toOfflineDirectSigner();
@cosmology/cosmjs/signing-client
@cosmology/cosmjs/stargate
@cosmology/cosmjs/cosmwasm-stargate
@cosmology/cosmjs/wallets/secp256k1
MIT License (MIT) & Apache License
Copyright (c) 2024 Cosmology (https://cosmology.zone/)
FAQs
Wrapper of @uni-sign/auth and @uni-sign/cosmos to fit corresponding interfaces in @cosmjs
The npm package @cosmology/cosmjs receives a total of 0 weekly downloads. As such, @cosmology/cosmjs popularity was classified as not popular.
We found that @cosmology/cosmjs demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.