Skip to content

Instantly share code, notes, and snippets.

@MicrowaveDev
Created June 2, 2018 21:41
Show Gist options
  • Select an option

  • Save MicrowaveDev/f9fd6f0441fe1d5440700fb55e152966 to your computer and use it in GitHub Desktop.

Select an option

Save MicrowaveDev/f9fd6f0441fe1d5440700fb55e152966 to your computer and use it in GitHub Desktop.
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