Skip to content

Commit

Permalink
add secondsUntilNextCycle
Browse files Browse the repository at this point in the history
  • Loading branch information
Rovak committed May 26, 2018
1 parent c086e78 commit 2cbd8bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ class ApiClient {
};
}

async secondsUntilNextCycle() {
let {data} = await xhr.get(`${this.apiUrl}/api/vote/next-cycle`);
return data.nextCycle / 1000;
}


async getAccountByAddress(address) {
let {data} = await xhr.get(`${this.apiUrl}/api/account/${address}`);
Expand Down

0 comments on commit 2cbd8bf

Please sign in to comment.