Rlay Protocol - Getting Started
Rlay Protocol provides the Solidity smart contracts required for the Rlay protocol to be executed on an EVM smart contract blockchain such as Ethereum.
Install
Requirements
Before continuing with the installation, make sure you have at following libraries and their required versions installed correctly.
- Node.js with NPM
- Install via one of:
- NVM (Recommended)
- Official Node.js installation
- Install via one of:
Setup
git clone git@github.com:rlay-project/rlay-protocol.git && cd rlay-protocol
Install dependencies
npm install
Run testnet
To spawn a development blockchain run:
npm run testnet
Deploy Smart Contracts
To build and deploy the Rlay smart contracts run the following in a seperate window to the running testnet:
NODE_OPTIONS="--max-old-space-size=120000" npm run deploy
The
NODE_OPTIONS="--max-old-space-size=120000"
environment is currently needed, since part of the Rlay contracts are automatically generated (= a lot of code) and Truffle exceeds the default Node.js memory limits while compiling it.