Skip to content

feat(contracts): enforce ADR 030 region-ripening predicate in blacklist scope/slash (#761) - #800

Merged
thiras merged 4 commits into
mainfrom
feat/adr030-region-ripening-761
Jun 4, 2026
Merged

thiras merged 4 commits into
mainfrom
feat/adr030-region-ripening-761

Conversation

@thiras

@thiras thiras commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Wires the ADR 030 § Region-stability window ripening predicate into on-chain enforcement. A node is in scope for a blacklist entry iff the entry is global, OR entry.region == regionHint (current), OR (block.timestamp - effective < REGION_STABILITY_WINDOW AND entry.region == regionPrev), where effective = regionLastChanged != 0 ? regionLastChanged : max(firstBondedAt, regionGateActivatedAt).

Previously SlashJudge._checkBlacklistedBefore checked GLOBAL entries only — CapacityBond stored regionPrev/regionLastChanged but no contract read them (the storage doc literally said "the ripening leg lands with the ADR 030 enforcement PR"). This is that PR. The third leg keeps the previous region's entries — and slash exposure under them — applying until a region change ripens, foreclosing reactive region-flip evasion.

Closes #761. Builds on #689 (e2e harness) and #669 (production Ed25519Verifier), both merged.

Changes

  • RegionScopeLib.sol (new, internal-only → inlines into consumers; 0 bytes added to the near-EIP-170 CapacityBond) — pack(string)→bytes32 (left-aligned packing matching bytes32("literal")), effectiveSince, and scopedRegions (single source of truth for the non-global legs: GLOBAL/empty exclusion, window check, prev != current dedup).
  • ICapacityBondRegionView.sol (new) — aggregate regionScopeData getter (one cross-contract call; avoids decoding the full NodeInfo).
  • CapacityBond — regionGateActivatedAt immutable (constructor-stamped — contracts are non-upgradeable, so fresh deploy = gate activation) + regionScopeData; refreshed the storage doc.
  • SlashJudge — _checkBlacklistedBefore enforces global ∪ current-region ∪ ripening-prev-region, anchored strictly before the served response. The global leg preserves the richer BlacklistAfterResponse error (no test/ABI churn).
  • ContentBlacklist — isHashBlacklistedForOperator read view + ADR 011 path-2 (Operator) hard current-region-match in openBlacklistAppeal. Per ADR 011 the ripening window is a soft norm (in-window filings "not auto-rejected … multisig discretion"), so no window revert — only the hard region match.

Design notes

  • Predicate logic lives in RegionScopeLib and is inlined into the two consumers, keeping the assembly and predicate math out of CapacityBond's bytecode (mirrors the BondMath/SlashEscrowLib precedent). CapacityBond runtime: 21,655 / 24,576 bytes.
  • regionGateActivatedAt diverges from the ADR's "upgrade initializer" wording because these contracts are constructor-deployed/non-upgradeable (no pre-upgrade cohort) — documented in-code.

Testing

490 tests pass. Highlights:

  • RegionScopeLib.t.sol — packing/masking (dirty trailing bytes), effectiveSince fallback orderings, scopedRegions (window boundary exclusive, prev==current dedup, GLOBAL/empty handling).
  • SlashJudge.t.sol — current-region / prev-in-window / prev-after-window / unrelated-region / global-post-dates-but-regional-rescues / both-after→BlacklistAfterResponse / suspended-regional.
  • ContentBlacklist.t.sol — path-2 region-match revert, in-window soft-norm accept, global/non-operator skip, isHashBlacklistedForOperator (incl. suspended).
  • CapacityBondRegionE2E.t.sol — real-verifier cross-contract slash through a live SlashJudge (current-region, prev-in-window, prev-after-window) — closes test(contracts): full ADR 030 updateRegion e2e — EIP-712 + ed25519 registerNode signing harness #689 scope item 3, which had no production code to test.

CI mirror — all green: forge fmt --check · FOUNDRY_PROFILE=ci forge build --sizes --deny warnings · forge test · aderyn (0 high) · slither (no medium+).

This PR was reviewed by the multi-agent PR-review toolkit; the consensus finding (a dead inScope library function with the predicate triplicated inline) was resolved by introducing scopedRegions as the single source of truth, and the flagged test gaps were closed.

🤖 Generated with Claude Code

…st scope/slash (#761)

Wire the ADR 030 § Region-stability window ripening predicate into
on-chain enforcement. A node is in scope for a blacklist entry iff the
entry is global, OR entry.region == current regionHint, OR
(block.timestamp - effective < REGION_STABILITY_WINDOW AND
entry.region == regionPrev), where
effective = regionLastChanged != 0 ? regionLastChanged
                                   : max(firstBondedAt, regionGateActivatedAt).

Previously SlashJudge only checked GLOBAL entries, so regional/ripening
scope was entirely unenforced (CapacityBond stored regionPrev /
regionLastChanged but no contract read them).

- RegionScopeLib (new, internal-only -> inlines into consumers, 0 bytes
  added to the near-EIP-170 CapacityBond): pack(string)->bytes32,
  effectiveSince, and scopedRegions (the single source of truth for the
  non-global legs: GLOBAL/empty exclusion, window check, prev!=current
  dedup).
- ICapacityBondRegionView (new): aggregate regionScopeData getter.
- CapacityBond: regionGateActivatedAt immutable (constructor-stamped,
  since non-upgradeable) + regionScopeData; refreshed the storage doc.
- SlashJudge: _checkBlacklistedBefore now enforces
  global U current-region U ripening-prev-region, anchored before the
  served response; global leg preserves BlacklistAfterResponse.
- ContentBlacklist: isHashBlacklistedForOperator read view + ADR 011
  path-2 (Operator) hard current-region-match in openBlacklistAppeal
  (no in-window auto-reject -- soft norm per ADR 011).

Tests: 490 pass. RegionScopeLib units, CapacityBond regionScopeData /
gate, SlashJudge regional+ripening+global-rescue+suspended cases, and
real-verifier cross-contract slash E2E (closes #689 scope item 3).

CI mirror green: forge fmt, FOUNDRY_PROFILE=ci build --sizes
--deny warnings, forge test, aderyn (0 high), slither (no medium+).

Closes #761

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 3, 2026 20:12
@github-actions

github-actions Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Contracts coverage

Line coverage: 89.26% (1795/2011 lines)
▲ +0.65pp vs base (88.61% → 89.26%)
Run: 26950958779

@github-actions

github-actions Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Gas snapshot

Gas changes vs base
No files changed, compilation skipped

Ran 24 tests for test/BuybackBurner.t.sol:BuybackBurnerTest
[PASS] test_constructor_grantsAdminAndGovernanceRoles() (gas: 14873)
[PASS] test_constructor_revertsOnZeroAdmin() (gas: 67989)
[PASS] test_constructor_revertsOnZeroToken() (gas: 67964)
[PASS] test_constructor_revertsOnZeroUsdc() (gas: 67972)
[PASS] test_executeBuyback_happyPath_burnsAndEmits() (gas: 110748)
[PASS] test_executeBuyback_revertsPoolNotWiredWhenPoolUnset() (gas: 973169)
[PASS] test_executeBuyback_revertsPoolNotWiredWhenVaultUnset() (gas: 973299)
[PASS] test_executeBuyback_revertsSwapNotImplementedWhenActualDeltaIsZero() (gas: 65569)
[PASS] test_executeBuyback_revertsSwapReportMismatch() (gas: 116470)
[PASS] test_executeBuyback_revertsWhenAmountExceedsBalance() (gas: 77138)
[PASS] test_executeBuyback_revertsWhenPaused() (gas: 73161)
[PASS] test_executeBuyback_revertsWithoutKeeperRole() (gas: 64237)
[PASS] test_executeBuyback_revertsZeroAmount() (gas: 20661)
[PASS] test_executeBuyback_revertsZeroMinOut() (gas: 65728)
[PASS] test_pause_revertsWithoutPauserRole() (gas: 11929)
[PASS] test_rescueUSDC_revertsOnZeroAmount() (gas: 13609)
[PASS] test_rescueUSDC_revertsOnZeroRecipient() (gas: 13609)
[PASS] test_rescueUSDC_revertsWithoutGovernanceRole() (gas: 12259)
[PASS] test_rescueUSDC_transfersToRecipient() (gas: 56391)
[PASS] test_setPool_emitsUpdateEvent() (gas: 24938)
[PASS] test_setPool_revertsWithoutGovernanceRole() (gas: 12273)
[PASS] test_setVault_emitsUpdateEvent() (gas: 24925)
[PASS] test_setVault_revertsWithoutGovernanceRole() (gas: 12129)
[PASS] test_unpause_revertsWithoutPauserRole() (gas: 23910)
Suite result: ok. 24 passed; 0 failed; 0 skipped; finished in 6.08ms (4.95ms CPU time)

Ran 71 tests for test/CapacityBond.t.sol:CapacityBondTest
[PASS] testFuzz_bondRequired_monotonic(uint256,uint256) (runs: 1024, μ: 19162, ~: 19469)
[PASS] test_bondRequired_matchesAdrWorkedExamples() (gas: 29380)
[PASS] test_bondRequired_strictlyMonotonic() (gas: 36959)
[PASS] test_bondRequired_zeroForZeroMbps() (gas: 13029)
[PASS] test_capacityBand_defaults() (gas: 10624)
[PASS] test_capacityBand_floorAlwaysBelowCeiling() (gas: 29276)
[PASS] test_curveDefaults() (gas: 10645)
[PASS] test_declareMbps_acceptsFloorAndCeiling() (gas: 161018)
[PASS] test_declareMbps_emitsOldAndNewValue() (gas: 158233)
[PASS] test_declareMbps_revertsAboveCeiling() (gas: 18039)
[PASS] test_declareMbps_revertsBelowFloor() (gas: 17861)
[PASS] test_declareMbps_revertsWhenBondBelowCurve() (gas: 131718)
[PASS] test_declareMbps_revertsZero() (gas: 17895)
[PASS] test_declareMbps_succeedsExactlyAtCurve() (gas: 147080)
[PASS] test_declaredMbps_storesValue() (gas: 147102)
[PASS] test_escrowHooks_requireSlashAppealRole() (gas: 16885)
[PASS] test_finalizeUnappealedSlash_distributes5050() (gas: 351411)
[PASS] test_firstBondedAt_immutableAcrossReBonds() (gas: 111205)
[PASS] test_firstBondedAt_setsOnFirstBond() (gas: 102445)
[PASS] test_markAppealOpen_blocksFinalize() (gas: 322462)
[PASS] test_pause_revertsWithoutRole() (gas: 14704)
[PASS] test_reduceBondAtTier_activeOnly() (gas: 855)
[PASS] test_reduceBondAtTier_remainderClip() (gas: 1123)
[PASS] test_reduceBondAtTier_slashEqualsActive() (gas: 920)
[PASS] test_reduceBondAtTier_spillsIntoUnbonding() (gas: 999)
[PASS] test_reduceBondAtTier_unbondingOnly() (gas: 950)
[PASS] test_reduceBondAtTier_zeroInputs() (gas: 1537)
[PASS] test_regionGateActivatedAt_setAtConstruction() (gas: 4640809)
[PASS] test_regionScopeData_returnsRegisteredNodeInputs() (gas: 425323)
[PASS] test_registerNode_revertsOnInvalidEd25519Sig() (gas: 179022)
[PASS] test_registerNode_revertsWhenAlreadyActive() (gas: 387600)
[PASS] test_registerNode_revertsWhenBondBelowCurve() (gas: 207162)
[PASS] test_registerNode_succeedsAtCurve() (gas: 415359)
[PASS] test_requestUnbond_allowedWhenNoCapacityDeclared() (gas: 161745)
[PASS] test_requestUnbond_revertsWhenItDropsBelowCurve() (gas: 160107)
[PASS] test_requestUnbond_succeedsDownToExactlyCurve() (gas: 206408)
[PASS] test_setAlpha_revertsOutOfBounds() (gas: 18496)
[PASS] test_setAlpha_revertsWhenGbpsTierOutOfRange() (gas: 29931)
[PASS] test_setAlpha_updatesCurveAndEmits() (gas: 33865)
[PASS] test_setCapacity_onlyGovernance() (gas: 19612)
[PASS] test_setCurve_onlyGovernance() (gas: 19525)
[PASS] test_setKAlpha_orderingMatters() (gas: 56023)
[PASS] test_setK_revertsWhenGbpsTierOutOfRange() (gas: 43899)
[PASS] test_setK_updatesCurveAndEmits() (gas: 35449)
[PASS] test_setMaxCapacity_acceptsInclusiveBounds() (gas: 24649)
[PASS] test_setMaxCapacity_revertsOutOfBounds() (gas: 18461)
[PASS] test_setMaxCapacity_updatesBandAndEmits() (gas: 31172)
[PASS] test_setMaxMultiaddrSize_revertsWithoutRole() (gas: 14911)
[PASS] test_setMinBond_revertsWithoutRole() (gas: 14932)
[PASS] test_setMinCapacity_acceptsInclusiveBounds() (gas: 24426)
[PASS] test_setMinCapacity_revertsOutOfBounds() (gas: 18315)
[PASS] test_setMinCapacity_updatesBandAndEmits() (gas: 166650)
[PASS] test_setMultiaddrUpdateCooldown_revertsWithoutRole() (gas: 14932)
[PASS] test_setRegionStabilityWindow_revertsWithoutRole() (gas: 14822)
[PASS] test_setUnbondingPeriod_revertsWithoutRole() (gas: 14846)
[PASS] test_settleAppealGranted_clearsAndRefunds() (gas: 298269)
[PASS] test_settleAppealGranted_multiSlash_recomputesThenClears() (gas: 421090)
[PASS] test_settleAppealGranted_reverseMiddleSlash_keepsNewest() (gas: 567601)
[PASS] test_settleAppealGranted_zeroBondSlash_refundsNothingClearsWatermark() (gas: 223264)
[PASS] test_settleAppealUpheld_distributes5050() (gas: 343675)
[PASS] test_slashId_persistsRecord() (gas: 309915)
[PASS] test_slash_doesNotEnforceCurve() (gas: 357546)
[PASS] test_slash_escrowsWithoutDistribution() (gas: 320984)
[PASS] test_slash_stampsSlashedAtEpoch() (gas: 309845)
[PASS] test_slash_tier3_mixedBond_exhaustsActiveTapsUnbonding() (gas: 588892)
[PASS] test_slash_tierEscalation_15then50pct() (gas: 536482)
[PASS] test_slash_zeroBondOperator_mintsZeroAmountRecordNoOpsAtFinality() (gas: 242561)
[PASS] test_slashedAtEpoch_zeroBeforeSlash() (gas: 10196)
[PASS] test_unpause_revertsWithoutRole() (gas: 94546)
[PASS] test_updateMultiaddrs_revertsWhenNodeNotActive() (gas: 15546)
[PASS] test_updateRegion_revertsWhenNodeNotActive() (gas: 15718)
Suite result: ok. 71 passed; 0 failed; 0 skipped; finished in 125.60ms (123.81ms CPU time)

Ran 8 tests for test/CapacityBondRegionE2E.t.sol:CapacityBondRegionE2ETest
[PASS] test_crossContractEject_viaContentBlacklist() (gas: 3108583)
[PASS] test_crossContract_regionalSlash_currentRegion() (gas: 5627362)
[PASS] test_crossContract_regionalSlash_prevRegionAfterWindow() (gas: 5447819)
[PASS] test_crossContract_regionalSlash_prevRegionInWindow() (gas: 5678687)
[PASS] test_registerNode_corruptEd25519Signature_reverts() (gas: 640745)
[PASS] test_registerNode_realEd25519Signature_succeeds() (gas: 851193)
[PASS] test_registerNode_replayAfterNonceBump_reverts() (gas: 1321832)
[PASS] test_updateRegion_cooldownPrevSnapshotAndEvent() (gas: 923039)
Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 61.83ms (60.30ms CPU time)

Ran 28 tests for test/ContentBlacklist.t.sol:ContentBlacklistTest
[PASS] test_addHashGlobal_andQuery() (gas: 40498)
[PASS] test_addHashGlobal_revertsWithoutGovernanceRole() (gas: 14652)
[PASS] test_addHashRegional_globalTakesPrecedence() (gas: 44265)
[PASS] test_addHashRegional_revertsWithoutRegionalBodyRole() (gas: 14706)
[PASS] test_addHash_revertsWhileAppealActive() (gas: 251589)
[PASS] test_addOperator_callsEjectOnCapacityBond() (gas: 94055)
[PASS] test_fullAppealFlow_ratifyRemovesHash() (gas: 291541)
[PASS] test_hasActiveAppeal_clearedOnLapseOpen() (gas: 239316)
[PASS] test_hasActiveAppeal_clearedOnReject() (gas: 434573)
[PASS] test_hasActiveAppeal_clearedOnReverse() (gas: 270826)
[PASS] test_isHashBlacklistedForOperator_currentRegion() (gas: 103758)
[PASS] test_isHashBlacklistedForOperator_global() (gas: 42764)
[PASS] test_isHashBlacklistedForOperator_neverChangedFallback_ripensFromMaxBondGate() (gas: 166804)
[PASS] test_isHashBlacklistedForOperator_prevRegionWindow() (gas: 144877)
[PASS] test_isHashBlacklistedForOperator_suspendedRegional_false() (gas: 368444)
[PASS] test_openBlacklistAppeal_globalEntry_skipsRegionCheck() (gas: 283405)
[PASS] test_openBlacklistAppeal_inWindowFiling_notAutoRejected() (gas: 334916)
[PASS] test_openBlacklistAppeal_nonOperatorStanding_skipsRegionCheck() (gas: 266611)
[PASS] test_openBlacklistAppeal_operatorRegionMismatch_reverts() (gas: 70907)
[PASS] test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 353673)
[PASS] test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18657)
[PASS] test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16287)
[PASS] test_regionalCap_countsFastTrackedNotOpen() (gas: 928028)
[PASS] test_registerRegionalBody_revertsWithoutGovernanceRole() (gas: 14721)
[PASS] test_rejectAppeal_burnsBond() (gas: 246208)
[PASS] test_removeHashRegional_blocksGlobalRegionEntries() (gas: 46792)
[PASS] test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 277549)
[PASS] test_setAppealBond_revertsWithoutGovernanceRole() (gas: 14776)
Suite result: ok. 28 passed; 0 failed; 0 skipped; finished in 5.74ms (4.57ms CPU time)

