The ILockProviderFactory contract makes it easy to configure and switch between different ILockProvider dynamically.
ILockProviderFactory
ILockProvider
IMPORT_PATH: "@daiso-tech/core/lock/contracts"
"@daiso-tech/core/lock/contracts"
The use method will throw an error if you provide it unregisted adapter. If no default adapter is defined an error will be thrown by use method.
use
Optional
UnregisteredAdapterError
DefaultAdapterNotDefinedError
The
ILockProviderFactorycontract makes it easy to configure and switch between differentILockProviderdynamically.IMPORT_PATH:
"@daiso-tech/core/lock/contracts"