Skip to content

Add storage usage introspection helper for crowdfund_vault (#863) - #1004

Merged
Cedarich merged 10 commits into
Pulsefy:mainfrom
xtrial01:feat/storage-introspection-863
Jul 1, 2026
Merged

Add storage usage introspection helper for crowdfund_vault (#863)#1004
Cedarich merged 10 commits into
Pulsefy:mainfrom
xtrial01:feat/storage-introspection-863

Conversation

@xtrial01

@xtrial01 xtrial01 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Closes #863

Adds lightweight storage usage introspection helpers to crowdfund_vault.

Changes:

  • ProjectStorageSummary struct (storage.rs)
  • get_project_storage_summary() read-only query (lib.rs)
  • get_refund_receipt_count() helper (lib.rs)
  • 3 unit tests covering nonexistent project, existing project,
    and total_projects accuracy (test.rs)
  • Maintainer docs in SMART_CONTRACTS.md with usage examples

All read-only — no storage writes, no added rent cost.
Build passing, all tests green.

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@xtrial01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich

Copy link
Copy Markdown
Contributor

@xtrial01

@xtrial01

Copy link
Copy Markdown
Contributor Author

@xtrial01

Working on it

@xtrial01
xtrial01 force-pushed the feat/storage-introspection-863 branch from 17b609b to ecc658f Compare July 1, 2026 16:35
@xtrial01

xtrial01 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@xtrial01

recheck boss

@Cedarich

Cedarich commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@xtrial01 please fix failing workflow

@xtrial01

xtrial01 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@xtrial01 please fix failing workflow

Fixed - resolved the merge conflict and formatting issue, CI re-running now.

@xtrial01

xtrial01 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@xtrial01 please fix failing workflow

Fixed - resolved the merge conflict and formatting issue, CI re-running now.

pls recheck now

@Cedarich

Cedarich commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@xtrial01

@Cedarich
Cedarich merged commit 9db39df into Pulsefy:main Jul 1, 2026
1 check 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.

Contracts: Contract storage usage introspection helpers

2 participants