Skip to main content
Version: Next

emulator

Home > @blaze-cardano/emulator

emulator package

Classes

Class

Description

Emulator

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.

EmulatorProvider

The EmulatorProvider class implements the Provider interface. It provides methods to interact with the Emulator.

LedgerTimer

Tracks slot, block, and epoch progression for the emulator.

Enumerations

Enumeration

Description

ProposalStatus

Functions

Function

Description

buildStakeSnapshot(accounts)

certificateDeposit(core)

committeeMemberTermActive(member, currentEpoch)

createEmulatorNetworkConfig(input)

Resolve a network preset and optional overrides into emulator settings.

deserialiseInput(input)

findCommitteeMemberByColdHash(members, hash)

fractionAtLeast(yes, no, thresh)

fractionMax(fractions)

hasDeposit(core)

identifyParameterGroups(update)

isDelayingAction(kind)

isKnownStakePool(activePools, poolId)

isLegacyStakeCertificate(cert)

isParameterUpdatePresent(update, field)

nextDrepExpiryEpoch(params, currentEpoch)

serialiseDrepCredential(cred)

serialiseGovId(id)

serialiseInput(input)

serialiseVoter(voter)

toPoolIdKey(hash)

Interfaces

Interface

Description

DRepState

EmulatorNetworkConfig

Resolved network, protocol, and clock settings for an emulator.

EmulatorNetworkConfigInput

Overrides accepted by createEmulatorNetworkConfig().

EmulatorOptions

EnactQueueItem

GovProposal

RegisteredAccount

StakeSnapshot

Tally

VoteRecord

Variables

Variable

Description

DREP_KIND_ABSTAIN

DREP_KIND_NO_CONFIDENCE

ECONOMIC_GROUP_FIELDS

GOVERNANCE_GROUP_FIELDS

NETWORK_GROUP_FIELDS

SECURITY_GROUP_FIELDS

TECHNICAL_GROUP_FIELDS

Type Aliases

Type Alias

Description

CertificateWithDeposit

EmulatorNetworkPreset

Network preset used as the base for emulator configuration.

ProposalVoteMap

SerialisedGovId

SerialisedInput

SerializedDRep

Tallies