mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-18 21:25:09 +01:00
* Add consistent ordering of sql migrations Also sort the prefix and not only the filenames * Reorganize tests, add mint quote/payment coverage, and prevent over-issuing Reorganizes the mint test suite into clear modules, adds comprehensive mint quote & payment scenarios, enhances the shared test macro, and hardens SQL logic to forbid issuing more than what’s been paid. These tests were added: * Add quote once; reject duplicates. * Register multiple payments and verify aggregated amount_paid. * Read parity between DB and in-TX views. * Reject duplicate payment_id in same and different transactions. * Reject over-issuing (same TX, different TX, with/without prior payments). --------- Co-authored-by: thesimplekid <tsk@thesimplekid.com>
CDK SQL Base
This is a private crate offering a common framework to interact with SQL databases.
This crate uses standard SQL, a generic migration framework a traits to implement blocking or non-blocking clients.
ALPHA This library is in early development, the API will change and should be used with caution.
Features
The following crate feature flags are available:
| Feature | Default | Description |
|---|---|---|
wallet |
Yes | Enable cashu wallet features |
mint |
Yes | Enable cashu mint wallet features |
auth |
Yes | Enable cashu mint auth features |
License
This project is licensed under the MIT License.