Re-exports
Modules
Macros
Structs
- This is wrapped structure, this is like H256 or Р512, extra PhantomData is added for typing reasons.
- Wrapper type which extends Balance serialization, used for json in RPC’s.
- Information about state of particular DEX.
- Identification of liquidity source.
- Information about received oracle symbol (price and last update time)
- 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.
- Enum encoding of technical account id, pure and wrapped records. Enum recordWrappedRepris wrapped represention ofPurevariant 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
- This data is used as prefix in AccountId32, if it is representative for TechAccId encode twox hash (128 + 128 = 256 bit of AccountId32 for example).
Traits
- Trait to provide info about assets
- Common DEX trait. Used for DEX-related pallets.
- DataFeedtrait 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.
Functions
- Commutative merkle operation, is crypto safe, defined as hash(a,b)xorhash(b,a).
- Converts block_number to timestamp
- Sorting of keys and values by key with hash_key, useful for crypto sorting with commutative merkle operator.
- Similar to #[transactional]
Type Definitions
- Basic type representing asset.
- This code is H256 like.
- Type definition representing financial basis points (1bp is 0.01%)
- Basic type representing assets quantity.