@uni-sign/cosmos-msgs
v0.0.6
Published
Cosmos message codecs
Downloads
9
Readme
Cosmos Messages
Cosmos message codecs (including Stargate and CosmWasm messages)
Usage
npm install @uni-sign/cosmos-msgs
Make Encoder
and Converter
used by Cosmos
signers (taking MsgSend
as example)
import { MsgSend } from "@uni-sign/cosmos-msgs/cosmos/bank/v1beta1/tx";
import { toConverter, toEncoder } from "@uni-sign/cosmos/utils";
import { AminoSigner } from "@uni-sign/cosmos/amino";
const encoder = toEncoder(MsgSend);
const converter = toConverter(MsgSend);
const signer = new AminoSigner(<AUTH>, [encoder], [converter], <rpc-endpoint>);
- See @uni-sign/auth to construct
<AUTH>
- See @uni-sign/cosmos to construct different
<signer>
s
License
MIT License (MIT) & Apache License
Copyright (c) 2024 Cosmology (https://cosmology.zone/)