import { Emulator } from "https://deno.land/x/lucid@0.10.7/src/mod.ts";
Properties
Only stake key registrations/delegations and rewards are tracked. Other certificates are not tracked.
Methods
awaitBlock(height?)
awaitSlot(length?)
awaitTx(txHash: string): Promise<boolean>
distributeRewards(rewards: Lovelace)
Emulates the behaviour of the reward distribution at epoch boundaries. Stake keys need to be registered and delegated like on a real chain in order to receive rewards.
getDatum(datumHash: DatumHash): Promise<Datum>
getDelegation(rewardAddress: RewardAddress): Promise<Delegation>
getProtocolParameters(): Promise<ProtocolParameters>
getUtxoByUnit(unit: string): Promise<UTxO>
getUtxos(addressOrCredential: Address | Credential): Promise<UTxO[]>
getUtxosByOutRef(outRefs: OutRef[]): Promise<UTxO[]>
getUtxosWithUnit(addressOrCredential: Address | Credential, unit: Unit): Promise<UTxO[]>
log()
now(): UnixTime
submitTx(tx: Transaction): Promise<TxHash>