Skip to content

feat(contracts): enforce + govern the capacity-bond curve on-chain (#770) - #774

Merged
thiras merged 5 commits into
mainfrom
feat/770-capacity-bond-curve-enforcement
Jun 1, 2026
Merged

thiras merged 5 commits into
mainfrom
feat/770-capacity-bond-curve-enforcement

Conversation

@thiras

@thiras thiras commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Closes #770 (Option A — implement + make governable on-chain).

Problem

bond_required(Mbps) = k × Mbps^α was documented as a governance-tunable economic mechanism (ADR 026 § Capacity-bond curve; root CLAUDE.md "governance-tunable from day one"), but the shipped CapacityBond accepted any amount > 0 — no k/α storage, no bondRequired view, no setters, and no enforcement. An operator could declare a 100 Gbps tier while bonding the 10 Mbps floor, defeating the anti-concentration pressure α is meant to provide. ADR 016 had already drifted to "not on-chain-tunable in this revision," contradicting ADR 026.

What this does

  • BondMath.bondRequired(mbps, k, αWad) — fixed-point k × Mbps^α via solady FixedPointMathLib.powWad. Implemented as a public (linked-library) function so the pow math compiles into BondMath's deployed bytecode, not CapacityBond's.
  • CapacityBond — kConstant/alphaWad storage (defaults 12.6e18 / 1.2e18), a bondRequired(mbps) view, and enforcement of activeBond ≥ bondRequired(declaredMbps) at the three operator-initiated sites: declareMbps, requestUnbond, registerNode. Slash paths are intentionally exempt (a penalized operator may fall under the curve and is auto-ejected below minBond/2).
  • Governance — setK / setAlpha (GOVERNANCE_ROLE): α hard-bounded to [1.0, 1.8]; k bounded so the resulting 1 Gbps-tier bond stays within [10K, 200K TOKEN] against the live α (the ADR's "bounded by 1G tier" semantic). Emits KUpdated / AlphaUpdated.

EIP-170 headroom

The curve surface pushed CapacityBond from 24,466 B to 25,521 B — 945 B over the 24,576 limit (only 110 B of baseline margin). via_ir is a hard blocker here (crypto-lib's Ed25519 assembly hits Yul "stack too deep"), so per the approved plan the slash-escrow finality state machine (mint, finalizeUnappealed / markAppealOpen / settleUpheld / settleGranted, and the multi-slash zero-out recompute) was extracted into a new linked SlashEscrowLib operating on storage-ref args. CapacityBond keeps the thin role-gated / reentrancy / pause wrappers and owns the value-typed escrowedTotal / slashCounter. The SlashStatus / SlashRecord types moved to file scope in SlashEscrowLib.

Result: CapacityBond is 24,230 B — 346 B margin (more than the 110 B baseline). Behavior is unchanged: the full SlashAppeal (19) and CapacityBond (85) suites are green.

Docs

  • ADR 026 § Capacity-bond curve: new bullet recording the shipped on-chain enforcement + setK/setAlpha governance and bounds.
  • ADR 016: rewrote the "not on-chain-tunable" call-graph note; added setK/setAlpha to the GOVERNANCE_ROLE table; added the DecdnGovernor self-setter row (setVoteCapBps / setAgeRampMonths) requested in CapacityBond bond-curve (bond = k × Mbps^α) is unenforced and ungovernable on-chain — decide enforce-vs-document #770's adjacent cleanup; corrected the age_ramp_months attribution (DecdnGovernor, not CapacityBond).
  • Root CLAUDE.md "governance-tunable from day one" needs no change — it is now literally true.

Tests

16 new curve tests (ADR worked examples within ±2% — e.g. bondRequired(1000) ≈ 50,161 TOKEN; monotonicity; enforcement reverts at all three sites; slash-exemption; setK/setAlpha role/bounds/events; 1 Gbps-tier coupled bound). Existing declareMbps tests migrated to bond above the curve first. 456 tests pass.

Verification

forge fmt --check                                         # pass
FOUNDRY_PROFILE=ci forge build --sizes --deny warnings    # pass (CapacityBond 24,230 < 24,576)
forge test                                                # 456 passed, 0 failed
aderyn --no-snippets                                      # High: 0  (fail-on: high)
slither . --config-file slither.config.json               # exit 0  (fail_on: medium)

Notes / non-goals

  • New dependency: solady (pinned submodule v0.1.26), excluded from slither/aderyn/forge-lint scope like the other lib/ deps.
  • No retroactive enforcement: the coupling binds on the next declareMbps / requestUnbond / registerNode; already-registered under-bonded operators are not force-corrected (acceptable pre-launch).
  • Declared-capacity floor at registerNode (declaredMbps > 0) remains out of scope — tracked in Minimum declared capacity floor for CapacityBond.register #681.

🤖 Generated with Claude Code

)

Implements the ADR 026 § Capacity-bond curve coupling
`activeBond ≥ bond_required(Mbps) = k × Mbps^α` on-chain, closing the
design-vs-implementation gap in #770 where k/α were documented as
governance-tunable but were neither stored, enforced, nor settable
(bond(amount) accepted any amount > 0).

- BondMath.bondRequired(mbps, k, αWad): fixed-point k × Mbps^α via solady
  FixedPointMathLib.powWad, as a public (linked-library) function so the
  pow math stays out of CapacityBond's runtime size.
- CapacityBond: kConstant/alphaWad storage (defaults 12.6e18 / 1.2e18),
  bondRequired(mbps) view, enforcement at declareMbps / requestUnbond /
  registerNode (slash paths intentionally exempt — auto-eject below
  minBond/2 handles under-curve operators), and setK / setAlpha
  (GOVERNANCE_ROLE) with α ∈ [1.0, 1.8] and the 1 Gbps-tier bond bounded
  to [10K, 200K TOKEN] against the live α.
- EIP-170: the curve surface pushed CapacityBond past 24,576 B, so the
  slash-escrow finality state machine (mint, finalize / markAppealOpen /
  settleUpheld / settleGranted, and the multi-slash zero-out recompute)
  moved into a linked SlashEscrowLib operating on storage refs;
  CapacityBond keeps the thin role-gated/reentrancy/pause wrappers and
  owns the value-typed escrowedTotal/slashCounter. CapacityBond is now
  24,230 B (346 B margin, up from 110 B baseline); behavior is unchanged
  (full SlashAppeal + CapacityBond suites green).
- ADR 026 / 016 record the shipped enforcement + governance; ADR 016
  gains the DecdnGovernor self-setter row (setVoteCapBps / setAgeRampMonths)
  and corrects the age_ramp_months attribution (DecdnGovernor, not
  CapacityBond).

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

github-actions Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Gas snapshot

Gas changes vs base
No files changed, compilation skipped

Ran 18 tests for test/BuybackBurner.t.sol:BuybackBurnerTest
[PASS] test_constructor_grantsAdminAndGovernanceRoles() (gas: 14866)
[PASS] test_constructor_revertsOnZeroAdmin() (gas: 67810)
[PASS] test_constructor_revertsOnZeroToken() (gas: 67829)
[PASS] test_constructor_revertsOnZeroUsdc() (gas: 67793)
[PASS] test_executeBuyback_happyPath_burnsAndEmits() (gas: 105272)
[PASS] test_executeBuyback_revertsPoolNotWiredWhenPoolUnset() (gas: 840272)
[PASS] test_executeBuyback_revertsPoolNotWiredWhenVaultUnset() (gas: 840424)
[PASS] test_executeBuyback_revertsSwapNotImplementedWhenActualDeltaIsZero() (gas: 60069)
[PASS] test_executeBuyback_revertsSwapReportMismatch() (gas: 110981)
[PASS] test_executeBuyback_revertsWhenPaused() (gas: 73094)
[PASS] test_executeBuyback_revertsWithoutKeeperRole() (gas: 64298)
[PASS] test_executeBuyback_revertsZeroAmount() (gas: 20705)
[PASS] test_pause_revertsWithoutPauserRole() (gas: 11912)
[PASS] test_setPool_emitsUpdateEvent() (gas: 24953)
[PASS] test_setPool_revertsWithoutGovernanceRole() (gas: 12132)
[PASS] test_setVault_emitsUpdateEvent() (gas: 24896)
[PASS] test_setVault_revertsWithoutGovernanceRole() (gas: 12054)
[PASS] test_unpause_revertsWithoutPauserRole() (gas: 23849)
Suite result: ok. 18 passed; 0 failed; 0 skipped; finished in 7.00ms (5.94ms CPU time)

Ran 54 tests for test/GovernanceLifecycle.t.sol:GovernanceLifecycleTest
[PASS] test_canary_executorIsTimelock() (gas: 9969)
[PASS] test_canary_governanceRoleHandoff() (gas: 99056)
[PASS] test_canary_governorVoteWeightWired() (gas: 129769)
[PASS] test_lifecycle_CapacityBond_setClaimSlashGateEpochs_happy() (gas: 588888)
[PASS] test_lifecycle_CapacityBond_setClaimSlashGateEpochs_outOfBounds() (gas: 594581)
[PASS] test_lifecycle_CapacityBond_setMaxCapacityMbps_happy() (gas: 588588)
[PASS] test_lifecycle_CapacityBond_setMaxCapacityMbps_outOfBounds() (gas: 594492)
[PASS] test_lifecycle_CapacityBond_setMaxMultiaddrSize_happy() (gas: 588630)
[PASS] test_lifecycle_CapacityBond_setMaxMultiaddrSize_outOfBounds() (gas: 594605)
[PASS] test_lifecycle_CapacityBond_setMinBond_happy() (gas: 588764)
[PASS] test_lifecycle_CapacityBond_setMinBond_outOfBounds() (gas: 594537)
[PASS] test_lifecycle_CapacityBond_setMinCapacityMbps_happy() (gas: 588739)
[PASS] test_lifecycle_CapacityBond_setMinCapacityMbps_outOfBounds() (gas: 594514)
[PASS] test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_happy() (gas: 605793)
[PASS] test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_outOfBounds() (gas: 594466)
[PASS] test_lifecycle_CapacityBond_setRegionStabilityWindow_happy() (gas: 588634)
[PASS] test_lifecycle_CapacityBond_setRegionStabilityWindow_outOfBounds() (gas: 594516)
[PASS] test_lifecycle_CapacityBond_setTreasury_happy() (gas: 606105)
[PASS] test_lifecycle_CapacityBond_setUnbondingPeriod_happy() (gas: 588658)
[PASS] test_lifecycle_CapacityBond_setUnbondingPeriod_outOfBounds() (gas: 594542)
[PASS] test_lifecycle_ContentBlacklist_addHashGlobal_happy() (gas: 609043)
[PASS] test_lifecycle_ContentBlacklist_addHashGlobal_outOfBounds() (gas: 596630)
[PASS] test_lifecycle_ContentBlacklist_addOperator_happy() (gas: 637690)
[PASS] test_lifecycle_ContentBlacklist_addOperator_outOfBounds() (gas: 596767)
[PASS] test_lifecycle_ContentBlacklist_registerRegionalBody_happy() (gas: 610550)
[PASS] test_lifecycle_ContentBlacklist_removeHashGlobal_happy() (gas: 993743)
[PASS] test_lifecycle_ContentBlacklist_removeHashGlobal_outOfBounds() (gas: 599178)
[PASS] test_lifecycle_ContentBlacklist_removeOperator_happy() (gas: 1022125)
[PASS] test_lifecycle_ContentBlacklist_setAppealBond_happy() (gas: 591119)
[PASS] test_lifecycle_ContentBlacklist_setAppealBond_outOfBounds() (gas: 596951)
[PASS] test_lifecycle_ContentBlacklist_setOriginBlacklist_happy() (gas: 609684)
[PASS] test_lifecycle_ContentBlacklist_setOriginBlacklist_outOfBounds() (gas: 597472)
[PASS] test_lifecycle_DecdnGovernor_setAgeRampMonths_happy() (gas: 630454)
[PASS] test_lifecycle_DecdnGovernor_setAgeRampMonths_outOfBounds() (gas: 636172)
[PASS] test_lifecycle_DecdnGovernor_setVoteCapBps_happy() (gas: 630461)
[PASS] test_lifecycle_DecdnGovernor_setVoteCapBps_outOfBounds() (gas: 636214)
[PASS] test_lifecycle_FeeRouter_setBuybackBurner_happy() (gas: 589013)
[PASS] test_lifecycle_FeeRouter_setBuybackBurner_outOfBounds() (gas: 596542)
[PASS] test_lifecycle_FeeRouter_setSharesAndDestinations_happy() (gas: 621947)
[PASS] test_lifecycle_FeeRouter_setSharesAndDestinations_outOfBounds() (gas: 597638)
[PASS] test_lifecycle_FeeRouter_setShares_happy() (gas: 608092)
[PASS] test_lifecycle_FeeRouter_setShares_outOfBounds() (gas: 596435)
[PASS] test_lifecycle_FeeRouter_setTreasury_happy() (gas: 589039)
[PASS] test_lifecycle_FeeRouter_setTreasury_outOfBounds() (gas: 594287)
[PASS] test_lifecycle_FeeRouter_setWindowEpochs_happy() (gas: 610783)
[PASS] test_lifecycle_FeeRouter_setWindowEpochs_outOfBounds() (gas: 596811)
[PASS] test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_happy() (gas: 591346)
[PASS] test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_outOfBounds() (gas: 596946)
[PASS] test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_happy() (gas: 591262)
[PASS] test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_outOfBounds() (gas: 596988)
[PASS] test_lifecycle_SlashAppeal_setAppealBond_happy() (gas: 591081)
[PASS] test_lifecycle_SlashAppeal_setAppealBond_outOfBounds() (gas: 596948)
[PASS] test_lifecycle_SlashAppeal_setChallengerIncentivePool_happy() (gas: 591497)
[PASS] test_lifecycle_SlashAppeal_setChallengerIncentivePool_outOfBounds() (gas: 596777)
Suite result: ok. 54 passed; 0 failed; 0 skipped; finished in 146.15ms (123.94ms CPU time)

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

Ran 28 tests for test/OriginAssignment.t.sol:OriginAssignmentTest
[PASS] test_activate_blacklistSkippedWhenUnset() (gas: 2045181)
[PASS] test_activate_onlyGovernance() (gas: 140563)
[PASS] test_activate_replacesPreviousSet() (gas: 344888)
[PASS] test_activate_revertsBeforeTimelock() (gas: 140524)
[PASS] test_activate_revertsNoPending() (gas: 20987)
[PASS] test_activate_revertsOperatorBlacklisted() (gas: 173723)
[PASS] test_activate_revertsOperatorWentInactive() (gas: 152943)
[PASS] test_activate_setsAuthorizedSet() (gas: 220067)
[PASS] test_cancel_clearsPending() (gas: 110536)
[PASS] test_defaultOpen_addAndRemove() (gas: 78409)
[PASS] test_defaultOpen_onlyGovernance() (gas: 21147)
[PASS] test_defaultOpen_revertsInactive() (gas: 27910)
[PASS] test_defaultOpen_setAllowlist() (gas: 172086)
[PASS] test_propose_overwriteReplacesPending() (gas: 128820)
[PASS] test_propose_revertsDuplicate() (gas: 34896)
[PASS] test_propose_revertsEmpty() (gas: 21925)
[PASS] test_propose_revertsInactiveOperator() (gas: 39819)
[PASS] test_propose_revertsNonOwner() (gas: 27271)
[PASS] test_propose_revertsTooMany() (gas: 39410)
[PASS] test_propose_storesPending() (gas: 133692)
[PASS] test_prune_removesBlacklistedOperator() (gas: 243079)
[PASS] test_prune_revertsWhenBlacklistUnset() (gas: 1862769)
[PASS] test_prune_revertsWhenNotBlacklisted() (gas: 220747)
[PASS] test_revoke_byPublisherAndGovernance() (gas: 232436)
[PASS] test_revoke_revertsNonMember() (gas: 23619)
[PASS] test_setAssignmentTimelock_enforcesBounds() (gas: 24737)
[PASS] test_setContentBlacklist_rejectsZero() (gas: 13451)
[PASS] test_setMaxOrigins_enforcesBounds() (gas: 13857)
Suite result: ok. 28 passed; 0 failed; 0 skipped; finished in 8.57ms (7.86ms CPU time)

Ran 89 tests for test/CapacityBond.t.sol:CapacityBondTest
[PASS] testFuzz_bondRequired_monotonic(uint256,uint256) (runs: 1024, μ: 19279, ~: 19578)
[PASS] test_appealGrant_unlocksClaimBeforeGateExpiry() (gas: 433691)
[PASS] test_bondRequired_matchesAdrWorkedExamples() (gas: 29688)
[PASS] test_bondRequired_strictlyMonotonic() (gas: 37554)
[PASS] test_bondRequired_zeroForZeroMbps() (gas: 13161)
[PASS] test_capacityBand_defaults() (gas: 10622)
[PASS] test_capacityBand_floorAlwaysBelowCeiling() (gas: 29297)
[PASS] test_claimVestedCredit_movesIntoActiveBond() (gas: 214548)
[PASS] test_claimVestedCredit_multiClaimFollowsLinearCurve() (gas: 219111)
[PASS] test_claimVestedCredit_multiSlash_gatedByOlderStandingSlash() (gas: 584065)
[PASS] test_claimVestedCredit_revertsWhenNoActiveBond() (gas: 144549)
[PASS] test_claimVestedCredit_revertsWhenSlashedInWindow() (gas: 439019)
[PASS] test_claimVestedCredit_succeedsAfterSlashGateExpires() (gas: 442051)
[PASS] test_creditSlash_escrowsThenDistributes5050AtFinality() (gas: 458249)
[PASS] test_curveDefaults() (gas: 10624)
[PASS] test_declareMbps_acceptsFloorAndCeiling() (gas: 161019)
[PASS] test_declareMbps_emitsOldAndNewValue() (gas: 158167)
[PASS] test_declareMbps_revertsAboveCeiling() (gas: 18017)
[PASS] test_declareMbps_revertsBelowFloor() (gas: 17950)
[PASS] test_declareMbps_revertsWhenBondBelowCurve() (gas: 131783)
[PASS] test_declareMbps_revertsZero() (gas: 17895)
[PASS] test_declareMbps_succeedsExactlyAtCurve() (gas: 147146)
[PASS] test_declaredMbps_storesValue() (gas: 147168)
[PASS] test_escrowHooks_requireSlashAppealRole() (gas: 17017)
[PASS] test_finalizeUnappealedSlash_distributes5050() (gas: 356654)
[PASS] test_firstBondedAt_immutableAcrossReBonds() (gas: 111447)
[PASS] test_firstBondedAt_setsOnFirstBond() (gas: 102513)
[PASS] test_forfeitUnvestedCredit_burnsWhenNoTreasury() (gas: 256105)
[PASS] test_forfeitUnvestedCredit_doesNotClawBackVestedUnclaimed() (gas: 291756)
[PASS] test_forfeitUnvestedCredit_onUnbond() (gas: 300422)
[PASS] test_genesisCredit_fullVestAfterDuration() (gas: 141326)
[PASS] test_genesisCredit_grantWithinWindow() (gas: 139196)
[PASS] test_genesisCredit_revertsAfterWindow() (gas: 82827)
[PASS] test_genesisCredit_vestsLinearly() (gas: 141606)
[PASS] test_markAppealOpen_blocksFinalize() (gas: 327281)
[PASS] test_pause_revertsWithoutRole() (gas: 14704)
[PASS] test_pendingCreditSlash_reducesOriginalGrant() (gas: 433125)
[PASS] test_reduceBondAtTier_activeOnly() (gas: 899)
[PASS] test_reduceBondAtTier_remainderClip() (gas: 1101)
[PASS] test_reduceBondAtTier_slashEqualsActive() (gas: 942)
[PASS] test_reduceBondAtTier_spillsIntoUnbonding() (gas: 932)
[PASS] test_reduceBondAtTier_unbondingOnly() (gas: 951)
[PASS] test_reduceBondAtTier_zeroInputs() (gas: 1471)
[PASS] test_registerNode_revertsOnInvalidEd25519Sig() (gas: 179153)
[PASS] test_registerNode_revertsWhenAlreadyActive() (gas: 387843)
[PASS] test_registerNode_revertsWhenBondBelowCurve() (gas: 207450)
[PASS] test_registerNode_succeedsAtCurve() (gas: 415424)
[PASS] test_requestUnbond_allowedWhenNoCapacityDeclared() (gas: 164080)
[PASS] test_requestUnbond_revertsWhenItDropsBelowCurve() (gas: 160305)
[PASS] test_requestUnbond_succeedsDownToExactlyCurve() (gas: 208809)
[PASS] test_setAlpha_revertsOutOfBounds() (gas: 18430)
[PASS] test_setAlpha_revertsWhenGbpsTierOutOfRange() (gas: 29865)
[PASS] test_setAlpha_updatesCurveAndEmits() (gas: 33844)
[PASS] test_setCapacity_onlyGovernance() (gas: 19635)
[PASS] test_setClaimSlashGateEpochs_revertsWithoutRole() (gas: 14824)
[PASS] test_setCurve_onlyGovernance() (gas: 19416)
[PASS] test_setKAlpha_orderingMatters() (gas: 56002)
[PASS] test_setK_revertsWhenGbpsTierOutOfRange() (gas: 43902)
[PASS] test_setK_updatesCurveAndEmits() (gas: 35561)
[PASS] test_setMaxCapacity_acceptsInclusiveBounds() (gas: 24407)
[PASS] test_setMaxCapacity_revertsOutOfBounds() (gas: 18329)
[PASS] test_setMaxCapacity_updatesBandAndEmits() (gas: 31040)
[PASS] test_setMaxMultiaddrSize_revertsWithoutRole() (gas: 14977)
[PASS] test_setMinBond_revertsWithoutRole() (gas: 14846)
[PASS] test_setMinCapacity_acceptsInclusiveBounds() (gas: 24688)
[PASS] test_setMinCapacity_revertsOutOfBounds() (gas: 18537)
[PASS] test_setMinCapacity_updatesBandAndEmits() (gas: 166870)
[PASS] test_setMultiaddrUpdateCooldown_revertsWithoutRole() (gas: 14822)
[PASS] test_setRegionStabilityWindow_revertsWithoutRole() (gas: 14845)
[PASS] test_setTreasury_revertsWithoutRole() (gas: 14919)
[PASS] test_setUnbondingPeriod_revertsWithoutRole() (gas: 14913)
[PASS] test_settleAppealGranted_clearsAndRefunds() (gas: 303422)
[PASS] test_settleAppealGranted_multiSlash_recomputesThenClears() (gas: 429016)
[PASS] test_settleAppealGranted_reverseMiddleSlash_keepsNewest() (gas: 578068)
[PASS] test_settleAppealUpheld_distributes5050() (gas: 348716)
[PASS] test_slashHitsVestedAndUnvestedTogether() (gas: 476164)
[PASS] test_slashHitsVestedButUnclaimed() (gas: 443613)
[PASS] test_slashId_persistsRecord() (gas: 314968)
[PASS] test_slash_creditSlash_escalatesAcrossTiers() (gas: 666599)
[PASS] test_slash_doesNotEnforceCurve() (gas: 362496)
[PASS] test_slash_escrowsWithoutDistribution() (gas: 326147)
[PASS] test_slash_stampsSlashedAtEpoch() (gas: 314664)
[PASS] test_slash_tier3_mixedBond_exhaustsActiveTapsUnbonding() (gas: 599418)
[PASS] test_slash_tierEscalation_15then50pct() (gas: 547217)
[PASS] test_slashedAtEpoch_zeroBeforeSlash() (gas: 10152)
[PASS] test_unpause_revertsWithoutRole() (gas: 94612)
[PASS] test_updateMultiaddrs_revertsWhenNodeNotActive() (gas: 15613)
[PASS] test_updateRegion_cooldownAndPrevSnapshot() (gas: 458111)
[PASS] test_updateRegion_revertsWhenNodeNotActive() (gas: 15741)
Suite result: ok. 89 passed; 0 failed; 0 skipped; finished in 166.05ms (163.21ms CPU time)

Ran 18 tests for test/ContentBlacklist.t.sol:ContentBlacklistTest
[PASS] test_addHashGlobal_andQuery() (gas: 38191)
[PASS] test_addHashGlobal_revertsWithoutGovernanceRole() (gas: 14608)
[PASS] test_addHashRegional_globalTakesPrecedence() (gas: 41980)
[PASS] test_addHashRegional_revertsWithoutRegionalBodyRole() (gas: 14684)
[PASS] test_addOperator_callsEjectOnCapacityBond() (gas: 91570)
[PASS] test_fullAppealFlow_ratifyRemovesHash() (gas: 275665)
[PASS] test_hasActiveAppeal_clearedOnLapseOpen() (gas: 242221)
[PASS] test_hasActiveAppeal_clearedOnReject() (gas: 433926)
[PASS] test_hasActiveAppeal_clearedOnReverse() (gas: 254985)
[PASS] test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 356697)
[PASS] test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18635)
[PASS] test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16243)
[PASS] test_regionalCap_blocksMoreThanThreeActiveAppeals() (gas: 706667)
[PASS] test_registerRegionalBody_revertsWithoutGovernanceRole() (gas: 14830)
[PASS] test_rejectAppeal_burnsBond() (gas: 247882)
[PASS] test_removeHashRegional_blocksGlobalRegionEntries() (gas: 44419)
[PASS] test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 261664)
[PASS] test_setAppealBond_revertsWithoutGovernanceRole() (gas: 14754)
Suite result: ok. 18 passed; 0 failed; 0 skipped; finished in 3.38ms (2.44ms CPU time)

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

