games_app/backend/dist/repositories/hotWalletRepository.d.ts
2026-06-29 15:01:23 +02:00

28 lines
1.2 KiB
TypeScript

import { HotWallet } from '../models';
/**
* Repository for hot wallet management.
* Provides access to active signing wallets used for outbound blockchain transactions.
*/
/**
* Returns the active hot wallet for a given wallet type.
* @param walletTypeId - ID of the wallet type to look up.
* @returns The active hot wallet record, or null if none is configured.
*/
export declare function getActiveHotWallet(walletTypeId: number): Promise<HotWallet | null>;
export declare function listActiveHotWallets(): Promise<HotWallet[]>;
/**
* Inserts a new hot wallet record.
* @param data - Hot wallet fields to persist.
* @param data.walletTypeId - Wallet type this hot wallet serves.
* @param data.address - On-chain address of the hot wallet.
* @param data.encryptedPrivateKey - Encrypted private key for signing transactions.
* @param data.derivationIndex - Optional HD derivation index used to generate the wallet.
* @returns Resolves when the row has been inserted.
*/
export declare function create(data: {
walletTypeId: number;
address: string;
encryptedPrivateKey: string;
derivationIndex?: number | null;
}): Promise<void>;
//# sourceMappingURL=hotWalletRepository.d.ts.map