117 lines
3.0 KiB
TypeScript
117 lines
3.0 KiB
TypeScript
/**
|
|
* Treasury overview and cold ↔ hot funding workflow.
|
|
*/
|
|
export declare function getTreasuryOverview(): Promise<{
|
|
sweepEnabled: boolean;
|
|
withdrawalsEnabled: boolean;
|
|
assets: {
|
|
walletType: import("../models").WalletType;
|
|
coldWallet: {
|
|
id: string;
|
|
address: string;
|
|
label: string | null;
|
|
isActive: boolean;
|
|
} | null;
|
|
hotWallet: {
|
|
id: string;
|
|
address: string;
|
|
isActive: boolean;
|
|
} | null;
|
|
hotOnChainBalance: string | null;
|
|
coldOnChainBalance: string | null;
|
|
}[];
|
|
recentPendingSweeps: number;
|
|
recentFailedSweeps: number;
|
|
inProgressSweeps: {
|
|
count: number;
|
|
totalAmountRaw: string;
|
|
};
|
|
pendingColdToHotFunding: {
|
|
id: string;
|
|
walletTypeId: number;
|
|
direction: string;
|
|
amount: string;
|
|
fromAddress: string | null;
|
|
toAddress: string | null;
|
|
status: string;
|
|
createdAt: Date;
|
|
}[];
|
|
}>;
|
|
export declare function setColdWallet(input: {
|
|
walletTypeId: number;
|
|
address: string;
|
|
label?: string;
|
|
}): Promise<{
|
|
id: string;
|
|
walletTypeId: number;
|
|
address: string;
|
|
label: string | null;
|
|
isActive: boolean;
|
|
}>;
|
|
export declare function listColdWallets(): Promise<{
|
|
id: string;
|
|
walletTypeId: number;
|
|
address: string;
|
|
label: string | null;
|
|
isActive: boolean;
|
|
createdAt: Date;
|
|
}[]>;
|
|
export declare function listSweeps(opts: {
|
|
status?: string;
|
|
limit?: number;
|
|
offset?: number;
|
|
}): Promise<{
|
|
items: {
|
|
id: string;
|
|
userId: string;
|
|
walletTypeId: number;
|
|
fromAddress: string;
|
|
toColdAddress: string;
|
|
amount: string;
|
|
status: string;
|
|
blockchainTxId: string | null;
|
|
depositTransactionId: string | null;
|
|
errorMessage: string | null;
|
|
createdAt: Date;
|
|
}[];
|
|
total: number;
|
|
}>;
|
|
export declare function requestColdToHotFunding(adminUserId: string, input: {
|
|
walletTypeId: number;
|
|
amountRaw: bigint;
|
|
notes?: string;
|
|
}): Promise<{
|
|
id: string;
|
|
status: string;
|
|
fromAddress: string | null;
|
|
toAddress: string | null;
|
|
amount: string;
|
|
message: string;
|
|
}>;
|
|
export declare function confirmColdToHotFunding(adminUserId: string, fundingId: string, blockchainTxId: string): Promise<{
|
|
id: string;
|
|
status: string;
|
|
blockchainTxId: string | null;
|
|
}>;
|
|
export declare function listFunding(opts: {
|
|
status?: string;
|
|
limit?: number;
|
|
offset?: number;
|
|
}): Promise<{
|
|
items: {
|
|
id: string;
|
|
walletTypeId: number;
|
|
direction: string;
|
|
amount: string;
|
|
status: string;
|
|
blockchainTxId: string | null;
|
|
fromAddress: string | null;
|
|
toAddress: string | null;
|
|
notes: string | null;
|
|
approvedBy: string | null;
|
|
createdAt: Date;
|
|
}[];
|
|
total: number;
|
|
}>;
|
|
export declare function cancelFunding(fundingId: string): Promise<void>;
|
|
//# sourceMappingURL=treasuryService.d.ts.map
|