Skip to content

feat(contracts): cooperative close on PaymentChannel (fast settle, no window) - #948

Merged
alpergundogdu merged 3 commits into
mainfrom
claude/elated-fermi-b957f1
Jun 19, 2026
Merged

alpergundogdu merged 3 commits into
mainfrom
claude/elated-fermi-b957f1

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Closes #947.

What

Adds cooperativeClose(channelId, amount, nonce, bytesDelivered, clientVoucherSig, providerCloseSig) to PaymentChannel — settles a channel in one transaction with no dispute window when both parties sign the same final state.

  • client voucher sig caps the amount the provider may claim.
  • provider CooperativeClose waiver (new EIP-712 COOPERATIVE_CLOSE_TYPEHASH) attests it holds no higher voucher and waives the window.

With both signatures over one tuple there is nothing to dispute, so the provider's amount − withdrawnAmount routes through FeeRouter and the client's deposit − amount refunds in the same tx. The fully-paid case (provider already withdraw-drained) collapses to an instant client refund with no router call.

Why

The provider already had a window-free path to its earnings (withdraw); the client's unused-deposit refund had to wait the full 48h dispute window even when both parties agreed. This closes that asymmetry. No funds are locked: cooperative close is purely additive — if the node is offline or declines, the client falls back to the existing closeChannel → window → settleChannel path. No enforcement, timeout, or escrow.

Safety

  • Finality rests on the on-chain claimed* watermark, not the off-chain signature: a stale waiver below the watermark reverts (AmountRegression/NonMonotonicNonce) and can never under-settle. Terminal Closed set atomically, so exactly one settlement wins any race.
  • Open-only — a channel already in the window settles via settleChannel.
  • Paused router — mirrors settleChannel's defer branch so a paused FeeRouter never freezes the client refund.
  • Reuses the existing _verifyVoucher / _advanceClaimWatermark / _requireBytesTrackPayment / _route machinery and the same slither/aderyn directives as the sibling signature-verifying functions.

Tests

10 new cooperativeClose tests (happy path, fully-withdrawn refund, either-party submit, both bad-sig paths, wrong-typehash waiver, stale-waiver-cannot-under-settle, not-open guard, paused-router defer+flush). Full suite: 96 passing.

Scope / follow-up

ADR 003 (§ Cooperative close) + Solidity land together. The Rust off-chain side — two cdn/client/v1 ClientMessage variants (CooperativeCloseRequest/CooperativeCloseAuth), crates/incentive waiver signing, and the node-side "don't sign mid-stream / stop accepting payment after signing" guard — follows per the ADR.

CI note

forge build (CI profile, --deny warnings), forge fmt --check, forge test, and aderyn are clean locally. slither is not installed in my local env, so it was not run; the new function mirrors withdraw/closeChannel/disputeChannel (same external-call-then-state-write shape and the same suppression directives), so CI slither is expected to pass — please confirm on CI.

🤖 Generated with Claude Code

