Pangea Swap
English
English
  • Introduction
  • Protocol Overview
  • Disclaimer
    • Risk & Security
    • Terms of Use
  • Updates
  • Audit
  • concentrated liquidity
    • Weakness of V2 DEXs: Low Liquidity utilization rate
    • Solution by V3 DEXs: Concentrated Liquidity
    • Concentrated Liquidity FAQ
  • Connectivity
    • Customizable Pool
  • Governance
    • STONE
      • STONE Distribution Plan
      • Tokenomics (Before)
      • Tokenomics (After)
      • Growth Fund History
    • Contribution Point NFT
  • Guide
    • SWAP
    • Add Liquidity
      • Add liquidity (Preset)
      • Add liquidity (Custom)
    • STONE Staking
    • Revenue Sharing
    • FAQ
  • Growth Partnership
    • Swapscanner
    • ISKRA
  • event
    • Promotion
  • Developers
    • Concept Overview
      • Problem : Lazy Liquidity
      • Liquidity Concentration
      • Position & Risk
      • Price Tick
      • Position NFT
      • Fees
      • Flash Loan
    • Contracts
      • Core Contracts
        • MasterDeployer
        • ConcentratedLiquidityPoolFactory
        • ConcentratedLiquidityPool
        • ConcentratedLiquidityPoolManager
        • PoolRouter
        • PoolLogger
        • AirdropDistributor
      • Contribution Point NFT
      • Price Oracle
    • Interacting with the Protocol
      • Setting up Local Test Environment
        • Test env. commands
      • Getting Pangea Pool Info
      • Creating Pangea Pool
      • Mint Position (add liquidity)
      • Burn Position (remove liquidity)
      • Claim Fee
      • Swap
  • Community
    • Website
    • Discord
    • Telegram
    • Medium
    • Twitter
    • Opensea - Position NFT
    • Opensea - CP NFT
    • GitHub
    • Testnet
    • E-mail
Powered by GitBook
On this page
  1. Developers
  2. Interacting with the Protocol

Setting up Local Test Environment

PreviousInteracting with the ProtocolNextTest env. commands

Last updated 2 years ago

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.

Run Tests

yarn test

Run test Coverage

yarn coverage

Test env. commands
GitHub - pangea-protocol/pangea-core: Core Contract For pangea protocol. Concentrated Liquidity Pool on KlaytnGitHub
Logo