37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
export type ExchangeFundingRow = {
|
|
id: string;
|
|
wallet_type_id: number;
|
|
direction: string;
|
|
amount: string;
|
|
blockchain_tx_id: string | null;
|
|
exchange_name: string | null;
|
|
status: string;
|
|
approved_by: string | null;
|
|
from_address: string | null;
|
|
to_address: string | null;
|
|
notes_encrypted: string | null;
|
|
created_at: Date;
|
|
updated_at: Date;
|
|
};
|
|
export declare function createFunding(input: {
|
|
walletTypeId: number;
|
|
direction: 'cold_to_hot' | 'hot_to_cold';
|
|
amount: bigint;
|
|
fromAddress?: string;
|
|
toAddress?: string;
|
|
notes?: string;
|
|
requestedBy?: string;
|
|
approvedBy?: string;
|
|
}): Promise<ExchangeFundingRow>;
|
|
export declare function listFunding(opts: {
|
|
status?: string;
|
|
limit?: number;
|
|
offset?: number;
|
|
}): Promise<{
|
|
items: ExchangeFundingRow[];
|
|
total: number;
|
|
}>;
|
|
export declare function findFundingById(id: string): Promise<ExchangeFundingRow | null>;
|
|
export declare function confirmFunding(id: string, blockchainTxId: string, approvedBy: string): Promise<ExchangeFundingRow | null>;
|
|
export declare function cancelFunding(id: string): Promise<void>;
|
|
//# sourceMappingURL=exchangeFundingRepository.d.ts.map
|