ChannelAcceptedEvent class
Server has accepted a channel request
- Inheritance
-
- Object
- ChannelEvent
- ChannelAcceptedEvent
Constructors
-
ChannelAcceptedEvent({required String channelId, required String walletId, required String clientPeerId, required String clientPubKeyHex, required String clientAddressB58, required String serverPubKeyHex, required String serverAddressB58, required int derivationIndex, required BigInt fundingAmountSats, required int lockTimeUnix, String? context, String? serverPeerId, String? counterpartyMarker, String? eventId, DateTime? timestamp, int? version, Map<
String, dynamic> ? metadata}) -
ChannelAcceptedEvent.fromMap(Map<
String, dynamic> map) -
factory
Properties
- aggregateId → String
-
The ID of the aggregate this event belongs to
no setterinherited
- aggregateType → String
-
The type of aggregate this event belongs to
no setterinherited
- channelId → String
-
finalinherited
- clientAddressB58 → String
-
final
- clientPeerId → String
-
final
- clientPubKeyHex → String
-
final
- context → String?
-
final
- correlationId → String
-
The correlation ID of the message.
no setterinherited
- counterpartyMarker → String?
-
The app's opaque marker for the counterparty of this channel (bead
libspiffy-bps1). Journaled so a restart can still stamp it on the
wallet transactions the channel records. Null on rows written before
it was journaled, and when the app supplied none — the recording then
falls back to the counterparty's peer id.
final
- derivationIndex → int
-
final
- eventId → String
-
Unique identifier for this event
Used for deduplication and correlation
no setterinherited
- fundingAmountSats → BigInt
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lockTimeUnix → int
-
final
-
metadata
→ Map<
String, dynamic> -
Additional metadata for the event
Can include correlation IDs, causation IDs, user context, etc.
no setterinherited
-
persistableMetadata
→ Map<
String, dynamic> -
metadataas it is persisted: transientActorRefentries removed.no setterinherited - replyTo → ActorRef?
-
The actor to reply to, if a live
ActorRefwas placed inmetadata['replyTo'].no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverAddressB58 → String
-
final
- serverPeerId → String?
-
The accepting node's own peer id (libspiffy-36f). Null in rows written
before it was journaled, and when the node was not given one.
final
- serverPubKeyHex → String
-
final
- timestamp → DateTime
-
Timestamp when the event occurred
no setterinherited
- typeName → String
-
Stable identity of this event type in storage.
no setter
- version → int
-
Version/sequence number of this event within its aggregate
Used for ordering and optimistic concurrency control
no setterinherited
- walletId → String
-
final
Methods
-
getChannelEventData(
) → Map< String, dynamic> -
Override to provide event-specific data for serialization
override
-
getEventData(
) → Map< String, dynamic> -
Get event-specific data for serialization
Override in subclasses to provide event data
inherited
-
getValidationErrors(
) → List< String> -
Get validation errors
Override in subclasses to provide specific error messages
inherited
-
isValid(
) → bool -
Validate the event
Override in subclasses for custom validation
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCbor(
) → List< int> -
Serialize event to CBOR bytes
inherited
-
toMap(
) → Map< String, dynamic> -
Convert event to a map for serialization
Override in subclasses to include event-specific data
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- stableTypeName → const String
- Journal identifier of this event type. Stored with every event and independent of the class name; never change it (audit 2026-09-14 M8).