… window) (#947)

Adds `cooperativeClose(channelId, amount, nonce, bytesDelivered,
clientVoucherSig, providerCloseSig)`: settles a channel in one transaction
with no dispute window when both parties sign the same final state. The
client voucher caps the provider's claim; the provider's new EIP-712
`CooperativeClose` waiver attests it holds no higher voucher and waives the
window. With both signatures over one tuple there is nothing to dispute, so
the provider's `amount - withdrawnAmount` routes and the client's
`deposit - amount` refunds in the same tx.

Removes the asymmetry where the provider had a window-free path to its
earnings (`withdraw`) but the client's unused-deposit refund waited the full
48h. Purely additive: if the node is offline or declines, the client falls
back to the existing `closeChannel` path — no locked funds, no enforcement.

Finality rests on the on-chain `claimed*` watermark, not the off-chain
signature: a stale waiver below it reverts and can never under-settle.
`Open`-only; mirrors `settleChannel`'s paused-router defer branch so a paused
`FeeRouter` cannot freeze the client refund.

Amends ADR 003 (§ Cooperative close, node-side discipline, off-chain waiver
exchange). Rust wire variants + `crates/incentive` waiver signing + node-side
guard follow per the ADR.

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

github-actions Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

Contracts coverage

Line coverage: 89.84% (2122/2362 lines)
▲ +0.10pp vs base (89.74% → 89.84%)
Run: 27834944779

@github-actions

github-actions Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

Gas snapshot

Gas changes vs base
No files changed, compilation skipped

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 6.67ms (5.69ms CPU time)

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 8.93ms (7.79ms CPU time)

Ran 31 tests for test/BuybackBurnerBalancerV3.t.sol:BuybackBurnerBalancerV3Test
[PASS] test_constructor_revertsOnCapFractionOutOfBounds() (gas: 127564)
[PASS] test_constructor_revertsOnInvertedBand() (gas: 127678)
[PASS] test_constructor_revertsOnTwapWindowTooShort() (gas: 127572)
[PASS] test_constructor_revertsOnUsdcDecimalsAbove18() (gas: 709557)
[PASS] test_constructor_revertsOnZeroRouter() (gas: 127053)
[PASS] test_epochCap_accruesAndBindsWithinEpoch() (gas: 315159)
[PASS] test_epochCap_resetsAcrossEpochs() (gas: 410060)
[PASS] test_executeBuyback_happyPath_swapsBurnsEmits() (gas: 297286)
[PASS] test_executeBuyback_minOutAtFloor_passes() (gas: 285299)
[PASS] test_executeBuyback_revertsAboveMaxBuyback() (gas: 100215)
[PASS] test_executeBuyback_revertsBelowMinBuyback() (gas: 87881)
[PASS] test_executeBuyback_revertsOnDegenerateSwapFee() (gas: 88069)
[PASS] test_executeBuyback_revertsTwapNotReady() (gas: 2352384)
[PASS] test_executeBuyback_revertsWhenMinOutBelowTwapFloor() (gas: 85596)
[PASS] test_getAccumulatedFees_reportsUsdcBalance() (gas: 14105)
[PASS] test_pause_blocksExecuteBuyback() (gas: 28153)
[PASS] test_poke_revertsWhenPoolUnwired() (gas: 2045492)
[PASS] test_poolState_ignoresDecoyLegInThreeTokenPool() (gas: 2953624)
[PASS] test_poolState_reversedTokenOrdering() (gas: 2884089)
[PASS] test_poolState_revertsOnMissingTokenLeg() (gas: 2732415)
[PASS] test_scopedApproval_setToAmountInThenResetToZero() (gas: 292808)
[PASS] test_setEpochLiquidityCapFraction_boundsAndGuards() (gas: 22814)
[PASS] test_setKeeper_rotatesRole() (gas: 57836)
[PASS] test_setMaxBuybackAmount_revertsBelowMin() (gas: 16254)
[PASS] test_setSlippageTolerance_boundsAndGuards() (gas: 22706)
[PASS] test_setSwapRouter_updatesAndGuards() (gas: 26791)
[PASS] test_setters_requireGovernanceRole() (gas: 18081)
[PASS] test_twapFloor_accountsForSwapFee() (gas: 312239)
[PASS] test_twapFloor_resistsSingleBlockSpotSpike() (gas: 69644)
[PASS] test_twapPrice_reflectsStableSpot() (gas: 16863)
[PASS] test_twap_tracksRecentSpotAcrossMultipleWindows() (gas: 205339)
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 21.45ms (20.05ms CPU time)

Ran 51 tests for test/GovernanceLifecycle.t.sol:GovernanceLifecycleTest
[PASS] test_canary_executorIsTimelock() (gas: 9912)
[PASS] test_canary_governanceRoleHandoff() (gas: 99672)
[PASS] test_canary_governorVoteWeightWired() (gas: 130653)
[PASS] test_lifecycle_CapacityBond_setMaxCapacityMbps_happy() (gas: 590907)
[PASS] test_lifecycle_CapacityBond_setMaxCapacityMbps_outOfBounds() (gas: 596745)
[PASS] test_lifecycle_CapacityBond_setMaxMultiaddrSize_happy() (gas: 590795)
[PASS] test_lifecycle_CapacityBond_setMaxMultiaddrSize_outOfBounds() (gas: 596682)
[PASS] test_lifecycle_CapacityBond_setMinBond_happy() (gas: 590753)
[PASS] test_lifecycle_CapacityBond_setMinBond_outOfBounds() (gas: 596635)
[PASS] test_lifecycle_CapacityBond_setMinCapacityMbps_happy() (gas: 590773)
[PASS] test_lifecycle_CapacityBond_setMinCapacityMbps_outOfBounds() (gas: 596568)
[PASS] test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_happy() (gas: 607915)
[PASS] test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_outOfBounds() (gas: 596675)
[PASS] test_lifecycle_CapacityBond_setRegionStabilityWindow_happy() (gas: 590731)
[PASS] test_lifecycle_CapacityBond_setRegionStabilityWindow_outOfBounds() (gas: 596614)
[PASS] test_lifecycle_CapacityBond_setUnbondingPeriod_happy() (gas: 598292)
[PASS] test_lifecycle_CapacityBond_setUnbondingPeriod_outOfBounds() (gas: 596596)
[PASS] test_lifecycle_ContentBlacklist_addHashGlobal_happy() (gas: 613404)
[PASS] test_lifecycle_ContentBlacklist_addHashGlobal_outOfBounds() (gas: 598817)
[PASS] test_lifecycle_ContentBlacklist_addOperator_happy() (gas: 664458)
[PASS] test_lifecycle_ContentBlacklist_addOperator_outOfBounds() (gas: 603896)
[PASS] test_lifecycle_ContentBlacklist_registerRegionalBody_happy() (gas: 612716)
[PASS] test_lifecycle_ContentBlacklist_removeHashGlobal_happy() (gas: 1000291)
[PASS] test_lifecycle_ContentBlacklist_removeHashGlobal_outOfBounds() (gas: 601343)
[PASS] test_lifecycle_ContentBlacklist_removeOperator_happy() (gas: 1034299)
[PASS] test_lifecycle_ContentBlacklist_setAppealBond_happy() (gas: 593362)
[PASS] test_lifecycle_ContentBlacklist_setAppealBond_outOfBounds() (gas: 599160)
[PASS] test_lifecycle_ContentBlacklist_setOriginBlacklist_happy() (gas: 611762)
[PASS] test_lifecycle_ContentBlacklist_setOriginBlacklist_outOfBounds() (gas: 599593)
[PASS] test_lifecycle_DecdnGovernor_setAgeRampMonths_happy() (gas: 632597)
[PASS] test_lifecycle_DecdnGovernor_setAgeRampMonths_outOfBounds() (gas: 638249)
[PASS] test_lifecycle_DecdnGovernor_setVoteCapBps_happy() (gas: 632626)
[PASS] test_lifecycle_DecdnGovernor_setVoteCapBps_outOfBounds() (gas: 638290)
[PASS] test_lifecycle_FeeRouter_setBuybackBurner_happy() (gas: 591185)
[PASS] test_lifecycle_FeeRouter_setBuybackBurner_outOfBounds() (gas: 598598)
[PASS] test_lifecycle_FeeRouter_setSharesAndDestinations_happy() (gas: 624148)
[PASS] test_lifecycle_FeeRouter_setSharesAndDestinations_outOfBounds() (gas: 599781)
[PASS] test_lifecycle_FeeRouter_setShares_happy() (gas: 610235)
[PASS] test_lifecycle_FeeRouter_setShares_outOfBounds() (gas: 598578)
[PASS] test_lifecycle_FeeRouter_setTreasury_happy() (gas: 591221)
[PASS] test_lifecycle_FeeRouter_setTreasury_outOfBounds() (gas: 596430)
[PASS] test_lifecycle_FeeRouter_setWindowEpochs_happy() (gas: 612926)
[PASS] test_lifecycle_FeeRouter_setWindowEpochs_outOfBounds() (gas: 598954)
[PASS] test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_happy() (gas: 593511)
[PASS] test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_outOfBounds() (gas: 599089)
[PASS] test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_happy() (gas: 593405)
[PASS] test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_outOfBounds() (gas: 599131)
[PASS] test_lifecycle_SlashAppeal_setAppealBond_happy() (gas: 593179)
[PASS] test_lifecycle_SlashAppeal_setAppealBond_outOfBounds() (gas: 599046)
[PASS] test_lifecycle_SlashAppeal_setChallengerIncentivePool_happy() (gas: 593669)
[PASS] test_lifecycle_SlashAppeal_setChallengerIncentivePool_outOfBounds() (gas: 598942)
Suite result: ok. 51 passed; 0 failed; 0 skipped; finished in 162.22ms (138.40ms 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: 1007)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 375.89µs (91.45µs 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 5.70ms (4.90ms CPU time)

Ran 93 tests for test/CapacityBond.t.sol:CapacityBondTest
[PASS] testFuzz_bondRequired_monotonic(uint256,uint256) (runs: 1024, μ: 19152, ~: 19447)
[PASS] test_blacklistEjected_cannotSelfReinstateViaBond() (gas: 168197)
[PASS] test_blacklistEjected_reBond_doesNotEmitReinstated() (gas: 164992)
[PASS] test_blacklistEjected_registerNodeBarred_isActiveFlips() (gas: 450891)
[PASS] test_bondRequired_matchesAdrWorkedExamples() (gas: 29446)
[PASS] test_bondRequired_strictlyMonotonic() (gas: 37070)
[PASS] test_bondRequired_zeroForZeroMbps() (gas: 13117)
[PASS] test_capacityBand_defaults() (gas: 10690)
[PASS] test_capacityBand_floorAlwaysBelowCeiling() (gas: 29321)
[PASS] test_curveDefaults() (gas: 10667)
[PASS] test_declareMbps_acceptsFloorAndCeiling() (gas: 161168)
[PASS] test_declareMbps_emitsOldAndNewValue() (gas: 158318)
[PASS] test_declareMbps_revertsAboveCeiling() (gas: 17975)
[PASS] test_declareMbps_revertsBelowFloor() (gas: 17906)
[PASS] test_declareMbps_revertsWhenBondBelowCurve() (gas: 131759)
[PASS] test_declareMbps_revertsZero() (gas: 17950)
[PASS] test_declareMbps_succeedsExactlyAtCurve() (gas: 147165)
[PASS] test_declaredMbps_storesValue() (gas: 147231)
[PASS] test_ejectNode_setsBlacklistLatch_evenWhenAlreadySlashEjected() (gas: 580944)
[PASS] test_escrowHooks_requireSlashAppealRole() (gas: 16973)
[PASS] test_finalizeUnappealedSlash_distributes5050() (gas: 351462)
[PASS] test_firstBondedAt_immutableAcrossReBonds() (gas: 111421)
[PASS] test_firstBondedAt_setsOnFirstBond() (gas: 102489)
[PASS] test_markAppealOpen_blocksFinalize() (gas: 322526)
[PASS] test_pause_revertsWithoutRole() (gas: 14748)
[PASS] test_reduceBondAtTier_activeOnly() (gas: 855)
[PASS] test_reduceBondAtTier_remainderClip() (gas: 1090)
[PASS] test_reduceBondAtTier_slashEqualsActive() (gas: 898)
[PASS] test_reduceBondAtTier_spillsIntoUnbonding() (gas: 1043)
[PASS] test_reduceBondAtTier_unbondingOnly() (gas: 995)
[PASS] test_reduceBondAtTier_zeroInputs() (gas: 1493)
[PASS] test_regionGateActivatedAt_setAtConstruction() (gas: 4812185)
[PASS] test_regionScopeData_returnsRegisteredNodeInputs() (gas: 425511)
[PASS] test_registerNode_revertsOnInvalidEd25519Sig() (gas: 178986)
[PASS] test_registerNode_revertsWhenAlreadyActive() (gas: 387542)
[PASS] test_registerNode_revertsWhenBondBelowCurve() (gas: 207219)
[PASS] test_registerNode_succeedsAtCurve() (gas: 415337)
[PASS] test_requestUnbond_allowedWhenNoCapacityDeclared() (gas: 161787)
[PASS] test_requestUnbond_revertsWhenItDropsBelowCurve() (gas: 160258)
[PASS] test_requestUnbond_succeedsDownToExactlyCurve() (gas: 206559)
[PASS] test_setAlpha_revertsOutOfBounds() (gas: 18452)
[PASS] test_setAlpha_revertsWhenGbpsTierOutOfRange() (gas: 29975)
[PASS] test_setAlpha_updatesCurveAndEmits() (gas: 33865)
[PASS] test_setCapacity_onlyGovernance() (gas: 19589)
[PASS] test_setCurve_onlyGovernance() (gas: 19581)
[PASS] test_setKAlpha_orderingMatters() (gas: 56111)
[PASS] test_setK_revertsWhenGbpsTierOutOfRange() (gas: 44054)
[PASS] test_setK_updatesCurveAndEmits() (gas: 35559)
[PASS] test_setMaxCapacity_acceptsInclusiveBounds() (gas: 24825)
[PASS] test_setMaxCapacity_revertsOutOfBounds() (gas: 18483)
[PASS] test_setMaxCapacity_updatesBandAndEmits() (gas: 31194)
[PASS] test_setMaxMultiaddrSize_revertsWithoutRole() (gas: 14955)
[PASS] test_setMinBond_revertsWithoutRole() (gas: 14867)
[PASS] test_setMinCapacity_acceptsInclusiveBounds() (gas: 24470)
[PASS] test_setMinCapacity_revertsOutOfBounds() (gas: 18249)
[PASS] test_setMinCapacity_updatesBandAndEmits() (gas: 166823)
[PASS] test_setMultiaddrUpdateCooldown_revertsWithoutRole() (gas: 14976)
[PASS] test_setRegionStabilityWindow_revertsWithoutRole() (gas: 14910)
[PASS] test_setSlashJudge_acceptsJudgeSatisfyingInvariant() (gas: 119498)
[PASS] test_setSlashJudge_rejectsJudgeViolatingInvariant() (gas: 95793)
[PASS] test_setSlashJudge_revertsOnZeroAddress() (gas: 13603)
[PASS] test_setSlashJudge_revertsWithoutRole() (gas: 93638)
[PASS] test_setSlashJudge_rewireEmitsPreviousJudgeAsOld() (gas: 204799)
[PASS] test_setSlashJudge_setsAndEmits() (gas: 121676)
[PASS] test_setUnbondingPeriod_boundStillEnforcedWithJudge() (gas: 126596)
[PASS] test_setUnbondingPeriod_floorWithLowEvidenceAgeSucceeds() (gas: 126346)
[PASS] test_setUnbondingPeriod_revertsWhenBelowEvidenceAge() (gas: 127527)
[PASS] test_setUnbondingPeriod_revertsWhenEqualToEvidenceAge() (gas: 127580)
[PASS] test_setUnbondingPeriod_revertsWithoutRole() (gas: 14868)
[PASS] test_setUnbondingPeriod_sameValueRejectedAfterWiring() (gas: 131717)
[PASS] test_setUnbondingPeriod_succeedsAboveEvidenceAge() (gas: 129157)
[PASS] test_setUnbondingPeriod_unwiredAppliesOnlyBound() (gas: 23644)
[PASS] test_settleAppealGranted_clearsAndRefunds() (gas: 298112)
[PASS] test_settleAppealGranted_multiSlash_recomputesThenClears() (gas: 420668)
[PASS] test_settleAppealGranted_reverseMiddleSlash_keepsNewest() (gas: 567312)
[PASS] test_settleAppealGranted_zeroBondSlash_refundsNothingClearsWatermark() (gas: 223102)
[PASS] test_settleAppealUpheld_distributes5050() (gas: 343783)
[PASS] test_slashAutoEjected_canStillReinstateViaBond() (gas: 538812)
[PASS] test_slashId_persistsRecord() (gas: 310083)
[PASS] test_slash_doesNotEnforceCurve() (gas: 357588)
[PASS] test_slash_escrowsWithoutDistribution() (gas: 321018)
[PASS] test_slash_stampsSlashedAtEpoch() (gas: 309775)
[PASS] test_slash_tier3_mixedBond_exhaustsActiveTapsUnbonding() (gas: 588890)
[PASS] test_slash_tierEscalation_15then50pct() (gas: 536634)
[PASS] test_slash_zeroBondOperator_mintsZeroAmountRecordNoOpsAtFinality() (gas: 242480)
[PASS] test_slashedAtEpoch_zeroBeforeSlash() (gas: 10129)
[PASS] test_unEjectNode_clearsBlacklistLatch_thenRebondReinstates() (gas: 140110)
[PASS] test_unEjectNode_idempotentNoState() (gas: 21905)
[PASS] test_unEjectNode_onlyBlacklistRole() (gas: 14961)
[PASS] test_unEjectNode_revertsZeroAddress() (gas: 13532)
[PASS] test_unpause_revertsWithoutRole() (gas: 94634)
[PASS] test_updateMultiaddrs_revertsWhenNodeNotActive() (gas: 15697)
[PASS] test_updateRegion_revertsWhenNodeNotActive() (gas: 15738)
Suite result: ok. 93 passed; 0 failed; 0 skipped; finished in 195.67ms (189.62ms CPU time)

Ran 8 tests for test/CapacityBondRegionE2E.t.sol:CapacityBondRegionE2ETest
[PASS] test_crossContractEject_viaContentBlacklist() (gas: 3394255)
[PASS] test_crossContract_regionalSlash_currentRegion() (gas: 5997740)
[PASS] test_crossContract_regionalSlash_prevRegionAfterWindow() (gas: 5810059)
[PASS] test_crossContract_regionalSlash_prevRegionInWindow() (gas: 6048956)
[PASS] test_registerNode_corruptEd25519Signature_reverts() (gas: 640718)
[PASS] test_registerNode_realEd25519Signature_succeeds() (gas: 851232)
[PASS] test_registerNode_replayAfterNonceBump_reverts() (gas: 1321783)
[PASS] test_updateRegion_cooldownPrevSnapshotAndEvent() (gas: 922773)
Suite result: ok. 8 passed; 0 failed; 0 skipped; finished in 72.44ms (68.89ms CPU time)

Ran 3 tests for test/CapacityBondSlashJudgeInvariant.t.sol:CapacityBondSlashJudgeInvariantTest
[PASS] test_realSlashJudge_unbondingAboveEvidenceAge_succeeds() (gas: 27801)
[PASS] test_realSlashJudge_unbondingEqualToEvidenceAge_reverts() (gas: 21461)
[PASS] test_realSlashJudge_wiredInSetUp() (gas: 15255)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 1.49ms (166.41µs CPU time)

Ran 40 tests for test/ContentBlacklist.t.sol:ContentBlacklistTest
[PASS] test_addHashGlobal_andQuery() (gas: 40454)
[PASS] test_addHashGlobal_revertsWithoutGovernanceRole() (gas: 14718)
[PASS] test_addHashRegional_globalTakesPrecedence() (gas: 44220)
[PASS] test_addHashRegional_revertsWithoutRegionalBodyRole() (gas: 14795)
[PASS] test_addHash_revertsWhileAppealActive() (gas: 278731)
[PASS] test_addOperator_callsEjectOnCapacityBond() (gas: 94035)
[PASS] test_fullAppealFlow_ratifyRemovesHash() (gas: 293612)
[PASS] test_hasActiveAppeal_clearedOnLapseOpen() (gas: 241424)
[PASS] test_hasActiveAppeal_clearedOnReject() (gas: 461963)
[PASS] test_hasActiveAppeal_clearedOnReverse() (gas: 272732)
[PASS] test_isHashBlacklistedForOperator_currentRegion() (gas: 103945)
[PASS] test_isHashBlacklistedForOperator_global() (gas: 42786)
[PASS] test_isHashBlacklistedForOperator_neverChangedFallback_ripensFromMaxBondGate() (gas: 166938)
[PASS] test_isHashBlacklistedForOperator_prevRegionWindow() (gas: 144953)
[PASS] test_isHashBlacklistedForOperator_suspendedRegional_false() (gas: 370844)
[PASS] test_openBlacklistAppeal_globalEntry_skipsRegionCheck() (gas: 285704)
[PASS] test_openBlacklistAppeal_inWindowFiling_notAutoRejected() (gas: 337308)
[PASS] test_openBlacklistAppeal_nonOperatorStanding_skipsRegionCheck() (gas: 268932)
[PASS] test_openBlacklistAppeal_operatorRegionMismatch_reverts() (gas: 73251)
[PASS] test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 356054)
[PASS] test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18723)
[PASS] test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16287)
[PASS] test_regionalCap_countsFastTrackedNotOpen() (gas: 931306)
[PASS] test_registerRegionalBody_revertsWithoutGovernanceRole() (gas: 14809)
[PASS] test_rejectAppeal_burnsBond() (gas: 273306)
[PASS] test_rejectionCooldown_doesNotAffectOtherFilers() (gas: 916954)
[PASS] test_rejectionCooldown_liftsAfterWindow() (gas: 834103)
[PASS] test_rejectionCooldown_locksOutAfterThreeRejections() (gas: 686839)
[PASS] test_rejectionCooldown_rollingWindowResets() (gas: 828689)
[PASS] test_rejectionCooldown_twoRejectionsDoNotLockOut() (gas: 660307)
[PASS] test_rejectionCooldown_usesGovernedWindow() (gas: 648268)
[PASS] test_removeHashRegional_blocksGlobalRegionEntries() (gas: 46659)
[PASS] test_removeOperator_callsUnEjectOnCapacityBond() (gas: 124913)
[PASS] test_removeOperator_notBlacklisted_stillResyncsLatch() (gas: 72855)
[PASS] test_removeOperator_revertsZeroAddress() (gas: 18534)
[PASS] test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 279491)
[PASS] test_setAppealBond_revertsWithoutGovernanceRole() (gas: 14909)
[PASS] test_setRejectionCooldownWindow_revertsOutOfBounds() (gas: 14035)
[PASS] test_setRejectionCooldownWindow_revertsWithoutGovernanceRole() (gas: 14803)
[PASS] test_setRejectionCooldownWindow_updatesValue() (gas: 20610)
Suite result: ok. 40 passed; 0 failed; 0 skipped; finished in 12.12ms (10.85ms CPU time)

Ran 19 tests for test/DecdnGovernor.t.sol:DecdnGovernorTest
[PASS] test_ageRampMonthsAt_preservesPriorReadAfterLaterPush() (gas: 4048092)
[PASS] test_getVotes_epoch0_slashedOperatorStillZero() (gas: 115645)
[PASS] test_getVotes_halfRamp() (gas: 173643)
[PASS] test_getVotes_historicalSnapshotIgnoresFutureSlash() (gas: 222509)
[PASS] test_getVotes_immuneToCurrentEpochSettlement() (gas: 255319)
[PASS] test_getVotes_inProgressOnlyBytesReadZero() (gas: 181208)
[PASS] test_getVotes_ramp() (gas: 173538)
[PASS] test_getVotes_recoversAfterWindowSlidesPastSlash() (gas: 197564)
[PASS] test_getVotes_slashAtWindowStartBoundary() (gas: 204779)
[PASS] test_getVotes_uncappedWhenBelowCap() (gas: 173505)
[PASS] test_getVotes_zeroBeforeFirstElapsedEpoch() (gas: 80503)
[PASS] test_getVotes_zeroIfNeverBonded() (gas: 93843)
[PASS] test_getVotes_zeroWhenSlashedInWindow() (gas: 119690)
[PASS] test_proposalThreshold_isPointOnePercent() (gas: 72225)
[PASS] test_quorum_isFourPercentOfTotalBytesInWindow() (gas: 72006)
[PASS] test_setAgeRampMonths_revertsWithoutTimelockCaller() (gas: 11080)
[PASS] test_setVoteCapBps_revertsWithoutTimelockCaller() (gas: 11066)
[PASS] test_slash_inCurrentEpoch_doesNotZeroEarlierSnapshot() (gas: 222462)
[PASS] test_voteCapBpsAt_preservesPriorReadAfterLaterPush() (gas: 4048143)
Suite result: ok. 19 passed; 0 failed; 0 skipped; finished in 7.81ms (6.37ms CPU time)

