Skip to content

Latest commit

 

History

History
263 lines (154 loc) · 7.19 KB

member.md

File metadata and controls

263 lines (154 loc) · 7.19 KB

@daostack/clientGlobalsMember

Class: Member

Represents an account that holds reputaion in a specific DAO

Hierarchy

  • Member

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

+ new Member(idOrOpts: string | IMemberStaticState, context: Arc): Member

Defined in member.ts:107

Parameters:

Name Type Description
idOrOpts string | IMemberStaticState -
context Arc an instance of Arc

Returns: Member

Properties

context

context: Arc

Defined in member.ts:114

an instance of Arc


id

id: string | undefined

Defined in member.ts:106


staticState

staticState: IMemberStaticState | undefined

Defined in member.ts:107

Methods

calculateId

calculateId(opts: object): string

Defined in member.ts:136

Parameters:

opts: object

Name Type
address Address
contract Address

Returns: string


dao

dao(): Promise‹DAO

Defined in member.ts:231

Returns: Promise‹DAO


fetchStaticState

fetchStaticState(): Promise‹IMemberStaticState

Defined in member.ts:123

Returns: Promise‹IMemberStaticState


proposals

proposals(options: IProposalQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Proposal[]›

Defined in member.ts:240

Parameters:

Name Type Default
options IProposalQueryOptions {}
apolloQueryOptions IApolloQueryOptions {}

Returns: Observable‹Proposal[]›


rewards

rewards(): Observable‹Reward[]›

Defined in member.ts:236

Returns: Observable‹Reward[]›


setStaticState

setStaticState(opts: IMemberStaticState): IMemberStaticState

Defined in member.ts:143

Parameters:

Name Type
opts IMemberStaticState

Returns: IMemberStaticState


stakes

stakes(options: IStakeQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Stake[]›

Defined in member.ts:256

Parameters:

Name Type Default
options IStakeQueryOptions {}
apolloQueryOptions IApolloQueryOptions {}

Returns: Observable‹Stake[]›


state

state(apolloQueryOptions: IApolloQueryOptions): Observable‹IMemberState

Defined in member.ts:158

Parameters:

Name Type Default
apolloQueryOptions IApolloQueryOptions {}

Returns: Observable‹IMemberState


votes

votes(options: IVoteQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Vote[]›

Defined in member.ts:269

Parameters:

Name Type Default
options IVoteQueryOptions {}
apolloQueryOptions IApolloQueryOptions {}

Returns: Observable‹Vote[]›


Static search

search(context: Arc, options: IMemberQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Member[]›

Defined in member.ts:64

Member.search(context, options) searches for member entities

Parameters:

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

Returns: Observable‹Member[]›

an observable of IRewardState objects

Object literals

Static fragments

fragments: object

Defined in member.ts:44

ReputationHolderFields

ReputationHolderFields: any = gqlfragment ReputationHolderFields on ReputationHolder { id address contract dao { id } balance }

Defined in member.ts:45