XchainService class Null safety

The service to handle cross chain references and updates.

Constructors

XchainService(L0Storage _l0storage, Database db)

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

get(Uint8List address) XchainModel?
Gets a xchain from local database.
loadKey(Uint8List address) → Future<XchainModel>
Adds a new Xchain by its address.
loadXchain(XchainModel xchain, {List<String> skip = const []}) → Future<Map<BlockModel, List<TransactionModel>>>
Deserializes and persists all the blocks from the xchain into database.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
update(Uint8List address, Uint8List lastBlock) → void
Updates the XchainModel.lastBlock.

Operators

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