Skip to content

Latest commit

 

History

History
153 lines (87 loc) · 4.11 KB

reputation.md

File metadata and controls

153 lines (87 loc) · 4.11 KB

@daostack/clientGlobalsReputation

Class: Reputation

Hierarchy

  • Reputation

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Reputation(id: Address, context: Arc): Reputation

Defined in reputation.ts:67

Parameters:

Name Type
id Address
context Arc

Returns: Reputation

Properties

address

address: Address

Defined in reputation.ts:67


context

context: Arc

Defined in reputation.ts:68


id

id: Address

Defined in reputation.ts:68

Methods

contract

contract(): any

Defined in reputation.ts:120

Returns: any


mint

mint(beneficiary: Address, amount: BN): IOperationObservableITransactionUpdate‹any››

Defined in reputation.ts:125

Parameters:

Name Type
beneficiary Address
amount BN

Returns: IOperationObservableITransactionUpdate‹any››


reputationOf

reputationOf(address: Address): Observable‹BN›

Defined in reputation.ts:96

Parameters:

Name Type
address Address

Returns: Observable‹BN›


state

state(apolloQueryOptions: IApolloQueryOptions): Observable‹IReputationState

Defined in reputation.ts:72

Parameters:

Name Type Default
apolloQueryOptions IApolloQueryOptions {}

Returns: Observable‹IReputationState


Static search

search(context: Arc, options: IReputationQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Reputation[]›

Defined in reputation.ts:31

Reputation.search(context, options) searches for reputation entities

Parameters:

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

Returns: Observable‹Reputation[]›

an observable of Reputation objects