machinomy
Version:
Micropayments powered by Ethereum
20 lines (19 loc) • 732 B
TypeScript
import { PaymentChannel } from './PaymentChannel';
import Payment from './payment';
import ChannelContract from './ChannelContract';
import MachinomyOptions from './MachinomyOptions';
export default class PaymentValidation {
private readonly payment;
private readonly paymentChannel;
private readonly channelContract;
private readonly options;
constructor(channelContract: ChannelContract, payment: Payment, paymentChannel: PaymentChannel, options: MachinomyOptions);
isValid(): Promise<boolean>;
private isValidChannelValue;
private isValidChannelId;
private isValidPaymentValue;
private isValidSender;
private isPositive;
private canClaim;
private isAboveMinSettlementPeriod;
}