Genesis class

Constructors

Genesis({int? at, int? block, int? chainId, String? note, String? root, String? status, String? txHash})
Returns a new Genesis instance.

Properties

at ↔ int?
At is the unix second the genesis root was computed.
getter/setter pair
block ↔ int?
Block is the L1 block the anchoring transaction landed in. Set only once the receipt has been read; absent otherwise.
getter/setter pair
chainId ↔ int?
ChainID is the EVM chain the root is committed to — the Hanzo L1 by default.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
note ↔ String?
Note explains an unanchored genesis honestly — anchor wiring absent, or the submit error — rather than reporting a commit that did not happen.
getter/setter pair
root ↔ String?
Root is the 0x-prefixed keccak256 root of the founding allocation. It is ALWAYS computed, whether or not the on-chain anchor is wired, because the root is the tamper-evident witness.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is pending (root computed, not yet on-chain) or anchored (committed).
getter/setter pair
txHash ↔ String?
TxHash is the L1 transaction hash of the anchoring commit. Empty until anchored.
getter/setter pair

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.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Genesis?
Returns a new Genesis instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Genesis>
mapFromJson(dynamic json) → Map<String, Genesis>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Genesis>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.