@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 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`**)
@@ -27,9 +27,10 @@ type:
27
27
  @echo "Type-checking in apps/contracts..."
28
28
  @(cd apps/contracts && $(MAKE) type)
29
29
 
30
- # Estructura recomendada (REQ/56): raíz + apps/web + apps/contracts + catalog.
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
@@ -1,8 +1,11 @@
1
- .PHONY: test type compile deploy-mock-usdt
1
+ .PHONY: test checkdeploy type compile deploy-mock-usdt
2
2
 
3
3
  test:
4
4
  pnpm test
5
5
 
6
+ checkdeploy:
7
+ pnpm checkdeploy
8
+
6
9
  type:
7
10
  pnpm build
8
11
 
@@ -57,24 +57,22 @@ pnpm verify
57
57
 
58
58
  ## 4. Testing
59
59
 
60
- Two test runners are available:
61
-
62
- ### Standard (Hardhat)
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
- Runs `hardhat test` with the built-in Hardhat Network (requires native EDR binary).
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
- Uses `@ethereumjs/vm` fallback via `@pasosdejesus/edr`. Run from the
77
- nextjs app directory.
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": "hardhat 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",
@@ -24,6 +24,7 @@
24
24
  "react-dom": "catalog:"
25
25
  },
26
26
  "devDependencies": {
27
+ "@pasosdejesus/contract-test": "catalog:",
27
28
  "@testing-library/react": "16.3.2",
28
29
  "@types/node": "20.19.30",
29
30
  "@types/pg": "^8.23.1",
@@ -13,6 +13,7 @@ catalog:
13
13
  '@pasosdejesus/m': ^{{m_version}}
14
14
  '@pasosdejesus/mpdj': ^0.3.0
15
15
  '@pasosdejesus/usdt': ^0.1.3
16
+ '@pasosdejesus/contract-test': ^0.1.7
16
17
  # compartidas por apps/web y apps/contracts
17
18
  typescript: 5.9.3
18
19
  viem: ^2.51.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pasosdejesus/m",
3
- "version": "0.34.1",
3
+ "version": "0.35.0",
4
4
  "description": "Motor para crear y gestionar proyectos al estilo Pasos de Jesus.",
5
5
  "author": "",
6
6
  "license": "ISC",