🛠️Getting Start
How to use our contracts?
Installation
$ npm install @royaldao/contracts
Or using Yarn
$ yarn add @royaldao/contracts
Usage
Once installed, you can use the contracts in the library by importing them:
pragma solidity ^0.8.0;
import "@royaldao/contracts/Governance/Chancelor.sol";
contract RepublicChancelor is
Chancelor,
ChancelorCompatibilityBravo,
ChancelorSenateControl,
ChancelorTimelockControl
{
constructor(TimelockController _timelock, Senate _senate)
Chancelor("RepublicChancelor")
ChancelorSenateControl(_senate)
ChancelorTimelockControl(_timelock)
{}
}
If you're new to smart contract development, i strongly recomend all the content made by Sir Patrick Collins, but specially his 36h Course...i swear it's worth it!
Last updated