Class: DaoFactory

DaoFactory

Implements factory pattern to return an instance of a dao

new DaoFactory()

Methods


<static> get(provider, chain)

Cretae an instance of a dao and return it
Parameters:
Name Type Description
provider DaoType The provider as defined in the static variables of this class
chain Bech32hrp The Bech32 registered prefix used to identify the chain
Returns:
dao - An instance of a class extending the AbstractDao subtype
Type
AbstractDao