rtoken-project / rtoken-monorepo

RToken Ethereum monorepo
https://rdai.money
89 stars 43 forks source link

Feature: Add support for importing contracts package #54

Closed pi0neerpat closed 4 years ago

pi0neerpat commented 4 years ago

Adds the "Open Zeppelin" style for importing the contracts and built truffle .json files.

const rdaiContract = require('@rtoken/contracts/build/contracts/rDAI.json');
const rdaiAbi = rdaiContract.abi;

Other than /build folder, only the package.json and .gitignore is changed