#cosmos #query #tx #client

ocular

A client library for Cosmos SDK chains with a focus on pleasant UX

8 releases

1.0.0-beta-0.0.1 Feb 3, 2023
1.0.0-beta Sep 7, 2022
1.0.0-alpha-1.0.0 Aug 19, 2022
0.1.0 Jan 26, 2022

#13 in #tx

Apache-2.0

125KB
3K SLoC

Ocular

Ocular is a client library for Cosmos SDK chains with a focus on pleasent UX. Think of it as a convenience wrapper around the cosmrs client features.

Beta Features

  • QueryClient providing an API for core Cosmos SDK module queries
  • MsgClient providing an API for executing transactions, and support for core Cosmos SDK module messages
  • Robust transaction construction allowing multiple Msgs in one tx
  • ModuleMsg trait for creating extension crates to easily support custom Cosmos modules.
  • Convenient AccountInfo type constructable from a mnemonic or on-disk key. Used for signing and deriving addresses for various chains.

To do

  • RPC query coverage?
  • Feature enabling dynamic chain contexts populated by chain registry data
  • Key generation/persistance API
  • Websocket query support?
  • Code examples
  • Convenience wrappers around proto-generated types (like authz::{Grant, GrantAuthorization, GenericAuthorization})

Contributions

Feel free to fork and PR! DM Collin on Twitter @ atro0o for feedback/questions.

Dependencies

~35–49MB
~1M SLoC