Ran 13 tests for test/DecdnGovernor.t.sol:DecdnGovernorTest
[PASS] test_ageRampMonthsAt_preservesPriorReadAfterLaterPush() (gas: 4104760)
[PASS] test_getVotes_halfRamp() (gas: 173099)
[PASS] test_getVotes_historicalSnapshotIgnoresFutureSlash() (gas: 221405)
[PASS] test_getVotes_ramp() (gas: 173020)
[PASS] test_getVotes_recoversAfterWindowSlidesPastSlash() (gas: 196808)
[PASS] test_getVotes_uncappedWhenBelowCap() (gas: 173006)
[PASS] test_getVotes_zeroIfNeverBonded() (gas: 93593)
[PASS] test_getVotes_zeroWhenSlashedInWindow() (gas: 119032)
[PASS] test_proposalThreshold_isPointOnePercent() (gas: 71807)
[PASS] test_quorum_isFourPercentOfTotalBytesInWindow() (gas: 71639)
[PASS] test_setAgeRampMonths_revertsWithoutTimelockCaller() (gas: 11013)
[PASS] test_setVoteCapBps_revertsWithoutTimelockCaller() (gas: 11066)
[PASS] test_voteCapBpsAt_preservesPriorReadAfterLaterPush() (gas: 4104884)
Suite result: ok. 13 passed; 0 failed; 0 skipped; finished in 4.76ms (3.43ms CPU time)

Ran 51 tests for test/GovernanceLifecycle.t.sol:GovernanceLifecycleTest
[PASS] test_canary_executorIsTimelock() (gas: 9883)
[PASS] test_canary_governanceRoleHandoff() (gas: 99496)
[PASS] test_canary_governorVoteWeightWired() (gas: 129967)
[PASS] test_lifecycle_CapacityBond_setMaxCapacityMbps_happy() (gas: 589248)
[PASS] test_lifecycle_CapacityBond_setMaxCapacityMbps_outOfBounds() (gas: 595108)
[PASS] test_lifecycle_CapacityBond_setMaxMultiaddrSize_happy() (gas: 589158)
[PASS] test_lifecycle_CapacityBond_setMaxMultiaddrSize_outOfBounds() (gas: 595067)
[PASS] test_lifecycle_CapacityBond_setMinBond_happy() (gas: 589116)
[PASS] test_lifecycle_CapacityBond_setMinBond_outOfBounds() (gas: 595020)
[PASS] test_lifecycle_CapacityBond_setMinCapacityMbps_happy() (gas: 589136)
[PASS] test_lifecycle_CapacityBond_setMinCapacityMbps_outOfBounds() (gas: 594953)
[PASS] test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_happy() (gas: 606278)
[PASS] test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_outOfBounds() (gas: 595038)
[PASS] test_lifecycle_CapacityBond_setRegionStabilityWindow_happy() (gas: 589072)
[PASS] test_lifecycle_CapacityBond_setRegionStabilityWindow_outOfBounds() (gas: 594977)
[PASS] test_lifecycle_CapacityBond_setUnbondingPeriod_happy() (gas: 589141)
[PASS] test_lifecycle_CapacityBond_setUnbondingPeriod_outOfBounds() (gas: 594959)
[PASS] test_lifecycle_ContentBlacklist_addHashGlobal_happy() (gas: 611856)
[PASS] test_lifecycle_ContentBlacklist_addHashGlobal_outOfBounds() (gas: 597180)
[PASS] test_lifecycle_ContentBlacklist_addOperator_happy() (gas: 640700)
[PASS] test_lifecycle_ContentBlacklist_addOperator_outOfBounds() (gas: 602370)
[PASS] test_lifecycle_ContentBlacklist_registerRegionalBody_happy() (gas: 611057)
[PASS] test_lifecycle_ContentBlacklist_removeHashGlobal_happy() (gas: 997106)
[PASS] test_lifecycle_ContentBlacklist_removeHashGlobal_outOfBounds() (gas: 599706)
[PASS] test_lifecycle_ContentBlacklist_removeOperator_happy() (gas: 1025663)
[PASS] test_lifecycle_ContentBlacklist_setAppealBond_happy() (gas: 591669)
[PASS] test_lifecycle_ContentBlacklist_setAppealBond_outOfBounds() (gas: 597501)
[PASS] test_lifecycle_ContentBlacklist_setOriginBlacklist_happy() (gas: 610256)
[PASS] test_lifecycle_ContentBlacklist_setOriginBlacklist_outOfBounds() (gas: 598000)
[PASS] test_lifecycle_DecdnGovernor_setAgeRampMonths_happy() (gas: 630982)
[PASS] test_lifecycle_DecdnGovernor_setAgeRampMonths_outOfBounds() (gas: 636634)
[PASS] test_lifecycle_DecdnGovernor_setVoteCapBps_happy() (gas: 631011)
[PASS] test_lifecycle_DecdnGovernor_setVoteCapBps_outOfBounds() (gas: 636675)
[PASS] test_lifecycle_FeeRouter_setBuybackBurner_happy() (gas: 589541)
[PASS] test_lifecycle_FeeRouter_setBuybackBurner_outOfBounds() (gas: 596983)
[PASS] test_lifecycle_FeeRouter_setSharesAndDestinations_happy() (gas: 622475)
[PASS] test_lifecycle_FeeRouter_setSharesAndDestinations_outOfBounds() (gas: 598166)
[PASS] test_lifecycle_FeeRouter_setShares_happy() (gas: 608620)
[PASS] test_lifecycle_FeeRouter_setShares_outOfBounds() (gas: 596963)
[PASS] test_lifecycle_FeeRouter_setTreasury_happy() (gas: 589577)
[PASS] test_lifecycle_FeeRouter_setTreasury_outOfBounds() (gas: 594815)
[PASS] test_lifecycle_FeeRouter_setWindowEpochs_happy() (gas: 611311)
[PASS] test_lifecycle_FeeRouter_setWindowEpochs_outOfBounds() (gas: 597339)
[PASS] test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_happy() (gas: 591896)
[PASS] test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_outOfBounds() (gas: 597474)
[PASS] test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_happy() (gas: 591790)
[PASS] test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_outOfBounds() (gas: 597516)
[PASS] test_lifecycle_SlashAppeal_setAppealBond_happy() (gas: 591564)
[PASS] test_lifecycle_SlashAppeal_setAppealBond_outOfBounds() (gas: 597431)
[PASS] test_lifecycle_SlashAppeal_setChallengerIncentivePool_happy() (gas: 592025)
[PASS] test_lifecycle_SlashAppeal_setChallengerIncentivePool_outOfBounds() (gas: 597327)
Suite result: ok. 51 passed; 0 failed; 0 skipped; finished in 213.08ms (193.91ms CPU time)

Ran 3 tests for test/InterfaceFreeze.t.sol:InterfaceFreezeTest
[PASS] test_originAssignment_abiFrozen() (gas: 1298)
[PASS] test_paymentChannel_abiFrozen() (gas: 1540)
[PASS] test_slashJudge_abiFrozen() (gas: 870)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 325.56µs (72.72µs CPU time)

Ran 22 tests for test/DeployProtocol.t.sol:DeployProtocolTest
[PASS] test_assertNoBackDoors_revertsWhenHandoffIncomplete() (gas: 24831176)
[PASS] test_assertNoBackDoors_revertsWhenTimelockMissingRole() (gas: 92273)
[PASS] test_crossContractWiring_capacityBondPeerRoles() (gas: 23530)
[PASS] test_crossContractWiring_newContractPeerRoles() (gas: 31444)
[PASS] test_crossContractWiring_slashAppealChallengerPool() (gas: 9942)
[PASS] test_deployTargets_revertsOnZeroChallengerIncentivePool() (gas: 2025564)
[PASS] test_deployTargets_revertsOnZeroDeployer() (gas: 580149)
[PASS] test_deployTargets_revertsOnZeroEd25519Verifier() (gas: 2025410)
[PASS] test_deployTargets_revertsOnZeroEmergencyMultisig() (gas: 2025498)
[PASS] test_deployTargets_revertsOnZeroInitialTokenHolder() (gas: 2025564)
[PASS] test_deployTargets_revertsOnZeroUsdc() (gas: 2025370)
[PASS] test_emergencyMultisig_canPauseAndBlockEntrypoint() (gas: 48568)
[PASS] test_feeRouter_launchSharesDormantBuyback() (gas: 16388)
[PASS] test_feeRouter_treasuryIsTimelock() (gas: 9963)
[PASS] test_governor_openExecutor() (gas: 8787)
[PASS] test_governor_timelockBinding() (gas: 25888)
[PASS] test_roleMatrix_deployerHoldsNoRoleAnywhere() (gas: 67033)
[PASS] test_roleMatrix_emergencyMultisigGrants() (gas: 19613)
[PASS] test_roleMatrix_pauserIsEmergencyMultisig() (gas: 45657)
[PASS] test_roleMatrix_timelockHoldsDefaultAdminOnEveryTarget() (gas: 41956)
[PASS] test_roleMatrix_timelockHoldsGovernanceOnEveryTarget() (gas: 42106)
[PASS] test_token_initialHolderHoldsFullSupply() (gas: 13714)
Suite result: ok. 22 passed; 0 failed; 0 skipped; finished in 13.70ms (7.99ms CPU time)

Ran 7 tests for test/DeployProtocolScript.t.sol:DeployProtocolScriptTest
[PASS] test_readConfig_appliesDefaultsForOptionalVars() (gas: 17094)
[PASS] test_readConfig_deployerIsTxOrigin() (gas: 15218)
[PASS] test_run_abortsBeforeBroadcastWhenManifestExists() (gas: 21690)
[PASS] test_run_revertsIfDeployerIsForgeDefaultSender() (gas: 14822)
[PASS] test_writeManifest_overwritesWhenForced() (gas: 110055)
[PASS] test_writeManifest_revertsOnExistingFile() (gas: 31390)
[PASS] test_writeManifest_writesAllAddresses() (gas: 91663)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 7.00ms (6.71ms CPU time)

