Repository navigation
Fix unit test for wormhole address - #52
Merged
Merged
Conversation
n13
added a commit
that referenced
this pull request
Sep 9, 2026
* refactor: drop vesting MinimumPayout and record every pallet transfer The minimum claim is now one payout quantum (0.01 QTC): non-final claims still align to 25 QTC for fee-exact leaves, and the final claim pays the exact remainder. Removes the now-dead dust-reserve logic and ClaimWouldLeaveDust. All pallet transfers (claims, treasury->pot funding, pot->treasury refunds) are recorded as wormhole leaves via transfer_and_record; renamed the error to TransferProofNotRecorded. Adds a random-schedule/admin-op conservation walk test. Co-authored-by: Cursor <[email protected]> * chore: remove unused runtime parameter_types PreimageBaseDeposit and PreimageByteDeposit were superseded by the PreimageDeposit Consideration fee model; ReferendumDefaultVotingPeriod and ReferendumMinEnactmentPeriod are set per-track in TechCollectiveTracksInfo. None were referenced anywhere. Co-authored-by: Cursor <[email protected]> * fix: price every vesting leaf and compile benchmarks The benchmarking module imported `SaturatedInto` from `sp_runtime::traits`, which does not exist, so the `runtime-benchmarks` feature gate failed in CI. Import `SaturatedConversion` instead. `create_schedule` now records one wormhole leaf and `end_schedule` two, but the generated weights priced zero and one. Regenerate `weights_generated.rs` and rebuild the augmentation around a per-call leaf count: subtract the benchmark's insert-phase tree ops and add the flat marginal insert price, hash time and PoV per leaf. `retarget_schedule` drops stale tree ops from an older version that paid out. Tests pin the exact pot invariant (pot == sum of unpaid obligations + ED) after every operation, not only the `>=` that `try_state` can enforce. --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Nikolaus Heger <[email protected]>
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.
fixing unit test for wormhole addresses