Skip to content

parallel-protocol/parallel-prl

Repository files navigation

Overview

This repository contains the source code for contracts and testing suites related to the PRL token migration from MIMO and the way to bridge it. Details documentation can be found under the /docs folder.

Repository Structure

  • Broadcast folder contains Foundry transactions executed by scripts.
  • Contracts folder contains contracts source code.
  • Deploy folder contains hardhat deployment scripts.
  • Deployments folder contains info of contracts deployed per network.
  • Docs folder contains all documentation related to contracts.
  • Script folder contains Foundry scripts to interact with onchain contracts.
  • Test folder contains all tests related to the contracts with mocks and settings.
  • Utils folder contains helper functions.

Contracts Overview

The repository contains 3 types of contract:

See the documentation for more details.

Getting Started

Foundry

Foundry is used for testing and scripting. To Install foundry follow the instructions.

Install js dependencies

bun i

Fill the .env file with your data

The Foundry script relies solely on the PRIVATE_KEY. The MNEMONIC is used on the Hardhat side and will override the PRIVATE_KEY if it is defined.

MNEMONIC=
PRIVATE_KEY=0x...
ALCHEMY_API_KEY=

Compile contracts

bun run compile

Run tests

bun run test

Run Coverage

bun run test:coverage:report

You will find other useful commands in the package.json file.

Licences

All contracts is under the MIT License, see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published