Constructs a new instance of the Emulator class. Initializes the ledger with the provided genesis outputs and parameters.
The genesis outputs to initialize the ledger with.
Optional
params: Core.ProtocolParameters = hardCodedProtocolParamsThe parameters to initialize the emulator with.
The map of reward accounts and their balances.
The clock of the ledger.
A lookup table of hashes to datums.
The script evaluator for the emulator
Optional
eventThe event loop for the ledger.
A map from label to blaze instance for that wallet
The protocol parameters of the ledger.
Optional
pattern: RegExpSubmits a transaction to the ledger.
The transaction to submit.
A promise that resolves to the transaction hash.
This function performs the following checks and validations:
The Emulator class is used to simulate the behavior of a ledger. It maintains a ledger of unspent transaction outputs, reward accounts, protocol parameters, and a clock. It also provides methods to start and stop an event loop for the ledger.