Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
large_stringlengths
7
51
domain
large_stringclasses
1 value
contract_name
large_stringlengths
1
45
contract_address
large_stringlengths
42
42
pragma
large_stringclasses
165 values
pragma_major_minor
large_stringclasses
4 values
resolved_solc_version
large_stringclasses
56 values
target_function_signature
large_stringlengths
13
270
prompt_context
large_stringlengths
45
34.1k
workspace_tar
large_stringlengths
544
62.2k
scoring_tar
large_stringlengths
676
62.4k
canary_substrings
listlengths
0
6
Zencoin_1
unknown
Zencoin
0x35ad97a5b9fe01679a0ddcb6759934af0f1014ef
^0.8.10
0.8
0.8.34
function fromUInt (uint256 x) internal pure returns (int128)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; /* * ABDK Math 64.64 Smart Contract Library. Copyright © 2019 by ABDK Consulting. * Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com> */ /** * Smart contract library of mathematical functions operating with signed * 64.64-bit fixed point...
H4sIAL8W82kC/+1963LbyJXw/J6qvAPiVGUlW6QA3inZTsBbRpXxZSXNziQuR4JISMJnEmAAUBLj1QN9r7FPtuf0vXEjQMkez0aoSkYmuk+fPvc+fbpxGaz8Wbiux8Fi/t0Xekx4Oq0W+S88yf+aVrsh/ia/W2az0fnOML/7Cs8qip0Qhv/u3/P5sAyDS2/u1mfupbOaxx+/j8Kp8cp4Bv959n2wivFv+M+z7+feRQT/+AAtgjlpYtZ79WYLWi1jb+H9yw3hxzhcufKHs3DlY6eGaX7/3dPzDT7A5v2/u/408Pw68PXr67/VNVttM6n/...
H4sIAL8W82kC/+1963bbyJFwfs85eYeOc05WskUK4J2S7QS8ZXQyvqyk2ZnEcSSIhCSsSYABQEmMVw+0r/E92VfVN3TjRoCSPZ6NcE4yMtFdXV33rq5uLGzPvXTCqP7foe/95ss8BjydVov+F57kf41WsyH/pr+bRqvV/g0xfvMVnlUY2QEM/5t/z+fzd4Q8C5zQn984szP4z/TsxglC1/eeHZBnRr1Xb7ae7WGjqe9FgT2Nzjx74eDLvzne1Hc99nbmXl6uwunZ3PGuomt4bRoG62Z7drA+C1cXYRS43lUI7z7AC3hFPv89+LtH6BM4...
[ " {\r\n require (x <= 0x7FFF", "re (x <= 0x7FFFFFFFFFFFFFFF);\r" ]
Flokinobi_13
unknown
Flokinobi
0x50096d7d02472542e5d598f4c9d95216408efcb6
^0.8.10
0.8
0.8.34
function functionCall(
pragma solidity ^0.8.10; // SPDX-License-Identifier: Unlicensed interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
H4sIAL8W82kC/+19a3PbSJJgf+6I+Q9oTUybskmKlC1btkeek1/birDbPks9vXMOnQQSRQkhEOACoGSNR/fbLzPrgXoBBCnJ654VP3RbqFdWviqrMrNqks3TKL/sl9k0+eGWfgP4PX70iP4PP/v/g+HWpvo3fR8OHm4+/iEY/PANfvOiDHMY/of/mb/PszybxAnrR2wSzpPy8MciHwc7wRr8b+3HbF7iv+F/az8m8aiAPz5DjSyhKoP+dv/hI6g1K+Np/E+Ww8cyn7Pqw1E+T7HR5mDw4w93v+/wB2TeeJtkZ3GajeI+UPZby//w8WD4...
H4sIAL8W82kC/+09aXfbRpL5nPfmPyCaNzFlkxQlW7408qx8bfyeHXstZbKzjlYCgaaEFQhwAVCyxqP97VtVfaAvgKAOrzMrfkgs9FVdV1d3VXVPwyyZsLIa/leZZ9/dzG8Ev4cPHtD/4Wf/f7Q52lD/pu/rowcP7n8XjL77Cr95WYUFDP/d/8/fl++DYKVgZZ6esvgA/hcdnLKiTPJs5WmwMho+Ht5/sNLHSlGeVUUYVQdZOGVY+DrNT5IsHye8PE4mk3kZHaQsO6qOocL6aMQbhllYnB+U83FZFUl2VELZJyiAotXgy2/Fb1kgfgWr...
[ ") {\r\n return _functionC", "allWithValue(target, data, 0, ", "rget, data, 0, errorMessage);\r" ]
FLOKO_19
unknown
FLOKO
0xd67a38bc4aa2b7f45478eb9cda48414fda8827c5
^0.6.12
0.6
0.6.12
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory)
pragma solidity ^0.6.12; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode...
H4sIAL8W82kC/+09aXPbxpL+7Kr8h4lTiUiFtyzZlqLsKn7Oe661n1K2Kru1Kq44BIYkSiDAxSGJ8dP+9u3uOTC4eEiy46oIlbJIYKan7+7pHjCTMA3caNlJwrn/5DNdPbgOnj+nv3AV//b6+wPzme73e3uDgyes9+QLXGmc8AiWf/LXvM4XUTjxfNFxxYSnfjJ8GkcOO2bP4M+zp2Ga4Gf48+yp741j+HIOI0KfhvQ6B53+AEYtEm/u/SEiuJlEqchuXERpgJMGvd7TJ4/XV3iBmLu/vjv9j9MOSPVPsf+D5y8GJfvvP+892v+XuBYR...
H4sIAL8W82kC/+08aXMbx3L+7Kr3H8Z02QJoXDwlk6YTWk9+zxXr0SWxnFRohhjsDoAJF7vIHqRgPea3p7vn2NkLB0nJSpkolwXszvT03T09PZzxUI5Fkvb+O4nCzz7MZwCfw/19+hc+5X8Hhzt79js93xns7x9+xgaffYRPlqQ8huU/+3N+3n/O2FYskii4Ef4V/ONd3Yg4kVG4dcS2Br3D3s7uVgcHeVGYxtxLr0I+E/jyx5/P/u1MvfPleJwl3lUgwkk6hZc7g4GaxEMeL66SbJSksQwnCby7gBe46KLN3v8W/xYy/YlFmsUhG2eh...
[ "ry) {\r\n return function", "return functionCallWithValue(t", "arget, data, value, \"Address: ", "lue, \"Address: low-level call ", "low-level call with value fail" ]
MoonTalesByRyan_21
unknown
MoonTalesByRyan
0xa7bde7eafacdee9052ba31aacb8ded7d89a1b120
^0.8.7
0.8
0.8.34
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool)
Token(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not imp...
H4sIAL8W82kC/+19XW/bWJZgPQeo/3ArC1SkiizLsuN8lWtXcZwqoRM7bSuT6gmyFiVe2exQpJqk7LhTAQbzPA/zUI0ZLHaAeVgssMA+7i/KL9lzzv3gJXlJ0R9RVXWJ6K4k4uX9OPecc8/3nYTzwI0u2kk49b/4TE8Hnu2tLfoTnvyfnY17Xf13+n2js9nd/oJ1vljCM48TJ4Lhv/h9Pm9mUTjxfN52+cSZ+8nbW3E0ZjvsNvxx+1Y4T/Dv8MftW743iuEfb6BF6FOTTvtBe3MLWs0Sb+r9lUfwYxLNefrDcTQP8KNup3Pri9XzK3xg...
H4sIAL8W82kC/+19244bR5agnw34H8JawCItFovFuuhSLs9QpZJNtFSlrqJG7tFoyCQzWJUWmcnOTFapWhYwmOd5mAc3drCYAfZhscAC+7hfpC/Zc05cMjIzMpl1EW23mei2JGZkXE6cc+LcY+r43phHcfPHKPA/+zRPC56drS36E57sn62t+/qd+H2jtbW9+RlrfbaEZx7FTgjDf/b7fN5/ztidkEfB5Jy7ffhj1D/nYeQF/p1H7E6r+aC5uXWngY1GgR+Hziju+86U48vnQeD3nAmPHl8eXzq+aOV64/E8GvUn3D+Nz6DZRqslPnd8...
[ "constants", "representing", "selectors", "functionA", "functionB", "x01ffc9a7" ]
CryptoWhale_23
unknown
CryptoWhale
0xc7fa2c1199ca15a9b50222f1ff3329fbc10d2139
^0.8.7
0.8
0.8.34
function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership)
".\r\n * - `to` cannot be the zero address.\r\n * - `tokenId` token must be owned by `from`.(...TRUNCATED)
"H4sIAL8W82kC/+19+3PbtrJwf85M/wc030wjNbIsyc/Edb9PcZxWcxI7x1Zuem4m16JEyOaNRKok5cdJ879/u4sHQRKk6EfU9lS(...TRUNCATED)
"H4sIAL8W82kC/+19a3PbRrJoPqcq/2HiUxWTMUWR1NNWlHtpWU5Ya0teiT7OHq8PCRJDCWsSYADQsuL4v5/ungcGwACEHmaSXaJ(...TRUNCATED)
["\r\n ownership.addr = add","ship.addr = address(uint160(pa","ress(uint160(packed));\r\n (...TRUNCATED)
MetaChamps_54
unknown
MetaChamps
0xd95b7cce83d4abdc006c991e9ce0542d30e40d49
^0.8.0
0.8
0.8.34
function _mint(address to, uint256 tokenId) internal virtual
" * @dev Performs a Solidity function call using a low level `call`. A\r\n * plain `call` is an (...TRUNCATED)
"H4sIAL8W82kC/+19+3PbRpJwfk7V/g8Tbb4vpEJSkuV4HXqVO8WxN6qKLJflOHul0okgOZJQAQEeAErm6vi/Xz/miQcJ6uF4d4V(...TRUNCATED)
"H4sIAL8W82kC/+09a3PbRpL5nKr8h4k2dyEVkpJsx3HoVXYVx96oKrJcluPslaITQXIk4QICXACUzGj5368f88SDBPVwHmukKpY(...TRUNCATED)
["already","virtual {\r\n require(to ","!= address(0), \"ERC721: mint t","\"ERC721: mint to t(...TRUNCATED)
Definitelynotdicks_60
unknown
Definitelynotdicks
0x7fbf3de9c44614404dfbd1e21693b1eb29eac6e9
^0.8.0
0.8
0.8.34
"function functionCallWithValue(address target, bytes memory data, uint256 value, string memory erro(...TRUNCATED)
"/**\r\nTG: https://t.me/DefinitelyNotDicksPortal\r\n\r\n*/\r\n\r\n// SPDX-License-Identifier: Unlic(...TRUNCATED)
"H4sIAL8W82kC/+09+XMbt9X52TP5HxBlEpMOL1GnpSj9FB+pZ+LKY6lp59PoE8FdkMRouctvsSuZcdW/ve/hWuzFQ5IdtxWnjcg(...TRUNCATED)
"H4sIAL8W82kC/+09aXMbN5b5nKr8B0SpxKTDS9RpKcqs4iPjqnjksjSZqVW0ItgNklg1uzmNbsmMRvPb9z1cjb54SLLjnTEriaR(...TRUNCATED)
["y) {\r\n require(address(","this).balance >= value, \"Addre","= value, \"Address: insuffici(...TRUNCATED)
SpaceXMoon_67
unknown
SpaceXMoon
0x6a295ad685fdbe4c7f222a5e7ddf14991d94d95e
^0.8.6
0.8
0.8.34
function _revertIfBlocked(address operator) private view
"// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.6;\r\n\r\ninterface ERC721A__IERC721Receive(...TRUNCATED)
"H4sIAL8W82kC/+19a3PbxpJoPqfq/IeJb1VMxhRFUg/LVpS7tCwnrGNJPpK89q7LS4LEUMIxCDAAaEnX0X+/3T0PDIABSD3MOBu(...TRUNCATED)
"H4sIAL8W82kC/+19+3PbRpJwfk5V/odZf1UxGVMUST0sW1HuZFlOWGtLXkk++y7nI0FiKGENAgwAWtI5+t+/7p4HBsAAhB5mklu(...TRUNCATED)
[ "isOperatorAllowed", "enough", "runtime", "xc6171134001122334455", "staticcall", "Bubble" ]
COVIDPunks_96
unknown
COVIDPunks
0xe4cfae3aa41115cb94cff39bb5dbae8bd0ea9d41
^0.8.0
0.8
0.8.34
function _mint(uint256 _numToMint) internal
"Transfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {\r\n (...TRUNCATED)
"H4sIAL8W82kC/+19aXMbR5KoPzti/kOZE7sCbAAEKYmSSNMz1OExYy1RIdLjfcHgIxpAAewV0I3pbpCEOfzvL486+wAapKTRziM(...TRUNCATED)
"H4sIAL8W82kC/+19+3Mbx5FwfnaV/4cxU3cCbAAEKepFmr5QEh2zzhJVEh3nK5ofsAAG4EbALrK7EIUw/N+vH/PcB7AgJUeXI1x(...TRUNCATED)
["updatedNumAvailableTokens","newTokenId","\r\n require(_numToMint <= MA","X_MINTABLE_AT_ONCE, \"(...TRUNCATED)
GalaGrrrls_119
unknown
GalaGrrrls
0xf2335f26d5845e8afe204c92da0b3d00bb666c26
^0.8.0
0.8
0.8.34
function _exists(uint256 tokenId) internal view returns (bool)
" 0) {\r\n return \"0x00\";\r\n }\r\n uint256 temp = value;\r\n uint(...TRUNCATED)
"H4sIAL8W82kC/+19a3MbR65oPqdq/0NbtxKTMUmRlCzLD+UeSZa9uhtZXkuuZNelQzbJJjXr4QwzD0tcR//9AOjH9DxJSrLjs5f(...TRUNCATED)
"H4sIAL8W82kC/+19bVsbObLofp7n2f+gcJ+d2BNjbEMIIcPcA4RkuTuEbCDPzG6WY7dtGXrT7vZ2twPeDP/91IukVr/aBpLJ2ev(...TRUNCATED)
["{\r\n return\r\n ","rn\r\n _startTokenId("," _startTokenId() <= tokenI(...TRUNCATED)
End of preview. Expand in Data Studio

Solidity Eval (2026)

Agentic Solidity benchmark. Each task hands the agent a Foundry workspace where one function body in a real Etherscan-verified contract has been replaced with revert("TODO");. The agent edits, builds (forge build), and tests (forge test) inside a sandbox until it returns. Reward is the differential-fuzz pass rate (Diffusc + Echidna) of the model's body against the ground-truth body.

This dataset is intended for use with the hermes-agent Solidity Eval environment, but the workspace_tar / scoring_tar shape is harness-agnostic — any agent harness that can stage a tarball into /work and run a scorer over /scoring can use it.

Configs

Config Rows Selection
lite 200 Stratified by pragma major.minor over the full cohort (seed=0). Use this for cost-bounded eval runs.
full 3044 Every row from the SolBench RACR-4k corpus that (a) has a parseable Solidity pragma, (b) satisfies the 0.5.0–0.8.34 compiler range installed in the reference image, and (c) parses cleanly through the function-stubbing step.

Schema

Field Type Description
task_id str <contract_name>_<idx>, unique within the dataset.
domain str "unknown" for every row — the source corpus has no domain mapping.
contract_name str Solidity contract name (target of the deletion).
contract_address str Etherscan address the source was scraped from.
pragma str Raw pragma string from the source (^0.8.10, >=0.6.0 <0.8.0, etc.).
pragma_major_minor str "0.5" / "0.6" / "0.7" / "0.8" — used for stratification.
resolved_solc_version str Highest installed solc satisfying the pragma. The reference image installs every patch version of 0.5.x–0.8.x.
target_function_signature str First line of the deleted function header (for the prompt).
prompt_context str Surrounding code shown to the model (sc_ba[0] from the source corpus).
workspace_tar str Base64-encoded .tar.gz containing foundry.toml + src/<contract_name>.sol (with the target function body replaced by { revert("TODO"); }). Stage this into /work before the agent runs.
scoring_tar str Base64-encoded .tar.gz containing manifest.json + origin/<contract_name>.sol. Stage into /scoring only at scoring time — never during the agent loop.
canary_substrings list[str] Tokens / fragments unique to the deleted function body. The scorer fails the run with b3_violation if any of these appear in /work after the agent finishes.

Reward semantics

The in-image scorer (/opt/scoring/run_diffusc.py in the reference image) follows SolBench's echidna() rule:

reward = 1.0 if Diffusc compiles + Echidna passes (or vacuous "no diff" pass)
reward = 0.0 on diffusc compile failure, echidna failure, timeout,
              B3 canary violation, or stub-residue (revert("TODO"); left in)

Three pass routes are tagged in pass_route.txt for auditability: exit_0, vacuous_no_diff, fail. Runs with disproportionate vacuous passes can be flagged.

B2 / B3 reward-hack mitigations

  • B2 (no exfiltration via web tools). The verified contracts are public on Etherscan, so any agent with web access can fetch the answer with one query. Runners must disable web/browser/messaging tools; for non-Hermes agents this means setting agent-specific flags or running the sandbox container without network egress.
  • B3 (no ground-truth in the workspace). scoring_tar (containing origin/) is staged only after the agent loop ends. The scorer additionally greps the candidate for canary_substrings and zeroes the reward if any match.
  • Stub residue. If the agent leaves revert("TODO"); in the candidate, the scorer flags it (pass_route=stub_residue) and zeros the reward — otherwise an empty implementation would coast through the vacuous-pass route.

B3 caveats

  • 168 of the 3044 rows have an empty canary_substrings list (the deleted body uses only identifiers that already appear elsewhere in the contract — common for ERC20-style getters). For these rows B3 enforcement degrades to best-effort; the canary-grep is a no-op and only the stub-residue + diff-fuzz checks remain. Auditors who want strict B3 enforcement should filter to rows with non-empty canaries.

Provenance

  • Source corpus: SolBench (https://github.com/ZaoyuChen/SolBench, MIT, FSE 2026), specifically the RACR-4k LCS subset.
  • Function-stubbing + tarball construction: this dataset's builder (environments/benchmarks/solidity_eval/dataset/build_modern_subset.py in the eval repo).
  • Reference scorer + sandbox image: samscrack/solidity-eval-sandbox:dev (Foundry 1.6.0-nightly, Echidna 2.2.3 from the SolBench fork, Diffusc + Slither 0.9.3 from webthethird/slither.git@dev-diffusc-testing, solc-select 0.5.0–0.8.34).

Skipped rows from the source corpus (164 of 3208)

Reason Count
cannot-stub-funit 143
unsupported-pragma-0.4 8
no-pragma 13

cannot-stub-funit covers constructors, modifiers, receive/fallback declarations, and abstract function shapes the regex-based stubber can't safely rewrite. Future builder iterations could handle these explicitly.

License

MIT, inherited from SolBench. The contract sources are public on Etherscan.

Downloads last month
12