TokenholderFactory
Factory generates information for a Tokenholder entity
Hierarchy
Factory‹Tokenholder, Params, UniqueIdentifiers›
↳ TokenholderFactory
Index
Constructors
Properties
Methods
Constructors
constructor
+ new TokenholderFactory(context
: Context): TokenholderFactory
Overrides Factory.constructor
Defined in src/entities/factories/TokenholderFactory.ts:61
Create an instance of the Tokenholder Factory
Parameters:
Returns: TokenholderFactory
Properties
Entity
• Entity: EntityClass‹Params, UniqueIdentifiers›
Defined in src/entities/factories/Factory.ts:37
entity class that this Factory is in charge of generating and caching
cache
• cache: object
Defined in src/entities/factories/Factory.ts:28
Type declaration:
[ key: string]: Tokenholder | undefined
context
• context: Context
Inherited from Factory.context
Defined in src/entities/factories/Factory.ts:32
Methods
create
▸ create(uid
: string, params
: Params): EntityType
Defined in src/entities/factories/Factory.ts:87
Get an entity from the cache. Creates it if it isn't cached, updates it if it is
Parameters:
Returns: EntityType
fetch
▸ fetch(uid
: string): Promise‹EntityType›
Defined in src/entities/factories/Factory.ts:57
Get an entity from the cache. Fetches the necessary data to create it if it isn't cached, refreshes it if it is
Parameters:
Returns: Promise‹EntityType›
refresh
▸ refresh(uid
: string): Promise‹void›
Inherited from Factory.refresh
Defined in src/entities/factories/Factory.ts:108
Fetch the data for an entity and updates its properties
Parameters:
Returns: Promise‹void›
update
▸ update(uid
: string, params
: Partial‹Params›): Promise‹void›
Defined in src/entities/factories/Factory.ts:126
Update an entity's properties in place
Parameters:
Returns: Promise‹void›
Last updated