Ran 23 tests for test/DeployProtocol.t.sol:DeployProtocolTest
[PASS] test_assertNoBackDoors_revertsWhenHandoffIncomplete() (gas: 24644804)
[PASS] test_assertNoBackDoors_revertsWhenTimelockMissingRole() (gas: 94428)
[PASS] test_crossContractWiring_capacityBondPeerRoles() (gas: 23419)
[PASS] test_crossContractWiring_genesisGrantorIsTimelock() (gas: 17075)
[PASS] test_crossContractWiring_newContractPeerRoles() (gas: 31445)
[PASS] test_crossContractWiring_slashAppealChallengerPool() (gas: 9920)
[PASS] test_deployTargets_revertsOnZeroChallengerIncentivePool() (gas: 2025645)
[PASS] test_deployTargets_revertsOnZeroDeployer() (gas: 580314)
[PASS] test_deployTargets_revertsOnZeroEd25519Verifier() (gas: 2025513)
[PASS] test_deployTargets_revertsOnZeroEmergencyMultisig() (gas: 2025557)
[PASS] test_deployTargets_revertsOnZeroInitialTokenHolder() (gas: 2025645)
[PASS] test_deployTargets_revertsOnZeroUsdc() (gas: 2025451)
[PASS] test_emergencyMultisig_canPauseAndBlockEntrypoint() (gas: 48534)
[PASS] test_feeRouter_launchSharesDormantBuyback() (gas: 16477)
[PASS] test_feeRouter_treasuryIsTimelock() (gas: 10051)
[PASS] test_governor_openExecutor() (gas: 8743)
[PASS] test_governor_timelockBinding() (gas: 25888)
[PASS] test_roleMatrix_deployerHoldsNoRoleAnywhere() (gas: 66902)
[PASS] test_roleMatrix_emergencyMultisigGrants() (gas: 19503)
[PASS] test_roleMatrix_pauserIsEmergencyMultisig() (gas: 45635)
[PASS] test_roleMatrix_timelockHoldsDefaultAdminOnEveryTarget() (gas: 41824)
[PASS] test_roleMatrix_timelockHoldsGovernanceOnEveryTarget() (gas: 41952)
[PASS] test_token_initialHolderHoldsFullSupply() (gas: 13803)
Suite result: ok. 23 passed; 0 failed; 0 skipped; finished in 11.01ms (5.67ms CPU time)

