ParsedSystemInstruction class
An instruction that is part if a ParsedInstruction
- Implementers
- Annotations
-
- @Freezed(unionKey: 'type', fallbackUnion: 'unsupported')
Constructors
-
ParsedSystemInstruction.fromJson(Map<
String, dynamic> json) -
factory
- ParsedSystemInstruction.transfer({required ParsedSystemTransferInformation info, required String type})
-
Transfer instruction data for a transfer of
info.lamports
frominfo.source
toinfo.destination
.constfactory - ParsedSystemInstruction.transferChecked({required ParsedSystemTransferInformation info, required String type})
-
Transfer instruction data for a transfer of
info.lamports
frominfo.source
toinfo.destination
.constfactory - ParsedSystemInstruction.unsupported({required String type})
-
Instructions that we haven't implemented yet.
constfactory
Properties
-
copyWith
→ $ParsedSystemInstructionCopyWith<
ParsedSystemInstruction> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
no setterinherited
Methods
-
map<
TResult extends Object?> ({required TResult transfer(ParsedSystemTransferInstruction value), required TResult transferChecked(ParsedSystemTransferCheckedInstruction value), required TResult unsupported(ParsedSystemUnsupportedInstruction value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? transfer(ParsedSystemTransferInstruction value)?, TResult? transferChecked(ParsedSystemTransferCheckedInstruction value)?, TResult? unsupported(ParsedSystemUnsupportedInstruction value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult transfer(ParsedSystemTransferInstruction value)?, TResult transferChecked(ParsedSystemTransferCheckedInstruction value)?, TResult unsupported(ParsedSystemUnsupportedInstruction value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult transfer(ParsedSystemTransferInformation info, String type)?, TResult transferChecked(ParsedSystemTransferInformation info, String type)?, TResult unsupported(String type)?, required TResult orElse()}) → TResult -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult transfer(ParsedSystemTransferInformation info, String type), required TResult transferChecked(ParsedSystemTransferInformation info, String type), required TResult unsupported(String type)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? transfer(ParsedSystemTransferInformation info, String type)?, TResult? transferChecked(ParsedSystemTransferInformation info, String type)?, TResult? unsupported(String type)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited