@pasosdejesus/m 0.34.1 → 0.35.0
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/dist/CHANGELOG.md +13 -0
- package/dist/templates/Makefile +2 -1
- package/dist/templates/apps/contracts/Makefile +4 -1
- package/dist/templates/apps/contracts/README.md +11 -13
- package/dist/templates/apps/contracts/package.json.hbs +2 -1
- package/dist/templates/apps/web/package.json.hbs +1 -0
- package/dist/templates/pnpm-workspace.yaml.hbs +1 -0
- package/package.json +1 -1
package/dist/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@pasosdejesus/m` are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.35.0] - 2026-10-20
|
|
6
|
+
|
|
7
|
+
### Changed — generated projects use `contract:test` and `contract:checkdeploy`
|
|
8
|
+
|
|
9
|
+
- `m:create` declares `@pasosdejesus/contract-test` (`catalog:`, `^0.1.7`) in the web app, so the
|
|
10
|
+
plugin is discovered and both commands are available in the new project.
|
|
11
|
+
- `apps/contracts` runs `../web/bin/m contract:test` instead of `hardhat test` (works on OpenBSD/adJ
|
|
12
|
+
through `@ethereumjs/vm`, without the native EDR binary) and exposes `pnpm checkdeploy`.
|
|
13
|
+
- The root `Makefile` gate is now `m:check` + `contract:checkdeploy`; the contracts README and
|
|
14
|
+
`apps/contracts/deployments/README.md` document the JSON layout and the check.
|
|
15
|
+
- `tests/test-project` aligned: the stale `../nextjs/bin/m` path is gone and it gains the
|
|
16
|
+
`checkdeploy` script/target.
|
|
17
|
+
|
|
5
18
|
## [0.34.1] - 2026-10-20
|
|
6
19
|
|
|
7
20
|
### Added — `contract:checkdeploy` (**`contract-test@0.1.7`**)
|
package/dist/templates/Makefile
CHANGED
|
@@ -27,9 +27,10 @@ type:
|
|
|
27
27
|
@echo "Type-checking in apps/contracts..."
|
|
28
28
|
@(cd apps/contracts && $(MAKE) type)
|
|
29
29
|
|
|
30
|
-
# Estructura
|
|
30
|
+
# Estructura (REQ/56) y direcciones de despliegue (REQ/60).
|
|
31
31
|
check:
|
|
32
32
|
@./apps/web/bin/m m:check
|
|
33
|
+
@./apps/web/bin/m contract:checkdeploy
|
|
33
34
|
|
|
34
35
|
update-skills:
|
|
35
36
|
npx skills add celo-org/celopedia-skills
|
|
@@ -57,24 +57,22 @@ pnpm verify
|
|
|
57
57
|
|
|
58
58
|
## 4. Testing
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
`pnpm test` runs `contract:test` from the `m` plugin: it compiles with Hardhat and runs the specs on
|
|
61
|
+
`@ethereumjs/vm` via `@pasosdejesus/edr`, so it works on OpenBSD/adJ where the native Hardhat EDR
|
|
62
|
+
binary does not exist.
|
|
63
63
|
|
|
64
64
|
```sh
|
|
65
|
-
pnpm test
|
|
65
|
+
pnpm test # contract:test (m plugin)
|
|
66
|
+
pnpm checkdeploy # contract:checkdeploy: deployment addresses and their use
|
|
66
67
|
```
|
|
67
68
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### OpenBSD / adJ
|
|
71
|
-
|
|
72
|
-
```sh
|
|
73
|
-
cd ../web && pnpm contract:test
|
|
74
|
-
```
|
|
69
|
+
If the platform has the native EDR binary and you prefer Hardhat's own runner:
|
|
70
|
+
`npx hardhat test`.
|
|
75
71
|
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
`contract:checkdeploy` validates `deployments/**/*.json` (non-zero 40-hex address, matching
|
|
73
|
+
network, expected fields) and that the sources read addresses with
|
|
74
|
+
`@pasosdejesus/m/blockchain/deployments` instead of literals; `make check` at the workspace root runs
|
|
75
|
+
it after `m:check`.
|
|
78
76
|
|
|
79
77
|
## ABI Synchronization
|
|
80
78
|
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"build": "pnpm compile && pnpm tsc",
|
|
40
40
|
"clean": "hardhat clean",
|
|
41
41
|
"run:node": "hardhat node",
|
|
42
|
-
"test": "
|
|
42
|
+
"test": "../web/bin/m contract:test",
|
|
43
|
+
"checkdeploy": "../web/bin/m contract:checkdeploy",
|
|
43
44
|
"deploy": "bin/deployLearnTGVaults",
|
|
44
45
|
"verify": "bin/verifyLearnTGVaults",
|
|
45
46
|
"contract-verification": "bin/contractVerification",
|