Setting up Local Test Environment

For developers who integrate or utilize the Pangea protocol, we have configured a local test environment for the Pangea protocol.

Pangea Repository

Local Development

Install Dependencies

In order to use the package, Node and Yarn, the Package Manager, must be installed first.

yarn install

Compile Contracts

After compiling, artifacts and types folders are created.

yarn build

Deploy & Run Local Node

Launches a local hard-hat network and deploys the Pangea protocol contract. For the simulation, we first created a MOCK token and a few pools. We hope this makes it easier for you to work on your local test environment.

yarn hardhat:deploy

After distribution, 20 private keys are exposed at the end. KLAY is sent to the address of the corresponding private key, so please use it for testing.

For the convenience of testing, we have developed several commands for calling the contract. Please use it for testing.

Test env. commands

Run Tests

yarn test

Run test Coverage

yarn coverage

Last updated