machinomy
Version:
Micropayments powered by Ethereum
10 lines (9 loc) • 479 B
TypeScript
import ChannelId from '../../ChannelId';
import Payment from '../../payment';
import EnginePostgres from './EnginePostgres';
import AbstractPaymentsDatabase from '../AbstractPaymentsDatabase';
export default class PostgresPaymentsDatabase extends AbstractPaymentsDatabase<EnginePostgres> {
save(token: string, payment: Payment): Promise<void>;
firstMaximum(channelId: ChannelId | string): Promise<Payment | any>;
findByToken(token: string): Promise<Payment | any>;
}