split MintDatabase into separate narrower scoped traits

- MintKeysDatabase
- MintQuotesDatabase
- MintProofsDatabase
- MintSignaturesDatabase

This commit splits the MintDatabase trait with 30+ methods into a series
of smaller traits, each dedicate to a specific subsystem of the mint
service.
This commit is contained in:
codingpeanut157
2025-03-26 16:48:41 +01:00
parent 7b4951041e
commit 47903c3bfd
12 changed files with 301 additions and 227 deletions

View File

@@ -19,7 +19,7 @@ pub async fn start_fake_mint_with_auth<D, A>(
auth_database: A,
) -> Result<()>
where
D: MintDatabase<Err = cdk_database::Error> + Send + Sync + 'static,
D: MintDatabase<cdk_database::Error> + Send + Sync + 'static,
A: MintAuthDatabase<Err = cdk_database::Error> + Send + Sync + 'static,
{
let fee_reserve = FeeReserve {