{"id":35780269,"url":"https://github.com/casper-network/casper-fixtures","last_synced_at":"2026-01-07T06:00:37.747Z","repository":{"id":291303975,"uuid":"977214921","full_name":"casper-network/casper-fixtures","owner":"casper-network","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-27T08:57:42.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-27T10:00:08.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casper-network.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,"zenodo":null}},"created_at":"2025-05-03T17:25:00.000Z","updated_at":"2025-05-03T17:29:25.000Z","dependencies_parsed_at":"2025-05-03T19:19:12.416Z","dependency_job_id":"96c866fc-33b2-4853-beaa-602c8a28e89d","html_url":"https://github.com/casper-network/casper-fixtures","commit_stats":null,"previous_names":["casper-network/casper-fixtures"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casper-network/casper-fixtures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-fixtures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-fixtures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-fixtures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-fixtures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casper-network","download_url":"https://codeload.github.com/casper-network/casper-fixtures/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casper-network%2Fcasper-fixtures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28233229,"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","status":"online","status_checked_at":"2026-01-07T02:00:05.975Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-01-07T06:00:07.471Z","updated_at":"2026-01-07T06:00:37.707Z","avatar_url":"https://github.com/casper-network.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# casper-fixtures\nFixture builder for casper execution engine tests based on:\nhttps://github.com/casper-network/casper-node/blob/release-1.5.6/execution_engine_testing/tests/src/lmdb_fixture.rs\nintegrating https://github.com/Fraser999/lmdb-shrinker.\n\nCreates and shrinks lmdb database so that the state can be loaded back into the execution-test-engine. Test builder in use is generally `InMemoryWasmTestBuilder` but after fixture creation and loading it will load as `LmdbWasmTestBuilder`.\n\nDeveloper might need to change self authored utility functions from\n```\nfn function_name\u003cT: CLTyped + FromBytes\u003e(\n    builder: \u0026WasmTestBuilder\u003cInMemoryWasmTestBuilder\u003e,\n) -\u003e T \n```\nto accomodate the two different `WasmTestBuilder`s to \n```\nfn function_name\u003cT: CLTyped + FromBytes, S\u003e(\n    builder: \u0026WasmTestBuilder\u003cS\u003e,\n) -\u003e T where\nS: StateProvider + CommitProvider,\nengine_state::Error: From\u003cS::Error\u003e,\nS::Error: Into\u003cexecution::Error\u003e\n```\n\nCreate fixtures using the `generate_fixture` function that will create fixtures at `./fixtures/${generate_fixture_name_argument}/`.\n\n`builder_from_global_state_fixture` will try to load state from the place `generate_fixture` created it at.\n\n\n## Casper Versions\ncasper-engine-test-support = \"7.0.1\"\ncasper-execution-engine = { version = \"7.0.1\", features = [\"test-support\"] }\ncasper-types = { version = \"4.0.0\", default_features = false, features = [\"datasize\", \"json-schema\"] }\ncasper-hashing = \"3.0.0\"\n\nThese correspond to release 1.5.6 of the Casper-Node. Use to create pre-2.0.0 state fixtures, for migration tests from 1.x to 2.x versions.\n\n## Reasons for this merged repo\n- automate lmdb shrinking\n- original work creates the fixtures in the \"CARGO_MANIFEST_DIR\", which causes third-party (out-of casper-node project) builds to be more easily lost/harder to find/harder to maintain.\n- unifying makes the pipeline quicker and easier to manage.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasper-network%2Fcasper-fixtures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasper-network%2Fcasper-fixtures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasper-network%2Fcasper-fixtures/lists"}