Properties
Private
bulkAccountLoader
Methods
addUserStat
- addUserStat(authority: PublicKey, userStatsAccount?: UserStatsAccount, skipFetch?: boolean): Promise<void>
-
Parameters
-
-
-
Optional
skipFetch: boolean
Returns Promise<void>
get
- get(authorityPublicKey: string): UserStats
-
Parameters
-
authorityPublicKey: string
has
- has(authorityPublicKey: string): boolean
-
Parameters
-
authorityPublicKey: string
Returns boolean
mustGet
- mustGet(authorityPublicKey: string): Promise<UserStats>
-
Parameters
-
authorityPublicKey: string
size
- size(): number
-
Returns number
subscribe
- subscribe(authorities: PublicKey[]): Promise<void>
-
Returns Promise<void>
sync
- sync(authorities: PublicKey[]): Promise<void>
-
Returns Promise<void>
unsubscribe
- unsubscribe(): Promise<void>
-
Returns Promise<void>
updateWithEventRecord
- updateWithEventRecord(record: any, userMap?: UserMap): Promise<void>
-
Parameters
-
record: any
-
Optional
userMap: UserMap
Returns Promise<void>
updateWithOrderRecord
- updateWithOrderRecord(record: OrderRecord, userMap: UserMap): Promise<void>
-
Returns Promise<void>
Creates a new UserStatsMap instance.