UNPKG

machinomy

Version:

Micropayments powered by Ethereum

12 lines (11 loc) 670 B
import ChannelEthContract from './ChannelEthContract'; import ChannelTokenContract from './ChannelTokenContract'; import { PaymentChannel, PaymentChannelJSON } from './PaymentChannel'; export default class ChannelInflator { channelEthContract: ChannelEthContract; channelTokenContract: ChannelTokenContract; constructor(channelEthContract: ChannelEthContract, channelTokenContract: ChannelTokenContract); static isTokenContractDefined(tokenContract: string | undefined): boolean; inflate(paymentChannelJSON: PaymentChannelJSON): Promise<PaymentChannel | null>; actualContract(tokenContract?: string): ChannelEthContract | ChannelTokenContract; }