Created
June 2, 2018 21:41
-
-
Save MicrowaveDev/f9fd6f0441fe1d5440700fb55e152966 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class ETH { } | |
| class Galt { } | |
| class Space { } | |
| class Account { } | |
| class DAO { | |
| galtToken: Galt; | |
| spaceToken: Space; | |
| eth: ETH; | |
| constructor(daoSettings) { | |
| this.galtToken = new Galt(); | |
| this.spaceToken = new Space(); | |
| } | |
| generateAccounts() { | |
| // generate accounts | |
| } | |
| generateSpaces() { | |
| // generate spaces | |
| } | |
| addUser(){ | |
| return new DAOUser(this); | |
| } | |
| } | |
| class DAOUser { | |
| account: Account; | |
| dao: DAO; | |
| constructor(dao: DAO){ | |
| this.dao = dao; | |
| } | |
| buyTokens(tokensCount){ | |
| this.dao.galt.buyTokens(this.adccount.address, tokensCount); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment