Expand description
Namada SDK
Re-exports§
pub use bip39;
pub use masp_primitives;
pub use masp_proofs;
pub use namada_account as account;
pub use namada_gas as gas;
pub use namada_governance as governance;
pub use namada_ibc as ibc;
pub use namada_parameters as parameters;
pub use namada_proof_of_stake as proof_of_stake;
pub use namada_state as state;
pub use namada_storage as storage;
pub use namada_token as token;
pub use tendermint_rpc;
pub use zeroize;
pub use namada_io as io;
pub use namada_wallet as wallet;
Modules§
- address
- Implements transparent addresses as described in Accounts Addresses.
- args
- Structures encapsulating SDK arguments
- arith
- Arithmetics helpers
- booleans
- Boolean related functionality.
- borsh
- Borsh binary encoding (re-exported) from official crate with custom ext.
- bytes
- Bytes hex formatting
- chain
- Chain related data types
- collections
- Re-exports of collection types.
- control_
flow - Control flow utilities.
- dec
- A non-negative fixed precision decimal type.
- error
- Generic Error Type for all of the Shared Crate
- eth_abi
- This module defines encoding methods compatible with Ethereum smart contracts.
- eth_
bridge - Ethereum bridge utilities shared between
wasm
and thecli
. - eth_
bridge_ pool - The necessary type definitions for the contents of the Ethereum bridge pool
- ethereum_
events - Types representing data intended for Namada via Ethereum events
- ethereum_
structs - Ethereum bridge struct re-exports and types to do with ethereum.
- events
- Logic to do with events emitted by the ledger.
- hash
- Types for working with 32 bytes hashes.
- hints
- Compiler hints, to improve the performance of certain operations.
- internal
- Shared internal types between the host env and guest (wasm).
- keccak
- This module is for hashing Namada types using the keccak256 hash function in a way that is compatible with smart contracts on Ethereum.
- key
- Cryptographic keys
- masp
- MASP verification wrappers.
- masp_
primitives - General MASP primitives.
- queries
- Ledger read-only queries can be handled and dispatched via the
RPC
defined viarouter!
macro. - rpc
- SDK RPC queries
- signing
- Functions to sign transactions
- string_
encoding - Namada’s standard string encoding for public types.
- task_
env - Functionality to abstract spawning tasks onto a thread pool.
- tendermint
- Re-export of tendermint v0.37
- tendermint_
proto - Re-export of tendermint-proto v0.37
- time
- Types for dealing with time and durations.
- tx
- SDK functions to construct different types of transactions
- uint
- An unsigned 256 integer type. Used for, among other things, the backing type of token amounts.
- validity_
predicate - Types that are used in validity predicates.
- voting_
power - This module contains types related with validator voting power calculations.
Macros§
- impl_
display_ and_ from_ str_ via_ format - Implement
std::fmt::Display
andstd::str::FromStr
viaFormat
. - router
- Compile time tree patterns router with type-safe dynamic parameter parsing, automatic routing, type-safe path constructors and optional client query methods.
Structs§
- Extended
Spending Key - Wrapper for masp_primitive’s ExtendedSpendingKey
- Extended
Viewing Key - Wrapper for masp_primitive’s FullViewingKey
- Namada
Impl - Provides convenience methods for common Namada interactions
- Payment
Address - Wrapper for masp_primitive’s PaymentAddress
- Shielded
Wallet - Represents the current state of the shielded pool from the perspective of the chosen viewing keys.
Enums§
- Decode
Error - Transfer
Source - Represents a source of funds for a transfer
- Transfer
Target - Represents a target for the funds of a transfer
Constants§
- DEFAULT_
GAS_ LIMIT - Default gas-limit
Traits§
- Maybe
Send - Maybe
Sync - Namada
- An interface for high-level interaction with the Namada SDK
- Shielded
Utils - Abstracts platform specific details away from the logic of shielded pool operations.
Functions§
- consensus_
version - Get the current consensus version
- decode
- Decode a value with borsh
- encode
- Encode a value with borsh