Ran 23 tests for test/DeployProtocol.t.sol:DeployProtocolTest
[PASS] test_assertNoBackDoors_revertsWhenHandoffIncomplete() (gas: 25894763)
[PASS] test_assertNoBackDoors_revertsWhenTimelockMissingRole() (gas: 92251)
[PASS] test_assertPeerRolesWired_revertsWhenSlashJudgeMisbound() (gas: 25997718)
[PASS] test_crossContractWiring_capacityBondPeerRoles() (gas: 23618)
[PASS] test_crossContractWiring_newContractPeerRoles() (gas: 34717)
[PASS] test_crossContractWiring_slashAppealChallengerPool() (gas: 9920)
[PASS] test_deployTargets_revertsOnZeroChallengerIncentivePool() (gas: 2025520)
[PASS] test_deployTargets_revertsOnZeroDeployer() (gas: 580127)
[PASS] test_deployTargets_revertsOnZeroEd25519Verifier() (gas: 2025388)
[PASS] test_deployTargets_revertsOnZeroEmergencyMultisig() (gas: 2025454)
[PASS] test_deployTargets_revertsOnZeroInitialTokenHolder() (gas: 2025542)
[PASS] test_deployTargets_revertsOnZeroUsdc() (gas: 2025326)
[PASS] test_emergencyMultisig_canPauseAndBlockEntrypoint() (gas: 48638)
[PASS] test_feeRouter_launchSharesDormantBuyback() (gas: 16477)
[PASS] test_feeRouter_treasuryIsTimelock() (gas: 10051)
[PASS] test_governor_openExecutor() (gas: 8765)
[PASS] test_governor_timelockBinding() (gas: 25888)
[PASS] test_roleMatrix_deployerHoldsNoRoleAnywhere() (gas: 67210)
[PASS] test_roleMatrix_emergencyMultisigGrants() (gas: 19613)
[PASS] test_roleMatrix_pauserIsEmergencyMultisig() (gas: 45701)
[PASS] test_roleMatrix_timelockHoldsDefaultAdminOnEveryTarget() (gas: 42000)
[PASS] test_roleMatrix_timelockHoldsGovernanceOnEveryTarget() (gas: 42128)
[PASS] test_token_initialHolderHoldsFullSupply() (gas: 13714)
Suite result: ok. 23 passed; 0 failed; 0 skipped; finished in 14.71ms (8.68ms CPU time)

