ModuleRoutedTx

org.sigilaris.core.application.transactions.ModuleRoutedTx
trait ModuleRoutedTx extends Tx

Transaction trait with module routing information.

Transactions that implement this trait carry their module path, enabling proper routing in composed blueprints. The module path is used to dispatch transactions to the correct reducer.

Attributes

Example
case class AccountsTransfer(from: Address, to: Address, amount: BigInt)
   extends Tx with ModuleRoutedTx:
 val moduleId = ModuleId(("accounts" *: EmptyTuple))
 type Reads = Entry["balances", Address, Account] *: EmptyTuple
 type Writes = Entry["balances", Address, Account] *: EmptyTuple
 type Result = Unit
 type Event = TransferEvent
Source
Model.scala
Graph
Supertypes
trait Tx
class Object
trait Matchable
class Any

Members list

Type members

Inherited and Abstract types

type Event

The event type emitted by this transaction.

The event type emitted by this transaction.

Attributes

Inherited from:
Tx
Source
Model.scala
type Reads <: Tuple

Tables this transaction reads from.

Tables this transaction reads from.

Attributes

Inherited from:
Tx
Source
Model.scala
type Result

The result type produced by applying this transaction.

The result type produced by applying this transaction.

Attributes

Inherited from:
Tx
Source
Model.scala
type Writes <: Tuple

Tables this transaction writes to.

Tables this transaction writes to.

Attributes

Inherited from:
Tx
Source
Model.scala

Value members

Abstract methods

def moduleId: Any

The module identifier specifying which module this transaction belongs to.

The module identifier specifying which module this transaction belongs to.

Attributes

Source
Model.scala