Skip to content

Restore/sunhat 2 - #60

Merged
grayfoxd merged 5 commits into
release_2.0.0from
restore/sunhat-2
Oct 27, 2026
Merged

grayfoxd merged 5 commits into
release_2.0.0from
restore/sunhat-2

Conversation

@grayfoxd

Copy link
Copy Markdown
Contributor

This PR replaces the legacy Sunhat Hardhat plugin with a standalone CLI supporting Hardhat 2 and Foundry projects on EVM and TRON. Sunhat handles project setup, toolchain selection, and command routing while leaving compilation, testing, and deployment execution to the selected framework.

Add sunhat.toml to bind each project to a framework and target.
Add project scaffolding and adoption through sunhat init, defaulting to Foundry/TRON.
Forward native commands and arguments directly to project-local framework executables.
Add Foundry toolchain installation, archive SHA-256 verification, and executable integrity checks.
Add EVM/TRON templates with sample contracts, tests, deployment scripts, and setup documentation.
Preserve child-process output, exit codes, and termination signals.
Replace the previous test setup with CLI routing and initialization coverage.
Breaking changes

Rename the npm package from @sun-protocol/sunhat to sunhat.
Remove the sunhat hardhat ... and sunhat foundry ... namespaces.
Remove legacy plugin APIs, deployment management, verification/audit integrations, bundled proxy artifacts, and Vyper integration.
Remove the bundled VS Code extension and Docker development-image publishing workflow.
Validation

111 repository tests passed.
Generated Hardhat/EVM project compiled and passed its test.
Generated Hardhat/TRON project compiled successfully.
Pinned Foundry/TRON toolchain installed, compiled the template, passed both tests, and simulated the deployment script.
Outstanding review items

Windows executable naming, cross-filesystem installation, npm packaging build hooks, immutable TRON release URLs, and generated Hardhat TypeScript compatibility require fixes before release.

This PR restores the Sunhat v2.0.0 changes originally introduced in #55 and reverted by #58, including the latest fixes and lint/formatting improvements. See #55 for the original implementation discussion, review comments, and design context.

@grayfoxd
grayfoxd merged commit 66762cc into release_2.0.0 Oct 27, 2026
6 checks 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.

1 participant