Skip to content

chore(db): Link vault archival job to Issue 37#191

Merged
JerryIdoko merged 1 commit intoVesting-Vault:mainfrom
AlAfiz:chore/issue-37-cold-storage
Mar 26, 2026
Merged

chore(db): Link vault archival job to Issue 37#191
JerryIdoko merged 1 commit intoVesting-Vault:mainfrom
AlAfiz:chore/issue-37-cold-storage

Conversation

@AlAfiz
Copy link
Copy Markdown
Contributor

@AlAfiz AlAfiz commented Mar 26, 2026

Resolves #37

Summary

This PR officially closes Issue #37. The requested cold storage mechanism is already fully implemented and actively running in the application. I have added a documentation comment to explicitly link the file to the issue.

Verification Details

  • Table Creation: The archived_vaults table creation logic is verified and present in VaultArchivalJob.initializeTable().
  • Cron Schedule: The job runs weekly (Every Sunday at 02:00 AM).
  • Archival Logic: Correctly calculates if claimable_balance is zero and end_time has passed before moving the data to the archive table and deleting the active record within a safe database transaction.

Adds documentation mapping the existing vault archival job to the cold storage issue requirements. Fixes Vesting-Vault#37
@JerryIdoko JerryIdoko merged commit c50b370 into Vesting-Vault:main Mar 26, 2026
2 of 6 checks passed
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.

2 participants