How-to Guides
Using the Aragon OSx Protocol
With a few lines of code, the Aragon OSx protocol allows you to add functionality to your DAO by writing and installing plugins
Example: A Plugin For Claiming Tokens
contract TokenFaucet is Plugin {
TestToken private immutable token;
constructor(IDAO _dao, TestToken _token) Plugin(_dao) {
token = _token
}
function claim() auth(MINT_PERMISSION_ID) external {
token.mint({to: msg.sender, amount: 5});
}
}
and effortlessly manage their permissions and conditions in your DAO
Example: Granting a Conditional Permission
grantWithCondition({
where: myTestToken,
who: myTokenFaucetPlugin,
permissionId: MINT_PERMISSION_ID,
condition: myCondition
});
In this practice-focussed part of the documentation, we show you how to
using the Aragon OSx protocol.