Ran 3 tests for test/E2EProtocol.t.sol:E2EProtocolTest
[PASS] test_deployWiring_newContractsWiredAndHandedOff() (gas: 66902)
[PASS] test_e2e_blacklistEjectsOperator() (gas: 442527)
[PASS] test_e2e_registerSettleSlashEjectAppeal() (gas: 1466311)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 9.18ms (2.73ms 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 81.92ms (81.50ms 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 99.59ms (97.30ms CPU time)

Ran 27 tests for test/PublisherRegistry.t.sol:PublisherRegistryTest
[PASS] testFuzz_createNamespace_idsAreSequentialAndOwned(uint8) (runs: 1024, μ: 719184, ~: 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 862.44ms (861.28ms CPU time)

Ran 17 tests for test/RegionScopeLib.t.sol:RegionScopeLibTest
[PASS] test_effectiveSince_fallbackPicksMax() (gas: 8708)
[PASS] test_effectiveSince_lastChangedWins() (gas: 6030)
[PASS] test_pack_emptyIsZero() (gas: 6081)
[PASS] test_pack_fullSixteenBytesRoundTrips() (gas: 6127)
[PASS] test_pack_masksDirtyTrailingBytes() (gas: 6700)
[PASS] test_pack_matchesLiteralPacking() (gas: 9042)
[PASS] test_pack_oversizedStringTruncatesNoRevert() (gas: 7492)
[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: 7941)
[PASS] test_scopedRegions_prevGlobalNeverApplies() (gas: 7865)
[PASS] test_scopedRegions_serveAfterRipening_prevDropped() (gas: 7745)
[PASS] test_scopedRegions_serveBeforeRegionChange_prevApplies() (gas: 8039)
[PASS] test_scopedRegions_windowBoundaryIsExclusive() (gas: 10842)
Suite result: ok. 17 passed; 0 failed; 0 skipped; finished in 1.13ms (744.92µs CPU time)

Ran 22 tests for test/SlashAppeal.t.sol:SlashAppealTest
[PASS] test_cleanup_fastTrackedLapse_grantsOperatorFavorable() (gas: 449774)
[PASS] test_cleanup_openLapse_upholds() (gas: 467817)
[PASS] test_fastTrack_requiresMultisig() (gas: 479768)
[PASS] test_forceResolveStuckAppeal_resolvesAfterRoleRevoked() (gas: 516354)
[PASS] test_forceResolveStuckAppeal_revertsWhenNotAppealOpen() (gas: 315264)
[PASS] test_forceResolveStuckAppeal_revertsWithoutGovernanceRole() (gas: 482823)
[PASS] test_frequencyCap_blocksSecondAppealWithinWindow() (gas: 600202)
[PASS] test_grant_newerAppeal_fallsBackToOlderStandingSlash() (gas: 595496)
[PASS] test_grant_olderAppeal_preservesNewerSlashZeroOut() (gas: 594915)
[PASS] test_grant_refundsOperatorAndBondAndClearsZeroOut() (gas: 457606)
[PASS] test_grant_requiresGovernance() (gas: 490263)
[PASS] test_grant_revertsIfNotFastTracked() (gas: 482037)
[PASS] test_open_locksEscrowAndPullsBond() (gas: 485848)
[PASS] test_open_revertsAfterFilingWindow() (gas: 476668)
[PASS] test_open_revertsForNonOperator() (gas: 490621)
[PASS] test_open_revertsOnDoubleAppeal() (gas: 481701)
[PASS] test_open_revertsUnknownSlash() (gas: 23799)
[PASS] test_pause_extendsFilingWindow() (gas: 403404)
[PASS] test_reject_burnsBondAndDistributesEscrow() (gas: 473523)
[PASS] test_slashAppealPause_extendsCapacityBondFilingWindow() (gas: 551258)
[PASS] test_uphold_distributesEscrowAndSplitsBond() (gas: 509943)
[PASS] test_uphold_poolUnset_burnsFullBond() (gas: 2244382)
Suite result: ok. 22 passed; 0 failed; 0 skipped; finished in 12.21ms (10.54ms CPU time)

Ran 49 tests for test/SlashJudge.t.sol:SlashJudgeTest
[PASS] test_blacklist_globalAfterResponse_rescuedByRegionalLeg() (gas: 263951)
[PASS] test_blacklist_globalAndRegionalBothAfterResponse_revertsBlacklistAfter() (gas: 140673)
[PASS] test_blacklist_honestRelocator_currentLegSlashesAccepted() (gas: 280931)
[PASS] test_blacklist_multiChangeResidual_serveTimeRegionUnrecoverable() (gas: 165241)
[PASS] test_blacklist_neverChangedFallback_revertsAfterMaxBondGateWindow() (gas: 183607)
[PASS] test_blacklist_neverChangedFallback_ripensFromMaxBondGate() (gas: 309086)
[PASS] test_blacklist_revertsOnHashMismatch() (gas: 68314)
[PASS] test_blacklist_revertsPrevRegionAfterWindow() (gas: 160783)
[PASS] test_blacklist_revertsRegionalEntryAfterResponse() (gas: 118789)
[PASS] test_blacklist_revertsWhenBlacklistedAfterResponse() (gas: 89939)
[PASS] test_blacklist_revertsWhenNotBlacklisted() (gas: 66076)
[PASS] test_blacklist_revertsWhenSuspended() (gas: 89455)
[PASS] test_blacklist_serveTimeWindow_stalledChallengeStillSlashes() (gas: 288455)
[PASS] test_blacklist_slashesOnCurrentRegionEntry() (gas: 242583)
[PASS] test_blacklist_slashesOnPrevRegionInsideWindow() (gas: 286212)
[PASS] test_blacklist_slashesOnProbeResponse() (gas: 197265)
[PASS] test_blacklist_slashesOnStreamResponse() (gas: 198062)
[PASS] test_blacklist_suspendedRegionalEntryDoesNotSlash() (gas: 118688)
[PASS] test_blacklist_unrelatedRegionEntryDoesNotSlash() (gas: 120686)
[PASS] test_commit_blockedWhilePaused() (gas: 40081)
[PASS] test_commit_emitsEvent() (gas: 38289)
[PASS] test_commit_overwritesExpiredCommitment() (gas: 183973)
[PASS] test_commit_revertsOnDuplicate() (gas: 44867)
[PASS] test_commit_revertsOnDuplicateWhileLive() (gas: 39233)
[PASS] test_constructor_revertsWhenEvidenceAgeExceedsUnbonding() (gas: 723277)
[PASS] test_pause_blocksChallenges() (gas: 58549)
[PASS] test_phantom_revertsOnBadProbeSignature() (gas: 46660)
[PASS] test_phantom_revertsOnEvidenceReplay() (gas: 216775)
[PASS] test_phantom_revertsOnFutureEvidence() (gas: 47480)
[PASS] test_phantom_revertsOnNodeIdMismatch() (gas: 37658)
[PASS] test_phantom_revertsOnStaleEvidence() (gas: 49817)
[PASS] test_phantom_revertsOnUnregisteredNode() (gas: 38989)
[PASS] test_phantom_revertsOutsideTimestampWindow() (gas: 49510)
[PASS] test_phantom_revertsWhenStreamOk() (gas: 53518)
[PASS] test_phantom_slashesAndRoundTripsBond() (gas: 187541)
[PASS] test_rate_revertsWhenNotHigher() (gas: 53581)
[PASS] test_rate_slashesWhenStreamRateHigher() (gas: 180127)
[PASS] test_reveal_blindRaceFirstRevealWins() (gas: 219540)
[PASS] test_reveal_consumesCommitment() (gas: 202006)
[PASS] test_reveal_revertsAfterWindow() (gas: 81779)
[PASS] test_reveal_revertsBeforeDelay() (gas: 81814)
[PASS] test_reveal_revertsForDifferentSalt() (gas: 83143)
[PASS] test_reveal_revertsForWrongChallenger() (gas: 83145)
[PASS] test_reveal_revertsWithoutCommit() (gas: 56261)
[PASS] test_reveal_succeedsAtExactExpiryBoundary() (gas: 179879)
[PASS] test_reveal_succeedsAtExactReadyBoundary() (gas: 179922)
[PASS] test_setChallengeBond_enforcesBounds() (gas: 24689)
[PASS] test_setMaxEvidenceAge_enforcesBoundsAndInvariant() (gas: 39960)
[PASS] test_setters_onlyGovernance() (gas: 13783)
Suite result: ok. 49 passed; 0 failed; 0 skipped; finished in 33.87ms (32.44ms CPU time)

Ran 44 tests for test/TestnetFaucet.t.sol:TestnetFaucetTest
[PASS] testFuzz_claim_atOrAboveCooldown(uint256) (runs: 1024, μ: 91487, ~: 91528)
[PASS] testFuzz_claim_belowCooldown(uint256) (runs: 1024, μ: 85180, ~: 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 284.38ms (282.55ms CPU time)

Ran 10 tests for test/Token.t.sol:TokenTest
[PASS] testFuzz_burn_reducesSupplyByExactAmount(uint256) (runs: 1024, μ: 27802, ~: 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 92.49ms (91.89ms CPU time)

Ran 96 tests for test/PaymentChannel.t.sol:PaymentChannelTest
[PASS] testFuzz_deferredSettlements_pageMatchesFullEnumerationSlice(uint256,uint256) (runs: 1024, μ: 1746241, ~: 1746030)
[PASS] testFuzz_rateFloor_revertIffBelowFloor(uint256,uint256) (runs: 1024, μ: 276780, ~: 297749)
[PASS] testFuzz_settle_refundEqualsDepositMinusClaimed(uint256,uint256) (runs: 1024, μ: 421629, ~: 421726)
[PASS] testFuzz_withdrawThenSettle_partitionsClaim(uint256,uint256,uint256,uint256) (runs: 1024, μ: 560908, ~: 561334)
[PASS] test_close_afterWithdraw_settleRoutesRemainderOnly() (gas: 553429)
[PASS] test_close_atWatermarkNonce_succeeds() (gas: 482473)
[PASS] test_close_revertsAfterExpiry() (gas: 211275)
[PASS] test_close_revertsOnAmountExceedingDeposit() (gas: 223254)
[PASS] test_close_revertsOnByteOnlyAdvance() (gas: 475407)
[PASS] test_close_then_settle_routesAndRefunds() (gas: 431589)
[PASS] test_close_thirdPartyCannotClose() (gas: 213150)
[PASS] test_constructor_revertsOnDisputeWindowOutOfBounds() (gas: 80983)
[PASS] test_constructor_revertsOnEoaFeeRouter() (gas: 78033)
[PASS] test_constructor_revertsOnRouterMissingPausedView() (gas: 140757)
[PASS] test_constructor_revertsOnZeroAdmin() (gas: 72859)
[PASS] test_cooperativeClose_afterFullWithdraw_refundsClientNoRoute() (gas: 475512)
[PASS] test_cooperativeClose_eitherPartyMaySubmit() (gas: 416774)
[PASS] test_cooperativeClose_onlyParty() (gas: 215470)
[PASS] test_cooperativeClose_revertsOnBadClientSig() (gas: 218046)
[PASS] test_cooperativeClose_revertsOnBadProviderWaiver() (gas: 225351)
[PASS] test_cooperativeClose_revertsOnWrongTypehashWaiver() (gas: 225337)
[PASS] test_cooperativeClose_revertsWhenNotOpen() (gas: 301973)
[PASS] test_cooperativeClose_routerPaused_revertsThenSucceedsAfterUnpause() (gas: 566342)
[PASS] test_cooperativeClose_settlesImmediatelyNoWindow() (gas: 425564)
[PASS] test_cooperativeClose_staleWaiverCannotUnderSettle() (gas: 480805)
[PASS] test_deferredSettlementCount_unchangedOnZeroAmountSettle() (gas: 237060)
[PASS] test_deferredSettlements_clearedAfterFlush() (gas: 449589)
[PASS] test_deferredSettlements_enumeratesPendingId() (gas: 404954)
[PASS] test_deferredSettlements_maxLimitFromNonZeroOffsetClampsNoOverflow() (gas: 944435)
[PASS] test_deferredSettlements_maxLimitFromZeroReturnsFullSet() (gas: 404018)
[PASS] test_deferredSettlements_multipleDeferrals_selectiveFlush() (gas: 1022659)
[PASS] test_deferredSettlements_pageContentsPartitionTheSetAcrossOffsets() (gas: 944753)
[PASS] test_deferredSettlements_paginationBoundaries() (gas: 949805)
[PASS] test_dispute_higherNonceWins() (gas: 312556)
[PASS] test_dispute_revertsAfterDeadline() (gas: 299830)
[PASS] test_dispute_revertsOnAmountExceedingDeposit() (gas: 307801)
[PASS] test_dispute_revertsOnAmountRegression() (gas: 307389)
[PASS] test_dispute_revertsOnByteOnlyAdvance() (gas: 494151)
[PASS] test_dispute_revertsOnBytesRegression() (gas: 307527)
[PASS] test_dispute_revertsOnStaleNonce() (gas: 304859)
[PASS] test_flushDeferredSettlement_afterRouterRepoint_routesToNewRouter() (gas: 783674)
[PASS] test_flushDeferredSettlement_notDeferred_reverts() (gas: 422461)
[PASS] test_flushDeferredSettlement_partialWithdraw_routesRemainderOnly() (gas: 584816)
[PASS] test_flushDeferredSettlement_routesAfterUnpause() (gas: 458900)
[PASS] test_flushDeferredSettlement_stillPaused_revertsAndStaysDeferred() (gas: 476138)
[PASS] test_forcedInclusion_doesNotExtendTwice() (gas: 3481682)
[PASS] test_forcedInclusion_extendsDeadlineOnce() (gas: 3458676)
[PASS] test_forcedInclusion_noExtendWhenAmpleTimeRemains() (gas: 3467148)
[PASS] test_getRateBounds_returnsConfigured() (gas: 9935)
[PASS] test_normalDispute_doesNotExtend() (gas: 322474)
[PASS] test_openChannel_derivesIdAndIncrementsNonce() (gas: 221502)
[PASS] test_openChannel_distinctIdsAcrossProviders() (gas: 351392)
[PASS] test_openChannel_revertsBelowMinDeposit() (gas: 23033)
[PASS] test_openChannel_revertsOnInactiveProvider() (gas: 29741)
[PASS] test_openChannel_revertsWhenPaused() (gas: 47509)
[PASS] test_paused_exitsStillCallable() (gas: 677899)
[PASS] test_rateFloor_boundaryExact() (gas: 442064)
[PASS] test_rateFloor_dispute_revertsOnInflatedBytes() (gas: 306227)
[PASS] test_rateFloor_governanceRaisingFloorRejects() (gas: 449145)
[PASS] test_rateFloor_honestPathUnaffected() (gas: 442695)
[PASS] test_rateFloor_revertsOnMaxBytesAttack() (gas: 225546)
[PASS] test_rateFloor_routedBytesBoundedByPaidAmount() (gas: 419648)
[PASS] test_rateFloor_truncatesDownAtNonUnitFloor() (gas: 454453)
[PASS] test_rateFloor_withdraw_revertsOnInflatedBytes() (gas: 225277)
[PASS] test_reclaimExpired_refundsRemainderToClient() (gas: 456870)
[PASS] test_reclaimExpired_revertsBeforeExpiry() (gas: 206191)
[PASS] test_route_zeroesResidualAllowanceAfterUnderPull() (gas: 543618)
[PASS] test_setDisputeWindow_enforcesBounds() (gas: 24926)
[PASS] test_setFeeRouter_revertsOnEoaRouter() (gas: 18748)
[PASS] test_setFeeRouter_revertsOnNonBooleanPausedReturn() (gas: 87704)
[PASS] test_setFeeRouter_revertsOnRouterMissingPausedView() (gas: 81431)
[PASS] test_setFeeRouter_revertsOnZeroAndUnchanged() (gas: 27829)
[PASS] test_setFeeRouter_updatesTarget() (gas: 338664)
[PASS] test_setters_onlyGovernance() (gas: 13955)
[PASS] test_settle_amountEqualsDeposit_zeroRefund() (gas: 416486)
[PASS] test_settle_deferred_channelIsClosed_cannotResettleOrDispute() (gas: 412835)
[PASS] test_settle_fullyWithdrawn_noRouterCall() (gas: 478342)
[PASS] test_settle_revertsBeforeDisputeDeadline() (gas: 297025)
[PASS] test_settle_routerPaused_refundsClientAndDefersProviderLeg() (gas: 416668)
[PASS] test_settle_routerPaused_zeroProviderAmount_noDeferral() (gas: 244635)
[PASS] test_topUp_increasesDeposit() (gas: 226666)
[PASS] test_topUp_onlyClient() (gas: 206622)
[PASS] test_topUp_revertsWhenPaused() (gas: 233132)
[PASS] test_voucher_rejectedOnWrongChannelId() (gas: 340045)
[PASS] test_withdraw_acceptsErc1271Signature() (gas: 722003)
[PASS] test_withdraw_onlyProvider() (gas: 210992)
[PASS] test_withdraw_revertsOnAmountExceedingDeposit() (gas: 222991)
[PASS] test_withdraw_revertsOnBadSignature() (gas: 215847)
[PASS] test_withdraw_revertsOnBytesRegression() (gas: 473945)
[PASS] test_withdraw_revertsOnNonMonotonicNonce() (gas: 473664)
[PASS] test_withdraw_revertsWhenDeltaZero() (gas: 474665)
[PASS] test_withdraw_routerPaused_revertsThenSucceedsAfterUnpause() (gas: 630764)
[PASS] test_withdraw_routesDeltaAndAdvancesWatermark() (gas: 470132)
[PASS] test_withdraw_secondWithdrawRoutesOnlyIncrement() (gas: 560035)
[PASS] test_zeroVoucherClose_disabledAfterWithdraw() (gas: 467654)
[PASS] test_zeroVoucherClose_refundsFullDeposit() (gas: 218540)
Suite result: ok. 96 passed; 0 failed; 0 skipped; finished in 3.75s (3.80s CPU time)

Ran 22 test suites in 3.98s (5.74s CPU time): 629 tests passed, 0 failed, 0 skipped (629 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_bondRequired_matchesAdrWorkedExamples() (gas: 29446 → 29446 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_revertsBelowFloor() (gas: 17906 → 17906 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_activeOnly() (gas: 855 → 855 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_remainderClip() (gas: 1090 → 1090 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_unbondingOnly() (gas: 995 → 995 | 0 0.000%)
━ CapacityBondTest::test_setAlpha_updatesCurveAndEmits() (gas: 33865 → 33865 | 0 0.000%)
━ CapacityBondTest::test_setCapacity_onlyGovernance() (gas: 19589 → 19589 | 0 0.000%)
━ CapacityBondTest::test_setMinCapacity_acceptsInclusiveBounds() (gas: 24470 → 24470 | 0 0.000%)
━ CapacityBondTest::test_setRegionStabilityWindow_revertsWithoutRole() (gas: 14910 → 14910 | 0 0.000%)
━ CapacityBondTest::test_setUnbondingPeriod_revertsWhenEqualToEvidenceAge() (gas: 127580 → 127580 | 0 0.000%)
━ CapacityBondTest::test_setUnbondingPeriod_succeedsAboveEvidenceAge() (gas: 129157 → 129157 | 0 0.000%)
━ CapacityBondRegionE2ETest::test_registerNode_corruptEd25519Signature_reverts() (gas: 640718 → 640718 | 0 0.000%)
━ CapacityBondRegionE2ETest::test_registerNode_realEd25519Signature_succeeds() (gas: 851232 → 851232 | 0 0.000%)
━ CapacityBondRegionE2ETest::test_registerNode_replayAfterNonceBump_reverts() (gas: 1321783 → 1321783 | 0 0.000%)
━ CapacityBondRegionE2ETest::test_updateRegion_cooldownPrevSnapshotAndEvent() (gas: 922773 → 922773 | 0 0.000%)
━ ContentBlacklistTest::test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16287 → 16287 | 0 0.000%)
━ DecdnGovernorTest::test_setVoteCapBps_revertsWithoutTimelockCaller() (gas: 11066 → 11066 | 0 0.000%)
━ DeployProtocolTest::test_assertNoBackDoors_revertsWhenTimelockMissingRole() (gas: 92251 → 92251 | 0 0.000%)
━ DeployProtocolTest::test_crossContractWiring_slashAppealChallengerPool() (gas: 9920 → 9920 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroChallengerIncentivePool() (gas: 2025520 → 2025520 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroDeployer() (gas: 580127 → 580127 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroEd25519Verifier() (gas: 2025388 → 2025388 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroEmergencyMultisig() (gas: 2025454 → 2025454 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroInitialTokenHolder() (gas: 2025542 → 2025542 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroUsdc() (gas: 2025326 → 2025326 | 0 0.000%)
━ DeployProtocolTest::test_emergencyMultisig_canPauseAndBlockEntrypoint() (gas: 48638 → 48638 | 0 0.000%)
━ DeployProtocolTest::test_feeRouter_launchSharesDormantBuyback() (gas: 16477 → 16477 | 0 0.000%)
━ DeployProtocolTest::test_feeRouter_treasuryIsTimelock() (gas: 10051 → 10051 | 0 0.000%)
━ DeployProtocolTest::test_governor_openExecutor() (gas: 8765 → 8765 | 0 0.000%)
━ DeployProtocolTest::test_governor_timelockBinding() (gas: 25888 → 25888 | 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: 9912 → 9912 | 0 0.000%)
━ InterfaceFreezeTest::test_originAssignment_abiFrozen() (gas: 1298 → 1298 | 0 0.000%)
━ InterfaceFreezeTest::test_paymentChannel_abiFrozen() (gas: 1540 → 1540 | 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::test_openChannel_revertsBelowMinDeposit() (gas: 23033 → 23033 | 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%)
━ RegionScopeLibTest::test_effectiveSince_fallbackPicksMax() (gas: 8708 → 8708 | 0 0.000%)
━ RegionScopeLibTest::test_pack_fullSixteenBytesRoundTrips() (gas: 6127 → 6127 | 0 0.000%)
━ RegionScopeLibTest::test_pack_masksDirtyTrailingBytes() (gas: 6700 → 6700 | 0 0.000%)
━ RegionScopeLibTest::test_pack_matchesLiteralPacking() (gas: 9042 → 9042 | 0 0.000%)
━ RegionScopeLibTest::test_scopedRegions_currentGlobalZeroedOut() (gas: 7594 → 7594 | 0 0.000%)
━ RegionScopeLibTest::test_scopedRegions_currentOnly_afterWindow() (gas: 7854 → 7854 | 0 0.000%)
━ RegionScopeLibTest::test_scopedRegions_effectiveInFutureDoesNotUnderflow() (gas: 7873 → 7873 | 0 0.000%)
━ RegionScopeLibTest::test_scopedRegions_emptyPrevNeverApplies() (gas: 7969 → 7969 | 0 0.000%)
━ RegionScopeLibTest::test_scopedRegions_prevAppliesInWindow() (gas: 8237 → 8237 | 0 0.000%)
━ RegionScopeLibTest::test_scopedRegions_windowBoundaryIsExclusive() (gas: 10842 → 10842 | 0 0.000%)
━ SlashAppealTest::test_open_revertsUnknownSlash() (gas: 23799 → 23799 | 0 0.000%)
━ SlashJudgeTest::test_blacklist_slashesOnProbeResponse() (gas: 197265 → 197265 | 0 0.000%)
━ SlashJudgeTest::test_commit_revertsOnDuplicate() (gas: 44867 → 44867 | 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%)
↑ PaymentChannelTest::test_topUp_onlyClient() (gas: 206621 → 206622 | 1 0.000%)
↑ PaymentChannelTest::test_reclaimExpired_revertsBeforeExpiry() (gas: 206190 → 206191 | 1 0.000%)
↓ CapacityBondTest::test_requestUnbond_allowedWhenNoCapacityDeclared() (gas: 161789 → 161787 | -2 -0.001%)
↑ SlashAppealTest::test_uphold_poolUnset_burnsFullBond() (gas: 2244318 → 2244382 | 64 0.003%)
↑ SlashJudgeTest::test_constructor_revertsWhenEvidenceAgeExceedsUnbonding() (gas: 723249 → 723277 | 28 0.004%)
↓ CapacityBondTest::test_registerNode_succeedsAtCurve() (gas: 415359 → 415337 | -22 -0.005%)
↓ SlashJudgeTest::test_blacklist_slashesOnStreamResponse() (gas: 198073 → 198062 | -11 -0.006%)
↓ SlashJudgeTest::test_phantom_slashesAndRoundTripsBond() (gas: 187552 → 187541 | -11 -0.006%)
↑ SlashJudgeTest::test_rate_slashesWhenStreamRateHigher() (gas: 180116 → 180127 | 11 0.006%)
↓ SlashJudgeTest::test_reveal_succeedsAtExactReadyBoundary() (gas: 179933 → 179922 | -11 -0.006%)
↓ PaymentChannelTest::test_openChannel_distinctIdsAcrossProviders() (gas: 351414 → 351392 | -22 -0.006%)
↓ CapacityBondTest::test_finalizeUnappealedSlash_distributes5050() (gas: 351485 → 351462 | -23 -0.007%)
↓ CapacityBondTest::test_slash_doesNotEnforceCurve() (gas: 357612 → 357588 | -24 -0.007%)
↑ SlashAppealTest::test_frequencyCap_blocksSecondAppealWithinWindow() (gas: 600160 → 600202 | 42 0.007%)
↑ SlashAppealTest::test_slashAppealPause_extendsCapacityBondFilingWindow() (gas: 551216 → 551258 | 42 0.008%)
↑ SlashAppealTest::test_uphold_distributesEscrowAndSplitsBond() (gas: 509901 → 509943 | 42 0.008%)
↑ CapacityBondTest::test_registerNode_revertsWhenAlreadyActive() (gas: 387509 → 387542 | 33 0.009%)
↑ SlashAppealTest::test_open_revertsForNonOperator() (gas: 490579 → 490621 | 42 0.009%)
↑ SlashAppealTest::test_grant_requiresGovernance() (gas: 490221 → 490263 | 42 0.009%)
↑ SlashAppealTest::test_open_locksEscrowAndPullsBond() (gas: 485806 → 485848 | 42 0.009%)
↑ SlashAppealTest::test_forceResolveStuckAppeal_revertsWithoutGovernanceRole() (gas: 482781 → 482823 | 42 0.009%)
↑ SlashAppealTest::test_grant_revertsIfNotFastTracked() (gas: 481995 → 482037 | 42 0.009%)
↑ SlashAppealTest::test_open_revertsOnDoubleAppeal() (gas: 481659 → 481701 | 42 0.009%)
↑ SlashAppealTest::test_fastTrack_requiresMultisig() (gas: 479726 → 479768 | 42 0.009%)
↑ SlashAppealTest::test_open_revertsAfterFilingWindow() (gas: 476626 → 476668 | 42 0.009%)
↑ SlashAppealTest::test_reject_burnsBondAndDistributesEscrow() (gas: 473481 → 473523 | 42 0.009%)
↑ SlashAppealTest::test_cleanup_openLapse_upholds() (gas: 467775 → 467817 | 42 0.009%)
↓ PaymentChannelTest::test_openChannel_derivesIdAndIncrementsNonce() (gas: 221523 → 221502 | -21 -0.009%)
↑ SlashAppealTest::test_pause_extendsFilingWindow() (gas: 403362 → 403404 | 42 0.010%)
↓ SlashJudgeTest::test_reveal_consumesCommitment() (gas: 202028 → 202006 | -22 -0.011%)
↑ CapacityBondTest::test_declareMbps_acceptsFloorAndCeiling() (gas: 161150 → 161168 | 18 0.011%)
↑ SlashAppealTest::test_forceResolveStuckAppeal_resolvesAfterRoleRevoked() (gas: 516290 → 516354 | 64 0.012%)
↑ CapacityBondTest::test_markAppealOpen_blocksFinalize() (gas: 322484 → 322526 | 42 0.013%)
↓ SlashJudgeTest::test_reveal_revertsForWrongChallenger() (gas: 83156 → 83145 | -11 -0.013%)
↓ SlashJudgeTest::test_reveal_revertsForDifferentSalt() (gas: 83154 → 83143 | -11 -0.013%)
↑ SlashAppealTest::test_forceResolveStuckAppeal_revertsWhenNotAppealOpen() (gas: 315222 → 315264 | 42 0.013%)
↓ CapacityBondTest::test_slash_stampsSlashedAtEpoch() (gas: 309822 → 309775 | -47 -0.015%)
↓ SlashAppealTest::test_cleanup_fastTrackedLapse_grantsOperatorFavorable() (gas: 449843 → 449774 | -69 -0.015%)
↑ SlashJudgeTest::test_reveal_blindRaceFirstRevealWins() (gas: 219505 → 219540 | 35 0.016%)
↓ SlashJudgeTest::test_phantom_revertsOnEvidenceReplay() (gas: 216810 → 216775 | -35 -0.016%)
↑ CapacityBondTest::test_setUnbondingPeriod_sameValueRejectedAfterWiring() (gas: 131695 → 131717 | 22 0.017%)
↓ SlashJudgeTest::test_reveal_succeedsAtExactExpiryBoundary() (gas: 179912 → 179879 | -33 -0.018%)
↑ SlashJudgeTest::test_commit_overwritesExpiredCommitment() (gas: 183939 → 183973 | 34 0.018%)
↑ CapacityBondTest::test_settleAppealUpheld_distributes5050() (gas: 343719 → 343783 | 64 0.019%)
↓ PaymentChannelTest::test_topUp_increasesDeposit() (gas: 226710 → 226666 | -44 -0.019%)
↑ CapacityBondTest::test_registerNode_revertsWhenBondBelowCurve() (gas: 207178 → 207219 | 41 0.020%)
↑ CapacityBondTest::test_slash_escrowsWithoutDistribution() (gas: 320954 → 321018 | 64 0.020%)
↑ CapacityBondTest::test_slash_tierEscalation_15then50pct() (gas: 536526 → 536634 | 108 0.020%)
↓ SlashJudgeTest::test_rate_revertsWhenNotHigher() (gas: 53592 → 53581 | -11 -0.021%)
↓ ContentBlacklistTest::test_addOperator_callsEjectOnCapacityBond() (gas: 94055 → 94035 | -20 -0.021%)
↑ CapacityBondTest::test_registerNode_revertsOnInvalidEd25519Sig() (gas: 178947 → 178986 | 39 0.022%)
↓ SlashJudgeTest::test_phantom_revertsOnStaleEvidence() (gas: 49828 → 49817 | -11 -0.022%)
↑ CapacityBondTest::test_slash_tier3_mixedBond_exhaustsActiveTapsUnbonding() (gas: 588759 → 588890 | 131 0.022%)
↑ CapacityBondTest::test_setSlashJudge_rejectsJudgeViolatingInvariant() (gas: 95771 → 95793 | 22 0.023%)
↓ CapacityBondTest::test_unpause_revertsWithoutRole() (gas: 94656 → 94634 | -22 -0.023%)
↑ CapacityBondTest::test_regionScopeData_returnsRegisteredNodeInputs() (gas: 425411 → 425511 | 100 0.024%)
↓ SlashJudgeTest::test_phantom_revertsOnBadProbeSignature() (gas: 46671 → 46660 | -11 -0.024%)
↑ CapacityBondTest::test_setMinCapacity_updatesBandAndEmits() (gas: 166782 → 166823 | 41 0.025%)
↑ PaymentChannelTest::test_withdraw_onlyProvider() (gas: 210927 → 210992 | 65 0.031%)
↑ CapacityBondTest::test_declareMbps_revertsWhenBondBelowCurve() (gas: 131717 → 131759 | 42 0.032%)
↓ CapacityBondTest::test_declareMbps_succeedsExactlyAtCurve() (gas: 147212 → 147165 | -47 -0.032%)
↑ SlashJudgeTest::test_blacklist_slashesOnPrevRegionInsideWindow() (gas: 286119 → 286212 | 93 0.033%)
↓ CapacityBondTest::test_setUnbondingPeriod_revertsWhenBelowEvidenceAge() (gas: 127571 → 127527 | -44 -0.034%)
↑ CapacityBondTest::test_setUnbondingPeriod_floorWithLowEvidenceAgeSucceeds() (gas: 126302 → 126346 | 44 0.035%)
↑ CapacityBondTest::test_slashId_persistsRecord() (gas: 309975 → 310083 | 108 0.035%)
↑ SlashJudgeTest::test_blacklist_globalAfterResponse_rescuedByRegionalLeg() (gas: 263858 → 263951 | 93 0.035%)
↑ CapacityBondTest::test_setUnbondingPeriod_boundStillEnforcedWithJudge() (gas: 126551 → 126596 | 45 0.036%)
↑ SlashJudgeTest::test_blacklist_neverChangedFallback_ripensFromMaxBondGate() (gas: 308971 → 309086 | 115 0.037%)
↓ SlashAppealTest::test_grant_refundsOperatorAndBondAndClearsZeroOut() (gas: 457786 → 457606 | -180 -0.039%)
↑ CapacityBondTest::test_requestUnbond_revertsWhenItDropsBelowCurve() (gas: 160195 → 160258 | 63 0.039%)
↓ SlashJudgeTest::test_reveal_revertsAfterWindow() (gas: 81812 → 81779 | -33 -0.040%)
↑ CapacityBondTest::test_requestUnbond_succeedsDownToExactlyCurve() (gas: 206474 → 206559 | 85 0.041%)
↑ CapacityBondTest::test_declaredMbps_storesValue() (gas: 147168 → 147231 | 63 0.043%)
↓ CapacityBondTest::test_setSlashJudge_rewireEmitsPreviousJudgeAsOld() (gas: 204887 → 204799 | -88 -0.043%)
↓ CapacityBondTest::test_settleAppealGranted_reverseMiddleSlash_keepsNewest() (gas: 567558 → 567312 | -246 -0.043%)
↑ PaymentChannelTest::test_voucher_rejectedOnWrongChannelId() (gas: 339891 → 340045 | 154 0.045%)
↑ PaymentChannelTest::test_topUp_revertsWhenPaused() (gas: 233022 → 233132 | 110 0.047%)
↓ SlashJudgeTest::test_blacklist_revertsOnHashMismatch() (gas: 68347 → 68314 | -33 -0.048%)
↓ SlashAppealTest::test_grant_newerAppeal_fallsBackToOlderStandingSlash() (gas: 595787 → 595496 | -291 -0.049%)
↓ SlashAppealTest::test_grant_olderAppeal_preservesNewerSlashZeroOut() (gas: 595206 → 594915 | -291 -0.049%)
↑ PaymentChannelTest::test_withdraw_revertsOnAmountExceedingDeposit() (gas: 222881 → 222991 | 110 0.049%)
↑ ContentBlacklistTest::test_isHashBlacklistedForOperator_global() (gas: 42764 → 42786 | 22 0.051%)
↑ DeployProtocolTest::test_roleMatrix_timelockHoldsGovernanceOnEveryTarget() (gas: 42106 → 42128 | 22 0.052%)
↑ DeployProtocolTest::test_roleMatrix_timelockHoldsDefaultAdminOnEveryTarget() (gas: 41978 → 42000 | 22 0.052%)
↑ ContentBlacklistTest::test_isHashBlacklistedForOperator_prevRegionWindow() (gas: 144877 → 144953 | 76 0.052%)
↑ CapacityBondTest::test_declareMbps_emitsOldAndNewValue() (gas: 158233 → 158318 | 85 0.054%)
↓ CapacityBondTest::test_setSlashJudge_acceptsJudgeSatisfyingInvariant() (gas: 119563 → 119498 | -65 -0.054%)
↓ CapacityBondTest::test_slash_zeroBondOperator_mintsZeroAmountRecordNoOpsAtFinality() (gas: 242613 → 242480 | -133 -0.055%)
↓ SlashJudgeTest::test_setMaxEvidenceAge_enforcesBoundsAndInvariant() (gas: 39982 → 39960 | -22 -0.055%)
↓ SlashJudgeTest::test_commit_revertsOnDuplicateWhileLive() (gas: 39255 → 39233 | -22 -0.056%)
↓ SlashJudgeTest::test_pause_blocksChallenges() (gas: 58582 → 58549 | -33 -0.056%)
↓ SlashJudgeTest::test_commit_emitsEvent() (gas: 38311 → 38289 | -22 -0.057%)
↓ SlashJudgeTest::test_reveal_revertsWithoutCommit() (gas: 56294 → 56261 | -33 -0.059%)
↑ PaymentChannelTest::test_close_revertsOnAmountExceedingDeposit() (gas: 223121 → 223254 | 133 0.060%)
↑ PaymentChannelTest::test_withdraw_revertsOnBadSignature() (gas: 215715 → 215847 | 132 0.061%)
↓ SlashJudgeTest::test_phantom_revertsWhenStreamOk() (gas: 53551 → 53518 | -33 -0.062%)
↑ CapacityBondTest::test_setK_updatesCurveAndEmits() (gas: 35537 → 35559 | 22 0.062%)
↑ PaymentChannelTest::test_close_thirdPartyCannotClose() (gas: 213018 → 213150 | 132 0.062%)
↑ CapacityBondTest::test_firstBondedAt_setsOnFirstBond() (gas: 102425 → 102489 | 64 0.062%)
↑ SlashJudgeTest::test_blacklist_neverChangedFallback_revertsAfterMaxBondGateWindow() (gas: 183492 → 183607 | 115 0.063%)
↑ DeployProtocolTest::test_crossContractWiring_newContractPeerRoles() (gas: 34695 → 34717 | 22 0.063%)
↑ E2EProtocolTest::test_deployWiring_newContractsWiredAndHandedOff() (gas: 66859 → 66902 | 43 0.064%)
↑ DeployProtocolTest::test_roleMatrix_deployerHoldsNoRoleAnywhere() (gas: 67166 → 67210 | 44 0.066%)
↑ SlashJudgeTest::test_blacklist_globalAndRegionalBothAfterResponse_revertsBlacklistAfter() (gas: 140580 → 140673 | 93 0.066%)
↓ SlashJudgeTest::test_phantom_revertsOutsideTimestampWindow() (gas: 49543 → 49510 | -33 -0.067%)
↓ CapacityBondTest::test_settleAppealGranted_clearsAndRefunds() (gas: 298314 → 298112 | -202 -0.068%)
↑ SlashJudgeTest::test_reveal_revertsBeforeDelay() (gas: 81758 → 81814 | 56 0.068%)
↓ CapacityBondTest::test_setSlashJudge_revertsWithoutRole() (gas: 93703 → 93638 | -65 -0.069%)
↑ SlashJudgeTest::test_blacklist_revertsPrevRegionAfterWindow() (gas: 160668 → 160783 | 115 0.072%)
↓ CapacityBondTest::test_setSlashJudge_setsAndEmits() (gas: 121764 → 121676 | -88 -0.072%)
↑ PaymentChannelTest::test_close_revertsAfterExpiry() (gas: 211121 → 211275 | 154 0.073%)
↑ CapacityBondTest::test_setAlpha_revertsWhenGbpsTierOutOfRange() (gas: 29953 → 29975 | 22 0.073%)
↑ SlashJudgeTest::test_blacklist_slashesOnCurrentRegionEntry() (gas: 242401 → 242583 | 182 0.075%)
↑ SlashJudgeTest::test_blacklist_suspendedRegionalEntryDoesNotSlash() (gas: 118595 → 118688 | 93 0.078%)
↑ CapacityBondSlashJudgeInvariantTest::test_realSlashJudge_unbondingAboveEvidenceAge_succeeds() (gas: 27779 → 27801 | 22 0.079%)
↑ ContentBlacklistTest::test_isHashBlacklistedForOperator_neverChangedFallback_ripensFromMaxBondGate() (gas: 166804 → 166938 | 134 0.080%)
↓ SlashJudgeTest::test_phantom_revertsOnUnregisteredNode() (gas: 39022 → 38989 | -33 -0.085%)
↓ CapacityBondTest::test_settleAppealGranted_multiSlash_recomputesThenClears() (gas: 421026 → 420668 | -358 -0.085%)
↑ GovernanceLifecycleTest::test_canary_governanceRoleHandoff() (gas: 99584 → 99672 | 88 0.088%)
↑ CapacityBondTest::test_setMaxCapacity_acceptsInclusiveBounds() (gas: 24803 → 24825 | 22 0.089%)
↓ SlashJudgeTest::test_setChallengeBond_enforcesBounds() (gas: 24711 → 24689 | -22 -0.089%)
↓ CapacityBondTest::test_settleAppealGranted_zeroBondSlash_refundsNothingClearsWatermark() (gas: 223302 → 223102 | -200 -0.090%)
↑ DeployProtocolTest::test_crossContractWiring_capacityBondPeerRoles() (gas: 23596 → 23618 | 22 0.093%)
↑ CapacityBondTest::test_firstBondedAt_immutableAcrossReBonds() (gas: 111315 → 111421 | 106 0.095%)
↑ SlashJudgeTest::test_blacklist_unrelatedRegionEntryDoesNotSlash() (gas: 120571 → 120686 | 115 0.095%)
↑ DeployProtocolTest::test_roleMatrix_pauserIsEmergencyMultisig() (gas: 45657 → 45701 | 44 0.096%)
↑ SlashJudgeTest::test_blacklist_revertsRegionalEntryAfterResponse() (gas: 118674 → 118789 | 115 0.097%)
↓ CapacityBondTest::test_setK_revertsWhenGbpsTierOutOfRange() (gas: 44098 → 44054 | -44 -0.100%)
↓ ContentBlacklistTest::test_addHashRegional_globalTakesPrecedence() (gas: 44265 → 44220 | -45 -0.102%)
↑ CapacityBondSlashJudgeInvariantTest::test_realSlashJudge_unbondingEqualToEvidenceAge_reverts() (gas: 21439 → 21461 | 22 0.103%)
↑ SlashJudgeTest::test_blacklist_revertsWhenBlacklistedAfterResponse() (gas: 89846 → 89939 | 93 0.104%)
↑ PaymentChannelTest::test_zeroVoucherClose_refundsFullDeposit() (gas: 218313 → 218540 | 227 0.104%)
↓ ContentBlacklistTest::test_addHashGlobal_andQuery() (gas: 40498 → 40454 | -44 -0.109%)
↓ CapacityBondTest::test_setCurve_onlyGovernance() (gas: 19603 → 19581 | -22 -0.112%)
↑ DeployProtocolTest::test_roleMatrix_emergencyMultisigGrants() (gas: 19591 → 19613 | 22 0.112%)
↓ CapacityBondTest::test_setKAlpha_orderingMatters() (gas: 56177 → 56111 | -66 -0.117%)
↑ SlashJudgeTest::test_phantom_revertsOnFutureEvidence() (gas: 47424 → 47480 | 56 0.118%)
↑ CapacityBondTest::test_bondRequired_strictlyMonotonic() (gas: 37026 → 37070 | 44 0.119%)
↑ SlashJudgeTest::test_blacklist_revertsWhenSuspended() (gas: 89340 → 89455 | 115 0.129%)
↑ SlashJudgeTest::test_blacklist_revertsWhenNotBlacklisted() (gas: 65983 → 66076 | 93 0.141%)
↑ CapacityBondTest::test_setMaxCapacity_updatesBandAndEmits() (gas: 31150 → 31194 | 44 0.141%)
↓ PaymentChannelTest::test_openChannel_revertsOnInactiveProvider() (gas: 29784 → 29741 | -43 -0.144%)
↑ CapacityBondSlashJudgeInvariantTest::test_realSlashJudge_wiredInSetUp() (gas: 15233 → 15255 | 22 0.144%)
↑ SlashJudgeTest::test_phantom_revertsOnNodeIdMismatch() (gas: 37603 → 37658 | 55 0.146%)
↑ SlashJudgeTest::test_setters_onlyGovernance() (gas: 13761 → 13783 | 22 0.160%)
↑ SlashJudgeTest::test_commit_blockedWhilePaused() (gas: 40017 → 40081 | 64 0.160%)
↑ ContentBlacklistTest::test_isHashBlacklistedForOperator_currentRegion() (gas: 103758 → 103945 | 187 0.180%)
↑ CapacityBondTest::test_setUnbondingPeriod_unwiredAppliesOnlyBound() (gas: 23600 → 23644 | 44 0.186%)
↓ CapacityBondTest::test_capacityBand_defaults() (gas: 10712 → 10690 | -22 -0.205%)
↑ E2EProtocolTest::test_e2e_registerSettleSlashEjectAppeal() (gas: 1463160 → 1466311 | 3151 0.215%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setOriginBlacklist_happy() (gas: 610432 → 611762 | 1330 0.218%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addOperator_outOfBounds() (gas: 602546 → 603896 | 1350 0.224%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addHashGlobal_happy() (gas: 612032 → 613404 | 1372 0.224%)
↑ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setVoteCapBps_outOfBounds() (gas: 636851 → 638290 | 1439 0.226%)
↑ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setAgeRampMonths_outOfBounds() (gas: 636810 → 638249 | 1439 0.226%)
↑ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setVoteCapBps_happy() (gas: 631187 → 632626 | 1439 0.228%)
↑ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setAgeRampMonths_happy() (gas: 631158 → 632597 | 1439 0.228%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setSharesAndDestinations_happy() (gas: 622709 → 624148 | 1439 0.231%)
↑ PaymentChannelTest::test_getRateBounds_returnsConfigured() (gas: 9912 → 9935 | 23 0.232%)
↑ PaymentChannelTest::test_openChannel_revertsWhenPaused() (gas: 47399 → 47509 | 110 0.232%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setWindowEpochs_happy() (gas: 611487 → 612926 | 1439 0.235%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setShares_happy() (gas: 608796 → 610235 | 1439 0.236%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setOriginBlacklist_outOfBounds() (gas: 598176 → 599593 | 1417 0.237%)
↓ CapacityBondTest::test_setAlpha_revertsOutOfBounds() (gas: 18496 → 18452 | -44 -0.238%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setSharesAndDestinations_outOfBounds() (gas: 598342 → 599781 | 1439 0.240%)
↑ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_outOfBounds() (gas: 597692 → 599131 | 1439 0.241%)
↑ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_outOfBounds() (gas: 597650 → 599089 | 1439 0.241%)
↑ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setAppealBond_outOfBounds() (gas: 597607 → 599046 | 1439 0.241%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setWindowEpochs_outOfBounds() (gas: 597515 → 598954 | 1439 0.241%)
↑ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setChallengerIncentivePool_outOfBounds() (gas: 597503 → 598942 | 1439 0.241%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_happy() (gas: 606454 → 607915 | 1461 0.241%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setBuybackBurner_outOfBounds() (gas: 597159 → 598598 | 1439 0.241%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setShares_outOfBounds() (gas: 597139 → 598578 | 1439 0.241%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxCapacityMbps_outOfBounds() (gas: 595306 → 596745 | 1439 0.242%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxMultiaddrSize_outOfBounds() (gas: 595243 → 596682 | 1439 0.242%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinBond_outOfBounds() (gas: 595196 → 596635 | 1439 0.242%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setRegionStabilityWindow_outOfBounds() (gas: 595175 → 596614 | 1439 0.242%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setUnbondingPeriod_outOfBounds() (gas: 595157 → 596596 | 1439 0.242%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinCapacityMbps_outOfBounds() (gas: 595129 → 596568 | 1439 0.242%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setTreasury_outOfBounds() (gas: 594991 → 596430 | 1439 0.242%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_registerRegionalBody_happy() (gas: 611233 → 612716 | 1483 0.243%)
↑ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setChallengerIncentivePool_happy() (gas: 592230 → 593669 | 1439 0.243%)
↑ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_happy() (gas: 592072 → 593511 | 1439 0.243%)
↑ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_happy() (gas: 591966 → 593405 | 1439 0.243%)
↑ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setAppealBond_happy() (gas: 591740 → 593179 | 1439 0.243%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeHashGlobal_outOfBounds() (gas: 599882 → 601343 | 1461 0.244%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setTreasury_happy() (gas: 589782 → 591221 | 1439 0.244%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setBuybackBurner_happy() (gas: 589746 → 591185 | 1439 0.244%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxCapacityMbps_happy() (gas: 589468 → 590907 | 1439 0.244%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinCapacityMbps_happy() (gas: 589334 → 590773 | 1439 0.244%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinBond_happy() (gas: 589314 → 590753 | 1439 0.244%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setRegionStabilityWindow_happy() (gas: 589292 → 590731 | 1439 0.244%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addHashGlobal_outOfBounds() (gas: 597356 → 598817 | 1461 0.245%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setUnbondingPeriod_happy() (gas: 596831 → 598292 | 1461 0.245%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_outOfBounds() (gas: 595214 → 596675 | 1461 0.245%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxMultiaddrSize_happy() (gas: 589334 → 590795 | 1461 0.248%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setAppealBond_outOfBounds() (gas: 597677 → 599160 | 1483 0.248%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setAppealBond_happy() (gas: 591845 → 593362 | 1517 0.256%)
↑ CapacityBondTest::test_escrowHooks_requireSlashAppealRole() (gas: 16929 → 16973 | 44 0.260%)
↑ DecdnGovernorTest::test_getVotes_zeroIfNeverBonded() (gas: 93593 → 93843 | 250 0.267%)
↓ CapacityBondTest::test_updateRegion_revertsWhenNodeNotActive() (gas: 15781 → 15738 | -43 -0.272%)
↓ RegionScopeLibTest::test_scopedRegions_prevEqualsCurrentDeduped() (gas: 7963 → 7941 | -22 -0.276%)
↓ RegionScopeLibTest::test_scopedRegions_prevGlobalNeverApplies() (gas: 7887 → 7865 | -22 -0.279%)
↑ CapacityBondTest::test_updateMultiaddrs_revertsWhenNodeNotActive() (gas: 15653 → 15697 | 44 0.281%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeHashGlobal_happy() (gas: 997458 → 1000291 | 2833 0.284%)
↓ ContentBlacklistTest::test_removeHashRegional_blocksGlobalRegionEntries() (gas: 46792 → 46659 | -133 -0.284%)
↑ DecdnGovernorTest::test_getVotes_uncappedWhenBelowCap() (gas: 173006 → 173505 | 499 0.288%)
↓ RegionScopeLibTest::test_pack_oversizedStringTruncatesNoRevert() (gas: 7514 → 7492 | -22 -0.293%)
↓ CapacityBondTest::test_setUnbondingPeriod_revertsWithoutRole() (gas: 14912 → 14868 | -44 -0.295%)
↓ CapacityBondTest::test_capacityBand_floorAlwaysBelowCeiling() (gas: 29408 → 29321 | -87 -0.296%)
↑ CapacityBondTest::test_pause_revertsWithoutRole() (gas: 14704 → 14748 | 44 0.299%)
↑ DecdnGovernorTest::test_getVotes_ramp() (gas: 173020 → 173538 | 518 0.299%)
↓ PaymentChannelTest::test_setters_onlyGovernance() (gas: 13998 → 13955 | -43 -0.307%)
↑ DecdnGovernorTest::test_getVotes_halfRamp() (gas: 173099 → 173643 | 544 0.314%)
↑ CapacityBondTest::test_setSlashJudge_revertsOnZeroAddress() (gas: 13558 → 13603 | 45 0.332%)
↑ ContentBlacklistTest::test_regionalCap_countsFastTrackedNotOpen() (gas: 928028 → 931306 | 3278 0.353%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18657 → 18723 | 66 0.354%)
↓ CapacityBondTest::test_setMinCapacity_revertsOutOfBounds() (gas: 18315 → 18249 | -66 -0.360%)
↑ DecdnGovernorTest::test_getVotes_recoversAfterWindowSlidesPastSlash() (gas: 196808 → 197564 | 756 0.384%)
↓ CapacityBondTest::test_curveDefaults() (gas: 10711 → 10667 | -44 -0.411%)
↑ CapacityBondTest::test_declareMbps_revertsZero() (gas: 17873 → 17950 | 77 0.431%)
↓ CapacityBondTest::test_setMinBond_revertsWithoutRole() (gas: 14932 → 14867 | -65 -0.435%)
↑ CapacityBondTest::test_setMultiaddrUpdateCooldown_revertsWithoutRole() (gas: 14910 → 14976 | 66 0.443%)
↑ CapacityBondTest::test_setMaxMultiaddrSize_revertsWithoutRole() (gas: 14889 → 14955 | 66 0.443%)
↑ PaymentChannelTest::test_setDisputeWindow_enforcesBounds() (gas: 24815 → 24926 | 111 0.447%)
↑ ContentBlacklistTest::test_addHashGlobal_revertsWithoutGovernanceRole() (gas: 14652 → 14718 | 66 0.450%)
↑ PaymentChannelTest::test_setFeeRouter_revertsOnEoaRouter() (gas: 18660 → 18748 | 88 0.472%)
↓ CapacityBondTest::test_setMaxCapacity_revertsOutOfBounds() (gas: 18571 → 18483 | -88 -0.474%)
↑ GovernanceLifecycleTest::test_canary_governorVoteWeightWired() (gas: 130011 → 130653 | 642 0.494%)
↑ DecdnGovernorTest::test_getVotes_historicalSnapshotIgnoresFutureSlash() (gas: 221405 → 222509 | 1104 0.499%)
↑ CapacityBondTest::test_bondRequired_zeroForZeroMbps() (gas: 13051 → 13117 | 66 0.506%)
↑ DecdnGovernorTest::test_quorum_isFourPercentOfTotalBytesInWindow() (gas: 71639 → 72006 | 367 0.512%)
↑ DecdnGovernorTest::test_getVotes_zeroWhenSlashedInWindow() (gas: 119032 → 119690 | 658 0.553%)
↑ DecdnGovernorTest::test_proposalThreshold_isPointOnePercent() (gas: 71807 → 72225 | 418 0.582%)
↓ CapacityBondTest::test_declareMbps_revertsAboveCeiling() (gas: 18083 → 17975 | -108 -0.597%)
↑ ContentBlacklistTest::test_registerRegionalBody_revertsWithoutGovernanceRole() (gas: 14721 → 14809 | 88 0.598%)
↑ ContentBlacklistTest::test_addHashRegional_revertsWithoutRegionalBodyRole() (gas: 14706 → 14795 | 89 0.605%)
↑ DecdnGovernorTest::test_setAgeRampMonths_revertsWithoutTimelockCaller() (gas: 11013 → 11080 | 67 0.608%)
↑ PaymentChannelTest::test_withdraw_acceptsErc1271Signature() (gas: 717406 → 722003 | 4597 0.641%)
↑ ContentBlacklistTest::test_isHashBlacklistedForOperator_suspendedRegional_false() (gas: 368444 → 370844 | 2400 0.651%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 353673 → 356054 | 2381 0.673%)
↑ ContentBlacklistTest::test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 277549 → 279491 | 1942 0.700%)
↑ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReverse() (gas: 270826 → 272732 | 1906 0.704%)
↑ ContentBlacklistTest::test_fullAppealFlow_ratifyRemovesHash() (gas: 291541 → 293612 | 2071 0.710%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_inWindowFiling_notAutoRejected() (gas: 334916 → 337308 | 2392 0.714%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeOperator_happy() (gas: 1026015 → 1034299 | 8284 0.807%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_globalEntry_skipsRegionCheck() (gas: 283405 → 285704 | 2299 0.811%)
↑ PaymentChannelTest::test_dispute_revertsOnBytesRegression() (gas: 304972 → 307527 | 2555 0.838%)
↑ PaymentChannelTest::test_dispute_revertsOnAmountRegression() (gas: 304835 → 307389 | 2554 0.838%)
↑ PaymentChannelTest::test_dispute_revertsOnAmountExceedingDeposit() (gas: 305225 → 307801 | 2576 0.844%)
↑ PaymentChannelTest::test_settle_revertsBeforeDisputeDeadline() (gas: 294513 → 297025 | 2512 0.853%)
↑ CapacityBondTest::testFuzz_bondRequired_monotonic(uint256,uint256) (gas: 19282 → 19447 | 165 0.856%)
↑ PaymentChannelTest::test_dispute_revertsAfterDeadline() (gas: 297276 → 299830 | 2554 0.859%)
↑ PaymentChannelTest::test_dispute_revertsOnStaleNonce() (gas: 302261 → 304859 | 2598 0.860%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_nonOperatorStanding_skipsRegionCheck() (gas: 266611 → 268932 | 2321 0.871%)
↑ ContentBlacklistTest::test_hasActiveAppeal_clearedOnLapseOpen() (gas: 239316 → 241424 | 2108 0.881%)
↑ ContentBlacklistTest::test_setAppealBond_revertsWithoutGovernanceRole() (gas: 14776 → 14909 | 133 0.900%)
↑ PaymentChannelTest::test_normalDispute_doesNotExtend() (gas: 319584 → 322474 | 2890 0.904%)
↑ PaymentChannelTest::test_dispute_higherNonceWins() (gas: 309711 → 312556 | 2845 0.919%)
↑ PaymentChannelTest::test_withdraw_secondWithdrawRoutesOnlyIncrement() (gas: 554879 → 560035 | 5156 0.929%)
↑ PaymentChannelTest::test_withdraw_routesDeltaAndAdvancesWatermark() (gas: 465532 → 470132 | 4600 0.988%)
↑ PaymentChannelTest::test_withdraw_revertsOnBytesRegression() (gas: 469281 → 473945 | 4664 0.994%)
↑ PaymentChannelTest::test_paused_exitsStillCallable() (gas: 671201 → 677899 | 6698 0.998%)
↑ PaymentChannelTest::test_withdraw_revertsOnNonMonotonicNonce() (gas: 468957 → 473664 | 4707 1.004%)
↑ PaymentChannelTest::test_reclaimExpired_refundsRemainderToClient() (gas: 452272 → 456870 | 4598 1.017%)
↑ PaymentChannelTest::test_zeroVoucherClose_disabledAfterWithdraw() (gas: 462930 → 467654 | 4724 1.020%)
↑ PaymentChannelTest::test_withdraw_revertsWhenDeltaZero() (gas: 469732 → 474665 | 4933 1.050%)
↑ PaymentChannelTest::test_close_atWatermarkNonce_succeeds() (gas: 477450 → 482473 | 5023 1.052%)
↑ PaymentChannelTest::test_close_revertsOnByteOnlyAdvance() (gas: 470362 → 475407 | 5045 1.073%)
↑ RegionScopeLibTest::test_pack_emptyIsZero() (gas: 6016 → 6081 | 65 1.080%)
↑ PaymentChannelTest::test_dispute_revertsOnByteOnlyAdvance() (gas: 488772 → 494151 | 5379 1.101%)
↑ PaymentChannelTest::test_settle_fullyWithdrawn_noRouterCall() (gas: 473130 → 478342 | 5212 1.102%)
↑ PaymentChannelTest::test_close_afterWithdraw_settleRoutesRemainderOnly() (gas: 547394 → 553429 | 6035 1.102%)
↑ RegionScopeLibTest::test_effectiveSince_lastChangedWins() (gas: 5963 → 6030 | 67 1.124%)
↑ PaymentChannelTest::testFuzz_withdrawThenSettle_partitionsClaim(uint256,uint256,uint256,uint256) (gas: 555056 → 561334 | 6278 1.131%)
↑ CapacityBondTest::test_regionGateActivatedAt_setAtConstruction() (gas: 4753985 → 4812185 | 58200 1.224%)
↑ PaymentChannelTest::test_constructor_revertsOnZeroAdmin() (gas: 71951 → 72859 | 908 1.262%)
↑ PaymentChannelTest::test_constructor_revertsOnEoaFeeRouter() (gas: 77058 → 78033 | 975 1.265%)
↓ CapacityBondTest::test_slashedAtEpoch_zeroBeforeSlash() (gas: 10262 → 10129 | -133 -1.296%)
↑ PaymentChannelTest::test_close_then_settle_routesAndRefunds() (gas: 426064 → 431589 | 5525 1.297%)
↑ PaymentChannelTest::testFuzz_settle_refundEqualsDepositMinusClaimed(uint256,uint256) (gas: 416090 → 421726 | 5636 1.355%)
↑ PaymentChannelTest::test_settle_amountEqualsDeposit_zeroRefund() (gas: 410874 → 416486 | 5612 1.366%)
↓ DecdnGovernorTest::test_ageRampMonthsAt_preservesPriorReadAfterLaterPush() (gas: 4104760 → 4048092 | -56668 -1.381%)
↓ DecdnGovernorTest::test_voteCapBpsAt_preservesPriorReadAfterLaterPush() (gas: 4104884 → 4048143 | -56741 -1.382%)
↑ PaymentChannelTest::test_route_zeroesResidualAllowanceAfterUnderPull() (gas: 535018 → 543618 | 8600 1.607%)
↑ CapacityBondTest::test_reduceBondAtTier_spillsIntoUnbonding() (gas: 1021 → 1043 | 22 2.155%)
↓ CapacityBondTest::test_reduceBondAtTier_zeroInputs() (gas: 1537 → 1493 | -44 -2.863%)
↑ ContentBlacklistTest::test_openBlacklistAppeal_operatorRegionMismatch_reverts() (gas: 70907 → 73251 | 2344 3.306%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addOperator_happy() (gas: 640876 → 664458 | 23582 3.680%)
↑ DeployProtocolTest::test_assertPeerRolesWired_revertsWhenSlashJudgeMisbound() (gas: 25073262 → 25997718 | 924456 3.687%)
↑ DeployProtocolTest::test_assertNoBackDoors_revertsWhenHandoffIncomplete() (gas: 24970417 → 25894763 | 924346 3.702%)
↑ CapacityBondRegionE2ETest::test_crossContract_regionalSlash_prevRegionInWindow() (gas: 5794801 → 6048956 | 254155 4.386%)
↑ CapacityBondRegionE2ETest::test_crossContract_regionalSlash_currentRegion() (gas: 5743585 → 5997740 | 254155 4.425%)
↑ CapacityBondRegionE2ETest::test_crossContract_regionalSlash_prevRegionAfterWindow() (gas: 5555904 → 5810059 | 254155 4.575%)
↑ PaymentChannelTest::test_constructor_revertsOnDisputeWindowOutOfBounds() (gas: 77036 → 80983 | 3947 5.124%)
↑ CapacityBondTest::test_reduceBondAtTier_slashEqualsActive() (gas: 854 → 898 | 44 5.152%)
↑ E2EProtocolTest::test_e2e_blacklistEjectsOperator() (gas: 420308 → 442527 | 22219 5.286%)
↑ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReject() (gas: 434573 → 461963 | 27390 6.303%)
↑ CapacityBondRegionE2ETest::test_crossContractEject_viaContentBlacklist() (gas: 3155433 → 3394255 | 238822 7.569%)
↑ ContentBlacklistTest::test_addHash_revertsWhileAppealActive() (gas: 251589 → 278731 | 27142 10.788%)
↑ ContentBlacklistTest::test_rejectAppeal_burnsBond() (gas: 246208 → 273306 | 27098 11.006%)
↓ PublisherRegistryTest::testFuzz_createNamespace_idsAreSequentialAndOwned(uint8) (gas: 454975 → 399321 | -55654 -12.232%)
↑ PaymentChannelTest::test_setFeeRouter_revertsOnZeroAndUnchanged() (gas: 24635 → 27829 | 3194 12.965%)
↑ InterfaceFreezeTest::test_slashJudge_abiFrozen() (gas: 870 → 1007 | 137 15.747%)
↑ PaymentChannelTest::test_setFeeRouter_updatesTarget() (gas: 292460 → 338664 | 46204 15.798%)
↑ PaymentChannelTest::test_forcedInclusion_doesNotExtendTwice() (gas: 2916491 → 3481682 | 565191 19.379%)
↑ PaymentChannelTest::test_forcedInclusion_noExtendWhenAmpleTimeRemains() (gas: 2902445 → 3467148 | 564703 19.456%)
↑ PaymentChannelTest::test_forcedInclusion_extendsDeadlineOnce() (gas: 2893929 → 3458676 | 564747 19.515%)

New tests:
  + BuybackBurnerBalancerV3Test::test_constructor_revertsOnCapFractionOutOfBounds()
  + BuybackBurnerBalancerV3Test::test_constructor_revertsOnInvertedBand()
  + BuybackBurnerBalancerV3Test::test_constructor_revertsOnTwapWindowTooShort()
  + BuybackBurnerBalancerV3Test::test_constructor_revertsOnUsdcDecimalsAbove18()
  + BuybackBurnerBalancerV3Test::test_constructor_revertsOnZeroRouter()
  + BuybackBurnerBalancerV3Test::test_epochCap_accruesAndBindsWithinEpoch()
  + BuybackBurnerBalancerV3Test::test_epochCap_resetsAcrossEpochs()
  + BuybackBurnerBalancerV3Test::test_executeBuyback_happyPath_swapsBurnsEmits()
  + BuybackBurnerBalancerV3Test::test_executeBuyback_minOutAtFloor_passes()
  + BuybackBurnerBalancerV3Test::test_executeBuyback_revertsAboveMaxBuyback()
  + BuybackBurnerBalancerV3Test::test_executeBuyback_revertsBelowMinBuyback()
  + BuybackBurnerBalancerV3Test::test_executeBuyback_revertsOnDegenerateSwapFee()
  + BuybackBurnerBalancerV3Test::test_executeBuyback_revertsTwapNotReady()
  + BuybackBurnerBalancerV3Test::test_executeBuyback_revertsWhenMinOutBelowTwapFloor()
  + BuybackBurnerBalancerV3Test::test_getAccumulatedFees_reportsUsdcBalance()
  + BuybackBurnerBalancerV3Test::test_pause_blocksExecuteBuyback()
  + BuybackBurnerBalancerV3Test::test_poke_revertsWhenPoolUnwired()
  + BuybackBurnerBalancerV3Test::test_poolState_ignoresDecoyLegInThreeTokenPool()
  + BuybackBurnerBalancerV3Test::test_poolState_reversedTokenOrdering()
  + BuybackBurnerBalancerV3Test::test_poolState_revertsOnMissingTokenLeg()
  + BuybackBurnerBalancerV3Test::test_scopedApproval_setToAmountInThenResetToZero()
  + BuybackBurnerBalancerV3Test::test_setEpochLiquidityCapFraction_boundsAndGuards()
  + BuybackBurnerBalancerV3Test::test_setKeeper_rotatesRole()
  + BuybackBurnerBalancerV3Test::test_setMaxBuybackAmount_revertsBelowMin()
  + BuybackBurnerBalancerV3Test::test_setSlippageTolerance_boundsAndGuards()
  + BuybackBurnerBalancerV3Test::test_setSwapRouter_updatesAndGuards()
  + BuybackBurnerBalancerV3Test::test_setters_requireGovernanceRole()
  + BuybackBurnerBalancerV3Test::test_twapFloor_accountsForSwapFee()
  + BuybackBurnerBalancerV3Test::test_twapFloor_resistsSingleBlockSpotSpike()
  + BuybackBurnerBalancerV3Test::test_twapPrice_reflectsStableSpot()
  + BuybackBurnerBalancerV3Test::test_twap_tracksRecentSpotAcrossMultipleWindows()
  + CapacityBondTest::test_blacklistEjected_cannotSelfReinstateViaBond()
  + CapacityBondTest::test_blacklistEjected_reBond_doesNotEmitReinstated()
  + CapacityBondTest::test_blacklistEjected_registerNodeBarred_isActiveFlips()
  + CapacityBondTest::test_ejectNode_setsBlacklistLatch_evenWhenAlreadySlashEjected()
  + CapacityBondTest::test_slashAutoEjected_canStillReinstateViaBond()
  + CapacityBondTest::test_unEjectNode_clearsBlacklistLatch_thenRebondReinstates()
  + CapacityBondTest::test_unEjectNode_idempotentNoState()
  + CapacityBondTest::test_unEjectNode_onlyBlacklistRole()
  + CapacityBondTest::test_unEjectNode_revertsZeroAddress()
  + ContentBlacklistTest::test_rejectionCooldown_doesNotAffectOtherFilers()
  + ContentBlacklistTest::test_rejectionCooldown_liftsAfterWindow()
  + ContentBlacklistTest::test_rejectionCooldown_locksOutAfterThreeRejections()
  + ContentBlacklistTest::test_rejectionCooldown_rollingWindowResets()
  + ContentBlacklistTest::test_rejectionCooldown_twoRejectionsDoNotLockOut()
  + ContentBlacklistTest::test_rejectionCooldown_usesGovernedWindow()
  + ContentBlacklistTest::test_removeOperator_callsUnEjectOnCapacityBond()
  + ContentBlacklistTest::test_removeOperator_notBlacklisted_stillResyncsLatch()
  + ContentBlacklistTest::test_removeOperator_revertsZeroAddress()
  + ContentBlacklistTest::test_setRejectionCooldownWindow_revertsOutOfBounds()
  + ContentBlacklistTest::test_setRejectionCooldownWindow_revertsWithoutGovernanceRole()
  + ContentBlacklistTest::test_setRejectionCooldownWindow_updatesValue()
  + DecdnGovernorTest::test_getVotes_epoch0_slashedOperatorStillZero()
  + DecdnGovernorTest::test_getVotes_immuneToCurrentEpochSettlement()
  + DecdnGovernorTest::test_getVotes_inProgressOnlyBytesReadZero()
  + DecdnGovernorTest::test_getVotes_slashAtWindowStartBoundary()
  + DecdnGovernorTest::test_getVotes_zeroBeforeFirstElapsedEpoch()
  + DecdnGovernorTest::test_slash_inCurrentEpoch_doesNotZeroEarlierSnapshot()
  + PaymentChannelTest::testFuzz_deferredSettlements_pageMatchesFullEnumerationSlice(uint256,uint256)
  + PaymentChannelTest::testFuzz_rateFloor_revertIffBelowFloor(uint256,uint256)
  + PaymentChannelTest::test_constructor_revertsOnRouterMissingPausedView()
  + PaymentChannelTest::test_cooperativeClose_afterFullWithdraw_refundsClientNoRoute()
  + PaymentChannelTest::test_cooperativeClose_eitherPartyMaySubmit()
  + PaymentChannelTest::test_cooperativeClose_onlyParty()
  + PaymentChannelTest::test_cooperativeClose_revertsOnBadClientSig()
  + PaymentChannelTest::test_cooperativeClose_revertsOnBadProviderWaiver()
  + PaymentChannelTest::test_cooperativeClose_revertsOnWrongTypehashWaiver()
  + PaymentChannelTest::test_cooperativeClose_revertsWhenNotOpen()
  + PaymentChannelTest::test_cooperativeClose_routerPaused_revertsThenSucceedsAfterUnpause()
  + PaymentChannelTest::test_cooperativeClose_settlesImmediatelyNoWindow()
  + PaymentChannelTest::test_cooperativeClose_staleWaiverCannotUnderSettle()
  + PaymentChannelTest::test_deferredSettlementCount_unchangedOnZeroAmountSettle()
  + PaymentChannelTest::test_deferredSettlements_clearedAfterFlush()
  + PaymentChannelTest::test_deferredSettlements_enumeratesPendingId()
  + PaymentChannelTest::test_deferredSettlements_maxLimitFromNonZeroOffsetClampsNoOverflow()
  + PaymentChannelTest::test_deferredSettlements_maxLimitFromZeroReturnsFullSet()
  + PaymentChannelTest::test_deferredSettlements_multipleDeferrals_selectiveFlush()
  + PaymentChannelTest::test_deferredSettlements_pageContentsPartitionTheSetAcrossOffsets()
  + PaymentChannelTest::test_deferredSettlements_paginationBoundaries()
  + PaymentChannelTest::test_flushDeferredSettlement_afterRouterRepoint_routesToNewRouter()
  + PaymentChannelTest::test_flushDeferredSettlement_notDeferred_reverts()
  + PaymentChannelTest::test_flushDeferredSettlement_partialWithdraw_routesRemainderOnly()
  + PaymentChannelTest::test_flushDeferredSettlement_routesAfterUnpause()
  + PaymentChannelTest::test_flushDeferredSettlement_stillPaused_revertsAndStaysDeferred()
  + PaymentChannelTest::test_rateFloor_boundaryExact()
  + PaymentChannelTest::test_rateFloor_dispute_revertsOnInflatedBytes()
  + PaymentChannelTest::test_rateFloor_governanceRaisingFloorRejects()
  + PaymentChannelTest::test_rateFloor_honestPathUnaffected()
  + PaymentChannelTest::test_rateFloor_revertsOnMaxBytesAttack()
  + PaymentChannelTest::test_rateFloor_routedBytesBoundedByPaidAmount()
  + PaymentChannelTest::test_rateFloor_truncatesDownAtNonUnitFloor()
  + PaymentChannelTest::test_rateFloor_withdraw_revertsOnInflatedBytes()
  + PaymentChannelTest::test_setFeeRouter_revertsOnNonBooleanPausedReturn()
  + PaymentChannelTest::test_setFeeRouter_revertsOnRouterMissingPausedView()
  + PaymentChannelTest::test_settle_deferred_channelIsClosed_cannotResettleOrDispute()
  + PaymentChannelTest::test_settle_routerPaused_refundsClientAndDefersProviderLeg()
  + PaymentChannelTest::test_settle_routerPaused_zeroProviderAmount_noDeferral()
  + PaymentChannelTest::test_withdraw_routerPaused_revertsThenSucceedsAfterUnpause()
  + RegionScopeLibTest::test_scopedRegions_serveAfterRipening_prevDropped()
  + RegionScopeLibTest::test_scopedRegions_serveBeforeRegionChange_prevApplies()
  + SlashJudgeTest::test_blacklist_honestRelocator_currentLegSlashesAccepted()
  + SlashJudgeTest::test_blacklist_multiChangeResidual_serveTimeRegionUnrecoverable()
  + SlashJudgeTest::test_blacklist_serveTimeWindow_stalledChallengeStillSlashes()

--------------------------------------------------------------------------------
Total tests: 526, ↑ 235, ↓ 73, ━ 218
Overall gas change: 4854462 (2.151%)

Run: 27834944779

@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 introduces a cooperative close mechanism to the payment channel, allowing immediate settlement without a dispute window when both parties agree on the final state. This is implemented via the cooperativeClose function in PaymentChannel.sol and documented in ADR 003, with accompanying unit tests. The reviewer suggested a valuable gas optimization in cooperativeClose by caching storage variables and reusing stack variables to avoid redundant storage reads.

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/PaymentChannel.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

Adds a new “cooperative close” settlement path to the Solidity PaymentChannel contract, allowing a channel to be closed and refunded immediately (no dispute window) when both client and provider sign the same final state. This addresses the client-refund latency asymmetry vs. the provider’s already-window-free withdraw path.

Changes:

  • Added PaymentChannel.cooperativeClose(...) plus a new EIP-712 COOPERATIVE_CLOSE_TYPEHASH and provider-waiver signature verification.
  • Added a new ChannelCooperativelyClosed event and error InvalidCooperativeCloseSignature.
  • Added a new ADR section documenting cooperative close, and added a comprehensive Foundry test suite for the new flow.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
contracts/src/PaymentChannel.sol Implements cooperativeClose, provider waiver verification, and emits a new cooperative-close event.
contracts/test/PaymentChannel.t.sol Adds helpers for signing the waiver + 10 new cooperative-close tests covering happy paths and failure modes.
adr/003-payments.md Documents the cooperative-close protocol, safety properties, and off-chain exchange flow.

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

Comment thread contracts/src/PaymentChannel.sol Resolved
Comment thread contracts/src/PaymentChannel.sol Resolved
…router (#947)

Address PR review: the paused-FeeRouter defer branch copied from settleChannel
is unnecessary here. settleChannel must defer because it acts on a Closing
channel where a revert would strand the refund (no path back to Open for
reclaimExpired). cooperativeClose is atomic Open -> Closed: if _route reverts
under a paused router the whole call rolls back, the channel stays Open, and
nothing is stranded — the caller retries post-unpause or falls back to
closeChannel. This mirrors withdraw's posture (#890).

Drops the defer branch and its deferred-settlement bookkeeping from
cooperativeClose; corrects the now-misleading "refund already left" comment and
the @notice (both legs land in one tx only on success). Test updated to assert
revert-then-succeed-after-unpause instead of defer-then-flush.

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

Copy link
Copy Markdown
Contributor Author

Addressed in f30f1f6. The second comment was a good catch that went beyond docs: cooperativeClose is atomic Open → Closed, so unlike settleChannel (which acts on a Closing channel and would strand the refund on revert), a paused-router revert here leaves the channel Open with nothing stranded. Removed the defer branch + deferred-settlement bookkeeping entirely and made it follow withdraw's revert posture (#890); the @notice now says both legs land in one tx only on success. 96 tests pass.

…veClose

Cache `ch.client`/`ch.provider` into local stack vars and reuse the
`amount`/`bytesDelivered` arguments instead of re-reading
`ch.claimedAmount`/`ch.claimedBytes` after `_advanceClaimWatermark`
(which sets the watermark to the agreed tuple). Avoids several SLOADs
per cooperative close.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@alpergundogdu
alpergundogdu merged commit 3f0224e into main Jun 19, 2026
20 checks passed
@alpergundogdu
alpergundogdu deleted the claude/elated-fermi-b957f1 branch June 19, 2026 16:00
thiras added a commit that referenced this pull request Jun 27, 2026
…y vector (#1009) (#1010)

* test(incentive,contracts): pin cooperative-close EIP-712 waiver parity vector (#1009)

The cooperative-close waiver (PRs #948/#949/#957/#973) is signed off-chain in
Rust and verified on-chain by PaymentChannel, with the EIP-712 type and domain
hand-duplicated on each side. Nothing pinned the full typed-data digest across
both, so a drift in the domain (name/version) or struct encoding would produce
unsettleable waivers with no test failure — the existing coverage only pinned
the typehash string (Rust) and round-tripped sign/recover within each language.

Commit one canonical parity vector and assert it from both sides:

- Rust: EXPECTED_COOP_CLOSE_DIGEST + cooperative_close_digest_matches_committed_vector
  asserting sample_close().signing_hash(sample_domain()) equals it.
- Solidity: test_cooperativeClose_digestMatchesVector recomputes the digest with
  the contract's public COOPERATIVE_CLOSE_TYPEHASH and the fixed domain, and
  test_cooperativeClose_domainMatchesVector ties the deployed contract's
  ERC-5267 eip712Domain() name/version to the vector.

Verified the vector catches the drift class: bumping the domain version on
either side fails the corresponding test. Test-only; no production code changed.

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

* test(contracts): refresh .gas-snapshot for cooperative-close vector tests

The #1010 vector tests add two functions plus fixtures to
PaymentChannel.t.sol, enlarging that suite's test-contract bytecode and
shifting per-test deployment gas across PaymentChannelTest, plus the two
new entries (test_cooperativeClose_digestMatchesVector,
test_cooperativeClose_domainMatchesVector). Regenerated via
`FOUNDRY_PROFILE=ci forge snapshot --snap .gas-snapshot`; non-reproducible
fuzz `runs:` lines left at committed values (the CI gate strips them).

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

---------

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

Development

Successfully merging this pull request may close these issues.

PaymentChannel: cooperative close (fast settle, no dispute window)

2 participants