{"id":19533920,"url":"https://github.com/ethereum-optimism/tests","last_synced_at":"2025-04-26T14:34:30.374Z","repository":{"id":245479684,"uuid":"811069483","full_name":"ethereum-optimism/tests","owner":"ethereum-optimism","description":"Standard Tests for OP Stack Component Implementations.","archived":true,"fork":false,"pushed_at":"2024-11-11T18:18:41.000Z","size":27869,"stargazers_count":17,"open_issues_count":7,"forks_count":13,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-25T15:58:43.086Z","etag":null,"topics":["op-stack","rust","tests"],"latest_commit_sha":null,"homepage":"https://static.optimism.io/tests","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethereum-optimism.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-05T22:01:22.000Z","updated_at":"2025-02-09T15:48:21.000Z","dependencies_parsed_at":"2024-08-06T22:32:05.963Z","dependency_job_id":"e3ffa8e1-3326-4779-985b-e1943cd025d2","html_url":"https://github.com/ethereum-optimism/tests","commit_stats":null,"previous_names":["ethereum-optimism/op-test-vectors","ethereum-optimism/tests"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereum-optimism%2Ftests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereum-optimism%2Ftests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereum-optimism%2Ftests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethereum-optimism%2Ftests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethereum-optimism","download_url":"https://codeload.github.com/ethereum-optimism/tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251001245,"owners_count":21520913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["op-stack","rust","tests"],"created_at":"2024-11-11T02:10:58.981Z","updated_at":"2025-04-26T14:34:28.354Z","avatar_url":"https://github.com/ethereum-optimism.png","language":"Rust","readme":"\u003ch1 align=\"center\"\u003e\n    \u003cimg src=\"./assets/op-tests.png\" alt=\"OP Test Vectors\" width=\"200px\" align=\"center\"\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003e\n    Standard Tests for OP Stack Component Implementations.\n\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ethereum-optimism/tests/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/ethereum-optimism/tests/actions/workflows/ci.yml/badge.svg?label=ci\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/ethereum-optimism/tests/actions/workflows/book.yml\"\u003e\u003cimg src=\"https://github.com/ethereum-optimism/tests/actions/workflows/book.yml/badge.svg?label=Book\" alt=\"Book\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg?label=license\u0026labelColor=2a2f35\" alt=\"License\"\u003e\n  \u003ca href=\"https://ethereum-optimism.github.io/tests\"\u003e\u003cimg src=\"https://img.shields.io/badge/Contributor%20Book-854a15?logo=mdBook\u0026labelColor=2a2f35\" alt=\"Book\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#whats-ethereum-optimism/tests\"\u003eWhat's `ethereum-optimism/tests`\u003c/a\u003e •\n  \u003ca href=\"#overview\"\u003eOverview\u003c/a\u003e •\n  \u003ca href=\"https://static.optimism.io/tests/CONTRIBUTING.html\"\u003eContributing\u003c/a\u003e •\n  \u003ca href=\"#credits\"\u003eCredits\u003c/a\u003e\n\u003c/p\u003e\n\n## What's `ethereum-optimism/tests`?\n\n`ethereum-optimism/tests` is a portable suite of standardized test fixtures used to test OP Stack component implementations. Test fixtures are static JSON files defined in the [fixtures](./fixtures) directory.\n\nThere are two types of tests:\n- `derivation`\n- `execution`\n\nEach has it's own cli tool to generate test fixtures. [opt8n](./bin/opt8n) can be used to generate execution test fixtures, while [opdn](./bin/opdn) generates derivation test fixtures.\n\n### Development Status\n\n`ethereum-optimism/tests` is currently in active development, and is not yet ready for use in production.\n\n## Overview\n\n**`op-test-vectors`**\n\nA rust crate exposing types used to generate test fixtures in [./fixtures](./fixtures/).\n\n`op-test-vectors` contains two primary modules:\n\n- [`execution`](./crates/op-test-vectors/src/execution.rs): Rust types for the execution test fixtures.\n- [`derivation`](./crates/op-test-vectors/src/derivation.rs): Rust types for the derivation test fixtures.\n\n**`opt8n`**\n\nA binary to generate execution test fixtures.\n\n`opt8n` has two subcommands:\n\n- `repl`: Spins up a REPL that allows the user to send transactions to and generate a test fixture from those transactions.\n- `script`: Executes a forge script against an anvil instance and generates the test fixture.\n\n**`opdn`**\n\nA binary to generate derivation test fixtures.\n\n`opdn` has the following subcommands:\n\n- `from-l2`: Generates a derivation test fixture from the specified range of L2 blocks.\n- `from-l1`: Generates a derivation test fixture from the specified range of L1 blocks.\n- `info`: Outputs the L2 block info including the L1 origin for the given L2 block number.\n\n## Book\n\nThe [book][book] contains an in-depth overview of the project, contributor guidelines, and tutorials for creating your own test fixtures as well as you own test runners.\n\n## Credits\n\n`ethereum-optimism/tests` is inspired by [ethereum/tests][eth-tests] and built by the collaboration between a number of teams and external contributors including [OP Labs][op-labs] and [Worldcoin engineers][worldcoin].\n\n[book]: https://ethereum-optimism.github.io/tests/\n[op-labs]: https://github.com/ethereum-optimism\n[worldcoin]: https://github.com/worldcoin\n[eth-tests]: https://github.com/ethereum/tests\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethereum-optimism%2Ftests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethereum-optimism%2Ftests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethereum-optimism%2Ftests/lists"}