PaymentChannelAggregate constructor
PaymentChannelAggregate({
- required String aggregateId,
- required EventStore eventStore,
- required CryptoService cryptoService,
Implementation
PaymentChannelAggregate({
required String aggregateId, // This is the channelId
required EventStore eventStore,
required CryptoService cryptoService,
}) : _cryptoService = cryptoService,
super(
aggregateId: aggregateId,
aggregateType: 'PaymentChannel',
eventStore: eventStore,
) {
_channelBuilder = const PaymentChannelBuilder();
registerHandlers();
}