Ran 30 tests for test/OriginAssignment.t.sol:OriginAssignmentTest
[PASS] test_activate_blacklistSkippedWhenUnset() (gas: 2047543)
[PASS] test_activate_onlyGovernance() (gas: 140585)
[PASS] test_activate_replacesPreviousSet() (gas: 352112)
[PASS] test_activate_revertsBeforeTimelock() (gas: 140524)
[PASS] test_activate_revertsNoPending() (gas: 21009)
[PASS] test_activate_revertsOperatorBlacklisted() (gas: 173841)
[PASS] test_activate_revertsOperatorBlacklistedViaOperatorMapping() (gas: 183923)
[PASS] test_activate_revertsOperatorWentInactive() (gas: 155953)
[PASS] test_activate_setsAuthorizedSet() (gas: 224900)
[PASS] test_cancel_clearsPending() (gas: 110536)
[PASS] test_defaultOpen_addAndRemove() (gas: 78409)
[PASS] test_defaultOpen_onlyGovernance() (gas: 21169)
[PASS] test_defaultOpen_revertsInactive() (gas: 27910)
[PASS] test_defaultOpen_setAllowlist() (gas: 172108)
[PASS] test_propose_overwriteReplacesPending() (gas: 128731)
[PASS] test_propose_revertsDuplicate() (gas: 34918)
[PASS] test_propose_revertsEmpty() (gas: 21925)
[PASS] test_propose_revertsInactiveOperator() (gas: 39841)
[PASS] test_propose_revertsNonOwner() (gas: 27271)
[PASS] test_propose_revertsTooMany() (gas: 39410)
[PASS] test_propose_storesPending() (gas: 133692)
[PASS] test_prune_removesBlacklistedOperator() (gas: 248023)
[PASS] test_prune_removesOperatorBlacklistedViaOperatorMapping() (gas: 248717)
[PASS] test_prune_revertsWhenBlacklistUnset() (gas: 1865198)
[PASS] test_prune_revertsWhenNotBlacklisted() (gas: 226404)
[PASS] test_revoke_byPublisherAndGovernance() (gas: 237252)
[PASS] test_revoke_revertsNonMember() (gas: 23619)
[PASS] test_setAssignmentTimelock_enforcesBounds() (gas: 24759)
[PASS] test_setContentBlacklist_rejectsZero() (gas: 13473)
[PASS] test_setMaxOrigins_enforcesBounds() (gas: 13857)
Suite result: ok. 30 passed; 0 failed; 0 skipped; finished in 12.22ms (9.43ms CPU time)

Ran 3 tests for test/E2EProtocol.t.sol:E2EProtocolTest
[PASS] test_deployWiring_newContractsWiredAndHandedOff() (gas: 66837)
[PASS] test_e2e_blacklistEjectsOperator() (gas: 420453)
[PASS] test_e2e_registerSettleSlashEjectAppeal() (gas: 1463150)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 8.66ms (3.16ms CPU time)

Ran 12 tests for test/Ed25519Verifier.t.sol:Ed25519VerifierTest
[PASS] test_MalleatedScalarRejected() (gas: 525477)
[PASS] test_NonCanonicalYRejected() (gas: 11387)
[PASS] test_OffCurvePubKeyRejected() (gas: 14174)
[PASS] test_SmallOrderPubKeyRejected() (gas: 40661)
[PASS] test_SmallOrderRRejected() (gas: 39201)
[PASS] test_ValidVectorsAccepted() (gas: 3003445)
[PASS] test_VerifyRunsUnderStaticcall() (gas: 508245)
[PASS] test_WrongLengthSignatureRejected() (gas: 12156)
[PASS] test_WrongMessageRejected() (gas: 507932)
[PASS] test_WrongPubKeyRejected() (gas: 509119)
[PASS] test_WrongRRejected() (gas: 503763)
[PASS] test_WrongSRejected() (gas: 508960)
Suite result: ok. 12 passed; 0 failed; 0 skipped; finished in 64.94ms (64.50ms CPU time)

Ran 17 tests for test/FeeRouter.t.sol:FeeRouterTest
[PASS] test_bytesInWindow_clampsOversizedWindow() (gas: 510226)
[PASS] test_bytesInWindow_sumsTrailingWindow() (gas: 497431)
[PASS] test_bytesInWindow_zeroWindowReturnsZero() (gas: 9387)
[PASS] test_pause_revertsWithoutRole() (gas: 14609)
[PASS] test_routeSettlement_distributesThreeLegs() (gas: 232441)
[PASS] test_routeSettlement_dustRoutesToOperatorWhenBuybackUnset() (gas: 141816)
[PASS] test_routeSettlement_incrementsBytesPerEpoch() (gas: 221502)
[PASS] test_routeSettlement_revertsWithoutRouterRole() (gas: 89186)
[PASS] test_setBuybackBurner_revertsWithoutRole() (gas: 14698)
[PASS] test_setSharesAndDestinations_revertsWithoutRole() (gas: 19547)
[PASS] test_setShares_rejectsNonZeroShareWithoutDestination() (gas: 16217)
[PASS] test_setShares_rejectsSumNot10000() (gas: 14523)
[PASS] test_setShares_revertsWithoutRole() (gas: 15219)
[PASS] test_setTreasury_revertsWithoutRole() (gas: 14763)
[PASS] test_setWindowEpochs_enforcesBounds() (gas: 32758)
[PASS] test_setWindowEpochs_revertsWithoutRole() (gas: 14688)
[PASS] test_unpause_revertsWithoutRole() (gas: 72144)
Suite result: ok. 17 passed; 0 failed; 0 skipped; finished in 3.20ms (2.34ms CPU time)

Ran 15 tests for test/RegionScopeLib.t.sol:RegionScopeLibTest
[PASS] test_effectiveSince_fallbackPicksMax() (gas: 8708)
[PASS] test_effectiveSince_lastChangedWins() (gas: 5963)
[PASS] test_pack_emptyIsZero() (gas: 6016)
[PASS] test_pack_fullSixteenBytesRoundTrips() (gas: 6127)
[PASS] test_pack_masksDirtyTrailingBytes() (gas: 6700)
[PASS] test_pack_matchesLiteralPacking() (gas: 9042)
[PASS] test_pack_oversizedStringTruncatesNoRevert() (gas: 7514)
[PASS] test_scopedRegions_currentGlobalZeroedOut() (gas: 7594)
[PASS] test_scopedRegions_currentOnly_afterWindow() (gas: 7854)
[PASS] test_scopedRegions_effectiveInFutureDoesNotUnderflow() (gas: 7873)
[PASS] test_scopedRegions_emptyPrevNeverApplies() (gas: 7969)
[PASS] test_scopedRegions_prevAppliesInWindow() (gas: 8237)
[PASS] test_scopedRegions_prevEqualsCurrentDeduped() (gas: 7963)
[PASS] test_scopedRegions_prevGlobalNeverApplies() (gas: 7887)
[PASS] test_scopedRegions_windowBoundaryIsExclusive() (gas: 10842)
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 1.16ms (622.98µs CPU time)

Ran 22 tests for test/SlashAppeal.t.sol:SlashAppealTest
[PASS] test_cleanup_fastTrackedLapse_grantsOperatorFavorable() (gas: 449996)
[PASS] test_cleanup_openLapse_upholds() (gas: 467797)
[PASS] test_fastTrack_requiresMultisig() (gas: 479682)
[PASS] test_forceResolveStuckAppeal_resolvesAfterRoleRevoked() (gas: 516180)
[PASS] test_forceResolveStuckAppeal_revertsWhenNotAppealOpen() (gas: 315178)
[PASS] test_forceResolveStuckAppeal_revertsWithoutGovernanceRole() (gas: 482715)
[PASS] test_frequencyCap_blocksSecondAppealWithinWindow() (gas: 600203)
[PASS] test_grant_newerAppeal_fallsBackToOlderStandingSlash() (gas: 595786)
[PASS] test_grant_olderAppeal_preservesNewerSlashZeroOut() (gas: 595205)
[PASS] test_grant_refundsOperatorAndBondAndClearsZeroOut() (gas: 457785)
[PASS] test_grant_requiresGovernance() (gas: 490177)
[PASS] test_grant_revertsIfNotFastTracked() (gas: 481951)
[PASS] test_open_locksEscrowAndPullsBond() (gas: 485762)
[PASS] test_open_revertsAfterFilingWindow() (gas: 476582)
[PASS] test_open_revertsForNonOperator() (gas: 490513)
[PASS] test_open_revertsOnDoubleAppeal() (gas: 481593)
[PASS] test_open_revertsUnknownSlash() (gas: 23777)
[PASS] test_pause_extendsFilingWindow() (gas: 403494)
[PASS] test_reject_burnsBondAndDistributesEscrow() (gas: 473393)
[PASS] test_slashAppealPause_extendsCapacityBondFilingWindow() (gas: 551392)
[PASS] test_uphold_distributesEscrowAndSplitsBond() (gas: 509813)
[PASS] test_uphold_poolUnset_burnsFullBond() (gas: 2244230)
Suite result: ok. 22 passed; 0 failed; 0 skipped; finished in 17.61ms (15.27ms CPU time)

Ran 32 tests for test/SlashJudge.t.sol:SlashJudgeTest
[PASS] test_blacklist_globalAfterResponse_rescuedByRegionalLeg() (gas: 256205)
[PASS] test_blacklist_globalAndRegionalBothAfterResponse_revertsBlacklistAfter() (gas: 140489)
[PASS] test_blacklist_neverChangedFallback_revertsAfterMaxBondGateWindow() (gas: 183467)
[PASS] test_blacklist_neverChangedFallback_ripensFromMaxBondGate() (gas: 301363)
[PASS] test_blacklist_revertsOnHashMismatch() (gas: 68256)
[PASS] test_blacklist_revertsPrevRegionAfterWindow() (gas: 160532)
[PASS] test_blacklist_revertsRegionalEntryAfterResponse() (gas: 118671)
[PASS] test_blacklist_revertsWhenBlacklistedAfterResponse() (gas: 89800)
[PASS] test_blacklist_revertsWhenNotBlacklisted() (gas: 65936)
[PASS] test_blacklist_revertsWhenSuspended() (gas: 89315)
[PASS] test_blacklist_slashesOnCurrentRegionEntry() (gas: 234793)
[PASS] test_blacklist_slashesOnPrevRegionInsideWindow() (gas: 278422)
[PASS] test_blacklist_slashesOnProbeResponse() (gas: 189689)
[PASS] test_blacklist_slashesOnStreamResponse() (gas: 190399)
[PASS] test_blacklist_suspendedRegionalEntryDoesNotSlash() (gas: 118570)
[PASS] test_blacklist_unrelatedRegionEntryDoesNotSlash() (gas: 120479)
[PASS] test_constructor_revertsWhenEvidenceAgeExceedsUnbonding() (gas: 723102)
[PASS] test_pause_blocksChallenges() (gas: 58371)
[PASS] test_phantom_revertsOnBadProbeSignature() (gas: 46824)
[PASS] test_phantom_revertsOnEvidenceReplay() (gas: 199238)
[PASS] test_phantom_revertsOnFutureEvidence() (gas: 47618)
[PASS] test_phantom_revertsOnNodeIdMismatch() (gas: 37784)
[PASS] test_phantom_revertsOnStaleEvidence() (gas: 49932)
[PASS] test_phantom_revertsOnUnregisteredNode() (gas: 39227)
[PASS] test_phantom_revertsOutsideTimestampWindow() (gas: 49625)
[PASS] test_phantom_revertsWhenStreamOk() (gas: 53678)
[PASS] test_phantom_slashesAndRoundTripsBond() (gas: 179618)
[PASS] test_rate_revertsWhenNotHigher() (gas: 53671)
[PASS] test_rate_slashesWhenStreamRateHigher() (gas: 172214)
[PASS] test_setChallengeBond_enforcesBounds() (gas: 24711)
[PASS] test_setMaxEvidenceAge_enforcesBoundsAndInvariant() (gas: 40177)
[PASS] test_setters_onlyGovernance() (gas: 13781)
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 18.73ms (17.56ms CPU time)

Ran 44 tests for test/TestnetFaucet.t.sol:TestnetFaucetTest
[PASS] testFuzz_claim_atOrAboveCooldown(uint256) (runs: 1024, μ: 91481, ~: 91528)
[PASS] testFuzz_claim_belowCooldown(uint256) (runs: 1024, μ: 85191, ~: 85389)
[PASS] test_admin_canGrantAndRevokeRoles() (gas: 56401)
[PASS] test_claim_blocksReentrancy() (gas: 1550228)
[PASS] test_claim_happyPath() (gas: 82821)
[PASS] test_claim_perCallerCooldownIndependence() (gas: 133478)
[PASS] test_claim_revertsBeforeCooldown() (gas: 83092)
[PASS] test_claim_revertsOnInsufficientBalance() (gas: 50715)
[PASS] test_claim_revertsOneSecondBeforeCooldownBoundary() (gas: 82996)
[PASS] test_claim_revertsWhenPaused() (gas: 39998)
[PASS] test_claim_succeedsAfterCooldown() (gas: 90430)
[PASS] test_claim_succeedsAtExactCooldownBoundary() (gas: 87103)
[PASS] test_constructor_allowsZeroCooldown() (gas: 1810378)
[PASS] test_constructor_revertsOnCooldownExceedingMax() (gas: 1015061)
[PASS] test_constructor_revertsOnMainnetChainId() (gas: 988198)
[PASS] test_constructor_revertsOnZeroAdmin() (gas: 985898)
[PASS] test_constructor_revertsOnZeroClaimAmount() (gas: 988045)
[PASS] test_constructor_revertsOnZeroFunding() (gas: 988061)
[PASS] test_constructor_revertsOnZeroGovernance() (gas: 985864)
[PASS] test_constructor_revertsOnZeroPauser() (gas: 985954)
[PASS] test_constructor_revertsOnZeroTokenAddress() (gas: 70468)
[PASS] test_constructor_revertsOnZeroTreasury() (gas: 987830)
[PASS] test_constructor_revertsWhenTreasuryNotApproved() (gas: 1110690)
[PASS] test_constructor_setsStateAndRoles() (gas: 43070)
[PASS] test_nonAdmin_cannotGrantRoles() (gas: 17889)
[PASS] test_pause_blocksClaimUnpauseRestores() (gas: 91691)
[PASS] test_pause_revertsOnNonPauser() (gas: 14607)
[PASS] test_setClaimAmount_revertsOnNonGovernance() (gas: 14702)
[PASS] test_setClaimAmount_revertsOnZero() (gas: 13338)
[PASS] test_setClaimAmount_updatesAndEmits() (gas: 22083)
[PASS] test_setCooldown_acceptsMaxCooldown() (gas: 20228)
[PASS] test_setCooldown_allowsZero() (gas: 94920)
[PASS] test_setCooldown_revertsOnExceedingMax() (gas: 13790)
[PASS] test_setCooldown_revertsOnNonGovernance() (gas: 14705)
[PASS] test_setCooldown_updatesAndEmits() (gas: 22231)
[PASS] test_timeUntilNext_tracksCooldownWindow() (gas: 82615)
[PASS] test_timeUntilNext_zeroBeforeFirstClaim() (gas: 10099)
[PASS] test_unpause_revertsOnNonPauser() (gas: 43483)
[PASS] test_withdraw_revertsOnInsufficientBalance() (gas: 26877)
[PASS] test_withdraw_revertsOnNonGovernance() (gas: 17089)
[PASS] test_withdraw_revertsOnZeroAmount() (gas: 20838)
[PASS] test_withdraw_revertsOnZeroTo() (gas: 18662)
[PASS] test_withdraw_transfersAndEmits() (gas: 44129)
[PASS] test_withdraw_worksWhilePaused() (gas: 68286)
Suite result: ok. 44 passed; 0 failed; 0 skipped; finished in 361.35ms (359.49ms CPU time)

