Re-exports
pub use super::Fixed;
pub use super::FixedInner;
pub use fixnum;
pub use super::serialization::*;
pub use super::weights::*;
Structs
- This is wrapped structure, this is like H256 or Р512, extra PhantomData is added for typing reasons.
- BalanceUnit wraps Balance and provides proper math operations between divisible & non-divisible balances that have different precision.
- Wrapper type which extends Balance serialization, used for json in RPC’s.
- Information about state of particular DEX.
- A convenient wrapper around
Fixed
type for safe math. - Identification of liquidity source.
- Information about received oracle symbol (price and last update time)
- Amount of output tokens from either price request or actual exchange.
- Trading pair data.
Enums
- DEX identifier.
- Common error which can arise while invoking particular RPC call in runtime.
- Enumaration of all available liquidity sources.
- List of available oracles
- Asset identifier.
- Reason for particular reward during swap.
- Used to identify intention of caller either to transfer tokens based on exact input amount or exact output amount.
- Used to identify intention of caller to indicate desired input amount or desired output amount. Similar to SwapAmount, does not hold value in order to be used in external API.
- Enum encoding of technical account id, pure and wrapped records. Enum record
WrappedRepr
is wrapped represention ofPure
variant of enum, this is useful then representation is known but backward mapping is not known. - Code of purpose for technical account.
Constants
- Max length of asset content source. The same value as IE URL length. It should enough for any URI / IPFS address (CID)
- Max length of asset description, it should be enough to describe everything the user wants
Traits
- Trait to provide info about assets
- Common DEX trait. Used for DEX-related pallets.
DataFeed
trait indicates that particular object could be used for querying oracle data.- Trait to provide DEXInfo
- Check on origin that it is a DEX owner.
- Abstract trait to get data type from generic pair name and data.
- Trait for bounding liquidity proxy associated type representing primary market in TBC.
- Trait for bounding liquidity proxy associated type representing secondary market.
- Indicates that particular object can be used to perform exchanges with aggregation capability.
- Indicates that particular object can be used to perform exchanges.
- Hook-like trait for oracles to capture newly relayed symbols.
- General trait for passing pswap amount burned information to required pallets.
- General trait for passing on the amount of burned VAL.
- Definition of a pending atomic swap action. It contains the following three phrases:
- Trait to abstract interface of VestedRewards pallet, in order for pallets with rewards sources avoid having dependency issues.
Type Definitions
- This code is H256 like.