@@ -99,7 +99,7 @@ export class Proposal implements IStateful<IProposalState> {
99
99
/**
100
100
* `state` is an observable of the proposal state
101
101
*/
102
- public state : Observable < IProposalState > = of ( )
102
+ public state : Observable < IProposalState > = of ( )
103
103
public context : Arc
104
104
105
105
constructor ( public id : string , context : Arc ) {
@@ -206,33 +206,33 @@ constructor(public id: string, context: Arc) {
206
206
207
207
// Note that although this is implemented as an observable, the value is actually static
208
208
// and will never change.
209
- public dao ( ) : Observable < DAO > {
209
+ public dao ( ) : Observable < DAO > {
210
210
return this . state . pipe (
211
211
map ( ( state ) => {
212
212
return state . dao
213
213
} )
214
214
)
215
215
}
216
216
217
- public votes ( options : IVoteQueryOptions = { } ) : Observable < IVote [ ] > {
217
+ public votes ( options : IVoteQueryOptions = { } ) : Observable < IVote [ ] > {
218
218
options . proposal = this . id
219
219
return Vote . search ( this . context , options )
220
220
}
221
221
222
- public vote ( outcome : ProposalOutcome ) : Operation < void > {
222
+ public vote ( outcome : ProposalOutcome ) : Operation < void > {
223
223
throw new Error ( 'not implemented' )
224
224
}
225
225
226
- public stakes ( options : IStakeQueryOptions = { } ) : Observable < IStake [ ] > {
226
+ public stakes ( options : IStakeQueryOptions = { } ) : Observable < IStake [ ] > {
227
227
options . proposal = this . id
228
228
return Stake . search ( this . context , options )
229
229
}
230
230
231
- public stake ( outcome : ProposalOutcome , amount : number ) : Operation < void > {
231
+ public stake ( outcome : ProposalOutcome , amount : number ) : Operation < void > {
232
232
throw new Error ( 'not implemented' )
233
233
}
234
234
235
- public rewards ( options : IRewardQueryOptions = { } ) : Observable < IRewardState [ ] > {
235
+ public rewards ( options : IRewardQueryOptions = { } ) : Observable < IRewardState [ ] > {
236
236
options . proposal = this . id
237
237
return Reward . search ( this . context , options )
238
238
}
0 commit comments