Ran 10 tests for test/Token.t.sol:TokenTest
[PASS] testFuzz_burn_reducesSupplyByExactAmount(uint256) (runs: 1024, μ: 27811, ~: 27700)
[PASS] test_burnFrom_consumesAllowance() (gas: 38534)
[PASS] test_burn_reducesTotalSupplyAndBalance() (gas: 26044)
[PASS] test_constructor_metadata() (gas: 17896)
[PASS] test_constructor_mintsFullSupplyToHolder() (gas: 12954)
[PASS] test_constructor_revertsOnZeroInitialHolder() (gas: 83264)
[PASS] test_constructor_totalSupplyConstantMatches() (gas: 9364)
[PASS] test_noMintFunctionExposed() (gas: 10765)
[PASS] test_noVotesSurfaceExposed() (gas: 11991)
[PASS] test_permit_setsAllowance() (gas: 67380)
Suite result: ok. 10 passed; 0 failed; 0 skipped; finished in 163.28ms (162.61ms CPU time)

Ran 56 tests for test/PaymentChannel.t.sol:PaymentChannelTest
[PASS] testFuzz_settle_refundEqualsDepositMinusClaimed(uint256,uint256) (runs: 1024, μ: 416063, ~: 416090)
[PASS] testFuzz_withdrawThenSettle_partitionsClaim(uint256,uint256,uint256,uint256) (runs: 1024, μ: 554701, ~: 555056)
[PASS] test_close_afterWithdraw_settleRoutesRemainderOnly() (gas: 547394)
[PASS] test_close_atWatermarkNonce_succeeds() (gas: 477450)
[PASS] test_close_revertsAfterExpiry() (gas: 211121)
[PASS] test_close_revertsOnAmountExceedingDeposit() (gas: 223121)
[PASS] test_close_revertsOnByteOnlyAdvance() (gas: 470362)
[PASS] test_close_then_settle_routesAndRefunds() (gas: 426064)
[PASS] test_close_thirdPartyCannotClose() (gas: 213018)
[PASS] test_constructor_revertsOnDisputeWindowOutOfBounds() (gas: 77036)
[PASS] test_constructor_revertsOnEoaFeeRouter() (gas: 77058)
[PASS] test_constructor_revertsOnZeroAdmin() (gas: 71951)
[PASS] test_dispute_higherNonceWins() (gas: 309711)
[PASS] test_dispute_revertsAfterDeadline() (gas: 297276)
[PASS] test_dispute_revertsOnAmountExceedingDeposit() (gas: 305225)
[PASS] test_dispute_revertsOnAmountRegression() (gas: 304835)
[PASS] test_dispute_revertsOnByteOnlyAdvance() (gas: 488772)
[PASS] test_dispute_revertsOnBytesRegression() (gas: 304972)
[PASS] test_dispute_revertsOnStaleNonce() (gas: 302261)
[PASS] test_forcedInclusion_doesNotExtendTwice() (gas: 2916491)
[PASS] test_forcedInclusion_extendsDeadlineOnce() (gas: 2893929)
[PASS] test_forcedInclusion_noExtendWhenAmpleTimeRemains() (gas: 2902445)
[PASS] test_getRateBounds_returnsConfigured() (gas: 9912)
[PASS] test_normalDispute_doesNotExtend() (gas: 319584)
[PASS] test_openChannel_derivesIdAndIncrementsNonce() (gas: 221523)
[PASS] test_openChannel_distinctIdsAcrossProviders() (gas: 351414)
[PASS] test_openChannel_revertsBelowMinDeposit() (gas: 23033)
[PASS] test_openChannel_revertsOnInactiveProvider() (gas: 29784)
[PASS] test_openChannel_revertsWhenPaused() (gas: 47399)
[PASS] test_paused_exitsStillCallable() (gas: 671201)
[PASS] test_reclaimExpired_refundsRemainderToClient() (gas: 452272)
[PASS] test_reclaimExpired_revertsBeforeExpiry() (gas: 206190)
[PASS] test_route_zeroesResidualAllowanceAfterUnderPull() (gas: 535018)
[PASS] test_setDisputeWindow_enforcesBounds() (gas: 24815)
[PASS] test_setFeeRouter_revertsOnEoaRouter() (gas: 18660)
[PASS] test_setFeeRouter_revertsOnZeroAndUnchanged() (gas: 24635)
[PASS] test_setFeeRouter_updatesTarget() (gas: 292460)
[PASS] test_setters_onlyGovernance() (gas: 13998)
[PASS] test_settle_amountEqualsDeposit_zeroRefund() (gas: 410874)
[PASS] test_settle_fullyWithdrawn_noRouterCall() (gas: 473130)
[PASS] test_settle_revertsBeforeDisputeDeadline() (gas: 294513)
[PASS] test_topUp_increasesDeposit() (gas: 226710)
[PASS] test_topUp_onlyClient() (gas: 206621)
[PASS] test_topUp_revertsWhenPaused() (gas: 233022)
[PASS] test_voucher_rejectedOnWrongChannelId() (gas: 339891)
[PASS] test_withdraw_acceptsErc1271Signature() (gas: 717406)
[PASS] test_withdraw_onlyProvider() (gas: 210927)
[PASS] test_withdraw_revertsOnAmountExceedingDeposit() (gas: 222881)
[PASS] test_withdraw_revertsOnBadSignature() (gas: 215715)
[PASS] test_withdraw_revertsOnBytesRegression() (gas: 469281)
[PASS] test_withdraw_revertsOnNonMonotonicNonce() (gas: 468957)
[PASS] test_withdraw_revertsWhenDeltaZero() (gas: 469732)
[PASS] test_withdraw_routesDeltaAndAdvancesWatermark() (gas: 465532)
[PASS] test_withdraw_secondWithdrawRoutesOnlyIncrement() (gas: 554879)
[PASS] test_zeroVoucherClose_disabledAfterWithdraw() (gas: 462930)
[PASS] test_zeroVoucherClose_refundsFullDeposit() (gas: 218313)
Suite result: ok. 56 passed; 0 failed; 0 skipped; finished in 1.29s (1.31s CPU time)

Ran 27 tests for test/PublisherRegistry.t.sol:PublisherRegistryTest
[PASS] testFuzz_createNamespace_idsAreSequentialAndOwned(uint8) (runs: 1024, μ: 727362, ~: 399321)
[PASS] test_claimContent_multiClaimAcrossNamespaces() (gas: 233820)
[PASS] test_claimContent_recordsClaim() (gas: 134733)
[PASS] test_claimContent_revertsForDefaultOpenNamespace() (gas: 13756)
[PASS] test_claimContent_revertsIfNotOwner() (gas: 66829)
[PASS] test_claimContent_revertsOnDuplicateSameNamespace() (gas: 135319)
[PASS] test_constructor_revertsZeroAdmin() (gas: 36674)
[PASS] test_constructor_setsDefaultsAndRoles() (gas: 19037)
[PASS] test_createNamespace_assignsIdsFromOne() (gas: 92728)
[PASS] test_createNamespace_revertsAtCap() (gas: 98581)
[PASS] test_createNamespace_zeroIsNeverAssigned() (gas: 65471)
[PASS] test_namespaceOf_emptyForUnclaimed() (gas: 8273)
[PASS] test_setMaxNamespaces_revertsOutOfBounds() (gas: 17605)
[PASS] test_setMaxNamespaces_revertsWithoutRole() (gas: 13384)
[PASS] test_setMaxNamespaces_withinBounds() (gas: 20687)
[PASS] test_setTransferTimelock_revertsOutOfBounds() (gas: 17706)
[PASS] test_setTransferTimelock_revertsWithoutRole() (gas: 14763)
[PASS] test_setTransferTimelock_withinBounds() (gas: 20560)
[PASS] test_transfer_cancelByOwner() (gas: 78668)
[PASS] test_transfer_cancelRevertsIfNotOwner() (gas: 93302)
[PASS] test_transfer_finalizeRevertsIfNotPendingOwner() (gas: 93817)
[PASS] test_transfer_finalizeRevertsNoPending() (gas: 68544)
[PASS] test_transfer_fullFlow() (gas: 98658)
[PASS] test_transfer_initiateRevertsIfNotOwner() (gas: 66923)
[PASS] test_transfer_initiateRevertsZeroNewOwner() (gas: 64330)
[PASS] test_transfer_revertsWhenRecipientAtCap() (gas: 150145)
[PASS] test_transfer_selfTransferExemptFromCap() (gas: 95404)
Suite result: ok. 27 passed; 0 failed; 0 skipped; finished in 421.71ms (421.95ms CPU time)

