Skip to content

Scalus node emulator#249

Open
sae3023 wants to merge 5 commits intoIntersectMBO:scalusfrom
sae3023:scalus
Open

Scalus node emulator#249
sae3023 wants to merge 5 commits intoIntersectMBO:scalusfrom
sae3023:scalus

Conversation

@sae3023
Copy link
Copy Markdown
Contributor

@sae3023 sae3023 commented Apr 15, 2026

This PR introduces the Scalus node emulator as one of the Provider implementations, allowing to write the code against the in-memory Emulator as if it was a real node.

It also migrates some of the tests to the scalus emulator, making it drastically faster (180s vs ±3s)

Note on vendored scalus

This PR depends on Scalus features not yet published to npm (Emulator.withState, getDelegation, getDatum, hasTx). The vendor/scalus/ directory contains a local build of scalus 0.15.0 so reviewers can pnpm install && pnpm test without any local setup. The pnpm override in root package.json points to ./vendor/scalus. This will be removed once scalus publishes the new version.

solidsnakedev and others added 2 commits January 10, 2026 10:28
Implements the Provider interface backed by the Scalus Cardano emulator,
enabling local ledger validation for transaction building and submission.
@sae3023 sae3023 marked this pull request as draft April 15, 2026 15:18
@@ -0,0 +1,69 @@
import "@evolution-sdk/scalus-emulator"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this whole file is a test util, and I don't insist on it existing in this form

}

/** Default protocol parameters matching Cardano mainnet. */
const DEFAULT_PROTOCOL_PARAMETERS: ProtocolParameters = {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there's a util that does this better -- i'd really prefer to use it, maybe you can point it out

@sae3023 sae3023 changed the title [draft]: scalus emulator Scalus node emulator Apr 24, 2026
@sae3023 sae3023 marked this pull request as ready for review April 24, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants