0.0.7 • Published 2 years ago

cosmossdkjs v0.0.7

Weekly downloads
-
License
ASLv2
Repository
-
Last release
2 years ago

The cosmossdkjs Library is being developed to be able to support transaction generation, signing and broadcasting to interact with supported Cosmos SDK based blockchains.

NOTE - This is currently a W.I.P. Usage examples will be added soon here.

Setup

npm install cosmossdkjs

Adding custom Modules support

To add support for Cosmos SDK modules, you need to first transpile the ./proto files associated with that module and add the generated typescript files to the src/proto folder and the generated /types files to the types/proto folder and add them to the RPCCLient in the src/proto/cosmwasm/rpc.query.ts file.

DEV NOTES

  • Finding supported Queries and Transaction Msgs
    • To figure supported queries / tx msgs supported by any cosmos module, look at query.rpc.query.d and tx.rpc.msg.d in the types/proto/<creator>/<module_name>.