ChannelOpenedEvent constructor

ChannelOpenedEvent({
  1. required String channelId,
  2. required String fundingTxId,
  3. required int fundingOutputIndex,
  4. required String fundingTxHex,
  5. List<String> fundingAncestorTxids = const [],
  6. required BigInt initialClientBalanceSats,
  7. required BigInt initialServerBalanceSats,
  8. String? fundingBeefHex,
  9. String? eventId,
  10. DateTime? timestamp,
  11. int? version,
  12. Map<String, dynamic>? metadata,
})

Implementation

ChannelOpenedEvent({
  required String channelId,
  required this.fundingTxId,
  required this.fundingOutputIndex,
  required this.fundingTxHex,
  List<String> fundingAncestorTxids = const [],
  required this.initialClientBalanceSats,
  required this.initialServerBalanceSats,
  this.fundingBeefHex,
  String? eventId,
  DateTime? timestamp,
  int? version,
  Map<String, dynamic>? metadata,
})  : fundingAncestorTxids = frozenList(fundingAncestorTxids),
      super(
        channelId: channelId,
        eventId: eventId,
        timestamp: timestamp,
        version: version,
        metadata: metadata,
      );