create-shield-unshield-dapp 1.0.3 → 1.0.4
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/package.json +1 -1
- package/template/README.md +18 -0
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -154,6 +154,24 @@ Obtain the USDC, cUSDC, USDT, and cUSDT contract addresses from your deployment
|
|
|
154
154
|
|
|
155
155
|
---
|
|
156
156
|
|
|
157
|
+
## Contract structure (`contracts/` folder)
|
|
158
|
+
|
|
159
|
+
When you scaffold or clone this project, the **contracts/** folder contains a Hardhat project so you can deploy your own ERC-7984 wrappers and test tokens. Layout:
|
|
160
|
+
|
|
161
|
+
| Path | Description |
|
|
162
|
+
|------|--------------|
|
|
163
|
+
| `contracts/contracts/ConfidentialTokenWrapper.sol` | ERC-7984 wrapper (same pattern as Zama payroll). Wraps any ERC-20 into a confidential token with `wrap`, `unwrap`, `finalizeUnwrap`, `confidentialTransfer`. |
|
|
164
|
+
| `contracts/contracts/test/MockUSDC.sol` | Mock ERC-20 (6 decimals, `mint`) for **local testing only**. |
|
|
165
|
+
| `contracts/contracts/test/MockUSDT.sol` | Mock ERC-20 (6 decimals, `mint`) for **local testing only**. |
|
|
166
|
+
| `contracts/scripts/deploy-local.ts` | Deploys mocks + two wrappers (cUSDC, cUSDT) on Hardhat network, mints test tokens, prints `.env` lines. |
|
|
167
|
+
| `contracts/scripts/deploy-sepolia.ts` | Deploys wrappers on Sepolia using real USDC (and optional USDT). Requires `PRIVATE_KEY` in `contracts/.env`. |
|
|
168
|
+
| `contracts/hardhat.config.ts` | Hardhat config (networks: `hardhat`, `sepolia`). |
|
|
169
|
+
| `contracts/package.json` | Run `npm install --legacy-peer-deps` then `npm run compile`, `npm run deploy:local`, or `npm run deploy:sepolia`. |
|
|
170
|
+
|
|
171
|
+
Full setup and usage: **contracts/README.md**.
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
157
175
|
## Build and preview
|
|
158
176
|
|
|
159
177
|
```bash
|