Repository navigation
Expand file tree
/
Copy pathhardhat-tests.toml
More file actions
131 lines (117 loc) · 4.92 KB
/
Copy pathhardhat-tests.toml
File metadata and controls
131 lines (117 loc) · 4.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Hardhat project test configuration.
#
# Build systems:
# [build_systems]
# yarn = "<x.y.z>" # Pinned version installed globally once per run.
# pnpm = "<x.y.z>"
# bun = "<x.y.z>"
#
# Compilers:
# [compilers.<id>]
# name = "00.solc" # Display name in reports (hyphens become newlines).
# # Also interpreted by the PR-summary toolchain tables
# # (solx-benchmark-converter/src/toolchain_matrix.rs):
# # renaming a compiler here without updating them renders
# # every summary with a loud harness error.
# path = "./path/to/compiler" # Path to compiler executable
# description = "..." # Compiler description
# solidity_version = "0.8.30" # Override Solidity version (optional)
# is_correctness_reference = true/false # Reference for correctness checks
# is_correctness_candidate = true/false # Candidate for correctness checks
# disabled = true/false # Whether to skip this compiler
#
# Projects:
# [projects.<name>]
# url = "https://github.com/..." # Git repository URL
# commit = "abc123..." # Git commit SHA to pin (optional, HEAD if omitted)
# description = "..." # Project description
# build_system = "npm" # npm, yarn, pnpm, or bun, installing from the lockfile if present (default: npm)
# dependencies = ["pkg@version"] # Additional npm dependencies to install
# build_profile = "..." # Build profile solx toolchains compile and test with
# config_overlay = "./path.ts" # Installed as hardhat.config.ts; imports the project's config as hardhat.config.base.<ext>
# disabled = true/false # Whether to skip this project
# [projects.<name>.env]
# VAR = "value" # Environment variables for build/test
#
# Comparisons:
# [[comparisons]]
# left = "03.solx-legacy" # Left toolchain: {compiler.name}-{codegen}
# right = "02.solx-main-legacy" # Right toolchain: {compiler.name}-{codegen}
# disabled = true/false # Whether to skip this comparison
[build_systems]
bun = "1.4.4"
[compilers.solc]
name = "00.solc-0.8.34"
path = "./temp-compilers/solc-0.8.34"
description = "solc the latest downloaded from the official repo"
disabled = true
[compilers.solx-latest]
name = "01.solx-latest"
path = "./temp-compilers/solx-latest"
description = "solx downloaded from the latest release"
disabled = true
[compilers.solx-main]
name = "02.solx-main"
path = "./temp-solx-main/target/release/slang"
description = "solx built from the main branch"
is_correctness_reference = true
disabled = false
[compilers.solx]
name = "03.solx"
path = "./target/release/slang"
description = "solx built from the current commit"
is_correctness_candidate = true
disabled = false
# Comparisons for Excel diff columns.
# Each comparison generates a diff column showing (left - right) / right as percentage.
# The 'left' and 'right' values should match the full toolchain name: "{compiler.name}-{codegen}".
# Comparisons are only included if both referenced compilers are enabled.
[[comparisons]]
left = "03.solx-legacy"
right = "01.solx-latest-legacy"
disabled = true
[[comparisons]]
left = "03.solx-viaIR"
right = "01.solx-latest-viaIR"
disabled = true
[[comparisons]]
left = "03.solx-legacy"
right = "02.solx-main-legacy"
disabled = false
[[comparisons]]
left = "03.solx-viaIR"
right = "02.solx-main-viaIR"
disabled = false
[[comparisons]]
left = "03.solx-legacy"
right = "00.solc-0.8.34-legacy"
disabled = false
[[comparisons]]
left = "03.solx-viaIR"
right = "00.solc-0.8.34-viaIR"
disabled = false
[projects.hardhat-v3]
url = "https://github.com/antonbaliasnikov/solx-hh3"
commit = "bfe0366f7f5936ec9e5e76fa37fe21d284a53c88"
description = "An example Hardhat v3 project with solx support."
dependencies = [ "ts-node@10.9.2", "hardhat@3.18.0", "@nomicfoundation/hardhat-mocha@3.0.2", "@nomicfoundation/hardhat-slang-solx@3.0.2" ]
build_profile = "slang-solx"
config_overlay = "./solx-dev/hardhat-overlays/hardhat-v3.config.ts"
[projects.openzeppelin]
url = "https://github.com/OpenZeppelin/openzeppelin-contracts"
commit = "b04d141ba4fec9b0f970ce4c7746b0a02e50000b"
description = "A library for secure smart contract development."
dependencies = [ "@nomicfoundation/hardhat-slang-solx@3.0.2" ]
build_profile = "slang-solx"
config_overlay = "./solx-dev/hardhat-overlays/openzeppelin.config.ts"
[projects.openzeppelin.env]
COMPILER = "0.8.34"
[projects.ens-contracts]
url = "https://github.com/antonbaliasnikov/ens-contracts"
commit = "85ddeb9ff8def53e580a1fa70b156fe1c88775da"
description = "The core contracts of the ENS protocol."
build_system = "bun"
# The fork lacks solx wiring (no USE_SOLX/SOLX in its Hardhat config) and only enables
# solc 0.8.17/0.8.26, so the >=0.8.34 pragma pin fails HHE909. The pinned lockfile also
# references @ensdomains/buffer@0.1.1, which has been unpublished from npm.
disabled = true