> For the complete documentation index, see [llms.txt](https://pangeaswap.gitbook.io/pangeaswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pangeaswap.gitbook.io/pangeaswap/developers/interacting-with-the-protocol/undefined.md).

# 로컬 테스트 환경 구성하기

판게아 프로토콜을 연동하거나 활용하시는 개발자들을 위해, 판게아 프로토콜의 로컬 테스트 환경을 구성해두었습니다.&#x20;

#### Pangea Repository

{% embed url="<https://github.com/pangea-protocol/pangea-core>" %}

### Local Development

#### Install Dependencies

패키지를 사용하기 위해서는 우선 Node와 Package Manager인 Yarn이 설치되어 있어야 합니다.

```shell
yarn install
```

#### Compile Contracts

컴파일 후, artifacts와 types 폴더가 생성됩니다.

```shell
yarn build
```

#### Deploy & Run Local Node

로컬 하드햇 네트워크를 띄우고 판게아 프로토콜의 컨트랙트를 배포합니다. 시뮬레이션을 위해, MOCK 토큰과 몇개의 풀을 우선 생성해 두었습니다. 이를 통해 로컬 테스트 환경 위에서 편하게 작업하시길 바랍니다.

```shell
yarn hardhat:deploy
```

배포한 후 마지막에 20개의 프라이빗키가 노출됩니다, 해당 프라이빗 키의 주소로 KLAY가 전송되므로 테스트에 활용하시길 바랍니다.

테스트 편의성을 위해 컨트랙트 호출에 대한 명령어들을 몇 가지 개발해두었습니다. 테스트 시 활용하시길 바랍니다.

{% content-ref url="/pages/hPigRqDOErIsSZmc0XrH" %}
[로컬테스트 환경 내 명령어](/pangeaswap/developers/interacting-with-the-protocol/undefined/undefined.md)
{% endcontent-ref %}

#### Run Tests

```shell
yarn test
```

#### Run test Coverage

```shell
yarn coverage
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://pangeaswap.gitbook.io/pangeaswap/developers/interacting-with-the-protocol/undefined.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
