@monygroupcorp/micro-web3 0.1.0 → 0.1.3
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 +14 -0
- package/dist/micro-web3.cjs.js +2 -2
- package/dist/micro-web3.cjs.js.map +1 -1
- package/dist/micro-web3.esm.js +2 -2
- package/dist/micro-web3.esm.js.map +1 -1
- package/dist/micro-web3.umd.js +2 -2
- package/dist/micro-web3.umd.js.map +1 -1
- package/monygroupcorp-micro-web3-0.1.3.tgz +0 -0
- package/package.json +1 -1
- package/rollup.config.cjs +2 -2
- package/src/components/FloatingWalletButton/FloatingWalletButton.css +227 -0
- package/src/components/FloatingWalletButton/FloatingWalletButton.js +680 -0
- package/src/components/WalletButton/WalletButton.js +213 -0
- package/src/index.js +5 -3
- package/src/services/BlockchainService.js +6 -6
- package/src/services/WETHService.js +52 -0
- package/src/services/WalletService.js +2 -1
- package/src/components/Wallet/WalletSplash.js +0 -567
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.
|