Crate namada_ibc

Crate namada_ibc 

Source
Expand description

IBC library code

Re-exports§

pub use context::ValidationParams;
pub use context::common::IbcCommonContext;
pub use context::nft_transfer::NftTransferContext;
pub use context::nft_transfer_mod::NftTransferModule;
pub use context::storage::IbcStorageContext;
pub use context::token_transfer::TokenTransferContext;
pub use context::transfer_mod::ModuleWrapper;
pub use context::transfer_mod::TransferModule;

Modules§

apps
Re-exports implementations of various IBC applications.
clients
Re-exports implementations of IBC light clients.
context
IBC Contexts
core
Re-exports implementations of all the IBC core (TAO) modules.
cosmos_host
Re-exports Cosmos-specific utility types, traits, and implementations.
derive
Re-exports convenient derive macros from ibc-derive crate.
event
IBC event related types
parameters
IBC system parameters
primitives
Re-exports primitive types and traits from the ibc-primitives crate.
storage
Functions for IBC-related data to access the storage
trace
Functions for IBC token
vp
IBC integration as a native validity predicate

Structs§

IbcActions
IBC actions to handle IBC operations
IbcShieldingData
Shielding data in IBC packet memo
IbcTokenHash
IBC token hash derived from a denomination.
InternalData
Internal transfer data extracted from the wrapping IBC transaction
MsgNftTransfer
IBC NFT transfer message with Transfer
MsgTransfer
IBC transfer message with Transfer
NamadaMemo
Memo data serialized as a JSON object included in IBC packets.
NftClass
NFT class
NftMetadata
NFT metadata
OsmosisSwapMemoData
Osmosis swap memo data.
OsmosisSwapMemoDataInner
Osmosis swap inner memo data.
PGFIbcTarget
The target of a PGF payment
ProofSpec
Store
IBC storage Keys/Read/Write implementation

Enums§

Error
IbcMessage
The different variants of an Ibc message
NamadaMemoData
Data included in a Namada memo.

Constants§

COMMITMENT_PREFIX
The commitment prefix for the ICS23 commitment proof
EVENT_TYPE_NFT_PACKET
The event type defined in ibc-rs for receiving an NFT
EVENT_TYPE_PACKET
The event type defined in ibc-rs for receiving a token
IBC_ESCROW_ADDRESS
The escrow address for IBC transfer

Traits§

ValidNamadaMemo
Marker trait that denotes whether an IBC memo is valid in Namada.

Functions§

convert_masp_tx_to_ibc_memo
Get IBC memo string from MASP transaction for receiving
decode_ibc_shielding_data
Decode IBC shielding data from the string
decode_message
Tries to decode transaction data to an IbcMessage
extract_masp_tx_from_envelope
Extract MASP transaction from IBC envelope
extract_masp_tx_from_packet
Extract MASP transaction from IBC packet memo
extract_traces_from_recv_msg
Extract the traces used in a receive packet message
finalize_block
Update IBC-related data when finalizing block
get_last_sequence_send
Return the last sequence send
init_genesis_storage
Initialize storage in the genesis block.
received_ibc_token
Get the IbcToken from the source/destination ports and channels
transfer_over_ibc
Transfer tokens over IBC

Type Aliases§

IbcTxDataHash
IBC transaction data section hash