Expand description
Shared code for the Namada apps.
Re-exports§
pub use tendermint_config;pub use tendermint_rpc;
Modules§
- account
- Support for signature based authorization of actions on a user account using public key(s) and signature threshold (minimum number of signatures needed to authorize an action) stored on-chain.
- address
- Implements transparent addresses as described in Accounts Addresses.
- args
- Structures encapsulating SDK arguments
- arith
- Arithmetics helpers
- bip39
- This is a Rust implementation of the bip39 standard for Bitcoin HD wallet mnemonic phrases.
- 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
- cli
- The CLI commands that are re-used between the executables
namada,namada-nodeandnamada-client. - client
- collections
- Re-exports of collection types.
- config
- Node and client configuration
- 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
wasmand 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
- events
- Logic to do with events emitted by the ledger.
- gas
- Gas accounting module to track the gas usage in a block for transactions and validity predicates triggered by transactions.
- governance
- Governance library code
- hash
- Types for working with 32 bytes hashes.
- hints
- Compiler hints, to improve the performance of certain operations.
- ibc
- IBC library code
- internal
- Shared internal types between the host env and guest (wasm).
- io
- Traits for implementing IO handlers. This is to enable generic IO. The defaults are the obvious Rust native functions.
- 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
- logging
- A module for anything related to logging
- masp
- MASP verification wrappers.
- masp_
primitives - General MASP primitives.
- masp_
proofs - MASP circuits and proofs.
- migrations
- parameters
- Protocol parameters
- proof_
of_ stake - Proof of Stake system.
- queries
- Ledger read-only queries can be handled and dispatched via the
RPCdefined viarouter!macro. - rpc
- SDK RPC queries
- signing
- Functions to sign transactions
- state
- Ledger’s state storage with key-value backed store and a merkle tree
- 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_
node - tendermint_
proto - Re-export of tendermint-proto v0.37
- tendermint_
rpc - Tendermint RPC definitions and types.
- time
- Types for dealing with time and durations.
- token
- Namada transparent and shielded token types, storage keys and storage fns.
- 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.
- wallet
- wasm_
loader - A module for loading WASM files and downloading pre-built WASMs.
Macros§
- impl_
display_ and_ from_ str_ via_ format - Implement
std::fmt::Displayandstd::str::FromStrviaFormat. - router
- Compile time tree patterns router with type-safe dynamic parameter parsing, automatic routing, type-safe path constructors and optional client query methods.
- wrap
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