Commit 18be1af
test: port periphery suite (routers + examples) to Hardhat
V1-free v2Fixture (no migrator / flash-swap); full suite is 145 passing.
- port ListaV2Router01/02 and 4 example specs to ethers v5 + hardhat-waffle
- Router01: single module-level fixture-loader with hooks scoped inside the
per-version describe (the shared Hardhat chain corrupts EVM snapshots when
the loop registers hooks + a second loader at the outer describe scope)
- oracle specs: add allowBlocksWithSameTimestamp + initialDate (2019) and an
anchor-mining mineBlock to reproduce the ganache clock model they assume
- swapExactETHForTokens gas snapshot 138770 -> 138700 (fork bytecode)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7123403 commit 18be1af
10 files changed
Lines changed: 2264 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
0 commit comments