RecordTransactionNetworkStatusCommand class
Records a network status observed for txid (ARC or the data source).
Only a deferred payment of this wallet is affected; any other txid is a no-op. The status is journaled when explicit or when it differs from the last recorded one. REJECTED on an outstanding payment also fails it and releases its inputs. Every other status (404 / NOT_FOUND, orphan mempool, in-flight statuses, DOUBLE_SPEND_ATTEMPTED, which ARC documents as not final: bead libspiffy-ey2) leaves the hold in place.
- Inheritance
-
- Object
- WalletCommand
- RecordTransactionNetworkStatusCommand
Constructors
-
RecordTransactionNetworkStatusCommand({required String walletId, required String txid, required String networkStatus, String source = 'arc', DateTime? checkedAt, int? blockHeight, bool explicit = false, String? detail, List<
String> competingTxids = const [], String? commandId, DateTime? timestamp, Map<String, dynamic> ? metadata})
Properties
- blockHeight → int?
-
final
- checkedAt → DateTime
-
final
- commandId → String
-
Unique identifier for this command
Used for deduplication and tracing
no setterinherited
- commandType → String
-
Command type identifier for logging and debugging
no setteroverride
-
competingTxids
→ List<
String> -
The competing transactions ARC named (
competingTxs, reported with DOUBLE_SPEND_ATTEMPTED; bead libspiffy-pkum). Journaled with the status; a txid the payment's record does not hold yet journals the status even when it is unchanged.final - correlationId → String
-
finalinherited
- detail → String?
-
ARC's message for a failure (journaled as the failure reason).
final
- explicit → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> -
finalinherited
- networkStatus → String
-
ARC's wire name (
SEEN_ON_NETWORK,REJECTED, ...) orNOT_FOUND.final - payload → dynamic
-
Override payload to return the command itself for LocalMessage compatibility
no setterinherited
-
persistableMetadata
→ Map<
String, dynamic> -
metadataas it is persisted: transientActorRefentries removed.no setterinherited - replyTo → ActorRef?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender → ActorRef?
-
finalinherited
- source → String
-
arcordataSource.final - timestamp → DateTime
-
finalinherited
- txid → String
-
final
- typeName → String
-
Stable identity of this command type in storage.
no setterinherited
- walletId → String
-
finalinherited
Methods
-
getValidationErrors(
) → List< String> -
Get validation errors
Override in subclasses to provide specific error messages
inherited
-
isValid(
) → bool -
Validate the command
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 command to CBOR bytes
inherited
-
toMap(
) → Map< String, dynamic> -
Convert command to a map for serialization.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited