Update kredits service

This commit is contained in:
2018-04-01 00:24:51 +02:00
parent 020a1c5682
commit f12740dfa8
7 changed files with 27457 additions and 9447 deletions
+3 -1
View File
@@ -21,11 +21,13 @@ export default Ember.Route.extend({
model() {
let kredits = this.get('kredits');
let totalSupply = kredits.get('tokenContract')
.then((contract) => contract.invoke('totalSupply'));
return Ember.RSVP.hash({
contributors: kredits.getContributors(),
totalSupply: kredits.getValueFromContract('tokenContract', 'totalSupply'),
proposals: kredits.getProposals(),
totalSupply,
newContributor: Contributor.create({ kind: 'person' })
});
}