import {MessageQueuedNotification} from '@statechannels/client-api-schema'; import {StateVariables} from '@statechannels/wallet-core'; import {Bytes32} from '../type-aliases'; /* Actions that protocols can declare. */ export type Notice = Omit; export type SignState = {type: 'SignState'; channelId: Bytes32} & StateVariables; /* Action creators */ export const noAction = undefined; const actionConstructor = (type: A['type']) => ( props: Omit ): A => ({...props, type} as A); export const signState = actionConstructor('SignState'); export type Outgoing = Notice; export type ProtocolAction = SignState;