Repository navigation
Update Rue to 0.13.0 - #8
Merged
Merged
Conversation
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.
Updates the Rue compiler from 0.11.0 to 0.13.0 and rebuilds the puzzles. The CHIP isn't final, so the puzzle hashes can still change.
Changes
Rue.toml: compiler version0.11.0→0.13.0(CI installs the version from this file).nft_unlocker.rue: reformatted withrue fmt. The new formatter breaks the longmainsignature across parameters. No code changes.rue build -a -s -x -h. Onlybid_actionandend_actionchanged.cancel_action, both bid verifiers andnft_unlockercompile to the same bytes as before.Bytecode size
Behavior
There's no semantic change. Comparing the disassembly:
(all (all (all (all a b) c) d) e)chain is now one variadic(all a b c d e). Same result, with fewer bytes and operators.letthat bound the winning bid amount into a new environment layer ((a (q ...) (c <path> 1))) is gone. The value is now read straight from its environment path in each of its 4 uses (premium, commission and royalty math, and the seller payout subtraction). The conditions it produces are the same.bid_actionandend_actionhave new puzzle hashes. Puzzles built with the old compiler won't match the new ones.Testing
cargo test --all-targets: all tests pass.rue fmt --checkis clean, and rebuilding gives no diff.Note
Low Risk
This is a compiler upgrade with no source changes beyond formatting, and the disassembly shows the same semantics. All tests pass. The only visible effect is new puzzle hashes for the bid and end actions, which is expected while the CHIP is still in draft.
bid_actionandend_actionrecompiled (−12 and −11 bytes),nft_unlockerreformatted