import { OpenChannel } from '@statechannels/wallet-core' ; import { WalletObjective } from '../../../models/objective' ; import { channel } from '../../../models/__test__/fixtures/channel' ; import { WaitingFor } from '../../../protocols/channel-opener' ; import { alice , bob } from './participants' ; import { fixture } from './utils' ; const defaultObjective = { data : { targetChannelId : channel ( ) . channelId , role : 'app' , fundingStrategy : 'Direct' } , participants : [ alice ( ) , bob ( ) ] , type : 'OpenChannel' , objectiveId : [ 'OpenChannel' , channel ( ) . channelId ] . join ( '-' ) , status : 'pending' , waitingFor : WaitingFor . theirPreFundSetup , createdAt : new Date ( ) , progressLastMadeAt : new Date ( ) , } ; export const openChannelObjective = fixture ( defaultObjective ) ;