PaymentChannelAggregate constructor
PaymentChannelAggregate({
- required String aggregateId,
- required EventStore eventStore,
- required CryptoService cryptoService,
- NetworkType networkType = dartsv.NetworkType.TEST,
Implementation
PaymentChannelAggregate({
required String aggregateId, // This is the channelId
required EventStore eventStore,
required CryptoService cryptoService,
dartsv.NetworkType networkType = dartsv.NetworkType.TEST,
}) : _networkType = networkType,
super(
aggregateId: aggregateId,
aggregateType: 'PaymentChannel',
eventStore: eventStore,
) {
_channelBuilder = PaymentChannelBuilder(cryptoService: cryptoService);
registerHandlers();
}