BlockUpgradeState class

Annotations
  • @JsonSerializable(fieldRename: FieldRename.kebab)

Constructors

BlockUpgradeState({required String currentProtocol, String? nextProtocol, int? nextProtocolApprovals, int? nextProtocolSwitchOn, int? nextProtocolVoteBefore})
BlockUpgradeState.fromJson(Map<String, dynamic> json)
factory

Properties

currentProtocol String
The current protocol version.
final
hashCode int
The hash code for this object.
no setterinherited
nextProtocol String?
The next proposed protocol version.
final
nextProtocolApprovals int?
Number of blocks which approved the protocol upgrade.
final
nextProtocolSwitchOn int?
Round on which the protocol upgrade will take effect.
final
nextProtocolVoteBefore int?
Deadline round for this protocol upgrade (No votes will be consider after this round).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited