@monygroupcorp/micro-web3 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -85,3 +85,17 @@ class MyApp extends Component {
85
85
  }
86
86
  }
87
87
  ```
88
+
89
+ ## Local Anvil Workflow
90
+
91
+ For a zero-config local fork, use the `web3` template from `create-microact-app`:
92
+
93
+ ```bash
94
+ npx create-microact-app my-web3-app --template web3
95
+ cd my-web3-app
96
+ cp .env.example .env.local # set USER_ADDRESS to your wallet if you want auto-funding
97
+ npm run chain:start # starts an Anvil fork, deploys Counter.sol, funds USER_ADDRESS
98
+ npm run dev # launches Vite with Microact + Micro Web3 UI
99
+ ```
100
+
101
+ The template provisions a Foundry workspace, an `anvil` bootstrap script, and a Counter component that talks to the freshly deployed contract using the services exported by this package.