# Set Up Your Local Environment

There are plenty popular development toolsets such as Hardhat and [Foundry](https://book.getfoundry.sh/). In Dyson Finance repo, we use [Foundry](https://book.getfoundry.sh/) as the tool to develop and test our contracts.

### Get Started

```
git clone https://github.com/DysonFinance/Dyson-Finance-V1.git
```

### Install Foundry

```
// Install foundryup
$ curl -L https://foundry.paradigm.xyz | bash

// Install or update Foundry
$ foundryup
```

### Compile All Contracts

```
$ forge build
```

### Testing

You can look up our tests to know more about the integration.

To run tests, you can follow the steps below:

* Setup `.env`

  ```
  POLYGON_ZKEVM_RPC_KEY=""
  DEPLOYER_PRIVATE_KEY=""
  OWNER_ADDRESS=""
  ```
* Use the following commands to run tests in `src/test`.

  ```shell
  forge test
  forge test -vv
  forge test -vvvv
  forge test --match-path src/test/xxx.t.sol
  ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dyson-finance.gitbook.io/developer_docs/guides/set-up-your-local-environment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
