Open
Conversation
Implements the Provider interface backed by the Scalus Cardano emulator, enabling local ledger validation for transaction building and submission.
sae3023
commented
Apr 20, 2026
| @@ -0,0 +1,69 @@ | |||
| import "@evolution-sdk/scalus-emulator" | |||
Contributor
Author
There was a problem hiding this comment.
this whole file is a test util, and I don't insist on it existing in this form
sae3023
commented
Apr 24, 2026
| } | ||
|
|
||
| /** Default protocol parameters matching Cardano mainnet. */ | ||
| const DEFAULT_PROTOCOL_PARAMETERS: ProtocolParameters = { |
Contributor
Author
There was a problem hiding this comment.
if there's a util that does this better -- i'd really prefer to use it, maybe you can point it out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces the Scalus node emulator as one of the
Providerimplementations, 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). Thevendor/scalus/directory contains a local build of scalus 0.15.0 so reviewers canpnpm install && pnpm testwithout any local setup. The pnpm override in root package.json points to ./vendor/scalus. This will be removed once scalus publishes the new version.