Files
cdk/crates/cdk-common
C 841e35d70f Reorganize tests, add mint quote/payment coverage, and prevent over-issuing (#1048)
* 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>
2025-09-08 14:55:41 +01:00
..
2025-08-18 16:25:24 +01:00
2025-05-29 09:38:10 -04:00

CDK Common

crates.io Documentation MIT licensed

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.