Repository navigation
Restore/sunhat 2 - #60
Merged
Merged
Conversation
Install and verify Foundry during init using template-owned release data. Remove runtime digest checks, the check command, and unused binary hash records while keeping legacy locks readable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.