Plugins
New Features:
CLI for Contract Operations
Introducing a Command-Line Interface (CLI) for contract-specific operations.
Deploy and Evolve Changes
Deploy and evolve commands are now invoked through the CLI, providing enhanced parameter control.
Contract name, source, and state can be easily specified, with optional support for a custom initial state path.
Create Command
Added a create command to the CLI for generating copies of contract code and initial state, facilitating contract customization.
Build Command
The CLI now includes a build command, consolidating logic from yarn contract:build. Logic from build.cjs has been moved within the CLI.
Package Version in Contract State
Package version is now recorded in the contract state upon deployment.
getState Utility
Added getState as a utility wrapper around base.readState().
Development Workflow Improvements:
Smart contracts now must be written at src/contracts/.contract.ts.
Contract build outputs bundled code at src/contracts/build/.js.
These updates enhance contract development, providing a more streamlined CLI experience and improving the organization of the contract workflow.
Check the contract development documentation for getting started.
See #51 if you want to dive deeper.