PaymentChannelManagerActor constructor

PaymentChannelManagerActor({
  1. required ActorRef walletManager,
  2. required EventStore eventStore,
  3. required CryptoService cryptoService,
  4. NetworkType networkType = dartsv.NetworkType.TEST,
  5. void eventBroadcaster(
    1. ChannelEvent
    )?,
})

Implementation

PaymentChannelManagerActor({
  required ActorRef walletManager,
  required EventStore eventStore,
  required CryptoService cryptoService,
  dartsv.NetworkType networkType = dartsv.NetworkType.TEST,
  void Function(ChannelEvent)? eventBroadcaster,
})  : _walletManager = walletManager,
      _eventStore = eventStore,
      _cryptoService = cryptoService,
      _networkType = networkType,
      _eventBroadcaster = eventBroadcaster {
  _channelBuilder = PaymentChannelBuilder(cryptoService: cryptoService);
}