Crate secretrs

Source
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 the bip32 feature in cosmrs.
  • getrandom: Enables the getrandom feature in cosmrs.
  • grpc-core: Enables the use of tonic generated gRPC query and service clients.
  • grpc: Enables tonic::transport, which provides a fully featured HTTP/2 Channel built on top of tokio, hyper and tower.
  • rpc: Enables the rpc feature in cosmrs.

§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§

AccountId
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.
ErrorReport
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.

Type Aliases§

Amount
Amounts.
Gas
Gas cost.
Result
type alias for Result<T, Report>