Crate cfg_traits
source ·Expand description
§A common trait lib for centrifuge
This crate provides some common traits used by centrifuge.
Modules§
Structs§
- A provider that never returns a value
Enums§
- Variants for valid Pool updates to send out as events
Traits§
- Trait to retrieve information about currencies.
- Trait to signal an epoch transition.
- Checks whether an asset is the local representation of another one
- Trait to synchronously provide a currency conversion estimation for foreign currencies into/from pool currencies.
- Trait to convert into seconds
- A trait that support pool inspection operations such as pool existence checks and pool admin of permission set.
- A trait that supports retrieval and mutation of pool and tranche token metadata.
- A trait that supports modifications of pools
- A trait that can be used to fetch the nav and update nav for a given pool
- A trait that support pool reserve operations such as withdraw and deposit
- A trait that supports modifications of pool write-off policies
- Trait to transmit a change of status for anything uniquely identifiable.
- Trait to obtain the time as seconds
- Get the latest price for a given tranche token
- Trait to determine whether a sending account and currency have a restriction, and if so is there an allowance for the receiver location.
- A trait for trying to convert between two types.
Type Aliases§
- The asset metadata configured using the trait types
- Type to represent milliseconds
- Type to represent seconds