import { ChannelStateFunding , ChannelStateWithSupported } from '../../state' ; import { stateWithHashSignedBy } from '../../../engine/__test__/fixtures/states' ; import { fixture } from '../../../engine/__test__/fixtures/utils' ; import { alice , bob } from '../../../engine/__test__/fixtures/participants' ; const defaultChannelState = { channelId : '0x1234' , myIndex : 0 , participants : [ alice ( ) , bob ( ) ] , supported : stateWithHashSignedBy ( ) ( { turnNum : 3 } ) , latest : stateWithHashSignedBy ( ) ( { turnNum : 3 } ) , latestSignedByMe : stateWithHashSignedBy ( ) ( { turnNum : 3 } ) , funding : ( ) : ChannelStateFunding => ( { amount : '0x00' , transferredOut : [ ] } ) , chainServiceRequests : [ ] , fundingStrategy : 'Direct' , directFundingStatus : 'Uncategorized' , adjudicatorStatus : 'Open' , } ; export const channelStateFixture = fixture ( defaultChannelState ) ;