add in instructions pallet tests (#608)

* add pallet tests

* set mock runtime AllowMint to correct type
This commit is contained in:
akildemir
2025-01-30 12:13:21 +03:00
committed by GitHub
parent a275023cfc
commit 9c33a711d7
7 changed files with 749 additions and 8 deletions

View File

@@ -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>;