Ran 7 tests for test/DeployProtocolScript.t.sol:DeployProtocolScriptTest
[PASS] test_readConfig_appliesDefaultsForOptionalVars() (gas: 17786)
[PASS] test_readConfig_deployerIsTxOrigin() (gas: 15801)
[PASS] test_run_abortsBeforeBroadcastWhenManifestExists() (gas: 22040)
[PASS] test_run_revertsIfDeployerIsForgeDefaultSender() (gas: 15305)
[PASS] test_writeManifest_overwritesWhenForced() (gas: 110634)
[PASS] test_writeManifest_revertsOnExistingFile() (gas: 32033)
[PASS] test_writeManifest_writesAllAddresses() (gas: 92307)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 7.06ms (7.77ms CPU time)

Ran 3 tests for test/E2EProtocol.t.sol:E2EProtocolTest
[PASS] test_deployWiring_newContractsWiredAndHandedOff() (gas: 66882)
[PASS] test_e2e_blacklistEjectsOperator() (gas: 417879)
[PASS] test_e2e_registerSettleSlashEjectAppeal() (gas: 1468598)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 8.15ms (2.79ms 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 69.16ms (68.75ms CPU time)

Ran 16 tests for test/FeeRouter.t.sol:FeeRouterTest
[PASS] test_bytesInWindow_sumsTrailingWindow() (gas: 497291)
[PASS] test_bytesInWindow_zeroWindowReturnsZero() (gas: 9326)
[PASS] test_pause_revertsWithoutRole() (gas: 14609)
[PASS] test_routeSettlement_distributesThreeLegs() (gas: 232441)
[PASS] test_routeSettlement_dustRoutesToOperatorWhenBuybackUnset() (gas: 141838)
[PASS] test_routeSettlement_incrementsBytesPerEpoch() (gas: 221457)
[PASS] test_routeSettlement_revertsWithoutRouterRole() (gas: 89208)
[PASS] test_setBuybackBurner_revertsWithoutRole() (gas: 14720)
[PASS] test_setSharesAndDestinations_revertsWithoutRole() (gas: 19569)
[PASS] test_setShares_rejectsNonZeroShareWithoutDestination() (gas: 16239)
[PASS] test_setShares_rejectsSumNot10000() (gas: 14523)
[PASS] test_setShares_revertsWithoutRole() (gas: 15219)
[PASS] test_setTreasury_revertsWithoutRole() (gas: 14696)
[PASS] test_setWindowEpochs_enforcesBounds() (gas: 32780)
[PASS] test_setWindowEpochs_revertsWithoutRole() (gas: 14688)
[PASS] test_unpause_revertsWithoutRole() (gas: 72166)
Suite result: ok. 16 passed; 0 failed; 0 skipped; finished in 2.70ms (1.86ms CPU time)

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

Ran 19 tests for test/SlashAppeal.t.sol:SlashAppealTest
[PASS] test_cleanup_fastTrackedLapse_grantsOperatorFavorable() (gas: 456307)
[PASS] test_cleanup_openLapse_upholds() (gas: 474119)
[PASS] test_fastTrack_requiresMultisig() (gas: 484575)
[PASS] test_frequencyCap_blocksSecondAppealWithinWindow() (gas: 608265)
[PASS] test_grant_newerAppeal_fallsBackToOlderStandingSlash() (gas: 603685)
[PASS] test_grant_olderAppeal_preservesNewerSlashZeroOut() (gas: 603017)
[PASS] test_grant_refundsOperatorAndBondAndClearsZeroOut() (gas: 463212)
[PASS] test_grant_requiresGovernance() (gas: 495247)
[PASS] test_grant_restoresCreditVestingNotLiquid() (gas: 576516)
[PASS] test_grant_revertsIfNotFastTracked() (gas: 486955)
[PASS] test_open_locksEscrowAndPullsBond() (gas: 490954)
[PASS] test_open_revertsAfterFilingWindow() (gas: 481797)
[PASS] test_open_revertsForNonOperator() (gas: 495568)
[PASS] test_open_revertsOnDoubleAppeal() (gas: 486736)
[PASS] test_open_revertsUnknownSlash() (gas: 23776)
[PASS] test_pause_extendsFilingWindow() (gas: 408682)
[PASS] test_reject_burnsBondAndDistributesEscrow() (gas: 478618)
[PASS] test_uphold_distributesEscrowAndSplitsBond() (gas: 515059)
[PASS] test_uphold_poolUnset_burnsFullBond() (gas: 2175009)
Suite result: ok. 19 passed; 0 failed; 0 skipped; finished in 16.31ms (14.43ms CPU time)

Ran 22 tests for test/SlashJudge.t.sol:SlashJudgeTest
[PASS] test_blacklist_revertsOnHashMismatch() (gas: 68210)
[PASS] test_blacklist_revertsWhenBlacklistedAfterResponse() (gas: 72559)
[PASS] test_blacklist_revertsWhenNotBlacklisted() (gas: 48632)
[PASS] test_blacklist_revertsWhenSuspended() (gas: 72096)
[PASS] test_blacklist_slashesOnProbeResponse() (gas: 189538)
[PASS] test_blacklist_slashesOnStreamResponse() (gas: 190270)
[PASS] test_constructor_revertsWhenEvidenceAgeExceedsUnbonding() (gas: 366864)
[PASS] test_pause_blocksChallenges() (gas: 58348)
[PASS] test_phantom_revertsOnBadProbeSignature() (gas: 46691)
[PASS] test_phantom_revertsOnEvidenceReplay() (gas: 199102)
[PASS] test_phantom_revertsOnFutureEvidence() (gas: 47528)
[PASS] test_phantom_revertsOnNodeIdMismatch() (gas: 37805)
[PASS] test_phantom_revertsOnStaleEvidence() (gas: 49909)
[PASS] test_phantom_revertsOnUnregisteredNode() (gas: 39027)
[PASS] test_phantom_revertsOutsideTimestampWindow() (gas: 49624)
[PASS] test_phantom_revertsWhenStreamOk() (gas: 53546)
[PASS] test_phantom_slashesAndRoundTripsBond() (gas: 179547)
[PASS] test_rate_revertsWhenNotHigher() (gas: 53581)
[PASS] test_rate_slashesWhenStreamRateHigher() (gas: 172123)
[PASS] test_setChallengeBond_enforcesBounds() (gas: 24689)
[PASS] test_setMaxEvidenceAge_enforcesBoundsAndInvariant() (gas: 40199)
[PASS] test_setters_onlyGovernance() (gas: 13759)
Suite result: ok. 22 passed; 0 failed; 0 skipped; finished in 42.58ms (40.13ms CPU time)

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

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

Ran 54 tests for test/PaymentChannel.t.sol:PaymentChannelTest
[PASS] testFuzz_settle_refundEqualsDepositMinusClaimed(uint256,uint256) (runs: 1024, μ: 410591, ~: 410648)
[PASS] testFuzz_withdrawThenSettle_partitionsClaim(uint256,uint256,uint256,uint256) (runs: 1024, μ: 545945, ~: 546319)
[PASS] test_close_afterWithdraw_settleRoutesRemainderOnly() (gas: 538591)
[PASS] test_close_atWatermarkNonce_succeeds() (gas: 471986)
[PASS] test_close_revertsAfterExpiry() (gas: 209040)
[PASS] test_close_revertsOnAmountExceedingDeposit() (gas: 221040)
[PASS] test_close_revertsOnByteOnlyAdvance() (gas: 464920)
[PASS] test_close_then_settle_routesAndRefunds() (gas: 420622)
[PASS] test_close_thirdPartyCannotClose() (gas: 210915)
[PASS] test_constructor_revertsOnDisputeWindowOutOfBounds() (gas: 76787)
[PASS] test_constructor_revertsOnEoaFeeRouter() (gas: 76787)
[PASS] test_constructor_revertsOnZeroAdmin() (gas: 71702)
[PASS] test_dispute_higherNonceWins() (gas: 307630)
[PASS] test_dispute_revertsAfterDeadline() (gas: 295195)
[PASS] test_dispute_revertsOnAmountExceedingDeposit() (gas: 303144)
[PASS] test_dispute_revertsOnAmountRegression() (gas: 302754)
[PASS] test_dispute_revertsOnByteOnlyAdvance() (gas: 483308)
[PASS] test_dispute_revertsOnBytesRegression() (gas: 302891)
[PASS] test_dispute_revertsOnStaleNonce() (gas: 300180)
[PASS] test_forcedInclusion_doesNotExtendTwice() (gas: 2756694)
[PASS] test_forcedInclusion_extendsDeadlineOnce() (gas: 2734132)
[PASS] test_forcedInclusion_noExtendWhenAmpleTimeRemains() (gas: 2742648)
[PASS] test_getRateBounds_returnsConfigured() (gas: 9890)
[PASS] test_normalDispute_doesNotExtend() (gas: 317503)
[PASS] test_openChannel_derivesIdAndIncrementsNonce() (gas: 219442)
[PASS] test_openChannel_distinctIdsAcrossProviders() (gas: 347252)
[PASS] test_openChannel_revertsBelowMinDeposit() (gas: 23033)
[PASS] test_openChannel_revertsOnInactiveProvider() (gas: 29784)
[PASS] test_openChannel_revertsWhenPaused() (gas: 47399)
[PASS] test_paused_exitsStillCallable() (gas: 659037)
[PASS] test_reclaimExpired_refundsRemainderToClient() (gas: 446830)
[PASS] test_reclaimExpired_revertsBeforeExpiry() (gas: 204176)
[PASS] test_setDisputeWindow_enforcesBounds() (gas: 24815)
[PASS] test_setFeeRouter_revertsOnEoaRouter() (gas: 18660)
[PASS] test_setFeeRouter_revertsOnZeroAndUnchanged() (gas: 24635)
[PASS] test_setFeeRouter_updatesTarget() (gas: 284490)
[PASS] test_setters_onlyGovernance() (gas: 13976)
[PASS] test_settle_amountEqualsDeposit_zeroRefund() (gas: 405432)
[PASS] test_settle_fullyWithdrawn_noRouterCall() (gas: 467688)
[PASS] test_settle_revertsBeforeDisputeDeadline() (gas: 292432)
[PASS] test_topUp_increasesDeposit() (gas: 222520)
[PASS] test_topUp_onlyClient() (gas: 204390)
[PASS] test_voucher_rejectedOnWrongChannelId() (gas: 335707)
[PASS] test_withdraw_acceptsErc1271Signature() (gas: 711964)
[PASS] test_withdraw_onlyProvider() (gas: 208846)
[PASS] test_withdraw_revertsOnAmountExceedingDeposit() (gas: 220800)
[PASS] test_withdraw_revertsOnBadSignature() (gas: 213634)
[PASS] test_withdraw_revertsOnBytesRegression() (gas: 463839)
[PASS] test_withdraw_revertsOnNonMonotonicNonce() (gas: 463515)
[PASS] test_withdraw_revertsWhenDeltaZero() (gas: 464290)
[PASS] test_withdraw_routesDeltaAndAdvancesWatermark() (gas: 460090)
[PASS] test_withdraw_secondWithdrawRoutesOnlyIncrement() (gas: 546054)
[PASS] test_zeroVoucherClose_disabledAfterWithdraw() (gas: 457488)
[PASS] test_zeroVoucherClose_refundsFullDeposit() (gas: 216232)
Suite result: ok. 54 passed; 0 failed; 0 skipped; finished in 1.86s (1.90s CPU time)

Ran 18 test suites in 2.05s (3.97s CPU time): 460 tests passed, 0 failed, 0 skipped (460 total tests)
━ BuybackBurnerTest::test_constructor_grantsAdminAndGovernanceRoles() (gas: 14866 → 14866 | 0 0.000%)
━ BuybackBurnerTest::test_constructor_revertsOnZeroAdmin() (gas: 67810 → 67810 | 0 0.000%)
━ BuybackBurnerTest::test_constructor_revertsOnZeroToken() (gas: 67829 → 67829 | 0 0.000%)
━ BuybackBurnerTest::test_constructor_revertsOnZeroUsdc() (gas: 67793 → 67793 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_happyPath_burnsAndEmits() (gas: 105272 → 105272 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsPoolNotWiredWhenPoolUnset() (gas: 840272 → 840272 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsPoolNotWiredWhenVaultUnset() (gas: 840424 → 840424 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsSwapNotImplementedWhenActualDeltaIsZero() (gas: 60069 → 60069 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsSwapReportMismatch() (gas: 110981 → 110981 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsWhenPaused() (gas: 73094 → 73094 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsWithoutKeeperRole() (gas: 64298 → 64298 | 0 0.000%)
━ BuybackBurnerTest::test_executeBuyback_revertsZeroAmount() (gas: 20705 → 20705 | 0 0.000%)
━ BuybackBurnerTest::test_pause_revertsWithoutPauserRole() (gas: 11912 → 11912 | 0 0.000%)
━ BuybackBurnerTest::test_setPool_emitsUpdateEvent() (gas: 24953 → 24953 | 0 0.000%)
━ BuybackBurnerTest::test_setPool_revertsWithoutGovernanceRole() (gas: 12132 → 12132 | 0 0.000%)
━ BuybackBurnerTest::test_setVault_emitsUpdateEvent() (gas: 24896 → 24896 | 0 0.000%)
━ BuybackBurnerTest::test_setVault_revertsWithoutGovernanceRole() (gas: 12054 → 12054 | 0 0.000%)
━ BuybackBurnerTest::test_unpause_revertsWithoutPauserRole() (gas: 23849 → 23849 | 0 0.000%)
━ CapacityBondTest::test_appealGrant_unlocksClaimBeforeGateExpiry() (gas: 433691 → 433691 | 0 0.000%)
━ CapacityBondTest::test_bondRequired_matchesAdrWorkedExamples() (gas: 29688 → 29688 | 0 0.000%)
━ CapacityBondTest::test_bondRequired_strictlyMonotonic() (gas: 37554 → 37554 | 0 0.000%)
━ CapacityBondTest::test_bondRequired_zeroForZeroMbps() (gas: 13161 → 13161 | 0 0.000%)
━ CapacityBondTest::test_capacityBand_defaults() (gas: 10622 → 10622 | 0 0.000%)
━ CapacityBondTest::test_capacityBand_floorAlwaysBelowCeiling() (gas: 29297 → 29297 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_movesIntoActiveBond() (gas: 214548 → 214548 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_multiClaimFollowsLinearCurve() (gas: 219111 → 219111 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_multiSlash_gatedByOlderStandingSlash() (gas: 584065 → 584065 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_revertsWhenNoActiveBond() (gas: 144549 → 144549 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_revertsWhenSlashedInWindow() (gas: 439019 → 439019 | 0 0.000%)
━ CapacityBondTest::test_claimVestedCredit_succeedsAfterSlashGateExpires() (gas: 442051 → 442051 | 0 0.000%)
━ CapacityBondTest::test_creditSlash_escrowsThenDistributes5050AtFinality() (gas: 458249 → 458249 | 0 0.000%)
━ CapacityBondTest::test_curveDefaults() (gas: 10624 → 10624 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_acceptsFloorAndCeiling() (gas: 161019 → 161019 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_emitsOldAndNewValue() (gas: 158167 → 158167 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_revertsAboveCeiling() (gas: 18017 → 18017 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_revertsBelowFloor() (gas: 17950 → 17950 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_revertsWhenBondBelowCurve() (gas: 131783 → 131783 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_revertsZero() (gas: 17895 → 17895 | 0 0.000%)
━ CapacityBondTest::test_declareMbps_succeedsExactlyAtCurve() (gas: 147146 → 147146 | 0 0.000%)
━ CapacityBondTest::test_declaredMbps_storesValue() (gas: 147168 → 147168 | 0 0.000%)
━ CapacityBondTest::test_escrowHooks_requireSlashAppealRole() (gas: 17017 → 17017 | 0 0.000%)
━ CapacityBondTest::test_finalizeUnappealedSlash_distributes5050() (gas: 356654 → 356654 | 0 0.000%)
━ CapacityBondTest::test_firstBondedAt_immutableAcrossReBonds() (gas: 111447 → 111447 | 0 0.000%)
━ CapacityBondTest::test_firstBondedAt_setsOnFirstBond() (gas: 102513 → 102513 | 0 0.000%)
━ CapacityBondTest::test_forfeitUnvestedCredit_burnsWhenNoTreasury() (gas: 256105 → 256105 | 0 0.000%)
━ CapacityBondTest::test_forfeitUnvestedCredit_doesNotClawBackVestedUnclaimed() (gas: 291756 → 291756 | 0 0.000%)
━ CapacityBondTest::test_forfeitUnvestedCredit_onUnbond() (gas: 300422 → 300422 | 0 0.000%)
━ CapacityBondTest::test_genesisCredit_fullVestAfterDuration() (gas: 141326 → 141326 | 0 0.000%)
━ CapacityBondTest::test_genesisCredit_grantWithinWindow() (gas: 139196 → 139196 | 0 0.000%)
━ CapacityBondTest::test_genesisCredit_revertsAfterWindow() (gas: 82827 → 82827 | 0 0.000%)
━ CapacityBondTest::test_genesisCredit_vestsLinearly() (gas: 141606 → 141606 | 0 0.000%)
━ CapacityBondTest::test_markAppealOpen_blocksFinalize() (gas: 327281 → 327281 | 0 0.000%)
━ CapacityBondTest::test_pause_revertsWithoutRole() (gas: 14704 → 14704 | 0 0.000%)
━ CapacityBondTest::test_pendingCreditSlash_reducesOriginalGrant() (gas: 433125 → 433125 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_activeOnly() (gas: 899 → 899 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_remainderClip() (gas: 1101 → 1101 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_slashEqualsActive() (gas: 942 → 942 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_spillsIntoUnbonding() (gas: 932 → 932 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_unbondingOnly() (gas: 951 → 951 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_zeroInputs() (gas: 1471 → 1471 | 0 0.000%)
━ CapacityBondTest::test_registerNode_revertsOnInvalidEd25519Sig() (gas: 179153 → 179153 | 0 0.000%)
━ CapacityBondTest::test_registerNode_revertsWhenAlreadyActive() (gas: 387843 → 387843 | 0 0.000%)
━ CapacityBondTest::test_registerNode_revertsWhenBondBelowCurve() (gas: 207450 → 207450 | 0 0.000%)
━ CapacityBondTest::test_registerNode_succeedsAtCurve() (gas: 415424 → 415424 | 0 0.000%)
━ CapacityBondTest::test_requestUnbond_allowedWhenNoCapacityDeclared() (gas: 164080 → 164080 | 0 0.000%)
━ CapacityBondTest::test_requestUnbond_revertsWhenItDropsBelowCurve() (gas: 160305 → 160305 | 0 0.000%)
━ CapacityBondTest::test_requestUnbond_succeedsDownToExactlyCurve() (gas: 208809 → 208809 | 0 0.000%)
━ CapacityBondTest::test_setAlpha_revertsOutOfBounds() (gas: 18430 → 18430 | 0 0.000%)
━ CapacityBondTest::test_setAlpha_revertsWhenGbpsTierOutOfRange() (gas: 29865 → 29865 | 0 0.000%)
━ CapacityBondTest::test_setAlpha_updatesCurveAndEmits() (gas: 33844 → 33844 | 0 0.000%)
━ CapacityBondTest::test_setCapacity_onlyGovernance() (gas: 19635 → 19635 | 0 0.000%)
━ CapacityBondTest::test_setClaimSlashGateEpochs_revertsWithoutRole() (gas: 14824 → 14824 | 0 0.000%)
━ CapacityBondTest::test_setCurve_onlyGovernance() (gas: 19416 → 19416 | 0 0.000%)
━ CapacityBondTest::test_setKAlpha_orderingMatters() (gas: 56002 → 56002 | 0 0.000%)
━ CapacityBondTest::test_setK_revertsWhenGbpsTierOutOfRange() (gas: 43902 → 43902 | 0 0.000%)
━ CapacityBondTest::test_setK_updatesCurveAndEmits() (gas: 35561 → 35561 | 0 0.000%)
━ CapacityBondTest::test_setMaxCapacity_acceptsInclusiveBounds() (gas: 24407 → 24407 | 0 0.000%)
━ CapacityBondTest::test_setMaxCapacity_revertsOutOfBounds() (gas: 18329 → 18329 | 0 0.000%)
━ CapacityBondTest::test_setMaxCapacity_updatesBandAndEmits() (gas: 31040 → 31040 | 0 0.000%)
━ CapacityBondTest::test_setMaxMultiaddrSize_revertsWithoutRole() (gas: 14977 → 14977 | 0 0.000%)
━ CapacityBondTest::test_setMinBond_revertsWithoutRole() (gas: 14846 → 14846 | 0 0.000%)
━ CapacityBondTest::test_setMinCapacity_acceptsInclusiveBounds() (gas: 24688 → 24688 | 0 0.000%)
━ CapacityBondTest::test_setMinCapacity_revertsOutOfBounds() (gas: 18537 → 18537 | 0 0.000%)
━ CapacityBondTest::test_setMinCapacity_updatesBandAndEmits() (gas: 166870 → 166870 | 0 0.000%)
━ CapacityBondTest::test_setMultiaddrUpdateCooldown_revertsWithoutRole() (gas: 14822 → 14822 | 0 0.000%)
━ CapacityBondTest::test_setRegionStabilityWindow_revertsWithoutRole() (gas: 14845 → 14845 | 0 0.000%)
━ CapacityBondTest::test_setTreasury_revertsWithoutRole() (gas: 14919 → 14919 | 0 0.000%)
━ CapacityBondTest::test_setUnbondingPeriod_revertsWithoutRole() (gas: 14913 → 14913 | 0 0.000%)
━ CapacityBondTest::test_settleAppealGranted_clearsAndRefunds() (gas: 303422 → 303422 | 0 0.000%)
━ CapacityBondTest::test_settleAppealGranted_multiSlash_recomputesThenClears() (gas: 429016 → 429016 | 0 0.000%)
━ CapacityBondTest::test_settleAppealGranted_reverseMiddleSlash_keepsNewest() (gas: 578068 → 578068 | 0 0.000%)
━ CapacityBondTest::test_settleAppealUpheld_distributes5050() (gas: 348716 → 348716 | 0 0.000%)
━ CapacityBondTest::test_slashHitsVestedAndUnvestedTogether() (gas: 476164 → 476164 | 0 0.000%)
━ CapacityBondTest::test_slashHitsVestedButUnclaimed() (gas: 443613 → 443613 | 0 0.000%)
━ CapacityBondTest::test_slashId_persistsRecord() (gas: 314968 → 314968 | 0 0.000%)
━ CapacityBondTest::test_slash_creditSlash_escalatesAcrossTiers() (gas: 666599 → 666599 | 0 0.000%)
━ CapacityBondTest::test_slash_doesNotEnforceCurve() (gas: 362496 → 362496 | 0 0.000%)
━ CapacityBondTest::test_slash_escrowsWithoutDistribution() (gas: 326147 → 326147 | 0 0.000%)
━ CapacityBondTest::test_slash_stampsSlashedAtEpoch() (gas: 314664 → 314664 | 0 0.000%)
━ CapacityBondTest::test_slash_tier3_mixedBond_exhaustsActiveTapsUnbonding() (gas: 599418 → 599418 | 0 0.000%)
━ CapacityBondTest::test_slash_tierEscalation_15then50pct() (gas: 547217 → 547217 | 0 0.000%)
━ CapacityBondTest::test_slashedAtEpoch_zeroBeforeSlash() (gas: 10152 → 10152 | 0 0.000%)
━ CapacityBondTest::test_unpause_revertsWithoutRole() (gas: 94612 → 94612 | 0 0.000%)
━ CapacityBondTest::test_updateMultiaddrs_revertsWhenNodeNotActive() (gas: 15613 → 15613 | 0 0.000%)
━ CapacityBondTest::test_updateRegion_cooldownAndPrevSnapshot() (gas: 458111 → 458111 | 0 0.000%)
━ CapacityBondTest::test_updateRegion_revertsWhenNodeNotActive() (gas: 15741 → 15741 | 0 0.000%)
━ ContentBlacklistTest::test_addHashGlobal_andQuery() (gas: 38191 → 38191 | 0 0.000%)
━ ContentBlacklistTest::test_addHashGlobal_revertsWithoutGovernanceRole() (gas: 14608 → 14608 | 0 0.000%)
━ ContentBlacklistTest::test_addHashRegional_globalTakesPrecedence() (gas: 41980 → 41980 | 0 0.000%)
━ ContentBlacklistTest::test_addHashRegional_revertsWithoutRegionalBodyRole() (gas: 14684 → 14684 | 0 0.000%)
━ ContentBlacklistTest::test_addOperator_callsEjectOnCapacityBond() (gas: 91570 → 91570 | 0 0.000%)
━ ContentBlacklistTest::test_fullAppealFlow_ratifyRemovesHash() (gas: 275665 → 275665 | 0 0.000%)
━ ContentBlacklistTest::test_hasActiveAppeal_clearedOnLapseOpen() (gas: 242221 → 242221 | 0 0.000%)
━ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReject() (gas: 433926 → 433926 | 0 0.000%)
━ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReverse() (gas: 254985 → 254985 | 0 0.000%)
━ ContentBlacklistTest::test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 356697 → 356697 | 0 0.000%)
━ ContentBlacklistTest::test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18635 → 18635 | 0 0.000%)
━ ContentBlacklistTest::test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16243 → 16243 | 0 0.000%)
━ ContentBlacklistTest::test_regionalCap_blocksMoreThanThreeActiveAppeals() (gas: 706667 → 706667 | 0 0.000%)
━ ContentBlacklistTest::test_registerRegionalBody_revertsWithoutGovernanceRole() (gas: 14830 → 14830 | 0 0.000%)
━ ContentBlacklistTest::test_rejectAppeal_burnsBond() (gas: 247882 → 247882 | 0 0.000%)
━ ContentBlacklistTest::test_removeHashRegional_blocksGlobalRegionEntries() (gas: 44419 → 44419 | 0 0.000%)
━ ContentBlacklistTest::test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 261664 → 261664 | 0 0.000%)
━ ContentBlacklistTest::test_setAppealBond_revertsWithoutGovernanceRole() (gas: 14754 → 14754 | 0 0.000%)
━ DecdnGovernorTest::test_ageRampMonthsAt_preservesPriorReadAfterLaterPush() (gas: 4104760 → 4104760 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_halfRamp() (gas: 173099 → 173099 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_historicalSnapshotIgnoresFutureSlash() (gas: 221405 → 221405 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_ramp() (gas: 173020 → 173020 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_recoversAfterWindowSlidesPastSlash() (gas: 196808 → 196808 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_uncappedWhenBelowCap() (gas: 173006 → 173006 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_zeroIfNeverBonded() (gas: 93593 → 93593 | 0 0.000%)
━ DecdnGovernorTest::test_getVotes_zeroWhenSlashedInWindow() (gas: 119032 → 119032 | 0 0.000%)
━ DecdnGovernorTest::test_proposalThreshold_isPointOnePercent() (gas: 71807 → 71807 | 0 0.000%)
━ DecdnGovernorTest::test_quorum_isFourPercentOfTotalBytesInWindow() (gas: 71639 → 71639 | 0 0.000%)
━ DecdnGovernorTest::test_setAgeRampMonths_revertsWithoutTimelockCaller() (gas: 11013 → 11013 | 0 0.000%)
━ DecdnGovernorTest::test_setVoteCapBps_revertsWithoutTimelockCaller() (gas: 11066 → 11066 | 0 0.000%)
━ DecdnGovernorTest::test_voteCapBpsAt_preservesPriorReadAfterLaterPush() (gas: 4104884 → 4104884 | 0 0.000%)
━ DeployProtocolTest::test_assertNoBackDoors_revertsWhenHandoffIncomplete() (gas: 24644804 → 24644804 | 0 0.000%)
━ DeployProtocolTest::test_assertNoBackDoors_revertsWhenTimelockMissingRole() (gas: 94428 → 94428 | 0 0.000%)
━ DeployProtocolTest::test_crossContractWiring_capacityBondPeerRoles() (gas: 23419 → 23419 | 0 0.000%)
━ DeployProtocolTest::test_crossContractWiring_genesisGrantorIsTimelock() (gas: 17075 → 17075 | 0 0.000%)
━ DeployProtocolTest::test_crossContractWiring_newContractPeerRoles() (gas: 31445 → 31445 | 0 0.000%)
━ DeployProtocolTest::test_crossContractWiring_slashAppealChallengerPool() (gas: 9920 → 9920 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroChallengerIncentivePool() (gas: 2025645 → 2025645 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroDeployer() (gas: 580314 → 580314 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroEd25519Verifier() (gas: 2025513 → 2025513 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroEmergencyMultisig() (gas: 2025557 → 2025557 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroInitialTokenHolder() (gas: 2025645 → 2025645 | 0 0.000%)
━ DeployProtocolTest::test_deployTargets_revertsOnZeroUsdc() (gas: 2025451 → 2025451 | 0 0.000%)
━ DeployProtocolTest::test_emergencyMultisig_canPauseAndBlockEntrypoint() (gas: 48534 → 48534 | 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: 8743 → 8743 | 0 0.000%)
━ DeployProtocolTest::test_governor_timelockBinding() (gas: 25888 → 25888 | 0 0.000%)
━ DeployProtocolTest::test_roleMatrix_deployerHoldsNoRoleAnywhere() (gas: 66902 → 66902 | 0 0.000%)
━ DeployProtocolTest::test_roleMatrix_emergencyMultisigGrants() (gas: 19503 → 19503 | 0 0.000%)
━ DeployProtocolTest::test_roleMatrix_pauserIsEmergencyMultisig() (gas: 45635 → 45635 | 0 0.000%)
━ DeployProtocolTest::test_roleMatrix_timelockHoldsDefaultAdminOnEveryTarget() (gas: 41824 → 41824 | 0 0.000%)
━ DeployProtocolTest::test_roleMatrix_timelockHoldsGovernanceOnEveryTarget() (gas: 41952 → 41952 | 0 0.000%)
━ DeployProtocolTest::test_token_initialHolderHoldsFullSupply() (gas: 13803 → 13803 | 0 0.000%)
━ DeployProtocolScriptTest::test_readConfig_appliesDefaultsForOptionalVars() (gas: 17786 → 17786 | 0 0.000%)
━ DeployProtocolScriptTest::test_readConfig_deployerIsTxOrigin() (gas: 15801 → 15801 | 0 0.000%)
━ DeployProtocolScriptTest::test_run_abortsBeforeBroadcastWhenManifestExists() (gas: 22040 → 22040 | 0 0.000%)
━ DeployProtocolScriptTest::test_run_revertsIfDeployerIsForgeDefaultSender() (gas: 15305 → 15305 | 0 0.000%)
━ DeployProtocolScriptTest::test_writeManifest_overwritesWhenForced() (gas: 110634 → 110634 | 0 0.000%)
━ DeployProtocolScriptTest::test_writeManifest_revertsOnExistingFile() (gas: 32033 → 32033 | 0 0.000%)
━ DeployProtocolScriptTest::test_writeManifest_writesAllAddresses() (gas: 92307 → 92307 | 0 0.000%)
━ E2EProtocolTest::test_deployWiring_newContractsWiredAndHandedOff() (gas: 66882 → 66882 | 0 0.000%)
━ E2EProtocolTest::test_e2e_blacklistEjectsOperator() (gas: 417879 → 417879 | 0 0.000%)
━ E2EProtocolTest::test_e2e_registerSettleSlashEjectAppeal() (gas: 1468598 → 1468598 | 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_sumsTrailingWindow() (gas: 497291 → 497291 | 0 0.000%)
━ FeeRouterTest::test_bytesInWindow_zeroWindowReturnsZero() (gas: 9326 → 9326 | 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: 141838 → 141838 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_incrementsBytesPerEpoch() (gas: 221457 → 221457 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_revertsWithoutRouterRole() (gas: 89208 → 89208 | 0 0.000%)
━ FeeRouterTest::test_setBuybackBurner_revertsWithoutRole() (gas: 14720 → 14720 | 0 0.000%)
━ FeeRouterTest::test_setSharesAndDestinations_revertsWithoutRole() (gas: 19569 → 19569 | 0 0.000%)
━ FeeRouterTest::test_setShares_rejectsNonZeroShareWithoutDestination() (gas: 16239 → 16239 | 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: 14696 → 14696 | 0 0.000%)
━ FeeRouterTest::test_setWindowEpochs_enforcesBounds() (gas: 32780 → 32780 | 0 0.000%)
━ FeeRouterTest::test_setWindowEpochs_revertsWithoutRole() (gas: 14688 → 14688 | 0 0.000%)
━ FeeRouterTest::test_unpause_revertsWithoutRole() (gas: 72166 → 72166 | 0 0.000%)
━ GovernanceLifecycleTest::test_canary_executorIsTimelock() (gas: 9969 → 9969 | 0 0.000%)
━ GovernanceLifecycleTest::test_canary_governanceRoleHandoff() (gas: 99056 → 99056 | 0 0.000%)
━ GovernanceLifecycleTest::test_canary_governorVoteWeightWired() (gas: 129769 → 129769 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setClaimSlashGateEpochs_happy() (gas: 588888 → 588888 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setClaimSlashGateEpochs_outOfBounds() (gas: 594581 → 594581 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxCapacityMbps_happy() (gas: 588588 → 588588 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxCapacityMbps_outOfBounds() (gas: 594492 → 594492 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxMultiaddrSize_happy() (gas: 588630 → 588630 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxMultiaddrSize_outOfBounds() (gas: 594605 → 594605 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinBond_happy() (gas: 588764 → 588764 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinBond_outOfBounds() (gas: 594537 → 594537 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinCapacityMbps_happy() (gas: 588739 → 588739 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinCapacityMbps_outOfBounds() (gas: 594514 → 594514 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_happy() (gas: 605793 → 605793 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_outOfBounds() (gas: 594466 → 594466 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setRegionStabilityWindow_happy() (gas: 588634 → 588634 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setRegionStabilityWindow_outOfBounds() (gas: 594516 → 594516 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setTreasury_happy() (gas: 606105 → 606105 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setUnbondingPeriod_happy() (gas: 588658 → 588658 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setUnbondingPeriod_outOfBounds() (gas: 594542 → 594542 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addHashGlobal_happy() (gas: 609043 → 609043 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addHashGlobal_outOfBounds() (gas: 596630 → 596630 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addOperator_happy() (gas: 637690 → 637690 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addOperator_outOfBounds() (gas: 596767 → 596767 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_registerRegionalBody_happy() (gas: 610550 → 610550 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeHashGlobal_happy() (gas: 993743 → 993743 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeHashGlobal_outOfBounds() (gas: 599178 → 599178 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeOperator_happy() (gas: 1022125 → 1022125 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setAppealBond_happy() (gas: 591119 → 591119 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setAppealBond_outOfBounds() (gas: 596951 → 596951 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setOriginBlacklist_happy() (gas: 609684 → 609684 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setOriginBlacklist_outOfBounds() (gas: 597472 → 597472 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setAgeRampMonths_happy() (gas: 630454 → 630454 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setAgeRampMonths_outOfBounds() (gas: 636172 → 636172 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setVoteCapBps_happy() (gas: 630461 → 630461 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setVoteCapBps_outOfBounds() (gas: 636214 → 636214 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setBuybackBurner_happy() (gas: 589013 → 589013 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setBuybackBurner_outOfBounds() (gas: 596542 → 596542 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setSharesAndDestinations_happy() (gas: 621947 → 621947 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setSharesAndDestinations_outOfBounds() (gas: 597638 → 597638 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setShares_happy() (gas: 608092 → 608092 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setShares_outOfBounds() (gas: 596435 → 596435 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setTreasury_happy() (gas: 589039 → 589039 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setTreasury_outOfBounds() (gas: 594287 → 594287 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setWindowEpochs_happy() (gas: 610783 → 610783 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setWindowEpochs_outOfBounds() (gas: 596811 → 596811 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_happy() (gas: 591346 → 591346 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_outOfBounds() (gas: 596946 → 596946 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_happy() (gas: 591262 → 591262 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_outOfBounds() (gas: 596988 → 596988 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setAppealBond_happy() (gas: 591081 → 591081 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setAppealBond_outOfBounds() (gas: 596948 → 596948 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setChallengerIncentivePool_happy() (gas: 591497 → 591497 | 0 0.000%)
━ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setChallengerIncentivePool_outOfBounds() (gas: 596777 → 596777 | 0 0.000%)
━ InterfaceFreezeTest::test_originAssignment_abiFrozen() (gas: 1298 → 1298 | 0 0.000%)
━ InterfaceFreezeTest::test_paymentChannel_abiFrozen() (gas: 1540 → 1540 | 0 0.000%)
━ InterfaceFreezeTest::test_slashJudge_abiFrozen() (gas: 870 → 870 | 0 0.000%)
━ OriginAssignmentTest::test_activate_blacklistSkippedWhenUnset() (gas: 2045181 → 2045181 | 0 0.000%)
━ OriginAssignmentTest::test_activate_onlyGovernance() (gas: 140563 → 140563 | 0 0.000%)
━ OriginAssignmentTest::test_activate_replacesPreviousSet() (gas: 344888 → 344888 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsBeforeTimelock() (gas: 140524 → 140524 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsNoPending() (gas: 20987 → 20987 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsOperatorBlacklisted() (gas: 173723 → 173723 | 0 0.000%)
━ OriginAssignmentTest::test_activate_revertsOperatorWentInactive() (gas: 152943 → 152943 | 0 0.000%)
━ OriginAssignmentTest::test_activate_setsAuthorizedSet() (gas: 220067 → 220067 | 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: 21147 → 21147 | 0 0.000%)
━ OriginAssignmentTest::test_defaultOpen_revertsInactive() (gas: 27910 → 27910 | 0 0.000%)
━ OriginAssignmentTest::test_defaultOpen_setAllowlist() (gas: 172086 → 172086 | 0 0.000%)
━ OriginAssignmentTest::test_propose_overwriteReplacesPending() (gas: 128820 → 128820 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsDuplicate() (gas: 34896 → 34896 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsEmpty() (gas: 21925 → 21925 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsInactiveOperator() (gas: 39819 → 39819 | 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: 243079 → 243079 | 0 0.000%)
━ OriginAssignmentTest::test_prune_revertsWhenBlacklistUnset() (gas: 1862769 → 1862769 | 0 0.000%)
━ OriginAssignmentTest::test_prune_revertsWhenNotBlacklisted() (gas: 220747 → 220747 | 0 0.000%)
━ OriginAssignmentTest::test_revoke_byPublisherAndGovernance() (gas: 232436 → 232436 | 0 0.000%)
━ OriginAssignmentTest::test_revoke_revertsNonMember() (gas: 23619 → 23619 | 0 0.000%)
━ OriginAssignmentTest::test_setAssignmentTimelock_enforcesBounds() (gas: 24737 → 24737 | 0 0.000%)
━ OriginAssignmentTest::test_setContentBlacklist_rejectsZero() (gas: 13451 → 13451 | 0 0.000%)
━ OriginAssignmentTest::test_setMaxOrigins_enforcesBounds() (gas: 13857 → 13857 | 0 0.000%)
━ PaymentChannelTest::testFuzz_settle_refundEqualsDepositMinusClaimed(uint256,uint256) (gas: 410648 → 410648 | 0 0.000%)
━ PaymentChannelTest::testFuzz_withdrawThenSettle_partitionsClaim(uint256,uint256,uint256,uint256) (gas: 546319 → 546319 | 0 0.000%)
━ PaymentChannelTest::test_close_afterWithdraw_settleRoutesRemainderOnly() (gas: 538591 → 538591 | 0 0.000%)
━ PaymentChannelTest::test_close_atWatermarkNonce_succeeds() (gas: 471986 → 471986 | 0 0.000%)
━ PaymentChannelTest::test_close_revertsAfterExpiry() (gas: 209040 → 209040 | 0 0.000%)
━ PaymentChannelTest::test_close_revertsOnAmountExceedingDeposit() (gas: 221040 → 221040 | 0 0.000%)
━ PaymentChannelTest::test_close_revertsOnByteOnlyAdvance() (gas: 464920 → 464920 | 0 0.000%)
━ PaymentChannelTest::test_close_then_settle_routesAndRefunds() (gas: 420622 → 420622 | 0 0.000%)
━ PaymentChannelTest::test_close_thirdPartyCannotClose() (gas: 210915 → 210915 | 0 0.000%)
━ PaymentChannelTest::test_constructor_revertsOnDisputeWindowOutOfBounds() (gas: 76787 → 76787 | 0 0.000%)
━ PaymentChannelTest::test_constructor_revertsOnEoaFeeRouter() (gas: 76787 → 76787 | 0 0.000%)
━ PaymentChannelTest::test_constructor_revertsOnZeroAdmin() (gas: 71702 → 71702 | 0 0.000%)
━ PaymentChannelTest::test_dispute_higherNonceWins() (gas: 307630 → 307630 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsAfterDeadline() (gas: 295195 → 295195 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnAmountExceedingDeposit() (gas: 303144 → 303144 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnAmountRegression() (gas: 302754 → 302754 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnByteOnlyAdvance() (gas: 483308 → 483308 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnBytesRegression() (gas: 302891 → 302891 | 0 0.000%)
━ PaymentChannelTest::test_dispute_revertsOnStaleNonce() (gas: 300180 → 300180 | 0 0.000%)
━ PaymentChannelTest::test_forcedInclusion_doesNotExtendTwice() (gas: 2756694 → 2756694 | 0 0.000%)
━ PaymentChannelTest::test_forcedInclusion_extendsDeadlineOnce() (gas: 2734132 → 2734132 | 0 0.000%)
━ PaymentChannelTest::test_forcedInclusion_noExtendWhenAmpleTimeRemains() (gas: 2742648 → 2742648 | 0 0.000%)
━ PaymentChannelTest::test_getRateBounds_returnsConfigured() (gas: 9890 → 9890 | 0 0.000%)
━ PaymentChannelTest::test_normalDispute_doesNotExtend() (gas: 317503 → 317503 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_derivesIdAndIncrementsNonce() (gas: 219442 → 219442 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_distinctIdsAcrossProviders() (gas: 347252 → 347252 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_revertsBelowMinDeposit() (gas: 23033 → 23033 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_revertsOnInactiveProvider() (gas: 29784 → 29784 | 0 0.000%)
━ PaymentChannelTest::test_openChannel_revertsWhenPaused() (gas: 47399 → 47399 | 0 0.000%)
━ PaymentChannelTest::test_paused_exitsStillCallable() (gas: 659037 → 659037 | 0 0.000%)
━ PaymentChannelTest::test_reclaimExpired_refundsRemainderToClient() (gas: 446830 → 446830 | 0 0.000%)
━ PaymentChannelTest::test_reclaimExpired_revertsBeforeExpiry() (gas: 204176 → 204176 | 0 0.000%)
━ PaymentChannelTest::test_setDisputeWindow_enforcesBounds() (gas: 24815 → 24815 | 0 0.000%)
━ PaymentChannelTest::test_setFeeRouter_revertsOnEoaRouter() (gas: 18660 → 18660 | 0 0.000%)
━ PaymentChannelTest::test_setFeeRouter_revertsOnZeroAndUnchanged() (gas: 24635 → 24635 | 0 0.000%)
━ PaymentChannelTest::test_setFeeRouter_updatesTarget() (gas: 284490 → 284490 | 0 0.000%)
━ PaymentChannelTest::test_setters_onlyGovernance() (gas: 13976 → 13976 | 0 0.000%)
━ PaymentChannelTest::test_settle_amountEqualsDeposit_zeroRefund() (gas: 405432 → 405432 | 0 0.000%)
━ PaymentChannelTest::test_settle_fullyWithdrawn_noRouterCall() (gas: 467688 → 467688 | 0 0.000%)
━ PaymentChannelTest::test_settle_revertsBeforeDisputeDeadline() (gas: 292432 → 292432 | 0 0.000%)
━ PaymentChannelTest::test_topUp_increasesDeposit() (gas: 222520 → 222520 | 0 0.000%)
━ PaymentChannelTest::test_topUp_onlyClient() (gas: 204390 → 204390 | 0 0.000%)
━ PaymentChannelTest::test_voucher_rejectedOnWrongChannelId() (gas: 335707 → 335707 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_acceptsErc1271Signature() (gas: 711964 → 711964 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_onlyProvider() (gas: 208846 → 208846 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsOnAmountExceedingDeposit() (gas: 220800 → 220800 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsOnBadSignature() (gas: 213634 → 213634 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsOnBytesRegression() (gas: 463839 → 463839 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsOnNonMonotonicNonce() (gas: 463515 → 463515 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_revertsWhenDeltaZero() (gas: 464290 → 464290 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_routesDeltaAndAdvancesWatermark() (gas: 460090 → 460090 | 0 0.000%)
━ PaymentChannelTest::test_withdraw_secondWithdrawRoutesOnlyIncrement() (gas: 546054 → 546054 | 0 0.000%)
━ PaymentChannelTest::test_zeroVoucherClose_disabledAfterWithdraw() (gas: 457488 → 457488 | 0 0.000%)
━ PaymentChannelTest::test_zeroVoucherClose_refundsFullDeposit() (gas: 216232 → 216232 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_multiClaimAcrossNamespaces() (gas: 233820 → 233820 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_recordsClaim() (gas: 134733 → 134733 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsForDefaultOpenNamespace() (gas: 13756 → 13756 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsIfNotOwner() (gas: 66829 → 66829 | 0 0.000%)
━ PublisherRegistryTest::test_claimContent_revertsOnDuplicateSameNamespace() (gas: 135319 → 135319 | 0 0.000%)
━ PublisherRegistryTest::test_constructor_revertsZeroAdmin() (gas: 36674 → 36674 | 0 0.000%)
━ PublisherRegistryTest::test_constructor_setsDefaultsAndRoles() (gas: 19037 → 19037 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_assignsIdsFromOne() (gas: 92728 → 92728 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_revertsAtCap() (gas: 98581 → 98581 | 0 0.000%)
━ PublisherRegistryTest::test_createNamespace_zeroIsNeverAssigned() (gas: 65471 → 65471 | 0 0.000%)
━ PublisherRegistryTest::test_namespaceOf_emptyForUnclaimed() (gas: 8273 → 8273 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_revertsOutOfBounds() (gas: 17605 → 17605 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_revertsWithoutRole() (gas: 13384 → 13384 | 0 0.000%)
━ PublisherRegistryTest::test_setMaxNamespaces_withinBounds() (gas: 20687 → 20687 | 0 0.000%)
━ PublisherRegistryTest::test_setTransferTimelock_revertsOutOfBounds() (gas: 17706 → 17706 | 0 0.000%)
━ PublisherRegistryTest::test_setTransferTimelock_revertsWithoutRole() (gas: 14763 → 14763 | 0 0.000%)
━ PublisherRegistryTest::test_setTransferTimelock_withinBounds() (gas: 20560 → 20560 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_cancelByOwner() (gas: 78668 → 78668 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_cancelRevertsIfNotOwner() (gas: 93302 → 93302 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_finalizeRevertsIfNotPendingOwner() (gas: 93817 → 93817 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_finalizeRevertsNoPending() (gas: 68544 → 68544 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_fullFlow() (gas: 98658 → 98658 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_initiateRevertsIfNotOwner() (gas: 66923 → 66923 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_initiateRevertsZeroNewOwner() (gas: 64330 → 64330 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_revertsWhenRecipientAtCap() (gas: 150145 → 150145 | 0 0.000%)
━ PublisherRegistryTest::test_transfer_selfTransferExemptFromCap() (gas: 95404 → 95404 | 0 0.000%)
━ SlashAppealTest::test_cleanup_fastTrackedLapse_grantsOperatorFavorable() (gas: 456307 → 456307 | 0 0.000%)
━ SlashAppealTest::test_cleanup_openLapse_upholds() (gas: 474119 → 474119 | 0 0.000%)
━ SlashAppealTest::test_fastTrack_requiresMultisig() (gas: 484575 → 484575 | 0 0.000%)
━ SlashAppealTest::test_frequencyCap_blocksSecondAppealWithinWindow() (gas: 608265 → 608265 | 0 0.000%)
━ SlashAppealTest::test_grant_newerAppeal_fallsBackToOlderStandingSlash() (gas: 603685 → 603685 | 0 0.000%)
━ SlashAppealTest::test_grant_olderAppeal_preservesNewerSlashZeroOut() (gas: 603017 → 603017 | 0 0.000%)
━ SlashAppealTest::test_grant_refundsOperatorAndBondAndClearsZeroOut() (gas: 463212 → 463212 | 0 0.000%)
━ SlashAppealTest::test_grant_requiresGovernance() (gas: 495247 → 495247 | 0 0.000%)
━ SlashAppealTest::test_grant_restoresCreditVestingNotLiquid() (gas: 576516 → 576516 | 0 0.000%)
━ SlashAppealTest::test_grant_revertsIfNotFastTracked() (gas: 486955 → 486955 | 0 0.000%)
━ SlashAppealTest::test_open_locksEscrowAndPullsBond() (gas: 490954 → 490954 | 0 0.000%)
━ SlashAppealTest::test_open_revertsAfterFilingWindow() (gas: 481797 → 481797 | 0 0.000%)
━ SlashAppealTest::test_open_revertsForNonOperator() (gas: 495568 → 495568 | 0 0.000%)
━ SlashAppealTest::test_open_revertsOnDoubleAppeal() (gas: 486736 → 486736 | 0 0.000%)
━ SlashAppealTest::test_open_revertsUnknownSlash() (gas: 23776 → 23776 | 0 0.000%)
━ SlashAppealTest::test_pause_extendsFilingWindow() (gas: 408682 → 408682 | 0 0.000%)
━ SlashAppealTest::test_reject_burnsBondAndDistributesEscrow() (gas: 478618 → 478618 | 0 0.000%)
━ SlashAppealTest::test_uphold_distributesEscrowAndSplitsBond() (gas: 515059 → 515059 | 0 0.000%)
━ SlashAppealTest::test_uphold_poolUnset_burnsFullBond() (gas: 2175009 → 2175009 | 0 0.000%)
━ SlashJudgeTest::test_blacklist_revertsOnHashMismatch() (gas: 68210 → 68210 | 0 0.000%)
━ SlashJudgeTest::test_blacklist_revertsWhenBlacklistedAfterResponse() (gas: 72559 → 72559 | 0 0.000%)
━ SlashJudgeTest::test_blacklist_revertsWhenNotBlacklisted() (gas: 48632 → 48632 | 0 0.000%)
━ SlashJudgeTest::test_blacklist_revertsWhenSuspended() (gas: 72096 → 72096 | 0 0.000%)
━ SlashJudgeTest::test_blacklist_slashesOnProbeResponse() (gas: 189538 → 189538 | 0 0.000%)
━ SlashJudgeTest::test_blacklist_slashesOnStreamResponse() (gas: 190270 → 190270 | 0 0.000%)
━ SlashJudgeTest::test_constructor_revertsWhenEvidenceAgeExceedsUnbonding() (gas: 366864 → 366864 | 0 0.000%)
━ SlashJudgeTest::test_pause_blocksChallenges() (gas: 58348 → 58348 | 0 0.000%)
━ SlashJudgeTest::test_phantom_revertsOnBadProbeSignature() (gas: 46691 → 46691 | 0 0.000%)
━ SlashJudgeTest::test_phantom_revertsOnEvidenceReplay() (gas: 199102 → 199102 | 0 0.000%)
━ SlashJudgeTest::test_phantom_revertsOnFutureEvidence() (gas: 47528 → 47528 | 0 0.000%)
━ SlashJudgeTest::test_phantom_revertsOnNodeIdMismatch() (gas: 37805 → 37805 | 0 0.000%)
━ SlashJudgeTest::test_phantom_revertsOnStaleEvidence() (gas: 49909 → 49909 | 0 0.000%)
━ SlashJudgeTest::test_phantom_revertsOnUnregisteredNode() (gas: 39027 → 39027 | 0 0.000%)
━ SlashJudgeTest::test_phantom_revertsOutsideTimestampWindow() (gas: 49624 → 49624 | 0 0.000%)
━ SlashJudgeTest::test_phantom_revertsWhenStreamOk() (gas: 53546 → 53546 | 0 0.000%)
━ SlashJudgeTest::test_phantom_slashesAndRoundTripsBond() (gas: 179547 → 179547 | 0 0.000%)
━ SlashJudgeTest::test_rate_revertsWhenNotHigher() (gas: 53581 → 53581 | 0 0.000%)
━ SlashJudgeTest::test_rate_slashesWhenStreamRateHigher() (gas: 172123 → 172123 | 0 0.000%)
━ SlashJudgeTest::test_setChallengeBond_enforcesBounds() (gas: 24689 → 24689 | 0 0.000%)
━ SlashJudgeTest::test_setMaxEvidenceAge_enforcesBoundsAndInvariant() (gas: 40199 → 40199 | 0 0.000%)
━ SlashJudgeTest::test_setters_onlyGovernance() (gas: 13759 → 13759 | 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%)
↑ CapacityBondTest::testFuzz_bondRequired_monotonic(uint256,uint256) (gas: 19427 → 19578 | 151 0.777%)
↓ PublisherRegistryTest::testFuzz_createNamespace_idsAreSequentialAndOwned(uint8) (gas: 441404 → 371835 | -69569 -15.761%)

--------------------------------------------------------------------------------
Total tests: 460, ↑ 1, ↓ 1, ━ 458
Overall gas change: -69418 (-0.042%)

Run: 26784945803

@github-actions

github-actions Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Contracts coverage

Line coverage: 87.76% (1735/1977 lines)
▲ +0.27pp vs base (87.49% → 87.76%)
Run: 26784945803

Slash-escrow finality + mint now run via DELEGATECALL into the linked
SlashEscrowLib, and the curve enforcement adds new gas paths; refresh the
committed baseline so the CI gas-diff comment reflects the new surface.

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

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request implements the on-chain capacity-bond curve coupling (activeBond ≥ k × Mbps^α) and introduces governance setters (setK and setAlpha) to tune the curve coefficients on-chain. To keep the CapacityBond contract under the EIP-170 size ceiling, the slash escrow lifecycle state machine and its associated types have been refactored and extracted into a new library, SlashEscrowLib. Additionally, BondMath has been updated to evaluate the curve using Solady's FixedPointMathLib. There are no review comments to evaluate, so I have no feedback to provide.

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.

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

Implements the previously ADR-documented capacity-bond curve (bond_required(Mbps) = k × Mbps^α) as an on-chain, governance-tunable, and enforced invariant in CapacityBond, while refactoring slash-escrow finality logic into a linked library to stay under the EIP-170 runtime-size limit.

Changes:

  • Add on-chain curve evaluation (BondMath.bondRequired) and enforce activeBond ≥ bondRequired(declaredMbps) at declareMbps, requestUnbond, and registerNode, with governance setters setK / setAlpha plus bounds.
  • Extract the slash escrow finality / settlement state machine into SlashEscrowLib (linked DELEGATECALL library) and update tests to use the moved SlashStatus / SlashRecord types.
  • Wire in solady (remappings, slither config, lockfile, submodule) and update ADR docs to reflect shipped enforcement + governance.

Reviewed changes

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

Show a summary per file
File Description
contracts/src/CapacityBond.sol Adds curve params + enforcement, governance setters/bounds, and delegates slash-escrow finality logic to SlashEscrowLib to reduce bytecode size.
contracts/src/BondMath.sol Adds fixed-point curve evaluation using Solady FixedPointMathLib.powWad and keeps the curve math in a linked library.
contracts/src/SlashEscrowLib.sol New linked library holding slash escrow finality lifecycle, events, and multi-slash watermark recompute.
contracts/test/CapacityBond.t.sol Adds curve tests and updates slash-record expectations to use SlashEscrowLib types.
contracts/test/SlashAppeal.t.sol Updates enum/type references to SlashStatus moved into SlashEscrowLib.
contracts/slither.config.json Adds Solady remapping for Slither analysis.
contracts/remappings.txt Adds Solady remapping for Foundry builds.
contracts/foundry.lock Pins Solady (and records crypto-lib revision) for reproducible dependency resolution.
.gitmodules Adds Solady as a git submodule under contracts/lib/solady.
adr/026-tokenomics.md Documents shipped on-chain enforcement and governance of the bond curve.
adr/016-contract-interactions.md Updates contract interaction tables to reflect on-chain tunable curve and Governor self-setters.

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

Comment thread contracts/test/CapacityBond.t.sol Resolved
thiras and others added 3 commits June 2, 2026 00:46
 review)

bond() adds to activeBond, so the prior helper that always bonded the full
bondRequired(mbps) would overshoot if called after a prior bond, weakening
"exactly at curve" boundary assertions. Bond only max(0, need - activeBond)
and top the operator up only for that deficit. Behavior-identical for the
current callers (all start at activeBond == 0); 85 CapacityBond tests green.

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

Review follow-ups from the multi-agent PR review. No behavior change to the
shipped curve/slash logic; all 459 tests green.

- EPOCH_LENGTH drift (flagged by 3 reviewers): SlashEscrowLib no longer
  duplicates the 7-day epoch constant — settleGranted / _recomputeSlashedAtEpoch
  take it as a param threaded from CapacityBond.EPOCH_LENGTH (the same source
  _stampSlash stamps with), so the multi-slash zero-out watermark can never
  diverge from the stamp.
- ADR 016: the bond() / declareMbps / requestUnbond Guards rows said the curve
  coupling "is not enforced" / omitted it — now describe the shipped
  BondBelowCurve enforcement; replaced three stale `clearSlashedAtEpoch`
  references (no such function) with the relocated multi-slash watermark
  recompute.
- CapacityBond: the registerNode comment cited issue #681 (CLOSED/COMPLETED,
  and about the minCapacityMbps band floor, not this gap) — inlined the actual
  residual note (registerNode does not require a prior declareMbps).
- Tests (+3, plus rollback assertions): registerNode success-at-curve happy
  path (the gate's success side was uncovered); fuzz monotonicity over the full
  declarable band; requestUnbond down to exactly the curve (inclusive
  boundary); and assert setK / setAlpha leave storage unchanged after an
  out-of-range revert (locks the store-then-validate rollback invariant).

Declined (single trusted caller; current idioms correct; issue specified
separate setK/setAlpha): value-in/out escrowedTotal signature change, mint
slashCounter cross-check, atomic setCurve / packed-struct, and in-function
bondRequired bound asserts.

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

The setK/setAlpha NatSpec warns that a valid (k, α) end-state can be
unreachable in the wrong order, because each setter validates the 1 Gbps tier
against the live other coefficient. That documented behavioral contract had no
coverage. test_setKAlpha_orderingMatters demonstrates both legs for the target
(k=180, α=1.0): k-first reverts at the (k=180, α=1.2) intermediate (~716K TOKEN
> 200K ceiling), while α-first reaches the same pair with every step in range.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@thiras
thiras merged commit eda9452 into main Jun 1, 2026
19 checks passed
@thiras
thiras deleted the feat/770-capacity-bond-curve-enforcement branch June 1, 2026 22:31
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.

CapacityBond bond-curve (bond = k × Mbps^α) is unenforced and ungovernable on-chain — decide enforce-vs-document

2 participants