Skip to content

Feat/paginate inspect storage - #162

Merged
Nanle-code merged 4 commits into
Nanle-code:masterfrom
cyber-excel10:feat/paginate-inspect-storage
May 28, 2026
Merged

Feat/paginate inspect storage#162
Nanle-code merged 4 commits into
Nanle-code:masterfrom
cyber-excel10:feat/paginate-inspect-storage

Conversation

@cyber-excel10

Copy link
Copy Markdown
Contributor

Closes #108

Changes

  • Added --limit flag to StorageArgs (default: 20) to cap number of entries shown
  • Added --cursor flag to StorageArgs to support offset-based pagination
  • Added paginate() helper that slices the storage entries by cursor + limit
  • Shows a hint message when more entries are available: "Use --cursor N to see more"

Usage

Show first 20 entries (default)

starforge inspect storage <CONTRACT_ID>

Show 5 entries

starforge inspect storage <CONTRACT_ID> --limit 5

Show next page starting from entry 20

starforge inspect storage <CONTRACT_ID> --cursor 20

Note

The remaining build failures are pre-existing on main and unrelated to this PR .

@drips-wave

drips-wave Bot commented May 28, 2026

Copy link
Copy Markdown

@cyber-excel10 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

@Nanle-code
Nanle-code merged commit ade4c4e into Nanle-code:master May 28, 2026
1 check failed
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.

Issue 17: Paginate large contract storage in inspect commands

2 participants