Skip to content

feats: add history command - #412

Open
0x76agabond wants to merge 2 commits into
Perfect-Abstractions:mainfrom
0x76agabond:feature/compose-history
Open

0x76agabond wants to merge 2 commits into
Perfect-Abstractions:mainfrom
0x76agabond:feature/compose-history

Conversation

@0x76agabond

Copy link
Copy Markdown
Collaborator

Summary

Add compose history to inspect a diamond’s ERC-8153 upgrade events in a newest-first timeline.

Changes Made

  • Added RPC log queries, event decoding, and a CLI timeline for facet changes, metadata, and delegatecalls.
  • Show selectors by calling exportSelectors() directly on each facet address.
  • Added unit tests and Anvil end-to-end coverage for all five ERC-8153 events.

Checklist

Before submitting this PR, please ensure:

  • Code follows the Solidity feature ban - No inheritance, constructors, modifiers, public/private variables, external library functions, using for directives, or selfdestruct

  • Code follows Design Principles - Readable, uses diamond storage, favors composition over inheritance

  • Code matches the codebase style - Consistent formatting, documentation, and patterns (e.g. ERC20Facet.sol)

  • Code is formatted with forge fmt

  • Existing tests pass - Run tests to be sure existing tests pass.

  • New tests are optional - If you don't provide tests for new functionality or changes then please create a new issue so this can be assigned to someone.

  • All tests pass - Run forge test and ensure everything works

  • Documentation updated - If applicable, update relevant documentation

  • Changesets — If this PR changes publishable packages (src/, cli/), changeset-bot will comment if a release note might be needed. You can add one when convenient or defer to maintainers.

Make sure to follow the contributing guidelines.

Additional Notes

@netlify

netlify Bot commented Oct 9, 2026

Copy link
Copy Markdown

👷 Deploy request for compose-diamonds pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f3a0ca9

@changeset-bot

changeset-bot Bot commented Oct 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f3a0ca9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@perfect-abstractions/compose-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

CLI Coverage

Commit: f3a0ca9

Metric Coverage Covered/Total
Lines 71% 2202/3104
Functions 75% 462/619
Branches 61% 1235/2022

This branch has not been deployed

No deployments
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.

1 participant