Created
May 21, 2018 12:02
-
-
Save luisivan/27d55a559a86fd6f12e0a6d2a362742c to your computer and use it in GitHub Desktop.
Example counter app using aragonOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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