Erc20TokenBalanceFactory
Last updated
Was this helpful?
Last updated
Was this helpful?
Factory generates information for an ERC20 Token Balance
‹, , ›
↳ Erc20TokenBalanceFactory
Create an instance of the ERC20 Token Balance Factory
Parameters:
Name
Type
context
entity class that this Factory is in charge of generating and caching
• cache: object
Get an entity from the cache. Creates it if it isn't cached, updates it if it is
Parameters:
Name
Type
Description
uid
string
unique identifier for the entity
params
constructor data for the entity
Returns: EntityType
â–¸ fetch(uid
: string): Promise‹EntityType›
Get an entity from the cache. Fetches the necessary data to create it if it isn't cached, refreshes it if it is
Parameters:
Name
Type
Description
uid
string
unique identifier for the entity
Returns: Promise‹EntityType›
â–¸ refresh(uid
: string): Promise‹void›
Fetch the data for an entity and updates its properties
Parameters:
Name
Type
Description
uid
string
unique identifier for the entity
Returns: Promise‹void›
Update an entity's properties in place
Parameters:
Name
Type
Description
uid
string
unique identifier for the entity
params
properties that should be updated
Returns: Promise‹void›
+ new Erc20TokenBalanceFactory(context
: ):
Overrides .
Defined in
Returns:
• Entity: ‹, ›
Inherited from .
Defined in
Inherited from .
Defined in
[ key: string]: | undefined
• context:
Inherited from .
Defined in
â–¸ create(uid
: string, params
: ): EntityType
Inherited from .
Defined in
Inherited from .
Defined in
Inherited from .
Defined in
â–¸ update(uid
: string, params
: Partial‹›): Promise‹void›
Inherited from .
Defined in
Partial‹›