[
  {
    "path": ".gas-snapshot",
    "content": "TestContract:testBar() (gas: 401)\n"
  },
  {
    "path": ".github/workflows/ci.yml",
    "content": "name: CI\non:\n  push:\n    branches:\n      - master\n  pull_request:\n\nenv:\n  FOUNDRY_PROFILE: ci\n\njobs:\n  run-ci:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Install Foundry\n        uses: foundry-rs/foundry-toolchain@v1\n        with:\n          version: nightly\n\n      - name: Install deps\n        run: forge install\n\n      - name: Check gas snapshots\n        run: forge snapshot --check\n\n      - name: Run tests\n        run: forge test\n"
  },
  {
    "path": ".gitignore",
    "content": "cache/\nout/\n"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"lib/forge-std\"]\n\tpath = lib/forge-std\n\turl = https://github.com/foundry-rs/forge-std\n"
  },
  {
    "path": "LICENSE",
    "content": "This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to <http://unlicense.org/>\n"
  },
  {
    "path": "README.md",
    "content": "# <h1 align=\"center\"> Forge Template </h1>\n\n**Template repository for getting started quickly with Foundry projects**\n\n![Github Actions](https://github.com/foundry-rs/forge-template/workflows/CI/badge.svg)\n\n## Getting Started\n\nClick \"Use this template\" on [GitHub](https://github.com/foundry-rs/forge-template) to create a new repository with this repo as the initial state.\n\nOr, if your repo already exists, run:\n```sh\nforge init\nforge build\nforge test\n```\n\n## Writing your first test\n\nAll you need is to `import forge-std/Test.sol` and then inherit it from your test contract. Forge-std's Test contract comes with a pre-instatiated [cheatcodes environment](https://book.getfoundry.sh/cheatcodes/), the `vm`. It also has support for [ds-test](https://book.getfoundry.sh/reference/ds-test.html)-style logs and assertions. Finally, it supports Hardhat's [console.log](https://github.com/brockelmore/forge-std/blob/master/src/console.sol). The logging functionalities require `-vvvv`.\n\n```solidity\npragma solidity 0.8.10;\n\nimport \"forge-std/Test.sol\";\n\ncontract ContractTest is Test {\n    function testExample() public {\n        vm.roll(100);\n        console.log(1);\n        emit log(\"hi\");\n        assertTrue(true);\n    }\n}\n```\n\n## Development\n\nThis project uses [Foundry](https://getfoundry.sh). See the [book](https://book.getfoundry.sh/getting-started/installation.html) for instructions on how to install and use Foundry.\n"
  },
  {
    "path": "foundry.toml",
    "content": "[profile.ci.fuzz]\nruns = 10_000\n"
  },
  {
    "path": "src/Contract.sol",
    "content": "// SPDX-License-Identifier: Unlicense\npragma solidity ^0.8.13;\n\ncontract Contract { }\n"
  },
  {
    "path": "test/Contract.t.sol",
    "content": "// SPDX-License-Identifier: Unlicense\npragma solidity ^0.8.13;\n\nimport \"forge-std/Test.sol\";\n\nimport \"src/Contract.sol\";\n\ncontract TestContract is Test {\n    Contract c;\n\n    function setUp() public {\n        c = new Contract();\n    }\n\n    function testBar() public {\n        assertEq(uint256(1), uint256(1), \"ok\");\n    }\n\n    function testFoo(uint256 x) public {\n        vm.assume(x < type(uint128).max);\n        assertEq(x + x, x * 2);\n    }\n}\n"
  }
]