Expand description
SecretRS re-exports cosmrs
at the top-level of the crate.
This allows secretrs
to be used as a drop-in replacement for cosmrs
.
§Feature flags
The default features are bip32
, getrandom
, and grpc-core
.
bip32
: Enables thebip32
feature incosmrs
.getrandom
: Enables thegetrandom
feature incosmrs
.grpc-core
: Enables the use oftonic
generated gRPC query and service clients.grpc
: Enablestonic::transport
, which provides a fully featured HTTP/2Channel
built on top oftokio
,hyper
andtower
.rpc
: Enables therpc
feature incosmrs
.
§WASM support
SecretRS has support for gRPC-web in browsers, thanks to tonic_web_wasm_client
. When building for the wasm32-unknown-unknown
target, create each tonic::client::Grpc<T>
using a tonic_web_wasm_client::Client
instead of tonic::transport::Channel
. The grpc
feature must be disabled (this will disable the default transport layer of tonic).
Re-exports§
pub use secret_sdk_proto as proto;
Modules§
- abci
- Application/BlockChain Interface (ABCI)-related functionality.
- auth
- Authentication module: AuthN-related functionality.
- bank
- Bank module support
- bip32
- BIP32: HD Wallets
- compute
- Compute messages
- crypto
- Cryptographic functionality
- distribution
- Distribution module support
- feegrant
- Fee grant module support
- grpc_
clients - gRPC clients generated by
tonic
. - query
- Query support
- rpc
- Tendermint RPC definitions and types.
- slashing
- Slashing module support
- staking
- Staking module support
- tendermint
- Tendermint is a high-performance blockchain consensus engine that powers Byzantine fault tolerant applications written in any programming language. This crate provides core types for representing information about Tendermint blockchain networks, including chain information types, secret connections, and remote procedure calls (JSON-RPC).
- tx
- Cosmos SDK transaction support.
- utils
- Utilities related to Secret.
- vesting
- Vesting-related types
Structs§
- Account
Id - Account identifiers
- Any
Any
contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.- Coin
- Coin defines a token with a denomination and an amount.
- Denom
- Denomination.
- Error
Report - The core error reporting type of the library, a wrapper around a dynamic error reporting type.
- Tx
Tx
is the standard type used for broadcasting transactions.
Enums§
- Error
- Kinds of errors.
Constants§
- SECRET_
VERSION - The version of Secret Network used when generating this library.