Skip to content

Instantly share code, notes, and snippets.

@luisivan
Created May 21, 2018 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luisivan/27d55a559a86fd6f12e0a6d2a362742c to your computer and use it in GitHub Desktop.
Save luisivan/27d55a559a86fd6f12e0a6d2a362742c to your computer and use it in GitHub Desktop.
Example counter app using aragonOS
import "@aragon/os/contracts/apps/AragonApp.sol";
contract Counter is AragonApp {
// ...
function increment() auth(INCREMENT_ROLE) external {
value += 1;
Increment(msg.sender);
}
function decrement() auth(DECREMENT_ROLE) external {
value -= 1;
Decrement(msg.sender);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment