{"id":25086801,"url":"https://github.com/marc-aurele-besner/foundry-test-utility","last_synced_at":"2025-04-15T16:01:56.257Z","repository":{"id":60916177,"uuid":"543377025","full_name":"marc-aurele-besner/foundry-test-utility","owner":"marc-aurele-besner","description":"Test utility for Foundry","archived":false,"fork":false,"pushed_at":"2025-03-03T07:28:54.000Z","size":157,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T22:11:16.153Z","etag":null,"topics":["ethereum","foundry","solidity","utility"],"latest_commit_sha":null,"homepage":"","language":"Solidity","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/marc-aurele-besner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-30T00:56:36.000Z","updated_at":"2025-03-03T07:28:56.000Z","dependencies_parsed_at":"2023-12-22T17:24:12.130Z","dependency_job_id":"6a342b79-ee35-4c73-8b1f-25004a83b0cd","html_url":"https://github.com/marc-aurele-besner/foundry-test-utility","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":"0.12765957446808507","last_synced_commit":"a8791dcfc634a13174ecb3205c82d33bbc793e90"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marc-aurele-besner%2Ffoundry-test-utility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marc-aurele-besner%2Ffoundry-test-utility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marc-aurele-besner%2Ffoundry-test-utility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marc-aurele-besner%2Ffoundry-test-utility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marc-aurele-besner","download_url":"https://codeload.github.com/marc-aurele-besner/foundry-test-utility/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249105473,"owners_count":21213534,"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":["ethereum","foundry","solidity","utility"],"created_at":"2025-02-07T09:19:11.544Z","updated_at":"2025-04-15T16:01:56.227Z","avatar_url":"https://github.com/marc-aurele-besner.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](https://img.shields.io/github/license/jamesisaac/react-native-background-task.svg)](https://opensource.org/licenses/MIT)\n[![npm version](https://badge.fury.io/js/foundry-test-utility.svg)](https://badge.fury.io/js/foundry-test-utility)\n\n# foundry-test-utility\n\n```\n\n______                    _                _______        _          _    _ _   _ _ _ _\n|  ____|                  | |              |__   __|      | |        | |  | | | (_) (_) |\n| |__ ___  _   _ _ __   __| |_ __ _   _ ______| | ___  ___| |_ ______| |  | | |_ _| |_| |_ _   _\n|  __/ _ \\| | | | '_ \\ / _` | '__| | | |______| |/ _ \\/ __| __|______| |  | | __| | | | __| | | |\n| | | (_) | |_| | | | | (_| | |  | |_| |      | |  __/\\__ \\ |_       | |__| | |_| | | | |_| |_| |\n|_|  \\___/ \\__,_|_| |_|\\__,_|_|   \\__, |      |_|\\___||___/\\__|       \\____/ \\__|_|_|_|\\__|\\__, |\n                                    __/ |                                                    __/ |\n                                    |___/                                                    |___/\n```\n\nThis package aim to deliver a set of reusable contracts and helper function that can be reused and override in your own [Foundry](https://github.com/foundry-rs) tests.\n\n## To add yo your project\n\nFirst install the package using NPM, Yarn or Forge Install.\n\n```bash\nnpm i foundry-test-utility\n```\n\nor\n\n```bash\nyarn add foundry-test-utility\n```\n\nor\n\n```bash\nfoundry install marc-aurele-besner/foundry-test-utility\n```\n\nThen add this package path in remapping.text\n\nFor NPM/Yarn\n\n```bash\nfoundry-test-utility/contracts/=node_modules/foundry-test-utility/contracts\n```\n\nFor Forge Install\n\n```bash\nfoundry-test-utility/contracts/=libs/foundry-test-utility/contracts\n\n```\n\n## Directories\n\n-   [contracts/](./contracts/)\n\n-   [.npmignore](./.npmignore)\n-   [.prettierignore](./.prettierignore)\n-   [.prettierrc](./.prettierrc)\n-   [CONTRIBUTING.md](./CONTRIBUTING.md)\n-   [LICENSE](./LICENSE)\n-   [README.md](./README.md)\n-   [awesome-readme.config.js](./awesome-readme.config.js)\n-   [foundry.toml](./foundry.toml)\n-   [package-lock.json](./package-lock.json)\n-   [package.json](./package.json)\n-   [remappings.txt](./remappings.txt)\n-   [renovate.json](./renovate.json)\n\n## Reference\n\nThis repository include helper contracts from:\n\n-   [Forge-std](https://github.com/foundry-rs/forge-std)\n-   [DS-Test](https://github.com/dapphub/ds-test)\n\n## Directory Tree\n\n```\nfoundry-test-utility/\n│   .npmignore\n│   .prettierignore\n│   .prettierrc\n│   CONTRIBUTING.md\n│   LICENSE\n│   README.md\n│   awesome-readme.config.js\n│   foundry.toml\n│   package-lock.json\n│   package.json\n│   remappings.txt\n│   renovate.json\n└─── contracts/\n   │   MockERC1155.t.sol\n   │   MockERC1155Upgradeable.t.sol\n   │   MockERC20.t.sol\n   │   MockERC20Upgradeable.t.sol\n   │   MockERC721.t.sol\n   │   MockERC721Upgradeable.t.sol\n   │   README.md\n   └─── interfaces/\n   └─── mock/\n   └─── shared/\n   └─── utils/\n```\n\n## Don't hesitate to contribute to this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarc-aurele-besner%2Ffoundry-test-utility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarc-aurele-besner%2Ffoundry-test-utility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarc-aurele-besner%2Ffoundry-test-utility/lists"}