Skip to content

Latest commit

 

History

History
165 lines (97 loc) · 4.03 KB

vote.md

File metadata and controls

165 lines (97 loc) · 4.03 KB

@daostack/clientGlobalsVote

Class: Vote

Hierarchy

  • Vote

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

+ new Vote(idOrOpts: string | IVoteStaticState, context: Arc): Vote

Defined in vote.ts:155

Parameters:

Name Type
idOrOpts string | IVoteStaticState
context Arc

Returns: Vote

Properties

context

context: Arc

Defined in vote.ts:157


id

id: string | undefined

Defined in vote.ts:154


staticState

staticState: IVoteStaticState | undefined

Defined in vote.ts:155

Methods

fetchStaticState

fetchStaticState(): Promise‹IVoteStaticState

Defined in vote.ts:197

Returns: Promise‹IVoteStaticState


setStaticState

setStaticState(opts: IVoteStaticState): void

Defined in vote.ts:193

Parameters:

Name Type
opts IVoteStaticState

Returns: void


state

state(apolloQueryOptions: IApolloQueryOptions): Observable‹IVoteState

Defined in vote.ts:167

Parameters:

Name Type Default
apolloQueryOptions IApolloQueryOptions {}

Returns: Observable‹IVoteState


Static search

search(context: Arc, options: IVoteQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Vote[]›

Defined in vote.ts:58

Vote.search(context, options) searches for vote entities

Parameters:

Name Type Default Description
context Arc - an Arc instance that provides connection information
options IVoteQueryOptions {} the query options, cf. IVoteQueryOptions
apolloQueryOptions IApolloQueryOptions {} -

Returns: Observable‹Vote[]›

an observable of Vote objects

Object literals

Static fragments

fragments: object

Defined in vote.ts:36

VoteFields

VoteFields: any = gqlfragment VoteFields on ProposalVote { id createdAt dao { id } voter proposal { id } outcome reputation }

Defined in vote.ts:37