Skip to content

test(storage): add storage footprint audit and budget regression suite (#192) - #309

Closed
B3N-max wants to merge 3 commits into
ApexChainx:mainfrom
B3N-max:fix/issue-192-storage-footprint-audit
Closed

test(storage): add storage footprint audit and budget regression suite (#192)#309
B3N-max wants to merge 3 commits into
ApexChainx:mainfrom
B3N-max:fix/issue-192-storage-footprint-audit

Conversation

@B3N-max

@B3N-max B3N-max commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a comprehensive storage footprint audit and budget regression test suite for long-lived contract deployments.

Changes

  • New file: storage_footprint_tests.rs with 7 focused tests
  • storage_key_count_is_stable_after_init: validates all 17 known storage keys
  • single_sla_result_entry_under_4k_bytes: per-entry size sanity
  • history_growth_is_linear_then_bounded: growth curve validation
  • saturation_regression_1000_calculations: proves O(n) storage
  • config_storage_footprint_does_not_grow_on_update: config stability
  • pause_cycles_do_not_leak_storage: pause/unpause idempotency
  • lib.rs: Registered the new storage_footprint_tests module

Closes #192

ApexChainx#192)

- Add storage_footprint_tests.rs with comprehensive storage audit tests
- storage_key_count_is_stable_after_init: validates all 17 known keys
- single_sla_result_entry_under_4k_bytes: per-entry size sanity
- history_growth_is_linear_then_bounded: growth curve validation
- saturation_regression_1000_calculations: O(n) storage proof
- config_storage_footprint_does_not_grow_on_update: config stability
- pause_cycles_do_not_leak_storage: pause/unpause idempotency
- Closes ApexChainx#192
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@B3N-max 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

Copy link
Copy Markdown
Contributor

Skipping — Code Coverage check is failing. Please fix the coverage and re-push! ⚠️

Copy link
Copy Markdown
Contributor

Merged — nice work! 🚀

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.

Add a contract storage footprint audit and budget regression suite for long-lived deployments

2 participants