File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @daostack/client" ,
3- "version" : " 0.2.62 " ,
3+ "version" : " 0.2.63 " ,
44 "description" : " " ,
55 "keywords" : [],
66 "main" : " dist/lib/index.js" ,
Original file line number Diff line number Diff line change @@ -119,10 +119,12 @@ export class Proposal implements IStateful<IProposalState> {
119119 confidenceThreshold
120120 competition {
121121 id
122+ admin
122123 endTime
123124 contract
124125 suggestionsEndTime
125126 createdAt
127+ numberOfWinningSuggestions
126128 numberOfVotesPerVoters
127129 numberOfWinners
128130 rewardSplit
@@ -448,12 +450,14 @@ export class Proposal implements IStateful<IProposalState> {
448450 }
449451 if ( ! ! item . competition ) {
450452 competition = {
453+ admin : item . competition . admin ,
451454 contract : item . competition . contract ,
452455 createdAt : secondSinceEpochToDate ( item . competition . createdAt ) ,
453456 endTime : secondSinceEpochToDate ( item . competition . endTime ) ,
454457 id : item . competition . id ,
455458 numberOfVotesPerVoter : Number ( item . competition . numberOfVotesPerVoters ) ,
456459 numberOfWinners : Number ( item . competition . numberOfWinners ) ,
460+ numberOfWinningSuggestions : Number ( item . competition . numberOfWinningSuggestions ) ,
457461 rewardSplit : item . competition . rewardSplit . map ( ( perc : string ) => Number ( perc ) ) ,
458462 snapshotBlock : item . competition . snapshotBlock ,
459463 startTime : secondSinceEpochToDate ( item . competition . startTime ) ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const Web3 = require('web3')
2323
2424export interface ICompetitionProposalState {
2525 id : string
26+ admin : Address
2627 contract : Address
2728 endTime : Date
2829 numberOfWinners : number
@@ -35,6 +36,7 @@ export interface ICompetitionProposalState {
3536 createdAt : Date
3637 totalVotes : number
3738 totalSuggestions : number
39+ numberOfWinningSuggestions : number
3840}
3941
4042export interface IProposalCreateOptionsCompetition extends IProposalBaseCreateOptions {
You can’t perform that action at this time.
0 commit comments