{"id":28766955,"url":"https://github.com/base/fp-test-cases","last_synced_at":"2025-10-25T09:41:55.055Z","repository":{"id":255279436,"uuid":"849090798","full_name":"base/fp-test-cases","owner":"base","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-14T18:33:47.000Z","size":74,"stargazers_count":9,"open_issues_count":3,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-11T22:40:16.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/base.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-08-29T00:45:45.000Z","updated_at":"2025-03-24T13:24:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"924afe4c-199b-46a0-9fb6-5f9bf351dbb9","html_url":"https://github.com/base/fp-test-cases","commit_stats":null,"previous_names":["brianbland/fp-test-cases","base-org/fp-test-cases","base/fp-test-cases"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/base/fp-test-cases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Ffp-test-cases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Ffp-test-cases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Ffp-test-cases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Ffp-test-cases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/base","download_url":"https://codeload.github.com/base/fp-test-cases/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Ffp-test-cases/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260360082,"owners_count":22997415,"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":[],"created_at":"2025-06-17T12:37:43.733Z","updated_at":"2025-10-25T09:41:55.049Z","avatar_url":"https://github.com/base.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fault Proof Test Cases\n\n### Setup\n\nClone the [ethereum-optimism/optimism](github.com:ethereum-optimism/optimism) repository and build op-program and cannon:\n```shell\n$ cd /path/to/your/workspace\n$ git clone git@github.com:ethereum-optimism/optimism.git\n$ cd optimism\n$ make op-program cannon\n$ cd cannon\n$ ./bin/cannon load-elf --path=../op-program/bin/op-program-client.elf\n```\n\nConfigure the environment variables in the `.env` file:\n```shell\nOPTIMISM_DIR=/path/to/ethereum-optimsm/optimism\n```\n\nCreate a foundry test wallet (based on the default anvil mnemonic):\n```shell\ncast wallet import TEST --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80\n```\n\nInstall [kurtosis](https://docs.kurtosis.com/install/) (required for creating a local devnet).\n\n## Usage\n\n### Build the `opfp` binary\n\n```shell\n$ just build\n```\n\n### Start a local devnet\n\n#### Create a local devnet with the default config file (devnet/standard.yaml)\n\n```shell\n$ just create-devnet\n```\n\n#### Create a local devnet with a custom config file\n\nConfig files must follow the format described in the [optimism-package](https://github.com/ethpandaops/optimism-package) repository.\n```shell\n$ just devnet-config-file=devnet/minimal.yaml create-devnet\n```\n\n#### Get the current L2 block gas limit\n\n```shell\n$ just get-l2-block-gas-limit\n```\n\n#### Update the current L2 block gas limit\n\n```shell\n$ just l2-block-gas-limit=\u003cnew_gas_limit\u003e update-l2-block-gas-limit\n```\n\n### Cleanup a local devnet\n\n```shell\n$ just cleanup-devnet\n```\n\n### Generate Fixtures (requires a local devnet)\n\n```shell\n$ just name=\u003cscript name\u003e script-args=\"\u003cscript args\u003e\" generate-fixture\n# Example\n$ just name=Reader script-args=\"2000000\" generate-fixture\n```\n\n### Test Fixtures in op-program\n\n#### Using fixtures defined by the script name and arguments\n\n```shell\n$ just name=\u003cscript name\u003e script-args=\"\u003cscript args\u003e\" run-fixture\n# Example\n$ just name=Reader script-args=\"2000000\" run-fixture\n```\n\n#### Using a fixture file\n\n```shell\n$ just fixture-file=\u003cfixture file\u003e run-fixture\n# Example\n$ just fixture-file=fixtures/Reader-2000000.json run-fixture\n```\n\n### Test Fixtures in Cannon\n\n#### Using fixtures defined by the script name and arguments\n\n```shell\n$ just name=\u003cscript name\u003e script-args=\"\u003cscript args\u003e\" cannon-fixture\n# Example\n$ just name=Reader script-args=\"2000000\" cannon-fixture\n```\n\n#### Using a fixture file\n\n```shell\n$ just fixture-file=\u003cfixture file\u003e run-fixture\n# Example\n$ just fixture-file=fixtures/Reader-2000000.json cannon-fixture\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Ffp-test-cases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbase%2Ffp-test-cases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Ffp-test-cases/lists"}