Skip to content

feat(activity): add activity module for transaction history management#6

Merged
coreyphillips merged 5 commits intomasterfrom
activity-module
Dec 31, 2024
Merged

feat(activity): add activity module for transaction history management#6
coreyphillips merged 5 commits intomasterfrom
activity-module

Conversation

@coreyphillips
Copy link
Copy Markdown
Collaborator

@coreyphillips coreyphillips commented Dec 10, 2024

This PR:

  • Adds a new activity module to store and manage transaction/activity history for Bitcoin and Lightning payments with the following functions:
    • init_db
    • upsert_activity
    • insert_activity
    • update_activity
    • get_activities
    • get_activity_by_id
    • delete_activity_by_id
    • add_tags
    • remove_tags
    • get_tags
    • get_activities_by_tag

Add a new activity module to store and manage transaction/activity history for Bitcoin and Lightning payments
@coreyphillips coreyphillips self-assigned this Dec 10, 2024
Replaced all type instances of i32 and i64 to u32 and u64 where applicable.
Replaced insert and update functions with upsert function.
Removed get_all_activities, get_all_onchain_activities, get_all_lightning_activities functions.
Created get_activity function.
Added sort_direction param to get_activities_by_tag & get_activities functions.
@coreyphillips coreyphillips merged commit 6119b17 into master Dec 31, 2024
@coreyphillips coreyphillips deleted the activity-module branch December 31, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant