Commit e8cd17e
feat(ci): wire contracts/*.sol into hardhat, bump solc to 0.8.26 cancun
PR #27 unbroke `npx hardhat compile` (got `npm ci` working), but the job
still output "Nothing to compile" — hardhat looked at `deploy/contracts/`
which doesn't exist; the repo's Solidity sources live in `contracts/` at
the repo root.
This wires them up properly:
- `paths.root = ".."` + `paths.sources = "contracts"` points hardhat at
the real source tree. `paths.tests` / `paths.cache` / `paths.artifacts`
follow the same root-relative convention so the structure stays clean.
- Solidity bumped to `0.8.26` with `evmVersion: "cancun"` because
`@openzeppelin/contracts ^5.0.0` (already in `package.json`) uses
`mcopy` in `utils/Memory.sol`, which needs the cancun opcode.
Verification (locally, from `deploy/`):
```
$ rm -rf cache artifacts && npx hardhat compile
Compiled 24 Solidity files successfully (evm target: cancun).
```
The `contracts` CI job on main will now actually type-check the four
Solidity files we ship — `MeridianVault.sol`, `MeridianVaultERC4626.sol`
(ERC-4626 vault-share token), `OracleAdapter.sol`, `StrategyExecutor.sol`
— instead of silently succeeding on an empty source set.
Follow-up (separate PR): fix the `_getChainlinkPrice(pairId, ...)` vs
`pairId(string)` name-shadowing warning in OracleAdapter.sol.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 7a87fa6 commit e8cd17e
5 files changed
Lines changed: 32 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
25 | | - | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
8 | 18 | | |
9 | 19 | | |
| |||
This file was deleted.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments