{"id":23536570,"url":"https://github.com/polytope-labs/forge-testsuite","last_synced_at":"2025-04-23T11:56:30.932Z","repository":{"id":214860764,"uuid":"737525482","full_name":"polytope-labs/forge-testsuite","owner":"polytope-labs","description":"Utilities for testing solidity contracts in rust","archived":false,"fork":false,"pushed_at":"2024-09-14T11:57:13.000Z","size":150,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T11:56:22.211Z","etag":null,"topics":["forge","foundry","solidity"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polytope-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-12-31T11:32:59.000Z","updated_at":"2024-09-14T11:57:16.000Z","dependencies_parsed_at":"2024-12-26T02:29:48.396Z","dependency_job_id":"345b0ae4-2c8a-4f54-8636-588b44bfae16","html_url":"https://github.com/polytope-labs/forge-testsuite","commit_stats":null,"previous_names":["polytope-labs/forge-testsuite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polytope-labs%2Fforge-testsuite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polytope-labs%2Fforge-testsuite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polytope-labs%2Fforge-testsuite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polytope-labs%2Fforge-testsuite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polytope-labs","download_url":"https://codeload.github.com/polytope-labs/forge-testsuite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250430590,"owners_count":21429323,"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":["forge","foundry","solidity"],"created_at":"2024-12-26T02:29:28.620Z","updated_at":"2025-04-23T11:56:30.914Z","avatar_url":"https://github.com/polytope-labs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## forge-testsuite\n\nSome utilities for testing solidity contracts in rust.\nFor example, it might be useful to test cryptographic code in solidity from rust where generating the necessary\nproofs is possible so it can then be verified by your solidity contracts. This uses forge internally, so your solidity project\nshould also be a foundry project as well.\n\n\n## installation\n\nadd the following to your `Cargo.toml`\n\n```toml\nforge-testsuite = { git = \"https://github.com/polytope-labs/forge-testsuite\", branch = \"master\" }\n```\n\n## Usage\n\n```rust\nuse forge_testsuite::Runner;\n\n\n#[tokio::test]\nasync fn contract_tests() -\u003e Result\u003c(), anyhow::Error\u003e {\n    let mut runner = Runner::new(PathBuf::from(\"/path/to/your/foundry/project\"));\n    \n    // print a list of all detected test contracts\n    println!(\"{:?}\", runner.contracts);\n    \n    let contract = runner.deploy(\"TestContract\").await;\n    \n    let result: bool = contract.call(\"testMethod\", (\"arguments to the contract\"))?;\n    \n    assert!(result);\n    \n    Ok(())\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolytope-labs%2Fforge-testsuite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolytope-labs%2Fforge-testsuite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolytope-labs%2Fforge-testsuite/lists"}