Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: currency traits and implementations #82

Merged
merged 2 commits into from
Sep 23, 2024
Merged

refactor: currency traits and implementations #82

merged 2 commits into from
Sep 23, 2024

Commits on Sep 22, 2024

  1. refactor: currency traits and implementations

    Streamline trait implementations for `Currency` and `NativeCurrency` by removing redundant methods and consolidating logic. Adjust various currency-related entities (`Ether`, `Token`) to align with these changes, ensuring consistency and reducing code duplication.
    shuhuiluo committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    618cf7f View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. refactor: implement currency traits using macros

    Consolidated the `Currency` trait implementations using macros for `Ether`, `Token`, and `CurrencyLike` types. This reduces code duplication and improves maintainability. The macros now handle trait method definitions for multiple types.
    shuhuiluo committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    629b221 View commit details
    Browse the repository at this point in the history