Developer Guide

Prerequisites

  • Install nvm (Node Version Manager)

  • Install the project's Node.js version 12.20.1 nvm install v12.20.1

  • Enable the project's Node.js version with nvm use

  • Install Hardhat npm install -g hardhat

  • Install Yarn npm install -g yarn

> hardhat version
Hardhat v2.6.4
Solidity - 0.7.0 (solc-js)
Node v12.20.1
Ethers v5.4.7

Getting Started

yarn
yarn test

Running scripts

npx hardhat deploy --network network-name --tags tags

Code Repositories

The Parallel Protocol's smart contracts are open source on Github:

Read the whitepaper to learn more about smart contract architecture.

You can also navigate on the documentation :

AccessManager Roles

Role Name
Role ID

ADMIN_ROLE

0

GOVERNOR_ROLE

10

GOVERNOR_ROLE_TIMELOCK

11

GUARDIAN_ROLE

20

GUARDIAN_ROLE_TIMELOCK

21

KEEPER_ROLE

30

KEEPER_ROLE_TIMELOCK

31

EURp_MINTER_ROLE

100

EURp_MINTER_ROLE_TIMELOCK

105

USDp_MINTER_ROLE

110

USDp_MINTER_ROLE_TIMELOCK

115

ETHp_MINTER_ROLE

120

ETHp_MINTER_ROLE_TIMELOCK

125

BTCp_MINTER_ROLE

130

BTCp_MINTER_ROLE_TIMELOCK

135

Last updated

Was this helpful?