mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 20:59:23 +00:00
add in instructions pallet tests (#608)
* add pallet tests * set mock runtime AllowMint to correct type
This commit is contained in:
@@ -64,6 +64,7 @@ pub mod pallet {
|
||||
|
||||
/// Keeps shares and the amount of coins per account.
|
||||
#[pallet::storage]
|
||||
#[pallet::getter(fn liquidity)]
|
||||
pub(crate) type Liquidity<T: Config> = StorageDoubleMap<
|
||||
_,
|
||||
Identity,
|
||||
@@ -76,6 +77,7 @@ pub mod pallet {
|
||||
|
||||
/// Keeps the total shares and the total amount of coins per coin.
|
||||
#[pallet::storage]
|
||||
#[pallet::getter(fn supply)]
|
||||
pub(crate) type Supply<T: Config> =
|
||||
StorageMap<_, Identity, ExternalCoin, LiquidityAmount, OptionQuery>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user