raiden-ts
Version:
Raiden Light Client Typescript/Javascript SDK
19 lines (18 loc) • 1.01 kB
TypeScript
import type { Observable } from 'rxjs';
import type { RaidenAction } from '../../actions';
import type { RaidenState } from '../../state';
import type { RaidenEpicDeps } from '../../types';
import { channelDeposit, channelOpen } from '../actions';
/**
* A channelOpen action requested by user
* Needs to be called on a previously monitored tokenNetwork. Calls TokenNetwork.openChannel
* with given parameters. If tx goes through successfuly, stop as channelOpen.success action
* will instead be detected and fired by channelEventsEpic. If anything detectable goes wrong,
* fires a channelOpen.failure action instead
*
* @param action$ - Observable of channelOpen actions
* @param state$ - Observable of RaidenStates
* @param deps - RaidenEpicDeps members
* @returns Observable of channelOpen.failure actions
*/
export declare function channelOpenEpic(action$: Observable<RaidenAction>, state$: Observable<RaidenState>, deps: RaidenEpicDeps): Observable<channelOpen.failure | channelDeposit.request>;