Ran 20 test suites in 1.95s (2.80s CPU time): 495 tests passed, 0 failed, 0 skipped (495 total tests)
━ BuybackBurnerTest::test_constructor_grantsAdminAndGovernanceRoles() (gas: 14873 → 14873 | 0 0.000%)
━ BuybackBurnerTest::test_constructor_revertsOnZeroAdmin() (gas: 67989 → 67989 | 0 0.000%)
━ BuybackBurnerTest::test_constructor_revertsOnZeroToken() (gas: 67964 → 67964 | 0 0.000%)
━ BuybackBurnerTest::test_constructor_revertsOnZeroUsdc() (gas: 67972 → 67972 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_happyPath_burnsAndEmits() (gas: 110748 → 110748 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsPoolNotWiredWhenPoolUnset() (gas: 973169 → 973169 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsPoolNotWiredWhenVaultUnset() (gas: 973299 → 973299 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsSwapNotImplementedWhenActualDeltaIsZero() (gas: 65569 → 65569 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsSwapReportMismatch() (gas: 116470 → 116470 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsWhenAmountExceedsBalance() (gas: 77138 → 77138 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsWhenPaused() (gas: 73161 → 73161 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsWithoutKeeperRole() (gas: 64237 → 64237 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsZeroAmount() (gas: 20661 → 20661 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsZeroMinOut() (gas: 65728 → 65728 | 0 0.000%)
━ BuybackBurnerTest::test_pause_revertsWithoutPauserRole() (gas: 11929 → 11929 | 0 0.000%)
━ BuybackBurnerTest::test_rescueUSDC_revertsOnZeroAmount() (gas: 13609 → 13609 | 0 0.000%)
━ BuybackBurnerTest::test_rescueUSDC_revertsOnZeroRecipient() (gas: 13609 → 13609 | 0 0.000%)
━ BuybackBurnerTest::test_rescueUSDC_revertsWithoutGovernanceRole() (gas: 12259 → 12259 | 0 0.000%)
━ BuybackBurnerTest::test_rescueUSDC_transfersToRecipient() (gas: 56391 → 56391 | 0 0.000%)
━ BuybackBurnerTest::test_setPool_emitsUpdateEvent() (gas: 24938 → 24938 | 0 0.000%)
━ BuybackBurnerTest::test_setPool_revertsWithoutGovernanceRole() (gas: 12273 → 12273 | 0 0.000%)
━ BuybackBurnerTest::test_setVault_emitsUpdateEvent() (gas: 24925 → 24925 | 0 0.000%)
━ BuybackBurnerTest::test_setVault_revertsWithoutGovernanceRole() (gas: 12129 → 12129 | 0 0.000%)
━ BuybackBurnerTest::test_unpause_revertsWithoutPauserRole() (gas: 23910 → 23910 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_revertsBelowFloor() (gas: 17861 → 17861 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_revertsZero() (gas: 17895 → 17895 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_remainderClip() (gas: 1123 → 1123 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_spillsIntoUnbonding() (gas: 999 → 999 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_unbondingOnly() (gas: 950 → 950 | 0 0.000%)
━ CapacityBondTest::test_registerNode_revertsWhenBondBelowCurve() (gas: 207162 → 207162 | 0 0.000%)
━ CapacityBondTest::test_setAlpha_revertsOutOfBounds() (gas: 18496 → 18496 | 0 0.000%)
━ CapacityBondTest::test_setAlpha_revertsWhenGbpsTierOutOfRange() (gas: 29931 → 29931 | 0 0.000%)
━ CapacityBondTest::test_setMinCapacity_revertsOutOfBounds() (gas: 18315 → 18315 | 0 0.000%)
━ CapacityBondTest::test_setRegionStabilityWindow_revertsWithoutRole() (gas: 14822 → 14822 | 0 0.000%)
━ CapacityBondTest::test_setUnbondingPeriod_revertsWithoutRole() (gas: 14846 → 14846 | 0 0.000%)
━ CapacityBondTest::test_slash_tier3_mixedBond_exhaustsActiveTapsUnbonding() (gas: 588892 → 588892 | 0 0.000%)
━ DecdnGovernorTest::test_ageRampMonthsAt_preservesPriorReadAfterLaterPush() (gas: 4104760 → 4104760 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_halfRamp() (gas: 173099 → 173099 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_historicalSnapshotIgnoresFutureSlash() (gas: 221405 → 221405 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_ramp() (gas: 173020 → 173020 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_recoversAfterWindowSlidesPastSlash() (gas: 196808 → 196808 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_uncappedWhenBelowCap() (gas: 173006 → 173006 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_zeroIfNeverBonded() (gas: 93593 → 93593 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_zeroWhenSlashedInWindow() (gas: 119032 → 119032 | 0 0.000%)
━ DecdnGovernorTest::test_proposalThreshold_isPointOnePercent() (gas: 71807 → 71807 | 0 0.000%)
━ DecdnGovernorTest::test_quorum_isFourPercentOfTotalBytesInWindow() (gas: 71639 → 71639 | 0 0.000%)
━ DecdnGovernorTest::test_setAgeRampMonths_revertsWithoutTimelockCaller() (gas: 11013 → 11013 | 0 0.000%)
━ DecdnGovernorTest::test_setVoteCapBps_revertsWithoutTimelockCaller() (gas: 11066 → 11066 | 0 0.000%)
━ DecdnGovernorTest::test_voteCapBpsAt_preservesPriorReadAfterLaterPush() (gas: 4104884 → 4104884 | 0 0.000%)
━ DeployProtocolTest::test_assertNoBackDoors_revertsWhenTimelockMissingRole() (gas: 92273 → 92273 | 0 0.000%)
━ DeployProtocolTest::test_crossContractWiring_slashAppealChallengerPool() (gas: 9942 → 9942 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroChallengerIncentivePool() (gas: 2025564 → 2025564 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroDeployer() (gas: 580149 → 580149 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroEd25519Verifier() (gas: 2025410 → 2025410 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroEmergencyMultisig() (gas: 2025498 → 2025498 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroInitialTokenHolder() (gas: 2025564 → 2025564 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroUsdc() (gas: 2025370 → 2025370 | 0 0.000%)
━ DeployProtocolTest::test_feeRouter_launchSharesDormantBuyback() (gas: 16388 → 16388 | 0 0.000%)
━ DeployProtocolTest::test_feeRouter_treasuryIsTimelock() (gas: 9963 → 9963 | 0 0.000%)
━ DeployProtocolTest::test_governor_openExecutor() (gas: 8787 → 8787 | 0 0.000%)
━ DeployProtocolTest::test_governor_timelockBinding() (gas: 25888 → 25888 | 0 0.000%)
━ DeployProtocolTest::test_roleMatrix_deployerHoldsNoRoleAnywhere() (gas: 67033 → 67033 | 0 0.000%)
━ DeployProtocolTest::test_roleMatrix_timelockHoldsDefaultAdminOnEveryTarget() (gas: 41956 → 41956 | 0 0.000%)
━ DeployProtocolTest::test_roleMatrix_timelockHoldsGovernanceOnEveryTarget() (gas: 42106 → 42106 | 0 0.000%)
━ DeployProtocolTest::test_token_initialHolderHoldsFullSupply() (gas: 13714 → 13714 | 0 0.000%)
━ DeployProtocolScriptTest::test_readConfig_appliesDefaultsForOptionalVars() (gas: 17094 → 17094 | 0 0.000%)
━ DeployProtocolScriptTest::test_readConfig_deployerIsTxOrigin() (gas: 15218 → 15218 | 0 0.000%)
━ DeployProtocolScriptTest::test_run_abortsBeforeBroadcastWhenManifestExists() (gas: 21690 → 21690 | 0 0.000%)
━ DeployProtocolScriptTest::test_run_revertsIfDeployerIsForgeDefaultSender() (gas: 14822 → 14822 | 0 0.000%)
━ DeployProtocolScriptTest::test_writeManifest_overwritesWhenForced() (gas: 110055 → 110055 | 0 0.000%)
━ DeployProtocolScriptTest::test_writeManifest_revertsOnExistingFile() (gas: 31390 → 31390 | 0 0.000%)
━ DeployProtocolScriptTest::test_writeManifest_writesAllAddresses() (gas: 91663 → 91663 | 0 0.000%)
━ Ed25519VerifierTest::test_MalleatedScalarRejected() (gas: 525477 → 525477 | 0 0.000%)
━ Ed25519VerifierTest::test_NonCanonicalYRejected() (gas: 11387 → 11387 | 0 0.000%)
━ Ed25519VerifierTest::test_OffCurvePubKeyRejected() (gas: 14174 → 14174 | 0 0.000%)
━ Ed25519VerifierTest::test_SmallOrderPubKeyRejected() (gas: 40661 → 40661 | 0 0.000%)
━ Ed25519VerifierTest::test_SmallOrderRRejected() (gas: 39201 → 39201 | 0 0.000%)
━ Ed25519VerifierTest::test_ValidVectorsAccepted() (gas: 3003445 → 3003445 | 0 0.000%)
━ Ed25519VerifierTest::test_VerifyRunsUnderStaticcall() (gas: 508245 → 508245 | 0 0.000%)
━ Ed25519VerifierTest::test_WrongLengthSignatureRejected() (gas: 12156 → 12156 | 0 0.000%)
━ Ed25519VerifierTest::test_WrongMessageRejected() (gas: 507932 → 507932 | 0 0.000%)
━ Ed25519VerifierTest::test_WrongPubKeyRejected() (gas: 509119 → 509119 | 0 0.000%)
━ Ed25519VerifierTest::test_WrongRRejected() (gas: 503763 → 503763 | 0 0.000%)
━ Ed25519VerifierTest::test_WrongSRejected() (gas: 508960 → 508960 | 0 0.000%)
━ FeeRouterTest::test_bytesInWindow_clampsOversizedWindow() (gas: 510226 → 510226 | 0 0.000%)
━ FeeRouterTest::test_bytesInWindow_sumsTrailingWindow() (gas: 497431 → 497431 | 0 0.000%)
━ FeeRouterTest::test_bytesInWindow_zeroWindowReturnsZero() (gas: 9387 → 9387 | 0 0.000%)
━ FeeRouterTest::test_pause_revertsWithoutRole() (gas: 14609 → 14609 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_distributesThreeLegs() (gas: 232441 → 232441 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_dustRoutesToOperatorWhenBuybackUnset() (gas: 141816 → 141816 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_incrementsBytesPerEpoch() (gas: 221502 → 221502 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_revertsWithoutRouterRole() (gas: 89186 → 89186 | 0 0.000%)
━ FeeRouterTest::test_setBuybackBurner_revertsWithoutRole() (gas: 14698 → 14698 | 0 0.000%)
━ FeeRouterTest::test_setSharesAndDestinations_revertsWithoutRole() (gas: 19547 → 19547 | 0 0.000%)
━ FeeRouterTest::test_setShares_rejectsNonZeroShareWithoutDestination() (gas: 16217 → 16217 | 0 0.000%)
━ FeeRouterTest::test_setShares_rejectsSumNot10000() (gas: 14523 → 14523 | 0 0.000%)
━ FeeRouterTest::test_setShares_revertsWithoutRole() (gas: 15219 → 15219 | 0 0.000%)
━ FeeRouterTest::test_setTreasury_revertsWithoutRole() (gas: 14763 → 14763 | 0 0.000%)
━ FeeRouterTest::test_setWindowEpochs_enforcesBounds() (gas: 32758 → 32758 | 0 0.000%)
━ FeeRouterTest::test_setWindowEpochs_revertsWithoutRole() (gas: 14688 → 14688 | 0 0.000%)
━ FeeRouterTest::test_unpause_revertsWithoutRole() (gas: 72144 → 72144 | 0 0.000%)
━ GovernanceLifecycleTest::test_canary_executorIsTimelock() (gas: 9883 → 9883 | 0 0.000%)
━ GovernanceLifecycleTest::test_canary_governanceRoleHandoff() (gas: 99496 → 99496 | 0 0.000%)
━ InterfaceFreezeTest::test_originAssignment_abiFrozen() (gas: 1298 → 1298 | 0 0.000%)
━ InterfaceFreezeTest::test_paymentChannel_abiFrozen() (gas: 1540 → 1540 | 0 0.000%)
━ InterfaceFreezeTest::test_slashJudge_abiFrozen() (gas: 870 → 870 | 0 0.000%)
━ OriginAssignmentTest::test_activate_blacklistSkippedWhenUnset() (gas: 2047543 → 2047543 | 0 0.000%)
━ OriginAssignmentTest::test_activate_onlyGovernance() (gas: 140585 → 140585 | 0 0.000%)
━ OriginAssignmentTest::test_activate_replacesPreviousSet() (gas: 352112 → 352112 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsBeforeTimelock() (gas: 140524 → 140524 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsNoPending() (gas: 21009 → 21009 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsOperatorBlacklisted() (gas: 173841 → 173841 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsOperatorBlacklistedViaOperatorMapping() (gas: 183923 → 183923 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsOperatorWentInactive() (gas: 155953 → 155953 | 0 0.000%)
━ OriginAssignmentTest::test_activate_setsAuthorizedSet() (gas: 224900 → 224900 | 0 0.000%)
━ OriginAssignmentTest::test_cancel_clearsPending() (gas: 110536 → 110536 | 0 0.000%)
━ OriginAssignmentTest::test_defaultOpen_addAndRemove() (gas: 78409 → 78409 | 0 0.000%)
━ OriginAssignmentTest::test_defaultOpen_onlyGovernance() (gas: 21169 → 21169 | 0 0.000%)
━ OriginAssignmentTest::test_defaultOpen_revertsInactive() (gas: 27910 → 27910 | 0 0.000%)
━ OriginAssignmentTest::test_defaultOpen_setAllowlist() (gas: 172108 → 172108 | 0 0.000%)
━ OriginAssignmentTest::test_propose_overwriteReplacesPending() (gas: 128731 → 128731 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsDuplicate() (gas: 34918 → 34918 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsEmpty() (gas: 21925 → 21925 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsInactiveOperator() (gas: 39841 → 39841 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsNonOwner() (gas: 27271 → 27271 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsTooMany() (gas: 39410 → 39410 | 0 0.000%)
━ OriginAssignmentTest::test_propose_storesPending() (gas: 133692 → 133692 | 0 0.000%)
━ OriginAssignmentTest::test_prune_removesBlacklistedOperator() (gas: 248023 → 248023 | 0 0.000%)
━ OriginAssignmentTest::test_prune_removesOperatorBlacklistedViaOperatorMapping() (gas: 248717 → 248717 | 0 0.000%)
━ OriginAssignmentTest::test_prune_revertsWhenBlacklistUnset() (gas: 1865198 → 1865198 | 0 0.000%)
━ OriginAssignmentTest::test_prune_revertsWhenNotBlacklisted() (gas: 226404 → 226404 | 0 0.000%)
━ OriginAssignmentTest::test_revoke_byPublisherAndGovernance() (gas: 237252 → 237252 | 0 0.000%)
━ OriginAssignmentTest::test_revoke_revertsNonMember() (gas: 23619 → 23619 | 0 0.000%)
━ OriginAssignmentTest::test_setAssignmentTimelock_enforcesBounds() (gas: 24759 → 24759 | 0 0.000%)
━ OriginAssignmentTest::test_setContentBlacklist_rejectsZero() (gas: 13473 → 13473 | 0 0.000%)
━ OriginAssignmentTest::test_setMaxOrigins_enforcesBounds() (gas: 13857 → 13857 | 0 0.000%)
━ PaymentChannelTest::testFuzz_settle_refundEqualsDepositMinusClaimed(uint256,uint256) (gas: 416090 → 416090 | 0 0.000%)
━ PaymentChannelTest::testFuzz_withdrawThenSettle_partitionsClaim(uint256,uint256,uint256,uint256) (gas: 555056 → 555056 | 0 0.000%)
━ PaymentChannelTest::test_close_afterWithdraw_settleRoutesRemainderOnly() (gas: 547394 → 547394 | 0 0.000%)
━ PaymentChannelTest::test_close_atWatermarkNonce_succeeds() (gas: 477450 → 477450 | 0 0.000%)
━ PaymentChannelTest::test_close_revertsAfterExpiry() (gas: 211121 → 211121 | 0 0.000%)
━ PaymentChannelTest::test_close_revertsOnAmountExceedingDeposit() (gas: 223121 → 223121 | 0 0.000%)
━ PaymentChannelTest::test_close_revertsOnByteOnlyAdvance() (gas: 470362 → 470362 | 0 0.000%)
━ PaymentChannelTest::test_close_then_settle_routesAndRefunds() (gas: 426064 → 426064 | 0 0.000%)
━ PaymentChannelTest::test_close_thirdPartyCannotClose() (gas: 213018 → 213018 | 0 0.000%)
━ PaymentChannelTest::test_constructor_revertsOnDisputeWindowOutOfBounds() (gas: 77036 → 77036 | 0 0.000%)
━ PaymentChannelTest::test_constructor_revertsOnEoaFeeRouter() (gas: 77058 → 77058 | 0 0.000%)
━ PaymentChannelTest::test_constructor_revertsOnZeroAdmin() (gas: 71951 → 71951 | 0 0.000%)
━ PaymentChannelTest::test_dispute_higherNonceWins() (gas: 309711 → 309711 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsAfterDeadline() (gas: 297276 → 297276 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnAmountExceedingDeposit() (gas: 305225 → 305225 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnAmountRegression() (gas: 304835 → 304835 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnByteOnlyAdvance() (gas: 488772 → 488772 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnBytesRegression() (gas: 304972 → 304972 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnStaleNonce() (gas: 302261 → 302261 | 0 0.000%)
━ PaymentChannelTest::test_forcedInclusion_doesNotExtendTwice() (gas: 2916491 → 2916491 | 0 0.000%)
━ PaymentChannelTest::test_forcedInclusion_extendsDeadlineOnce() (gas: 2893929 → 2893929 | 0 0.000%)
━ PaymentChannelTest::test_forcedInclusion_noExtendWhenAmpleTimeRemains() (gas: 2902445 → 2902445 | 0 0.000%)
━ PaymentChannelTest::test_getRateBounds_returnsConfigured() (gas: 9912 → 9912 | 0 0.000%)
━ PaymentChannelTest::test_normalDispute_doesNotExtend() (gas: 319584 → 319584 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_derivesIdAndIncrementsNonce() (gas: 221523 → 221523 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_distinctIdsAcrossProviders() (gas: 351414 → 351414 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_revertsBelowMinDeposit() (gas: 23033 → 23033 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_revertsOnInactiveProvider() (gas: 29784 → 29784 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_revertsWhenPaused() (gas: 47399 → 47399 | 0 0.000%)
━ PaymentChannelTest::test_paused_exitsStillCallable() (gas: 671201 → 671201 | 0 0.000%)
━ PaymentChannelTest::test_reclaimExpired_refundsRemainderToClient() (gas: 452272 → 452272 | 0 0.000%)
━ PaymentChannelTest::test_reclaimExpired_revertsBeforeExpiry() (gas: 206190 → 206190 | 0 0.000%)
━ PaymentChannelTest::test_route_zeroesResidualAllowanceAfterUnderPull() (gas: 535018 → 535018 | 0 0.000%)
━ PaymentChannelTest::test_setDisputeWindow_enforcesBounds() (gas: 24815 → 24815 | 0 0.000%)
━ PaymentChannelTest::test_setFeeRouter_revertsOnEoaRouter() (gas: 18660 → 18660 | 0 0.000%)
━ PaymentChannelTest::test_setFeeRouter_revertsOnZeroAndUnchanged() (gas: 24635 → 24635 | 0 0.000%)
━ PaymentChannelTest::test_setFeeRouter_updatesTarget() (gas: 292460 → 292460 | 0 0.000%)
━ PaymentChannelTest::test_setters_onlyGovernance() (gas: 13998 → 13998 | 0 0.000%)
━ PaymentChannelTest::test_settle_amountEqualsDeposit_zeroRefund() (gas: 410874 → 410874 | 0 0.000%)
━ PaymentChannelTest::test_settle_fullyWithdrawn_noRouterCall() (gas: 473130 → 473130 | 0 0.000%)
━ PaymentChannelTest::test_settle_revertsBeforeDisputeDeadline() (gas: 294513 → 294513 | 0 0.000%)
━ PaymentChannelTest::test_topUp_increasesDeposit() (gas: 226710 → 226710 | 0 0.000%)
━ PaymentChannelTest::test_topUp_onlyClient() (gas: 206621 → 206621 | 0 0.000%)
━ PaymentChannelTest::test_topUp_revertsWhenPaused() (gas: 233022 → 233022 | 0 0.000%)
━ PaymentChannelTest::test_voucher_rejectedOnWrongChannelId() (gas: 339891 → 339891 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_acceptsErc1271Signature() (gas: 717406 → 717406 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_onlyProvider() (gas: 210927 → 210927 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsOnAmountExceedingDeposit() (gas: 222881 → 222881 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsOnBadSignature() (gas: 215715 → 215715 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsOnBytesRegression() (gas: 469281 → 469281 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsOnNonMonotonicNonce() (gas: 468957 → 468957 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsWhenDeltaZero() (gas: 469732 → 469732 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_routesDeltaAndAdvancesWatermark() (gas: 465532 → 465532 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_secondWithdrawRoutesOnlyIncrement() (gas: 554879 → 554879 | 0 0.000%)
━ PaymentChannelTest::test_zeroVoucherClose_disabledAfterWithdraw() (gas: 462930 → 462930 | 0 0.000%)
━ PaymentChannelTest::test_zeroVoucherClose_refundsFullDeposit() (gas: 218313 → 218313 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_multiClaimAcrossNamespaces() (gas: 233820 → 233820 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_recordsClaim() (gas: 134733 → 134733 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsForDefaultOpenNamespace() (gas: 13756 → 13756 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsIfNotOwner() (gas: 66829 → 66829 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsOnDuplicateSameNamespace() (gas: 135319 → 135319 | 0 0.000%)
━ PublisherRegistryTest::test_constructor_revertsZeroAdmin() (gas: 36674 → 36674 | 0 0.000%)
━ PublisherRegistryTest::test_constructor_setsDefaultsAndRoles() (gas: 19037 → 19037 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_assignsIdsFromOne() (gas: 92728 → 92728 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_revertsAtCap() (gas: 98581 → 98581 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_zeroIsNeverAssigned() (gas: 65471 → 65471 | 0 0.000%)
━ PublisherRegistryTest::test_namespaceOf_emptyForUnclaimed() (gas: 8273 → 8273 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_revertsOutOfBounds() (gas: 17605 → 17605 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_revertsWithoutRole() (gas: 13384 → 13384 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_withinBounds() (gas: 20687 → 20687 | 0 0.000%)
━ PublisherRegistryTest::test_setTransferTimelock_revertsOutOfBounds() (gas: 17706 → 17706 | 0 0.000%)
━ PublisherRegistryTest::test_setTransferTimelock_revertsWithoutRole() (gas: 14763 → 14763 | 0 0.000%)
━ PublisherRegistryTest::test_setTransferTimelock_withinBounds() (gas: 20560 → 20560 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_cancelByOwner() (gas: 78668 → 78668 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_cancelRevertsIfNotOwner() (gas: 93302 → 93302 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_finalizeRevertsIfNotPendingOwner() (gas: 93817 → 93817 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_finalizeRevertsNoPending() (gas: 68544 → 68544 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_fullFlow() (gas: 98658 → 98658 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_initiateRevertsIfNotOwner() (gas: 66923 → 66923 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_initiateRevertsZeroNewOwner() (gas: 64330 → 64330 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_revertsWhenRecipientAtCap() (gas: 150145 → 150145 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_selfTransferExemptFromCap() (gas: 95404 → 95404 | 0 0.000%)
━ SlashAppealTest::test_pause_extendsFilingWindow() (gas: 403494 → 403494 | 0 0.000%)
━ TestnetFaucetTest::testFuzz_claim_atOrAboveCooldown(uint256) (gas: 91528 → 91528 | 0 0.000%)
━ TestnetFaucetTest::testFuzz_claim_belowCooldown(uint256) (gas: 85389 → 85389 | 0 0.000%)
━ TestnetFaucetTest::test_admin_canGrantAndRevokeRoles() (gas: 56401 → 56401 | 0 0.000%)
━ TestnetFaucetTest::test_claim_blocksReentrancy() (gas: 1550228 → 1550228 | 0 0.000%)
━ TestnetFaucetTest::test_claim_happyPath() (gas: 82821 → 82821 | 0 0.000%)
━ TestnetFaucetTest::test_claim_perCallerCooldownIndependence() (gas: 133478 → 133478 | 0 0.000%)
━ TestnetFaucetTest::test_claim_revertsBeforeCooldown() (gas: 83092 → 83092 | 0 0.000%)
━ TestnetFaucetTest::test_claim_revertsOnInsufficientBalance() (gas: 50715 → 50715 | 0 0.000%)
━ TestnetFaucetTest::test_claim_revertsOneSecondBeforeCooldownBoundary() (gas: 82996 → 82996 | 0 0.000%)
━ TestnetFaucetTest::test_claim_revertsWhenPaused() (gas: 39998 → 39998 | 0 0.000%)
━ TestnetFaucetTest::test_claim_succeedsAfterCooldown() (gas: 90430 → 90430 | 0 0.000%)
━ TestnetFaucetTest::test_claim_succeedsAtExactCooldownBoundary() (gas: 87103 → 87103 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_allowsZeroCooldown() (gas: 1810378 → 1810378 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnCooldownExceedingMax() (gas: 1015061 → 1015061 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnMainnetChainId() (gas: 988198 → 988198 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroAdmin() (gas: 985898 → 985898 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroClaimAmount() (gas: 988045 → 988045 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroFunding() (gas: 988061 → 988061 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroGovernance() (gas: 985864 → 985864 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroPauser() (gas: 985954 → 985954 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroTokenAddress() (gas: 70468 → 70468 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsOnZeroTreasury() (gas: 987830 → 987830 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_revertsWhenTreasuryNotApproved() (gas: 1110690 → 1110690 | 0 0.000%)
━ TestnetFaucetTest::test_constructor_setsStateAndRoles() (gas: 43070 → 43070 | 0 0.000%)
━ TestnetFaucetTest::test_nonAdmin_cannotGrantRoles() (gas: 17889 → 17889 | 0 0.000%)
━ TestnetFaucetTest::test_pause_blocksClaimUnpauseRestores() (gas: 91691 → 91691 | 0 0.000%)
━ TestnetFaucetTest::test_pause_revertsOnNonPauser() (gas: 14607 → 14607 | 0 0.000%)
━ TestnetFaucetTest::test_setClaimAmount_revertsOnNonGovernance() (gas: 14702 → 14702 | 0 0.000%)
━ TestnetFaucetTest::test_setClaimAmount_revertsOnZero() (gas: 13338 → 13338 | 0 0.000%)
━ TestnetFaucetTest::test_setClaimAmount_updatesAndEmits() (gas: 22083 → 22083 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_acceptsMaxCooldown() (gas: 20228 → 20228 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_allowsZero() (gas: 94920 → 94920 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_revertsOnExceedingMax() (gas: 13790 → 13790 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_revertsOnNonGovernance() (gas: 14705 → 14705 | 0 0.000%)
━ TestnetFaucetTest::test_setCooldown_updatesAndEmits() (gas: 22231 → 22231 | 0 0.000%)
━ TestnetFaucetTest::test_timeUntilNext_tracksCooldownWindow() (gas: 82615 → 82615 | 0 0.000%)
━ TestnetFaucetTest::test_timeUntilNext_zeroBeforeFirstClaim() (gas: 10099 → 10099 | 0 0.000%)
━ TestnetFaucetTest::test_unpause_revertsOnNonPauser() (gas: 43483 → 43483 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_revertsOnInsufficientBalance() (gas: 26877 → 26877 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_revertsOnNonGovernance() (gas: 17089 → 17089 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_revertsOnZeroAmount() (gas: 20838 → 20838 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_revertsOnZeroTo() (gas: 18662 → 18662 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_transfersAndEmits() (gas: 44129 → 44129 | 0 0.000%)
━ TestnetFaucetTest::test_withdraw_worksWhilePaused() (gas: 68286 → 68286 | 0 0.000%)
━ TokenTest::testFuzz_burn_reducesSupplyByExactAmount(uint256) (gas: 27700 → 27700 | 0 0.000%)
━ TokenTest::test_burnFrom_consumesAllowance() (gas: 38534 → 38534 | 0 0.000%)
━ TokenTest::test_burn_reducesTotalSupplyAndBalance() (gas: 26044 → 26044 | 0 0.000%)
━ TokenTest::test_constructor_metadata() (gas: 17896 → 17896 | 0 0.000%)
━ TokenTest::test_constructor_mintsFullSupplyToHolder() (gas: 12954 → 12954 | 0 0.000%)
━ TokenTest::test_constructor_revertsOnZeroInitialHolder() (gas: 83264 → 83264 | 0 0.000%)
━ TokenTest::test_constructor_totalSupplyConstantMatches() (gas: 9364 → 9364 | 0 0.000%)
━ TokenTest::test_noMintFunctionExposed() (gas: 10765 → 10765 | 0 0.000%)
━ TokenTest::test_noVotesSurfaceExposed() (gas: 11991 → 11991 | 0 0.000%)
━ TokenTest::test_permit_setsAllowance() (gas: 67380 → 67380 | 0 0.000%)
↓ SlashAppealTest::test_grant_newerAppeal_fallsBackToOlderStandingSlash() (gas: 595787 → 595786 | -1 -0.000%)
↓ SlashAppealTest::test_grant_olderAppeal_preservesNewerSlashZeroOut() (gas: 595206 → 595205 | -1 -0.000%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setUnbondingPeriod_happy() (gas: 589140 → 589141 | 1 0.000%)
↓ CapacityBondTest::test_settleAppealGranted_reverseMiddleSlash_keepsNewest() (gas: 567602 → 567601 | -1 -0.000%)
↓ SlashAppealTest::test_grant_refundsOperatorAndBondAndClearsZeroOut() (gas: 457786 → 457785 | -1 -0.000%)
↓ CapacityBondTest::test_settleAppealGranted_clearsAndRefunds() (gas: 298270 → 298269 | -1 -0.000%)
↑ SlashJudgeTest::test_phantom_revertsOutsideTimestampWindow() (gas: 49624 → 49625 | 1 0.002%)
↑ CapacityBondRegionE2ETest::test_updateRegion_cooldownPrevSnapshotAndEvent() (gas: 923017 → 923039 | 22 0.002%)
↑ E2EProtocolTest::test_e2e_registerSettleSlashEjectAppeal() (gas: 1463107 → 1463150 | 43 0.003%)
↓ CapacityBondTest::test_slash_escrowsWithoutDistribution() (gas: 320996 → 320984 | -12 -0.004%)
↓ SlashAppealTest::test_frequencyCap_blocksSecondAppealWithinWindow() (gas: 600226 → 600203 | -23 -0.004%)
↓ SlashAppealTest::test_cleanup_openLapse_upholds() (gas: 467819 → 467797 | -22 -0.005%)
↓ SlashAppealTest::test_uphold_poolUnset_burnsFullBond() (gas: 2244362 → 2244230 | -132 -0.006%)
↓ CapacityBondTest::test_settleAppealGranted_zeroBondSlash_refundsNothingClearsWatermark() (gas: 223278 → 223264 | -14 -0.006%)
↑ CapacityBondRegionE2ETest::test_registerNode_corruptEd25519Signature_reverts() (gas: 640701 → 640745 | 44 0.007%)
↑ CapacityBondTest::test_markAppealOpen_blocksFinalize() (gas: 322439 → 322462 | 23 0.007%)
↑ CapacityBondRegionE2ETest::test_registerNode_realEd25519Signature_succeeds() (gas: 851127 → 851193 | 66 0.008%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addOperator_happy() (gas: 640766 → 640700 | -66 -0.010%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addHashGlobal_happy() (gas: 611922 → 611856 | -66 -0.011%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setOriginBlacklist_happy() (gas: 610322 → 610256 | -66 -0.011%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addOperator_outOfBounds() (gas: 602436 → 602370 | -66 -0.011%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setAppealBond_outOfBounds() (gas: 597567 → 597501 | -66 -0.011%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addHashGlobal_outOfBounds() (gas: 597246 → 597180 | -66 -0.011%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxMultiaddrSize_outOfBounds() (gas: 595133 → 595067 | -66 -0.011%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setAppealBond_happy() (gas: 591735 → 591669 | -66 -0.011%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxMultiaddrSize_happy() (gas: 589224 → 589158 | -66 -0.011%)
↓ CapacityBondTest::test_finalizeUnappealedSlash_distributes5050() (gas: 351459 → 351411 | -48 -0.014%)
↓ SlashAppealTest::test_forceResolveStuckAppeal_revertsWithoutGovernanceRole() (gas: 482781 → 482715 | -66 -0.014%)
↓ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setVoteCapBps_outOfBounds() (gas: 636763 → 636675 | -88 -0.014%)
↓ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setAgeRampMonths_outOfBounds() (gas: 636722 → 636634 | -88 -0.014%)
↓ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setVoteCapBps_happy() (gas: 631099 → 631011 | -88 -0.014%)
↓ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setAgeRampMonths_happy() (gas: 631070 → 630982 | -88 -0.014%)
↓ SlashAppealTest::test_forceResolveStuckAppeal_revertsWhenNotAppealOpen() (gas: 315222 → 315178 | -44 -0.014%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setSharesAndDestinations_happy() (gas: 622563 → 622475 | -88 -0.014%)
↓ CapacityBondTest::test_slash_stampsSlashedAtEpoch() (gas: 309889 → 309845 | -44 -0.014%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setWindowEpochs_happy() (gas: 611399 → 611311 | -88 -0.014%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setShares_happy() (gas: 608708 → 608620 | -88 -0.014%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_happy() (gas: 606366 → 606278 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeHashGlobal_outOfBounds() (gas: 599794 → 599706 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setSharesAndDestinations_outOfBounds() (gas: 598254 → 598166 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setOriginBlacklist_outOfBounds() (gas: 598088 → 598000 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_outOfBounds() (gas: 597604 → 597516 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_outOfBounds() (gas: 597562 → 597474 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setAppealBond_outOfBounds() (gas: 597519 → 597431 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setWindowEpochs_outOfBounds() (gas: 597427 → 597339 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setChallengerIncentivePool_outOfBounds() (gas: 597415 → 597327 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setBuybackBurner_outOfBounds() (gas: 597071 → 596983 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setShares_outOfBounds() (gas: 597051 → 596963 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_outOfBounds() (gas: 595126 → 595038 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setUnbondingPeriod_outOfBounds() (gas: 595047 → 594959 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinCapacityMbps_outOfBounds() (gas: 595041 → 594953 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setTreasury_outOfBounds() (gas: 594903 → 594815 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setChallengerIncentivePool_happy() (gas: 592113 → 592025 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_happy() (gas: 591984 → 591896 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_happy() (gas: 591878 → 591790 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setAppealBond_happy() (gas: 591652 → 591564 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setTreasury_happy() (gas: 589665 → 589577 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setBuybackBurner_happy() (gas: 589629 → 589541 | -88 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeOperator_happy() (gas: 1025817 → 1025663 | -154 -0.015%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeHashGlobal_happy() (gas: 997260 → 997106 | -154 -0.015%)
↑ CapacityBondTest::test_registerNode_succeedsAtCurve() (gas: 415293 → 415359 | 66 0.016%)
↓ GovernanceLifecycleTest::test_canary_governorVoteWeightWired() (gas: 129989 → 129967 | -22 -0.017%)
↓ SlashAppealTest::test_grant_requiresGovernance() (gas: 490265 → 490177 | -88 -0.018%)
↓ SlashAppealTest::test_open_locksEscrowAndPullsBond() (gas: 485850 → 485762 | -88 -0.018%)
↓ SlashAppealTest::test_grant_revertsIfNotFastTracked() (gas: 482039 → 481951 | -88 -0.018%)
↓ SlashAppealTest::test_fastTrack_requiresMultisig() (gas: 479770 → 479682 | -88 -0.018%)
↑ CapacityBondRegionE2ETest::test_registerNode_replayAfterNonceBump_reverts() (gas: 1321589 → 1321832 | 243 0.018%)
↓ SlashAppealTest::test_open_revertsAfterFilingWindow() (gas: 476670 → 476582 | -88 -0.018%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxCapacityMbps_outOfBounds() (gas: 595218 → 595108 | -110 -0.018%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinBond_outOfBounds() (gas: 595130 → 595020 | -110 -0.018%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setRegionStabilityWindow_outOfBounds() (gas: 595087 → 594977 | -110 -0.018%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinCapacityMbps_happy() (gas: 589246 → 589136 | -110 -0.019%)
↓ CapacityBondTest::test_slash_zeroBondOperator_mintsZeroAmountRecordNoOpsAtFinality() (gas: 242609 → 242561 | -48 -0.020%)
↑ CapacityBondTest::test_settleAppealGranted_multiSlash_recomputesThenClears() (gas: 421004 → 421090 | 86 0.020%)
↓ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_registerRegionalBody_happy() (gas: 611188 → 611057 | -131 -0.021%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxCapacityMbps_happy() (gas: 589380 → 589248 | -132 -0.022%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinBond_happy() (gas: 589248 → 589116 | -132 -0.022%)
↓ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setRegionStabilityWindow_happy() (gas: 589204 → 589072 | -132 -0.022%)
↓ SlashAppealTest::test_open_revertsForNonOperator() (gas: 490623 → 490513 | -110 -0.022%)
↓ SlashAppealTest::test_open_revertsOnDoubleAppeal() (gas: 481703 → 481593 | -110 -0.023%)
↓ CapacityBondTest::test_slash_tierEscalation_15then50pct() (gas: 536614 → 536482 | -132 -0.025%)
↓ CapacityBondTest::test_slash_doesNotEnforceCurve() (gas: 357634 → 357546 | -88 -0.025%)
↓ SlashAppealTest::test_forceResolveStuckAppeal_resolvesAfterRoleRevoked() (gas: 516312 → 516180 | -132 -0.026%)
↓ SlashAppealTest::test_uphold_distributesEscrowAndSplitsBond() (gas: 509945 → 509813 | -132 -0.026%)
↓ SlashAppealTest::test_reject_burnsBondAndDistributesEscrow() (gas: 473525 → 473393 | -132 -0.028%)
↑ SlashAppealTest::test_slashAppealPause_extendsCapacityBondFilingWindow() (gas: 551238 → 551392 | 154 0.028%)
↑ SlashAppealTest::test_cleanup_fastTrackedLapse_grantsOperatorFavorable() (gas: 449865 → 449996 | 131 0.029%)
↓ CapacityBondTest::test_requestUnbond_succeedsDownToExactlyCurve() (gas: 206474 → 206408 | -66 -0.032%)
↑ CapacityBondTest::test_registerNode_revertsWhenAlreadyActive() (gas: 387468 → 387600 | 132 0.034%)
↑ CapacityBondTest::test_declareMbps_revertsWhenBondBelowCurve() (gas: 131673 → 131718 | 45 0.034%)
↓ CapacityBondTest::test_slashId_persistsRecord() (gas: 310025 → 309915 | -110 -0.035%)
↑ CapacityBondTest::test_registerNode_revertsOnInvalidEd25519Sig() (gas: 178956 → 179022 | 66 0.037%)
↓ CapacityBondTest::test_settleAppealUpheld_distributes5050() (gas: 343807 → 343675 | -132 -0.038%)
↑ SlashJudgeTest::test_pause_blocksChallenges() (gas: 58348 → 58371 | 23 0.039%)
↑ SlashJudgeTest::test_phantom_slashesAndRoundTripsBond() (gas: 179547 → 179618 | 71 0.040%)
↓ CapacityBondTest::test_requestUnbond_allowedWhenNoCapacityDeclared() (gas: 161811 → 161745 | -66 -0.041%)
↑ CapacityBondTest::test_firstBondedAt_setsOnFirstBond() (gas: 102403 → 102445 | 42 0.041%)
↓ CapacityBondTest::test_declareMbps_emitsOldAndNewValue() (gas: 158299 → 158233 | -66 -0.042%)
↑ SlashJudgeTest::test_phantom_revertsOnStaleEvidence() (gas: 49909 → 49932 | 23 0.046%)
↑ E2EProtocolTest::test_e2e_blacklistEjectsOperator() (gas: 420233 → 420453 | 220 0.052%)
↓ CapacityBondTest::test_setMinCapacity_updatesBandAndEmits() (gas: 166738 → 166650 | -88 -0.053%)
↑ SlashJudgeTest::test_rate_slashesWhenStreamRateHigher() (gas: 172123 → 172214 | 91 0.053%)
↓ SlashJudgeTest::test_setMaxEvidenceAge_enforcesBoundsAndInvariant() (gas: 40199 → 40177 | -22 -0.055%)
↓ CapacityBondTest::test_requestUnbond_revertsWhenItDropsBelowCurve() (gas: 160195 → 160107 | -88 -0.055%)
↓ SlashJudgeTest::test_phantom_revertsOnNodeIdMismatch() (gas: 37805 → 37784 | -21 -0.056%)
↓ CapacityBondTest::test_declaredMbps_storesValue() (gas: 147190 → 147102 | -88 -0.060%)
↓ CapacityBondTest::test_declareMbps_succeedsExactlyAtCurve() (gas: 147168 → 147080 | -88 -0.060%)
↓ CapacityBondTest::test_setAlpha_updatesCurveAndEmits() (gas: 33887 → 33865 | -22 -0.065%)
↑ SlashJudgeTest::test_blacklist_revertsOnHashMismatch() (gas: 68210 → 68256 | 46 0.067%)
↑ SlashJudgeTest::test_blacklist_slashesOnStreamResponse() (gas: 190270 → 190399 | 129 0.068%)
↓ CapacityBondTest::test_declareMbps_acceptsFloorAndCeiling() (gas: 161128 → 161018 | -110 -0.068%)
↑ SlashJudgeTest::test_phantom_revertsOnEvidenceReplay() (gas: 199102 → 199238 | 136 0.068%)
↓ DeployProtocolTest::test_crossContractWiring_newContractPeerRoles() (gas: 31466 → 31444 | -22 -0.070%)
↓ CapacityBondTest::test_firstBondedAt_immutableAcrossReBonds() (gas: 111293 → 111205 | -88 -0.079%)
↑ SlashJudgeTest::test_blacklist_slashesOnProbeResponse() (gas: 189538 → 189689 | 151 0.080%)
↑ SlashJudgeTest::test_setChallengeBond_enforcesBounds() (gas: 24689 → 24711 | 22 0.089%)
↓ SlashAppealTest::test_open_revertsUnknownSlash() (gas: 23799 → 23777 | -22 -0.092%)
↓ E2EProtocolTest::test_deployWiring_newContractsWiredAndHandedOff() (gas: 66903 → 66837 | -66 -0.099%)
↓ ContentBlacklistTest::test_addHashRegional_globalTakesPrecedence() (gas: 44310 → 44265 | -45 -0.102%)
↑ ContentBlacklistTest::test_addHashGlobal_andQuery() (gas: 40454 → 40498 | 44 0.109%)
↓ CapacityBondTest::test_setCapacity_onlyGovernance() (gas: 19634 → 19612 | -22 -0.112%)
↑ DeployProtocolTest::test_roleMatrix_emergencyMultisigGrants() (gas: 19591 → 19613 | 22 0.112%)
↓ CapacityBondTest::test_setCurve_onlyGovernance() (gas: 19547 → 19525 | -22 -0.113%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18635 → 18657 | 22 0.118%)
↓ CapacityBondTest::test_declareMbps_revertsAboveCeiling() (gas: 18061 → 18039 | -22 -0.122%)
↓ CapacityBondTest::test_updateRegion_revertsWhenNodeNotActive() (gas: 15740 → 15718 | -22 -0.140%)
↓ CapacityBondTest::test_updateMultiaddrs_revertsWhenNodeNotActive() (gas: 15568 → 15546 | -22 -0.141%)
↑ ContentBlacklistTest::test_addOperator_callsEjectOnCapacityBond() (gas: 93920 → 94055 | 135 0.144%)
↓ DeployProtocolTest::test_emergencyMultisig_canPauseAndBlockEntrypoint() (gas: 48638 → 48568 | -70 -0.144%)
↑ CapacityBondTest::test_setMultiaddrUpdateCooldown_revertsWithoutRole() (gas: 14910 → 14932 | 22 0.148%)
↑ ContentBlacklistTest::test_setAppealBond_revertsWithoutGovernanceRole() (gas: 14754 → 14776 | 22 0.149%)
↓ CapacityBondTest::test_setKAlpha_orderingMatters() (gas: 56111 → 56023 | -88 -0.157%)
↑ SlashJudgeTest::test_setters_onlyGovernance() (gas: 13759 → 13781 | 22 0.160%)
↑ SlashJudgeTest::test_rate_revertsWhenNotHigher() (gas: 53581 → 53671 | 90 0.168%)
↓ CapacityBondTest::test_bondRequired_strictlyMonotonic() (gas: 37026 → 36959 | -67 -0.181%)
↓ CapacityBondTest::test_unpause_revertsWithoutRole() (gas: 94722 → 94546 | -176 -0.186%)
↓ DeployProtocolTest::test_crossContractWiring_capacityBondPeerRoles() (gas: 23574 → 23530 | -44 -0.187%)
↑ SlashJudgeTest::test_phantom_revertsOnFutureEvidence() (gas: 47528 → 47618 | 90 0.189%)
↓ CapacityBondTest::test_setMaxCapacity_updatesBandAndEmits() (gas: 31238 → 31172 | -66 -0.211%)
↓ CapacityBondTest::test_slashedAtEpoch_zeroBeforeSlash() (gas: 10218 → 10196 | -22 -0.215%)
↓ CapacityBondTest::test_capacityBand_floorAlwaysBelowCeiling() (gas: 29342 → 29276 | -66 -0.225%)
↑ ContentBlacklistTest::test_removeHashRegional_blocksGlobalRegionEntries() (gas: 46682 → 46792 | 110 0.236%)
↑ SlashJudgeTest::test_phantom_revertsWhenStreamOk() (gas: 53546 → 53678 | 132 0.247%)
↓ CapacityBondTest::test_setK_revertsWhenGbpsTierOutOfRange() (gas: 44009 → 43899 | -110 -0.250%)
↓ CapacityBondTest::test_escrowHooks_requireSlashAppealRole() (gas: 16929 → 16885 | -44 -0.260%)
↓ CapacityBondTest::test_setMinCapacity_acceptsInclusiveBounds() (gas: 24492 → 24426 | -66 -0.269%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16243 → 16287 | 44 0.271%)
↑ SlashJudgeTest::test_phantom_revertsOnBadProbeSignature() (gas: 46691 → 46824 | 133 0.285%)
↑ CapacityBondTest::test_setMaxMultiaddrSize_revertsWithoutRole() (gas: 14867 → 14911 | 44 0.296%)
↓ ContentBlacklistTest::test_addHashRegional_revertsWithoutRegionalBodyRole() (gas: 14750 → 14706 | -44 -0.298%)
↓ CapacityBondTest::test_bondRequired_matchesAdrWorkedExamples() (gas: 29468 → 29380 | -88 -0.299%)
↑ ContentBlacklistTest::test_addHashGlobal_revertsWithoutGovernanceRole() (gas: 14608 → 14652 | 44 0.301%)
↓ CapacityBondTest::test_setK_updatesCurveAndEmits() (gas: 35559 → 35449 | -110 -0.309%)
↓ DeployProtocolTest::test_roleMatrix_pauserIsEmergencyMultisig() (gas: 45811 → 45657 | -154 -0.336%)
↓ CapacityBondTest::test_bondRequired_zeroForZeroMbps() (gas: 13073 → 13029 | -44 -0.337%)
↓ CapacityBondTest::test_setMaxCapacity_revertsOutOfBounds() (gas: 18527 → 18461 | -66 -0.356%)
↓ CapacityBondTest::test_curveDefaults() (gas: 10689 → 10645 | -44 -0.412%)
↓ CapacityBondTest::test_capacityBand_defaults() (gas: 10668 → 10624 | -44 -0.412%)
↓ CapacityBondTest::test_setMaxCapacity_acceptsInclusiveBounds() (gas: 24759 → 24649 | -110 -0.444%)
↑ SlashJudgeTest::test_phantom_revertsOnUnregisteredNode() (gas: 39027 → 39227 | 200 0.512%)
↓ ContentBlacklistTest::test_registerRegionalBody_revertsWithoutGovernanceRole() (gas: 14830 → 14721 | -109 -0.735%)
↑ CapacityBondTest::test_setMinBond_revertsWithoutRole() (gas: 14823 → 14932 | 109 0.735%)
↓ CapacityBondTest::test_pause_revertsWithoutRole() (gas: 14836 → 14704 | -132 -0.890%)
↑ CapacityBondTest::testFuzz_bondRequired_monotonic(uint256,uint256) (gas: 19260 → 19469 | 209 1.085%)
↓ CapacityBondTest::test_reduceBondAtTier_activeOnly() (gas: 877 → 855 | -22 -2.509%)
↑ DeployProtocolTest::test_assertNoBackDoors_revertsWhenHandoffIncomplete() (gas: 24201263 → 24831176 | 629913 2.603%)
↑ ContentBlacklistTest::test_regionalCap_countsFastTrackedNotOpen() (gas: 894100 → 928028 | 33928 3.795%)
↑ ContentBlacklistTest::test_fullAppealFlow_ratifyRemovesHash() (gas: 276038 → 291541 | 15503 5.616%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 334316 → 353673 | 19357 5.790%)
↑ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReject() (gas: 410381 → 434573 | 24192 5.895%)
↑ ContentBlacklistTest::test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 262037 → 277549 | 15512 5.920%)
↑ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReverse() (gas: 255340 → 270826 | 15486 6.065%)
↑ CapacityBondTest::test_reduceBondAtTier_zeroInputs() (gas: 1448 → 1537 | 89 6.146%)
↓ PublisherRegistryTest::testFuzz_createNamespace_idsAreSequentialAndOwned(uint8) (gas: 427148 → 399321 | -27827 -6.515%)
↑ ContentBlacklistTest::test_hasActiveAppeal_clearedOnLapseOpen() (gas: 223830 → 239316 | 15486 6.919%)
↑ ContentBlacklistTest::test_rejectAppeal_burnsBond() (gas: 229508 → 246208 | 16700 7.276%)
↑ ContentBlacklistTest::test_addHash_revertsWhileAppealActive() (gas: 233813 → 251589 | 17776 7.603%)
↑ CapacityBondRegionE2ETest::test_crossContractEject_viaContentBlacklist() (gas: 2849291 → 3108583 | 259292 9.100%)
↑ CapacityBondTest::test_reduceBondAtTier_slashEqualsActive() (gas: 832 → 920 | 88 10.577%)
↑ SlashJudgeTest::test_blacklist_revertsWhenBlacklistedAfterResponse() (gas: 72559 → 89800 | 17241 23.761%)
↑ SlashJudgeTest::test_blacklist_revertsWhenSuspended() (gas: 72096 → 89315 | 17219 23.883%)
↑ SlashJudgeTest::test_blacklist_revertsWhenNotBlacklisted() (gas: 48632 → 65936 | 17304 35.582%)
↑ SlashJudgeTest::test_constructor_revertsWhenEvidenceAgeExceedsUnbonding() (gas: 366864 → 723102 | 356238 97.104%)

New tests:
  + CapacityBondTest::test_regionGateActivatedAt_setAtConstruction()
  + CapacityBondTest::test_regionScopeData_returnsRegisteredNodeInputs()
  + CapacityBondRegionE2ETest::test_crossContract_regionalSlash_currentRegion()
  + CapacityBondRegionE2ETest::test_crossContract_regionalSlash_prevRegionAfterWindow()
  + CapacityBondRegionE2ETest::test_crossContract_regionalSlash_prevRegionInWindow()
  + ContentBlacklistTest::test_isHashBlacklistedForOperator_currentRegion()
  + ContentBlacklistTest::test_isHashBlacklistedForOperator_global()
  + ContentBlacklistTest::test_isHashBlacklistedForOperator_neverChangedFallback_ripensFromMaxBondGate()
  + ContentBlacklistTest::test_isHashBlacklistedForOperator_prevRegionWindow()
  + ContentBlacklistTest::test_isHashBlacklistedForOperator_suspendedRegional_false()
  + ContentBlacklistTest::test_openBlacklistAppeal_globalEntry_skipsRegionCheck()
  + ContentBlacklistTest::test_openBlacklistAppeal_inWindowFiling_notAutoRejected()
  + ContentBlacklistTest::test_openBlacklistAppeal_nonOperatorStanding_skipsRegionCheck()
  + ContentBlacklistTest::test_openBlacklistAppeal_operatorRegionMismatch_reverts()
  + RegionScopeLibTest::test_effectiveSince_fallbackPicksMax()
  + RegionScopeLibTest::test_effectiveSince_lastChangedWins()
  + RegionScopeLibTest::test_pack_emptyIsZero()
  + RegionScopeLibTest::test_pack_fullSixteenBytesRoundTrips()
  + RegionScopeLibTest::test_pack_masksDirtyTrailingBytes()
  + RegionScopeLibTest::test_pack_matchesLiteralPacking()
  + RegionScopeLibTest::test_pack_oversizedStringTruncatesNoRevert()
  + RegionScopeLibTest::test_scopedRegions_currentGlobalZeroedOut()
  + RegionScopeLibTest::test_scopedRegions_currentOnly_afterWindow()
  + RegionScopeLibTest::test_scopedRegions_effectiveInFutureDoesNotUnderflow()
  + RegionScopeLibTest::test_scopedRegions_emptyPrevNeverApplies()
  + RegionScopeLibTest::test_scopedRegions_prevAppliesInWindow()
  + RegionScopeLibTest::test_scopedRegions_prevEqualsCurrentDeduped()
  + RegionScopeLibTest::test_scopedRegions_prevGlobalNeverApplies()
  + RegionScopeLibTest::test_scopedRegions_windowBoundaryIsExclusive()
  + SlashJudgeTest::test_blacklist_globalAfterResponse_rescuedByRegionalLeg()
  + SlashJudgeTest::test_blacklist_globalAndRegionalBothAfterResponse_revertsBlacklistAfter()
  + SlashJudgeTest::test_blacklist_neverChangedFallback_revertsAfterMaxBondGateWindow()
  + SlashJudgeTest::test_blacklist_neverChangedFallback_ripensFromMaxBondGate()
  + SlashJudgeTest::test_blacklist_revertsPrevRegionAfterWindow()
  + SlashJudgeTest::test_blacklist_revertsRegionalEntryAfterResponse()
  + SlashJudgeTest::test_blacklist_slashesOnCurrentRegionEntry()
  + SlashJudgeTest::test_blacklist_slashesOnPrevRegionInsideWindow()
  + SlashJudgeTest::test_blacklist_suspendedRegionalEntryDoesNotSlash()
  + SlashJudgeTest::test_blacklist_unrelatedRegionEntryDoesNotSlash()

--------------------------------------------------------------------------------
Total tests: 456, ↑ 61, ↓ 122, ━ 273
Overall gas change: 1437873 (0.847%)

Run: 26950958779

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements the ADR 030 region-stability window ripening predicate across CapacityBond, ContentBlacklist, and SlashJudge using a new RegionScopeLib library. While the implementation successfully integrates regional and previous-region scopes, several critical issues were identified: SlashJudge._regionalLiveBefore incorrectly uses block.timestamp instead of the response timestamp, enabling evasion and retroactive slashing; RegionScopeLib.pack is vulnerable to an assembly underflow if a string of length 32 or greater is passed; and RegionScopeLib.scopedRegions can underflow and revert if nowTs < effective.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread contracts/src/SlashJudge.sol Resolved
Comment thread contracts/src/RegionScopeLib.sol Resolved
Comment thread contracts/src/RegionScopeLib.sol Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements on-chain enforcement of ADR 030’s region-ripening predicate for blacklist scope/slash eligibility by wiring CapacityBond’s regionPrev/regionLastChanged data into SlashJudge and ContentBlacklist, with shared predicate logic centralized in a new internal-only library.

Changes:

  • Introduces RegionScopeLib and ICapacityBondRegionView to provide a single-source-of-truth implementation and a single-call read surface for region scope inputs.
  • Updates SlashJudge to enforce blacklist scope as global ∪ current-region ∪ (within stability window) previous-region, while preserving the richer global-only error behavior.
  • Updates ContentBlacklist with a new operator-scope read view and an operator-standing region match check in openBlacklistAppeal, plus comprehensive unit/e2e coverage.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
contracts/src/RegionScopeLib.sol Adds the shared ADR 030 predicate helpers (packing, effective-since fallback, scoped region keys).
contracts/src/interfaces/ICapacityBondRegionView.sol Adds a narrow aggregate getter interface for region scope inputs to reduce cross-contract calls/decoding.
contracts/src/CapacityBond.sol Implements ICapacityBondRegionView, adds regionGateActivatedAt, and exposes regionScopeData.
contracts/src/SlashJudge.sol Enforces ADR 030 regional + ripening-prev-region blacklist scope in _checkBlacklistedBefore.
contracts/src/ContentBlacklist.sol Adds isHashBlacklistedForOperator and enforces operator path-2 current-region match in openBlacklistAppeal.
contracts/test/RegionScopeLib.t.sol Adds unit tests for packing, effective fallback, and scoped-region window behavior.
contracts/test/SlashJudge.t.sol Extends tests to cover current/prev-region scoping, window expiry, and global-vs-regional edge cases.
contracts/test/ContentBlacklist.t.sol Adds tests for operator region-match standing, “soft norm” in-window acceptance, and new scope view.
contracts/test/CapacityBondRegionE2E.t.sol Adds end-to-end tests driving a real SlashJudge + ContentBlacklist against live CapacityBond region data.
contracts/test/CapacityBond.t.sol Adds unit coverage for regionGateActivatedAt constructor stamping and regionScopeData return values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contracts/src/ContentBlacklist.sol Resolved
External review (Gemini) flagged two unreachable-but-cheap hardening
gaps in the shared RegionScopeLib pure helpers:

- pack: guard the mask shift against `len >= 32` underflow. Real callers
  only pass <= 16-byte regions (MAX_REGION_HINT_BYTES), but a longer
  string would underflow `sub(32, len)`; now truncated to the first 32
  bytes instead of mis-masked.
- scopedRegions: saturating `nowTs - effective`. In production `effective`
  is always a past stamp (block timestamps increase monotonically), so
  this is unreachable; the guard only matters under a test-time clock
  rewind, where it avoids an underflow revert and conservatively treats
  the change as just-made (prev still applies).

Added unit tests for both. 492 tests pass; slither/aderyn clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ts (PR #800 review)

The header @dev and the openBlacklistAppeal in-function comment claimed
standing was enforced only by enum-range check; the PR now enforces the
StandingPath.Operator current-region match (ADR 011 path 2). Clarify that
Operator standing is region-gated while the TokenHolder synthetic-standing
clawback remains deferred.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@alpergundogdu alpergundogdu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: approve with nits

Predicate logic matches ADR 030 leg-by-leg — strict < window boundary (RegionScopeLib.sol:360), underflow saturates to 0, pack masks dirty trailing bytes and handles len >= 32, GLOBAL/empty exclusion, prev==current dedup — all correct and covered by both unit and cross-contract integration tests. RegionScopeLib is genuinely internal-only (inlines, 0 bytes added to CapacityBond). Region-flip slash-evasion is foreclosed by the regionPrev-in-window leg and tested end-to-end. CI green. ADR 011 path-2 soft-norm reconciliation is correct.

Medium — dead mock setters leave the effective fallback untested through the real cross-contract read

contracts/test/SlashJudge.t.sol:1236 and contracts/test/ContentBlacklist.t.sol:862 add setFirstBondedAt / setGate, but neither is ever called. Every integrated SlashJudge/ContentBlacklist test runs with firstBondedAt == 0, gate == 0, and the default 7-day window, so the effective = regionLastChanged != 0 ? regionLastChanged : max(firstBondedAt, gate) fallback — the never-changed-node path — is only exercised in the isolated RegionScopeLib.t.sol unit, never through the real regionScopeData read. Either add a SlashJudge integration test using those setters (assert a never-changed node ripens only window seconds after max(firstBondedAt, gate)), or delete the dead setters.

Low / Nit

  • CapacityBond.sol:627 (updateRegion) accepts "GLOBAL" and "" as a region; safe only because RegionScopeLib.scopedRegions defensively excludes them and ContentBlacklist.addHashRegional rejects empty regions. Latent footgun — [your call] on rejecting these at input vs documenting the library as the sole guard.
  • ContentBlacklist.sol:175 isHashBlacklistedForOperator has no in-repo caller — pure external read surface (+ bytecode). [your call] keep if a node/indexer is expected to call it.
  • ContentBlacklist.sol:227-232 — a one-line pointer to ADR 011 §"soft norm" would preempt a future reader thinking the in-window check is missing (ADR 030 states the window requirement more strongly; they reconcile via ADR 011).

None blocking — recommend addressing M1 (test or remove the dead setters) before merge.

…#800 review)

Addresses alpergundogdu's M1: the setFirstBondedAt/setGate mock setters added
in SlashJudge.t.sol and ContentBlacklist.t.sol were never called, so the
`effective = regionLastChanged != 0 ? regionLastChanged : max(firstBondedAt, gate)`
fallback — the never-changed-region path — was only exercised in the isolated
RegionScopeLib unit, never through the real cross-contract regionScopeData read.

- Add SlashJudge integration tests driving the fallback through
  submitBlacklistChallenge: one proves the window ripens from the gate (the
  `max` operand) and slashes in-window; one proves it closes from
  `max(firstBondedAt, gate)` and reverts once ripened.
- Add the analogous ContentBlacklist test through isHashBlacklistedForOperator.
- Both setters are now exercised in each file (no dead mock surface).

Also (L1, doc-only): note in CapacityBond.updateRegion that "GLOBAL"/"" are
intentionally accepted and filtered downstream by RegionScopeLib (the canonical
guard) rather than rejected here, which would only add bytecode to a
near-EIP-170-ceiling contract; and correct the now-stale "not active in this
revision" clause (the predicate is enforced on-chain as of #800).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@thiras
thiras merged commit fdb69b6 into main Jun 4, 2026
19 checks passed
@thiras
thiras deleted the feat/adr030-region-ripening-761 branch June 4, 2026 12:16
thiras added a commit that referenced this pull request Jun 4, 2026
…ion test (PR #809 review)

Address Alper's review on #809:

- Medium: the new `slashJudge` doc comment and the integration-test
  docstring asserted the live `[3d,30d]` unbonding bound as canonical.
  Cross-reference the `UNBONDING_PERIOD_FLOOR/CEILING` deviation note so
  a reader isn't misled — ADR 014/009 spec is `[7d,60d]`; the testnet
  window intentionally differs. (Comments only; no bytecode/gas change.)
- Nit: add `test_setUnbondingPeriod_sameValueRejectedAfterWiring` driving
  the full regime change in one test — a value accepted while the judge
  is unset is rejected once a judge is wired, proving wiring (not the
  bound) is what tightens the constraint.

The re-settable-setter nit needs no change (acceptable, noted in-code).
Snapshot: only the new test's line added; the broader gas regen is
deferred to the post-#800 rebase per the PR's stacking plan.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
thiras added a commit that referenced this pull request Jun 4, 2026
…ion test (PR #809 review)

Address Alper's review on #809:

- Medium: the new `slashJudge` doc comment and the integration-test
  docstring asserted the live `[3d,30d]` unbonding bound as canonical.
  Cross-reference the `UNBONDING_PERIOD_FLOOR/CEILING` deviation note so
  a reader isn't misled — ADR 014/009 spec is `[7d,60d]`; the testnet
  window intentionally differs. (Comments only; no bytecode/gas change.)
- Nit: add `test_setUnbondingPeriod_sameValueRejectedAfterWiring` driving
  the full regime change in one test — a value accepted while the judge
  is unset is rejected once a judge is wired, proving wiring (not the
  bound) is what tightens the constraint.

The re-settable-setter nit needs no change (acceptable, noted in-code).
Snapshot: only the new test's line added; the broader gas regen is
deferred to the post-#800 rebase per the PR's stacking plan.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
thiras added a commit that referenced this pull request Jun 4, 2026
…809)

Rebased the #809 commits onto main with `--onto` (#800's commits are
now squashed on main as fdb69b6, so a plain rebase conflicted add/add).
Regenerated the snapshot under FOUNDRY_PROFILE=ci against the main base.

The diff is large because (a) #809 grows CapacityBond by +564 B, so every
integration suite that deploys the full protocol shows a deployment-gas
delta, and (b) main's committed baseline was already stale (a same-env
regen of pure main diverges from it by ~413 lines). CI runs
`forge snapshot --diff` without `--check`, so the snapshot is
informational and non-gating; this regen makes the committed baseline
self-consistent with the code at HEAD.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants