30 lines
1.3 KiB
TypeScript
30 lines
1.3 KiB
TypeScript
/**
|
|
* User wallet and deposit address service.
|
|
* Derives TRON deposit addresses for USDT (TRC20) only.
|
|
*/
|
|
import * as transactionRepository from '../repositories/transactionRepository';
|
|
import { Transaction } from '../models';
|
|
import { type WalletTypeCapabilities } from './walletCapabilities';
|
|
/**
|
|
* Gets or creates a USDT TRC20 deposit address for a user.
|
|
*/
|
|
export declare function getOrCreateDepositAddress(userId: string, walletTypeCode: string): Promise<{
|
|
address: string;
|
|
walletType: WalletTypeCapabilities;
|
|
}>;
|
|
export declare function getWalletTypes(): Promise<WalletTypeCapabilities[]>;
|
|
export declare function getUserBalances(userId: string): Promise<Array<{
|
|
walletType: WalletTypeCapabilities;
|
|
available: string;
|
|
locked: string;
|
|
bonusAvailable: string;
|
|
testAvailable: string;
|
|
}>>;
|
|
export declare function listUserTransactions(userId: string, limit: number, offset: number, category?: transactionRepository.TransactionActivityCategory): Promise<Transaction[]>;
|
|
export declare function listUserTransactionsPaginated(userId: string, limit: number, offset: number, category?: transactionRepository.TransactionActivityCategory): Promise<{
|
|
items: Transaction[];
|
|
total: number;
|
|
limit: number;
|
|
offset: number;
|
|
}>;
|
|
//# sourceMappingURL=walletService.d.ts.map
|