0.0.11 • Published 1 month ago

@interchainjs/cosmos-msgs v0.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

@interchainjs/cosmos-msgs

Cosmos message codecs (including Stargate and CosmWasm messages)

Usage

npm install @interchainjs/cosmos-msgs

Make Encoder and Converter used by Cosmos signers (taking MsgSend as example)

import { MsgSend } from "@interchainjs/cosmos-msgs/cosmos/bank/v1beta1/tx";
import { toConverter, toEncoder } from "@interchainjs/cosmos/utils";
import { AminoSigner } from "@interchainjs/cosmos/amino";

const encoder = toEncoder(MsgSend);
const converter = toConverter(MsgSend);

const signer = new AminoSigner(<AUTH>, [encoder], [converter], <rpc-endpoint>);

License

MIT License (MIT) & Apache License

Copyright (c) 2024 Cosmology (https://cosmology.zone/)

0.0.10

1 month ago

0.0.11

1 month ago

0.0.8

1 month ago