Crate cw_iper_test
source ·Expand description
cw-iper-test
Re-exports§
pub use anyhow;
pub use cw_multi_test;
pub use serde_json;
pub use strum;
pub use strum_macros;
Modules§
- Default
IbcApplications
Macros§
- Router closure
Structs§
- Structure containing the basic info of a
IperApp
. - This structure acts as a wrapper containing all
IperApp
. - Structure containing the various
ibc closures
cw-iper-test
Core Structure- The
IperIbcModule
is the default struct used in anIperApp
as anIBC module
and contains allIbcApplication
. - The
IperStargateModule
is the default struct used in anIperApp
as anStargate module
and contains allStargateApplication
. - Middleware::mid_packet_receive_after Err Result type.
- Middleware::mid_packet_receive_after Ok Result type.
- Wrapper struct to store both default
Contract
trait and optional [IbcContract
] trait Err
[InfallibleResult
] fromIbcApplication::packet_receive
. Any changes on theStorage
emitted duringIbcApplication::packet_receive
will be reverted.
Enums§
- Define how the ack has to be handled
- Define the
port
type of a ibc-channel - Enum rappresenting how the flow has to be controlled when triggering the
before
variant ofMiddleware
functions.
Traits§
- Trait implemented in
AppBuilder
where: - Trait implemented in
AppBuilder
where: - Extension of
ContractWrapper
, allowing to transform it intoContract
directly - This trait identifies a generic
IBC application
(e.g.,IC20
,ICA
, etc.) that is managed by theIperIbcModule
. TheIperIbcModule
is a structure implementing bothIbc
andModule
traits and serves as theIBC module
for theApp
class of anIperApp
. - This trait is used to implement the
port_name
for aIbcApplication
. - This trait allow to reproduce the functionality of Middleware ibc application (like IbcHook).
Middleware
allow to wrap anotherIbcApplication
and and alter/implement functionality when one of the various functions that theIbcApplication
implements is called. - This trait identifies a generic
Stargate application
(e.g.,TokenFactory
,IC20
) that is managed by theIperStargateModule
. - Trait required by
StargateApplication
. - Trait required by
StargateApplication
for the managment oftype_urls
.