Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions contracts/CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,14 @@ Run the benchmark script:
```

This builds the contract in release mode and simulates each function, reporting storage bytes read/written and estimated CPU cost.

## SC-82 Job Archive

Admin-triggered archive moves old completed/cancelled jobs out of active storage:

- `ARCHIVE_THRESHOLD` — 180 days (ledger timestamp seconds)
- `archive_old_jobs(admin, cutoff_timestamp) -> u64` — archives eligible jobs, emits `job_archived`
- `get_archived_job(admin, job_id) -> Option<Job>` — archived record (same schema as active jobs)
- `get_archive_count(admin) -> u64` — monitoring helper

Active listing APIs only read `DataKey::Job`; archived entries live under `DataKey::ArchivedJob` and are excluded automatically.
Loading
Loading