Skip to content

Instantly share code, notes, and snippets.

@chebykin
Created June 2, 2018 20:27
Show Gist options
  • Save chebykin/29b16e379163c39ce57eea21d6d42d1b to your computer and use it in GitHub Desktop.
Save chebykin/29b16e379163c39ce57eea21d6d42d1b to your computer and use it in GitHub Desktop.
class ETH { }
class Galt { }
class Space { }
class Universe {
dao: DAO;
eth: ETH;
constructor() {
this.dao = new DAO(this);
this.eth = new ETH();
}
}
class DAO {
universe: Universe;
galtToken: ETH;
spaceToken: Galt;
constructor(universe: Universe) {
this.universe = universe;
this.galtToken = new Galt();
this.spaceToken = new Space();
}
operationWithETH(sender: string) {
let eth = this.universe.eth;
let galt = this.galtToken;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment