feat(mock-chain): support sigmastate-js 0.6.0#215
Open
Luivatra wants to merge 2 commits intofleet-sdk:masterfrom
Open
feat(mock-chain): support sigmastate-js 0.6.0#215Luivatra wants to merge 2 commits intofleet-sdk:masterfrom
Luivatra wants to merge 2 commits intofleet-sdk:masterfrom
Conversation
Replace AvlTree$.fromDigest() (removed in 0.6.0) with the AvlTree constructor. Remove the AvlTree$ type declaration. Relax the sigmastate-js version constraint to >=0.4.6. This enables mock-chain to work with sigmastate-js 0.6.0 which adds support for v6 ErgoTree features (serialize/deserializeTo).
🦋 Changeset detectedLatest commit: 0835212 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
arobsn
requested changes
Apr 7, 2026
Member
arobsn
left a comment
There was a problem hiding this comment.
Hey! Thanks for your PR. CI is failing because you forget to include the updated pnpm-lock.yaml after bumping sigamstate-js version.
| "diff": "^8.0.3", | ||
| "picocolors": "^1.1.1", | ||
| "sigmastate-js": "0.4.6" | ||
| "sigmastate-js": ">=0.4.6" |
Member
There was a problem hiding this comment.
The only 0.6.0 version available in npm registry is 0.6.0-snapshot.d6573ab7c, please set the version to this.
Author
There was a problem hiding this comment.
Is it better if I update the whole repo to that version? Would be great if fleet supports the newer ergotree versions.
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.
Summary
Updates
@fleet-sdk/mock-chainto supportsigmastate-js0.6.0, which adds v6 ErgoTree features (serialize/deserializeTo).Changes
AvlTree$.fromDigest(hex)withnew AvlTree(hex, false, false, false, 32, undefined)— theAvlTree$companion object andfromDigestfactory were removed in sigmastate-js 0.6.0AvlTree$type declaration fromsigmastate.d.tssigmastate-jsversion constraint to>=0.4.6for backward compatibilityContext
sigmastate-js0.6.0 adds compiler and interpreter support for v6 methods likeserialize()anddeserializeTo(). The only breaking change affecting fleet-sdk is the removal ofAvlTree$.fromDigest(), which was used inmockBlockchainStateContext()to create AvlTree instances for mock block headers.The
AvlTreeconstructor accepts the same parameters directly — digest hex, flags, key length, and optional value length — makingfromDigestunnecessary.