mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-23 15:44:50 +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 Common
ALPHA This library is in early development, the API will change and should be used with caution.
Common types and utilities shared across the Cashu Development Kit (CDK) crates.
Installation
Add this to your Cargo.toml:
[dependencies]
cdk-common = "*"
Features
This crate provides common functionality used across CDK crates including:
- Common data types and structures
- Shared traits and interfaces
- Utility functions
- Error types
License
This project is licensed under the MIT License.