Repository navigation
feat(deployer): add compact.toml patterns and per-deploy options #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
276841a
build(deployer): move ledger-v9 to 1.0.0-rc.5
0xisk 48c2313
docs(deployer): split out the 0.2.0 changelog
0xisk 3b187f5
feat(deployer): match [contracts] keys by pattern
0xisk 8bc24eb
feat(deployer): take per-deploy values from code
0xisk 13e5080
feat(deployer): remember the accepted fragment size
0xisk 6e07bbc
test(integration): deploy Fragmented through a pattern
0xisk 33ef64b
docs(deployer): document patterns and new options
0xisk a472fc0
docs(deployer): date the changelog for 0.3.0
0xisk 07487d8
docs(deployer): add the npm ledger pin
0xisk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocker for 0.3.0 (claude, codex): npm consumers get two ledger copies.
This line pins
@midnightntwrk/ledger-v9to exactly1.0.0-rc.5. The deployer's own dependencies pin exactly1.0.0-rc.3: for example@midnightntwrk/wallet-sdk-facade@5.0.0-beta.2, the otherwallet-sdk-*packages, andmidnight-js-protocol. In this repo the rootresolutionsforces rc.5 on all of them, so CI passes. npm does not readresolutions. An npm resolution of the published stack gives one top-level rc.5 copy plus eight nested rc.3 copies. With 0.2.0 it gave one copy.The deployer passes its own ledger objects into the other copy, for example
ZswapSecretKeys.fromSeedandDustSecretKey.fromSeedinwallet/handler.ts:226-227, and the deploy txs that go through midnight-js. The README says it at line 54: "a second ledger copy breaks every deploy". The README gives the pin for yarn and pnpm, but not for npm, although the install line atREADME.md:30usesnpm i.Suggested fix, one of:
"overrides": { "@midnightntwrk/ledger-v9": "1.0.0-rc.5" }, and say that npm and bun users need it too.Deployer.prepare: resolve@midnightntwrk/ledger-v9/package.jsonfrom the deployer and from@midnightntwrk/wallet-sdk-facade, and throw aConfigErrorthat names both versions and the override when the paths differ.Options 1 and 2 together are the safest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree — fixed in 07487d8.