SnapshotBlock class

Annotations
  • @freezed

Constructors

SnapshotBlock({required Address producer, required Hash hash, required Hash previousHash, required int height, @NullableUint8ListBase64Converter() Uint8List? publicKey, @NullableUint8ListBase64Converter() Uint8List? signature, required int timestamp, required num seed, Hash? nextSeedHash, @Default({}) Map<ViteAddress, HashHeight> snapshotData})
const
factory
SnapshotBlock.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $SnapshotBlockCopyWith<SnapshotBlock>
no setterinherited
hash Hash
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height int
no setterinherited
nextSeedHash Hash?
no setterinherited
previousHash Hash
no setterinherited
producer Address
no setterinherited
publicKey Uint8List?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed num
no setterinherited
signature Uint8List?
no setterinherited
snapshotData Map<String, HashHeight>
no setterinherited
timestamp int
no setterinherited

Methods

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

Operators

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