@@ -77,6 +77,7 @@ export interface IProposalState {
77
77
paramsHash : string
78
78
preBoostedAt : Date
79
79
preBoostedVotePeriodLimit : number
80
+ proposal : Proposal
80
81
proposer : Address
81
82
proposingRepReward : typeof BN // in REP
82
83
queuedVoteRequiredPercentage : number
@@ -100,8 +101,9 @@ export interface IProposalState {
100
101
votesAgainst : typeof BN
101
102
votesCount : number
102
103
voteOnBehalf : Address
103
- winningOutcome : IProposalOutcome
104
104
votersReputationLossRatio : number // in 1000's
105
+ votingMachine : Address
106
+ winningOutcome : IProposalOutcome
105
107
minimumDaoBounty : typeof BN // in GEN
106
108
}
107
109
@@ -338,6 +340,7 @@ export class Proposal implements IStateful<IProposalState> {
338
340
}
339
341
votesAgainst
340
342
votesFor
343
+ votingMachine
341
344
winningOutcome
342
345
}
343
346
}
@@ -479,6 +482,7 @@ export class Proposal implements IStateful<IProposalState> {
479
482
paramsHash : item . paramsHash ,
480
483
preBoostedAt : Number ( item . preBoostedAt ) ,
481
484
preBoostedVotePeriodLimit : Number ( item . preBoostedVotePeriodLimit ) ,
485
+ proposal : this ,
482
486
proposer : item . proposer ,
483
487
proposingRepReward : new BN ( item . proposingRepReward ) ,
484
488
queue : queueState ,
@@ -503,6 +507,7 @@ export class Proposal implements IStateful<IProposalState> {
503
507
votesAgainst : new BN ( item . votesAgainst ) ,
504
508
votesCount : item . votes . length ,
505
509
votesFor : new BN ( item . votesFor ) ,
510
+ votingMachine : item . votingMachine ,
506
511
winningOutcome : IProposalOutcome [ item . winningOutcome ] as any
507
512
}
508
513
}
@@ -759,8 +764,8 @@ interface IProposalBaseCreateOptions {
759
764
url ?: string
760
765
}
761
766
762
- export type IProposalCreateOptions = IProposalBaseCreateOptions & (
763
- GenericScheme . IProposalCreateOptionsGS &
764
- SchemeRegistrar . IProposalCreateOptionsSR &
765
- ContributionReward . IProposalCreateOptionsCR
767
+ export type IProposalCreateOptions = (
768
+ ( IProposalBaseCreateOptions & GenericScheme . IProposalCreateOptionsGS ) |
769
+ ( IProposalBaseCreateOptions & SchemeRegistrar . IProposalCreateOptionsSR ) |
770
+ ( IProposalBaseCreateOptions & ContributionReward . IProposalCreateOptionsCR )
766
771
)
0 commit comments