WalletRuntimeModule

@Module
object WalletRuntimeModule

Hilt bindings for sdk:wallet-runtime.

Provides the production MidnightSdkFactory — a thin wrapper over MidnightSdk.Builder. Kept as a @Provides lambda rather than a class so the construction recipe (network + seed + proving mode + optional proof URL) reads in one place; tests swap in a fake factory instead.

MidnightSdkProvider itself needs no binding here — it's a @Singleton with an @Inject constructor, same pattern as WalletSeedSource.

Functions

Link copied to clipboard
@Provides
@Singleton
fun provideDriveAuthManager(context: Context): DriveAuthManager
Link copied to clipboard
@Provides
@Singleton
fun provideMidnightSdkFactory(context: Context, driveAuth: DriveAuthManager): MidnightSdkFactory