Skip to content

feat(node): iroh relay support + disposable anvil internal-testnet rig - #794

Closed
alpergundogdu wants to merge 6 commits into
mainfrom
claude/contract-deployment-vps-anvil-fPKlW
Closed

alpergundogdu wants to merge 6 commits into
mainfrom
claude/contract-deployment-vps-anvil-fPKlW

Conversation

@alpergundogdu

@alpergundogdu alpergundogdu commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #793.

This PR does two things, intentionally landed together (the relay wiring is exercised by the rig). The earlier description framed the relay as a separate follow-up — that was stale; the relay runtime change is included here, hence the feat(node) title.

1. Disposable internal-testnet rig (contracts/local/)

anvil in Docker (persistent state, WireGuard-bound port, defaults to 127.0.0.1), with a deploy.sh that deploys the test-only MintableUSDC then runs the production DeployProtocol.s.sol against it — same recipe as crates/node/tests/anvil_settlement_e2e.rs, so the surface matches Sepolia/mainnet. Plus .env.example, .gitignore, and a full README.md runbook.

  • Nothing under src/ or script/, so forge build/aderyn/slither/gas-snapshot and the TestnetFaucet boundary gate are untouched.
  • Deploy manifest uses a gitignored 3133769x chain id.
  • Scrap with docker compose down -v + delete contracts/local/.

2. Self-hosted iroh relay support (crates/node) — node runtime change

  • build_endpoint now honors [network] relay_url (DECDN_RELAY_URL): when set, it swaps the n0 default relay map for a single self-hosted relay (RelayMode::Custom), keeping presets::N0 DNS address-lookup for NodeId→address discovery.
  • probe_relay is a startup diagnostic, not a gate: a few short TCP connects with backoff. On an unreachable relay it logs a warning and continues — iroh keeps retrying the relay in the background, so a slow-starting or transiently-down relay can't block node bring-up. (Changed from fail-fast per review.) IPv6 hosts are un-bracketed before dialing; failure logs show only host:port, never the URL (no userinfo leak). Unit-tested: reachable / unreachable / IPv6 / unbracket_host.
  • The relay Docker service is opt-in (docker compose --profile relay up -d, operator-supplied IROH_RELAY_IMAGE).

Follow-up (out of scope here): #795 — multiple relays + self-hosted discovery for full n0 independence.

Reviewer notes addressed

  • Title/description now reflect the included node-runtime change (chore(contracts) → feat(node)).
  • Probe is warn-and-continue (retry, then continue), not fail-fast.
  • Gemini/Copilot rounds: IPv6 relay hosts, deploy.sh RPC derivation from WG_BIND_IP, .env.example localhost note, placeholder/redirection hazards, seq→bash arithmetic, sed whitespace.

Validation

  • Rust: cargo build, cargo clippy --all-targets (anti-panic + cognitive-complexity) clean, relay unit tests pass.
  • Solidity: untouched; suite green (480/0).

claude added 2 commits June 3, 2026 07:26
Stand up the full deCDN contract surface on a VPS for internal testing
using anvil, isolated under contracts/local/ so it can be scrapped in one
move. No new Solidity: reuse the tested recipe from anvil_settlement_e2e
(deploy test-only MintableUSDC, then run the production DeployProtocol.s.sol).

- docker-compose.yml: anvil with persistent state, bound to the WireGuard
  interface only (never 0.0.0.0; Docker bypasses host firewalls).
- deploy.sh: mock USDC + production deploy wrapper, 1h timelock floor.
- .env.example, .gitignore, README.md runbook (security, funding, node
  wiring, time control, scrap, and the iroh-relay caveat).

Zero production-audit-surface impact: nothing under src/ or script/, so
forge build/aderyn/slither/gas-snapshot and the TestnetFaucet boundary
gate are untouched. Manifest uses a gitignored 3133769x chain id.
Copilot AI review requested due to automatic review settings June 3, 2026 07:27
@github-actions

github-actions Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Gas snapshot

Gas changes vs base
No files changed, compilation skipped

Ran 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 5.29ms (4.39ms 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 7.49ms (4.47ms CPU time)

Ran 88 tests for test/CapacityBond.t.sol:CapacityBondTest
[PASS] testFuzz_bondRequired_monotonic(uint256,uint256) (runs: 1024, μ: 19327, ~: 19622)
[PASS] test_appealGrant_unlocksClaimBeforeGateExpiry() (gas: 433692)
[PASS] test_bondRequired_matchesAdrWorkedExamples() (gas: 29776)
[PASS] test_bondRequired_strictlyMonotonic() (gas: 37752)
[PASS] test_bondRequired_zeroForZeroMbps() (gas: 13183)
[PASS] test_capacityBand_defaults() (gas: 10622)
[PASS] test_capacityBand_floorAlwaysBelowCeiling() (gas: 29341)
[PASS] test_claimVestedCredit_movesIntoActiveBond() (gas: 214461)
[PASS] test_claimVestedCredit_multiClaimFollowsLinearCurve() (gas: 219046)
[PASS] test_claimVestedCredit_multiSlash_gatedByOlderStandingSlash() (gas: 584023)
[PASS] test_claimVestedCredit_revertsWhenNoActiveBond() (gas: 144484)
[PASS] test_claimVestedCredit_revertsWhenSlashedInWindow() (gas: 438931)
[PASS] test_claimVestedCredit_succeedsAfterSlashGateExpires() (gas: 441920)
[PASS] test_creditSlash_escrowsThenDistributes5050AtFinality() (gas: 458272)
[PASS] test_curveDefaults() (gas: 10668)
[PASS] test_declareMbps_acceptsFloorAndCeiling() (gas: 161154)
[PASS] test_declareMbps_emitsOldAndNewValue() (gas: 158324)
[PASS] test_declareMbps_revertsAboveCeiling() (gas: 18084)
[PASS] test_declareMbps_revertsBelowFloor() (gas: 17907)
[PASS] test_declareMbps_revertsWhenBondBelowCurve() (gas: 131872)
[PASS] test_declareMbps_revertsZero() (gas: 17940)
[PASS] test_declareMbps_succeedsExactlyAtCurve() (gas: 147258)
[PASS] test_declaredMbps_storesValue() (gas: 147170)
[PASS] test_escrowHooks_requireSlashAppealRole() (gas: 17061)
[PASS] test_finalizeUnappealedSlash_distributes5050() (gas: 356720)
[PASS] test_firstBondedAt_immutableAcrossReBonds() (gas: 111513)
[PASS] test_firstBondedAt_setsOnFirstBond() (gas: 102579)
[PASS] test_forfeitUnvestedCredit_burnsWhenNoTreasury() (gas: 255996)
[PASS] test_forfeitUnvestedCredit_doesNotClawBackVestedUnclaimed() (gas: 291647)
[PASS] test_forfeitUnvestedCredit_onUnbond() (gas: 300423)
[PASS] test_genesisCredit_fullVestAfterDuration() (gas: 141172)
[PASS] test_genesisCredit_grantWithinWindow() (gas: 139175)
[PASS] test_genesisCredit_revertsAfterWindow() (gas: 82784)
[PASS] test_genesisCredit_vestsLinearly() (gas: 141475)
[PASS] test_markAppealOpen_blocksFinalize() (gas: 327347)
[PASS] test_pause_revertsWithoutRole() (gas: 14704)
[PASS] test_pendingCreditSlash_reducesOriginalGrant() (gas: 433126)
[PASS] test_reduceBondAtTier_activeOnly() (gas: 921)
[PASS] test_reduceBondAtTier_remainderClip() (gas: 1101)
[PASS] test_reduceBondAtTier_slashEqualsActive() (gas: 832)
[PASS] test_reduceBondAtTier_spillsIntoUnbonding() (gas: 932)
[PASS] test_reduceBondAtTier_unbondingOnly() (gas: 973)
[PASS] test_reduceBondAtTier_zeroInputs() (gas: 1448)
[PASS] test_registerNode_revertsOnInvalidEd25519Sig() (gas: 179149)
[PASS] test_registerNode_revertsWhenAlreadyActive() (gas: 387703)
[PASS] test_registerNode_revertsWhenBondBelowCurve() (gas: 207535)
[PASS] test_registerNode_succeedsAtCurve() (gas: 415487)
[PASS] test_requestUnbond_allowedWhenNoCapacityDeclared() (gas: 164080)
[PASS] test_requestUnbond_revertsWhenItDropsBelowCurve() (gas: 160394)
[PASS] test_requestUnbond_succeedsDownToExactlyCurve() (gas: 208876)
[PASS] test_setAlpha_revertsOutOfBounds() (gas: 18430)
[PASS] test_setAlpha_revertsWhenGbpsTierOutOfRange() (gas: 29865)
[PASS] test_setAlpha_updatesCurveAndEmits() (gas: 33866)
[PASS] test_setCapacity_onlyGovernance() (gas: 19590)
[PASS] test_setClaimSlashGateEpochs_revertsWithoutRole() (gas: 14868)
[PASS] test_setCurve_onlyGovernance() (gas: 19482)
[PASS] test_setKAlpha_orderingMatters() (gas: 56112)
[PASS] test_setK_revertsWhenGbpsTierOutOfRange() (gas: 43967)
[PASS] test_setK_updatesCurveAndEmits() (gas: 35693)
[PASS] test_setMaxCapacity_acceptsInclusiveBounds() (gas: 24473)
[PASS] test_setMaxCapacity_revertsOutOfBounds() (gas: 18395)
[PASS] test_setMaxCapacity_updatesBandAndEmits() (gas: 31129)
[PASS] test_setMaxMultiaddrSize_revertsWithoutRole() (gas: 14999)
[PASS] test_setMinBond_revertsWithoutRole() (gas: 14890)
[PASS] test_setMinCapacity_acceptsInclusiveBounds() (gas: 24710)
[PASS] test_setMinCapacity_revertsOutOfBounds() (gas: 18581)
[PASS] test_setMinCapacity_updatesBandAndEmits() (gas: 167027)
[PASS] test_setMultiaddrUpdateCooldown_revertsWithoutRole() (gas: 14844)
[PASS] test_setRegionStabilityWindow_revertsWithoutRole() (gas: 14911)
[PASS] test_setTreasury_revertsWithoutRole() (gas: 15007)
[PASS] test_setUnbondingPeriod_revertsWithoutRole() (gas: 14957)
[PASS] test_settleAppealGranted_clearsAndRefunds() (gas: 303554)
[PASS] test_settleAppealGranted_multiSlash_recomputesThenClears() (gas: 429170)
[PASS] test_settleAppealGranted_reverseMiddleSlash_keepsNewest() (gas: 578178)
[PASS] test_settleAppealUpheld_distributes5050() (gas: 348826)
[PASS] test_slashHitsVestedAndUnvestedTogether() (gas: 476143)
[PASS] test_slashHitsVestedButUnclaimed() (gas: 443592)
[PASS] test_slashId_persistsRecord() (gas: 314901)
[PASS] test_slash_creditSlash_escalatesAcrossTiers() (gas: 666622)
[PASS] test_slash_doesNotEnforceCurve() (gas: 362563)
[PASS] test_slash_escrowsWithoutDistribution() (gas: 326213)
[PASS] test_slash_stampsSlashedAtEpoch() (gas: 314708)
[PASS] test_slash_tier3_mixedBond_exhaustsActiveTapsUnbonding() (gas: 599374)
[PASS] test_slash_tierEscalation_15then50pct() (gas: 547261)
[PASS] test_slashedAtEpoch_zeroBeforeSlash() (gas: 10174)
[PASS] test_unpause_revertsWithoutRole() (gas: 94546)
[PASS] test_updateMultiaddrs_revertsWhenNodeNotActive() (gas: 15635)
[PASS] test_updateRegion_revertsWhenNodeNotActive() (gas: 15696)
Suite result: ok. 88 passed; 0 failed; 0 skipped; finished in 141.53ms (137.44ms CPU time)

Ran 54 tests for test/GovernanceLifecycle.t.sol:GovernanceLifecycleTest
[PASS] test_canary_executorIsTimelock() (gas: 9969)
[PASS] test_canary_governanceRoleHandoff() (gas: 99144)
[PASS] test_canary_governorVoteWeightWired() (gas: 129967)
[PASS] test_lifecycle_CapacityBond_setClaimSlashGateEpochs_happy() (gas: 589504)
[PASS] test_lifecycle_CapacityBond_setClaimSlashGateEpochs_outOfBounds() (gas: 595197)
[PASS] test_lifecycle_CapacityBond_setMaxCapacityMbps_happy() (gas: 589226)
[PASS] test_lifecycle_CapacityBond_setMaxCapacityMbps_outOfBounds() (gas: 595130)
[PASS] test_lifecycle_CapacityBond_setMaxMultiaddrSize_happy() (gas: 589246)
[PASS] test_lifecycle_CapacityBond_setMaxMultiaddrSize_outOfBounds() (gas: 595221)
[PASS] test_lifecycle_CapacityBond_setMinBond_happy() (gas: 589380)
[PASS] test_lifecycle_CapacityBond_setMinBond_outOfBounds() (gas: 595175)
[PASS] test_lifecycle_CapacityBond_setMinCapacityMbps_happy() (gas: 589355)
[PASS] test_lifecycle_CapacityBond_setMinCapacityMbps_outOfBounds() (gas: 595152)
[PASS] test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_happy() (gas: 606409)
[PASS] test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_outOfBounds() (gas: 595082)
[PASS] test_lifecycle_CapacityBond_setRegionStabilityWindow_happy() (gas: 589294)
[PASS] test_lifecycle_CapacityBond_setRegionStabilityWindow_outOfBounds() (gas: 595154)
[PASS] test_lifecycle_CapacityBond_setTreasury_happy() (gas: 606765)
[PASS] test_lifecycle_CapacityBond_setUnbondingPeriod_happy() (gas: 589296)
[PASS] test_lifecycle_CapacityBond_setUnbondingPeriod_outOfBounds() (gas: 595158)
[PASS] test_lifecycle_ContentBlacklist_addHashGlobal_happy() (gas: 611922)
[PASS] test_lifecycle_ContentBlacklist_addHashGlobal_outOfBounds() (gas: 597246)
[PASS] test_lifecycle_ContentBlacklist_addOperator_happy() (gas: 640678)
[PASS] test_lifecycle_ContentBlacklist_addOperator_outOfBounds() (gas: 602436)
[PASS] test_lifecycle_ContentBlacklist_registerRegionalBody_happy() (gas: 611166)
[PASS] test_lifecycle_ContentBlacklist_removeHashGlobal_happy() (gas: 997238)
[PASS] test_lifecycle_ContentBlacklist_removeHashGlobal_outOfBounds() (gas: 599794)
[PASS] test_lifecycle_ContentBlacklist_removeOperator_happy() (gas: 1025729)
[PASS] test_lifecycle_ContentBlacklist_setAppealBond_happy() (gas: 591735)
[PASS] test_lifecycle_ContentBlacklist_setAppealBond_outOfBounds() (gas: 597567)
[PASS] test_lifecycle_ContentBlacklist_setOriginBlacklist_happy() (gas: 610300)
[PASS] test_lifecycle_ContentBlacklist_setOriginBlacklist_outOfBounds() (gas: 598088)
[PASS] test_lifecycle_DecdnGovernor_setAgeRampMonths_happy() (gas: 631070)
[PASS] test_lifecycle_DecdnGovernor_setAgeRampMonths_outOfBounds() (gas: 636788)
[PASS] test_lifecycle_DecdnGovernor_setVoteCapBps_happy() (gas: 631077)
[PASS] test_lifecycle_DecdnGovernor_setVoteCapBps_outOfBounds() (gas: 636830)
[PASS] test_lifecycle_FeeRouter_setBuybackBurner_happy() (gas: 589629)
[PASS] test_lifecycle_FeeRouter_setBuybackBurner_outOfBounds() (gas: 597158)
[PASS] test_lifecycle_FeeRouter_setSharesAndDestinations_happy() (gas: 622563)
[PASS] test_lifecycle_FeeRouter_setSharesAndDestinations_outOfBounds() (gas: 598254)
[PASS] test_lifecycle_FeeRouter_setShares_happy() (gas: 608708)
[PASS] test_lifecycle_FeeRouter_setShares_outOfBounds() (gas: 597051)
[PASS] test_lifecycle_FeeRouter_setTreasury_happy() (gas: 589655)
[PASS] test_lifecycle_FeeRouter_setTreasury_outOfBounds() (gas: 594903)
[PASS] test_lifecycle_FeeRouter_setWindowEpochs_happy() (gas: 611399)
[PASS] test_lifecycle_FeeRouter_setWindowEpochs_outOfBounds() (gas: 597427)
[PASS] test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_happy() (gas: 591962)
[PASS] test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_outOfBounds() (gas: 597562)
[PASS] test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_happy() (gas: 591878)
[PASS] test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_outOfBounds() (gas: 597604)
[PASS] test_lifecycle_SlashAppeal_setAppealBond_happy() (gas: 591652)
[PASS] test_lifecycle_SlashAppeal_setAppealBond_outOfBounds() (gas: 597519)
[PASS] test_lifecycle_SlashAppeal_setChallengerIncentivePool_happy() (gas: 592113)
[PASS] test_lifecycle_SlashAppeal_setChallengerIncentivePool_outOfBounds() (gas: 597393)
Suite result: ok. 54 passed; 0 failed; 0 skipped; finished in 158.90ms (135.06ms 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 1.41ms (1.11ms 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 6.86ms (6.08ms CPU time)

Ran 5 tests for test/CapacityBondRegionE2E.t.sol:CapacityBondRegionE2ETest
[PASS] test_crossContractEject_viaContentBlacklist() (gas: 2849334)
[PASS] test_registerNode_corruptEd25519Signature_reverts() (gas: 640872)
[PASS] test_registerNode_realEd25519Signature_succeeds() (gas: 851299)
[PASS] test_registerNode_replayAfterNonceBump_reverts() (gas: 1321825)
[PASS] test_updateRegion_cooldownPrevSnapshotAndEvent() (gas: 922988)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 75.28ms (71.79ms CPU time)

Ran 19 tests for test/ContentBlacklist.t.sol:ContentBlacklistTest
[PASS] test_addHashGlobal_andQuery() (gas: 40454)
[PASS] test_addHashGlobal_revertsWithoutGovernanceRole() (gas: 14608)
[PASS] test_addHashRegional_globalTakesPrecedence() (gas: 44310)
[PASS] test_addHashRegional_revertsWithoutRegionalBodyRole() (gas: 14750)
[PASS] test_addHash_revertsWhileAppealActive() (gas: 233813)
[PASS] test_addOperator_callsEjectOnCapacityBond() (gas: 93920)
[PASS] test_fullAppealFlow_ratifyRemovesHash() (gas: 276038)
[PASS] test_hasActiveAppeal_clearedOnLapseOpen() (gas: 223830)
[PASS] test_hasActiveAppeal_clearedOnReject() (gas: 410381)
[PASS] test_hasActiveAppeal_clearedOnReverse() (gas: 255340)
[PASS] test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 334316)
[PASS] test_openBlacklistAppeal_revertsOnEntryNotBlacklisted() (gas: 18635)
[PASS] test_openBlacklistAppeal_revertsOnZeroRegion() (gas: 16243)
[PASS] test_regionalCap_countsFastTrackedNotOpen() (gas: 894100)
[PASS] test_registerRegionalBody_revertsWithoutGovernanceRole() (gas: 14830)
[PASS] test_rejectAppeal_burnsBond() (gas: 229508)
[PASS] test_removeHashRegional_blocksGlobalRegionEntries() (gas: 46682)
[PASS] test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 262037)
[PASS] test_setAppealBond_revertsWithoutGovernanceRole() (gas: 14754)
Suite result: ok. 19 passed; 0 failed; 0 skipped; finished in 7.47ms (4.45ms 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 11.31ms (8.01ms CPU time)

Ran 23 tests for test/DeployProtocol.t.sol:DeployProtocolTest
[PASS] test_assertNoBackDoors_revertsWhenHandoffIncomplete() (gas: 24934827)
[PASS] test_assertNoBackDoors_revertsWhenTimelockMissingRole() (gas: 94428)
[PASS] test_crossContractWiring_capacityBondPeerRoles() (gas: 23419)
[PASS] test_crossContractWiring_genesisGrantorIsTimelock() (gas: 17165)
[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: 48410)
[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: 66946)
[PASS] test_roleMatrix_emergencyMultisigGrants() (gas: 19569)
[PASS] test_roleMatrix_pauserIsEmergencyMultisig() (gas: 45657)
[PASS] test_roleMatrix_timelockHoldsDefaultAdminOnEveryTarget() (gas: 41846)
[PASS] test_roleMatrix_timelockHoldsGovernanceOnEveryTarget() (gas: 41974)
[PASS] test_token_initialHolderHoldsFullSupply() (gas: 13803)
Suite result: ok. 23 passed; 0 failed; 0 skipped; finished in 25.13ms (13.12ms 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 13.01ms (11.33ms CPU time)

Ran 3 tests for test/E2EProtocol.t.sol:E2EProtocolTest
[PASS] test_deployWiring_newContractsWiredAndHandedOff() (gas: 66882)
[PASS] test_e2e_blacklistEjectsOperator() (gas: 420295)
[PASS] test_e2e_registerSettleSlashEjectAppeal() (gas: 1474331)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 17.63ms (2.62ms 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 153.52ms (153.07ms 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 791.08ms (789.98ms CPU time)

Ran 23 tests for test/SlashAppeal.t.sol:SlashAppealTest
[PASS] test_cleanup_fastTrackedLapse_grantsOperatorFavorable() (gas: 455127)
[PASS] test_cleanup_openLapse_upholds() (gas: 472918)
[PASS] test_fastTrack_requiresMultisig() (gas: 484713)
[PASS] test_forceResolveStuckAppeal_resolvesAfterRoleRevoked() (gas: 521967)
[PASS] test_forceResolveStuckAppeal_revertsWhenNotAppealOpen() (gas: 320040)
[PASS] test_forceResolveStuckAppeal_revertsWithoutGovernanceRole() (gas: 487811)
[PASS] test_frequencyCap_blocksSecondAppealWithinWindow() (gas: 608342)
[PASS] test_grant_newerAppeal_fallsBackToOlderStandingSlash() (gas: 603691)
[PASS] test_grant_olderAppeal_preservesNewerSlashZeroOut() (gas: 603110)
[PASS] test_grant_refundsOperatorAndBondAndClearsZeroOut() (gas: 463283)
[PASS] test_grant_requiresGovernance() (gas: 495318)
[PASS] test_grant_restoresCreditVestingNotLiquid() (gas: 576566)
[PASS] test_grant_revertsIfNotFastTracked() (gas: 486982)
[PASS] test_open_locksEscrowAndPullsBond() (gas: 491027)
[PASS] test_open_revertsAfterFilingWindow() (gas: 481847)
[PASS] test_open_revertsForNonOperator() (gas: 495646)
[PASS] test_open_revertsOnDoubleAppeal() (gas: 486748)
[PASS] test_open_revertsUnknownSlash() (gas: 23755)
[PASS] test_pause_extendsFilingWindow() (gas: 408650)
[PASS] test_reject_burnsBondAndDistributesEscrow() (gas: 478602)
[PASS] test_slashAppealPause_extendsCapacityBondFilingWindow() (gas: 556672)
[PASS] test_uphold_distributesEscrowAndSplitsBond() (gas: 515000)
[PASS] test_uphold_poolUnset_burnsFullBond() (gas: 2249371)
Suite result: ok. 23 passed; 0 failed; 0 skipped; finished in 19.44ms (17.36ms 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 26.66ms (24.72ms CPU time)

Ran 44 tests for test/TestnetFaucet.t.sol:TestnetFaucetTest
[PASS] testFuzz_claim_atOrAboveCooldown(uint256) (runs: 1024, μ: 91486, ~: 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 269.89ms (266.06ms CPU time)

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

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

Ran 19 test suites in 2.07s (3.70s CPU time): 480 tests passed, 0 failed, 0 skipped (480 total tests)
━ CapacityBondTest::test_capacityBand_defaults() (gas: 10622 → 10622 | 0 0.000%)
━ CapacityBondTest::test_pause_revertsWithoutRole() (gas: 14704 → 14704 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_remainderClip() (gas: 1101 → 1101 | 0 0.000%)
━ CapacityBondTest::test_reduceBondAtTier_spillsIntoUnbonding() (gas: 932 → 932 | 0 0.000%)
━ CapacityBondTest::test_requestUnbond_allowedWhenNoCapacityDeclared() (gas: 164080 → 164080 | 0 0.000%)
━ CapacityBondTest::test_setAlpha_revertsOutOfBounds() (gas: 18430 → 18430 | 0 0.000%)
━ CapacityBondTest::test_setAlpha_revertsWhenGbpsTierOutOfRange() (gas: 29865 → 29865 | 0 0.000%)
━ ContentBlacklistTest::test_addHashGlobal_revertsWithoutGovernanceRole() (gas: 14608 → 14608 | 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_registerRegionalBody_revertsWithoutGovernanceRole() (gas: 14830 → 14830 | 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_revertsWhenTimelockMissingRole() (gas: 94428 → 94428 | 0 0.000%)
━ DeployProtocolTest::test_crossContractWiring_capacityBondPeerRoles() (gas: 23419 → 23419 | 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_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_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%)
━ 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_pause_revertsWithoutRole() (gas: 14609 → 14609 | 0 0.000%)
━ FeeRouterTest::test_routeSettlement_distributesThreeLegs() (gas: 232441 → 232441 | 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_setWindowEpochs_revertsWithoutRole() (gas: 14688 → 14688 | 0 0.000%)
━ GovernanceLifecycleTest::test_canary_executorIsTimelock() (gas: 9969 → 9969 | 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_revertsBeforeTimelock() (gas: 140524 → 140524 | 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_revertsInactive() (gas: 27910 → 27910 | 0 0.000%)
━ OriginAssignmentTest::test_propose_revertsEmpty() (gas: 21925 → 21925 | 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_revoke_revertsNonMember() (gas: 23619 → 23619 | 0 0.000%)
━ OriginAssignmentTest::test_setMaxOrigins_enforcesBounds() (gas: 13857 → 13857 | 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_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%)
━ 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%)
━ 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::test_appealGrant_unlocksClaimBeforeGateExpiry() (gas: 433691 → 433692 | 1 0.000%)
↑ CapacityBondTest::test_pendingCreditSlash_reducesOriginalGrant() (gas: 433125 → 433126 | 1 0.000%)
↑ CapacityBondTest::test_forfeitUnvestedCredit_onUnbond() (gas: 300422 → 300423 | 1 0.000%)
↑ SlashAppealTest::test_grant_newerAppeal_fallsBackToOlderStandingSlash() (gas: 603685 → 603691 | 6 0.001%)
↑ CapacityBondTest::test_declaredMbps_storesValue() (gas: 147168 → 147170 | 2 0.001%)
↓ CapacityBondTest::test_registerNode_revertsOnInvalidEd25519Sig() (gas: 179153 → 179149 | -4 -0.002%)
↑ SlashAppealTest::test_open_revertsOnDoubleAppeal() (gas: 486736 → 486748 | 12 0.002%)
↓ SlashAppealTest::test_reject_burnsBondAndDistributesEscrow() (gas: 478618 → 478602 | -16 -0.003%)
↑ CapacityBondTest::test_slash_creditSlash_escalatesAcrossTiers() (gas: 666599 → 666622 | 23 0.003%)
↓ CapacityBondTest::test_slashHitsVestedAndUnvestedTogether() (gas: 476164 → 476143 | -21 -0.004%)
↓ CapacityBondTest::test_slashHitsVestedButUnclaimed() (gas: 443613 → 443592 | -21 -0.005%)
↑ CapacityBondTest::test_creditSlash_escrowsThenDistributes5050AtFinality() (gas: 458249 → 458272 | 23 0.005%)
↑ SlashAppealTest::test_grant_revertsIfNotFastTracked() (gas: 486955 → 486982 | 27 0.006%)
↓ CapacityBondTest::test_claimVestedCredit_multiSlash_gatedByOlderStandingSlash() (gas: 584065 → 584023 | -42 -0.007%)
↓ CapacityBondTest::test_slash_tier3_mixedBond_exhaustsActiveTapsUnbonding() (gas: 599418 → 599374 | -44 -0.007%)
↓ SlashAppealTest::test_pause_extendsFilingWindow() (gas: 408682 → 408650 | -32 -0.008%)
↑ CapacityBondTest::test_slash_tierEscalation_15then50pct() (gas: 547217 → 547261 | 44 0.008%)
↑ SlashAppealTest::test_grant_restoresCreditVestingNotLiquid() (gas: 576516 → 576566 | 50 0.009%)
↑ SlashAppealTest::test_open_revertsAfterFilingWindow() (gas: 481797 → 481847 | 50 0.010%)
↓ SlashAppealTest::test_uphold_distributesEscrowAndSplitsBond() (gas: 515059 → 515000 | -59 -0.011%)
↑ SlashAppealTest::test_frequencyCap_blocksSecondAppealWithinWindow() (gas: 608265 → 608342 | 77 0.013%)
↑ OriginAssignmentTest::test_defaultOpen_setAllowlist() (gas: 172086 → 172108 | 22 0.013%)
↑ CapacityBondTest::test_slash_stampsSlashedAtEpoch() (gas: 314664 → 314708 | 44 0.014%)
↑ SlashAppealTest::test_grant_requiresGovernance() (gas: 495247 → 495318 | 71 0.014%)
↑ SlashAppealTest::test_open_locksEscrowAndPullsBond() (gas: 490954 → 491027 | 73 0.015%)
↓ CapacityBondTest::test_genesisCredit_grantWithinWindow() (gas: 139196 → 139175 | -21 -0.015%)
↑ CapacityBondTest::test_registerNode_succeedsAtCurve() (gas: 415424 → 415487 | 63 0.015%)
↑ SlashAppealTest::test_grant_refundsOperatorAndBondAndClearsZeroOut() (gas: 463212 → 463283 | 71 0.015%)
↑ SlashAppealTest::test_grant_olderAppeal_preservesNewerSlashZeroOut() (gas: 603017 → 603110 | 93 0.015%)
↓ FeeRouterTest::test_routeSettlement_dustRoutesToOperatorWhenBuybackUnset() (gas: 141838 → 141816 | -22 -0.016%)
↑ OriginAssignmentTest::test_activate_onlyGovernance() (gas: 140563 → 140585 | 22 0.016%)
↑ SlashAppealTest::test_open_revertsForNonOperator() (gas: 495568 → 495646 | 78 0.016%)
↑ CapacityBondTest::test_slash_doesNotEnforceCurve() (gas: 362496 → 362563 | 67 0.018%)
↑ CapacityBondTest::test_finalizeUnappealedSlash_distributes5050() (gas: 356654 → 356720 | 66 0.019%)
↑ CapacityBondTest::test_settleAppealGranted_reverseMiddleSlash_keepsNewest() (gas: 578068 → 578178 | 110 0.019%)
↓ CapacityBondTest::test_claimVestedCredit_revertsWhenSlashedInWindow() (gas: 439019 → 438931 | -88 -0.020%)
↑ CapacityBondTest::test_markAppealOpen_blocksFinalize() (gas: 327281 → 327347 | 66 0.020%)
↑ CapacityBondTest::test_slash_escrowsWithoutDistribution() (gas: 326147 → 326213 | 66 0.020%)
↑ FeeRouterTest::test_routeSettlement_incrementsBytesPerEpoch() (gas: 221457 → 221502 | 45 0.020%)
↓ CapacityBondTest::test_slashId_persistsRecord() (gas: 314968 → 314901 | -67 -0.021%)
↓ FeeRouterTest::test_routeSettlement_revertsWithoutRouterRole() (gas: 89208 → 89186 | -22 -0.025%)
↑ FeeRouterTest::test_bytesInWindow_sumsTrailingWindow() (gas: 497291 → 497431 | 140 0.028%)
↑ SlashAppealTest::test_fastTrack_requiresMultisig() (gas: 484575 → 484713 | 138 0.028%)
↓ CapacityBondTest::test_claimVestedCredit_succeedsAfterSlashGateExpires() (gas: 442051 → 441920 | -131 -0.030%)
↓ CapacityBondTest::test_claimVestedCredit_multiClaimFollowsLinearCurve() (gas: 219111 → 219046 | -65 -0.030%)
↓ FeeRouterTest::test_unpause_revertsWithoutRole() (gas: 72166 → 72144 | -22 -0.030%)
↑ CapacityBondTest::test_settleAppealUpheld_distributes5050() (gas: 348716 → 348826 | 110 0.032%)
↑ CapacityBondTest::test_requestUnbond_succeedsDownToExactlyCurve() (gas: 208809 → 208876 | 67 0.032%)
↑ CapacityBondTest::test_settleAppealGranted_multiSlash_recomputesThenClears() (gas: 429016 → 429170 | 154 0.036%)
↓ CapacityBondTest::test_registerNode_revertsWhenAlreadyActive() (gas: 387843 → 387703 | -140 -0.036%)
↓ CapacityBondTest::test_forfeitUnvestedCredit_doesNotClawBackVestedUnclaimed() (gas: 291756 → 291647 | -109 -0.037%)
↓ CapacityBondTest::test_claimVestedCredit_movesIntoActiveBond() (gas: 214548 → 214461 | -87 -0.041%)
↑ CapacityBondTest::test_registerNode_revertsWhenBondBelowCurve() (gas: 207450 → 207535 | 85 0.041%)
↓ CapacityBondTest::test_forfeitUnvestedCredit_burnsWhenNoTreasury() (gas: 256105 → 255996 | -109 -0.043%)
↑ CapacityBondTest::test_settleAppealGranted_clearsAndRefunds() (gas: 303422 → 303554 | 132 0.044%)
↓ CapacityBondTest::test_claimVestedCredit_revertsWhenNoActiveBond() (gas: 144549 → 144484 | -65 -0.045%)
↑ BuybackBurnerTest::test_constructor_grantsAdminAndGovernanceRoles() (gas: 14866 → 14873 | 7 0.047%)
↑ DeployProtocolTest::test_roleMatrix_pauserIsEmergencyMultisig() (gas: 45635 → 45657 | 22 0.048%)
↓ CapacityBondTest::test_genesisCredit_revertsAfterWindow() (gas: 82827 → 82784 | -43 -0.052%)
↑ DeployProtocolTest::test_roleMatrix_timelockHoldsGovernanceOnEveryTarget() (gas: 41952 → 41974 | 22 0.052%)
↑ DeployProtocolTest::test_roleMatrix_timelockHoldsDefaultAdminOnEveryTarget() (gas: 41824 → 41846 | 22 0.053%)
↑ OriginAssignmentTest::test_propose_revertsInactiveOperator() (gas: 39819 → 39841 | 22 0.055%)
↑ CapacityBondTest::test_requestUnbond_revertsWhenItDropsBelowCurve() (gas: 160305 → 160394 | 89 0.056%)
↑ CapacityBondTest::test_firstBondedAt_immutableAcrossReBonds() (gas: 111447 → 111513 | 66 0.059%)
↓ BuybackBurnerTest::test_setPool_emitsUpdateEvent() (gas: 24953 → 24938 | -15 -0.060%)
↑ OriginAssignmentTest::test_propose_revertsDuplicate() (gas: 34896 → 34918 | 22 0.063%)
↑ CapacityBondTest::test_firstBondedAt_setsOnFirstBond() (gas: 102513 → 102579 | 66 0.064%)
↑ CapacityBondTest::test_setAlpha_updatesCurveAndEmits() (gas: 33844 → 33866 | 22 0.065%)
↑ DeployProtocolTest::test_roleMatrix_deployerHoldsNoRoleAnywhere() (gas: 66902 → 66946 | 44 0.066%)
↓ FeeRouterTest::test_setWindowEpochs_enforcesBounds() (gas: 32780 → 32758 | -22 -0.067%)
↑ CapacityBondTest::test_declareMbps_revertsWhenBondBelowCurve() (gas: 131783 → 131872 | 89 0.068%)
↑ OriginAssignmentTest::test_activate_revertsOperatorBlacklisted() (gas: 173723 → 173841 | 118 0.068%)
↓ OriginAssignmentTest::test_propose_overwriteReplacesPending() (gas: 128820 → 128731 | -89 -0.069%)
↓ CapacityBondTest::test_unpause_revertsWithoutRole() (gas: 94612 → 94546 | -66 -0.070%)
↑ CapacityBondTest::test_declareMbps_succeedsExactlyAtCurve() (gas: 147146 → 147258 | 112 0.076%)
↑ CapacityBondTest::test_declareMbps_acceptsFloorAndCeiling() (gas: 161019 → 161154 | 135 0.084%)
↓ SlashAppealTest::test_open_revertsUnknownSlash() (gas: 23776 → 23755 | -21 -0.088%)
↑ GovernanceLifecycleTest::test_canary_governanceRoleHandoff() (gas: 99056 → 99144 | 88 0.089%)
↑ OriginAssignmentTest::test_setAssignmentTimelock_enforcesBounds() (gas: 24737 → 24759 | 22 0.089%)
↑ CapacityBondTest::test_setMinCapacity_acceptsInclusiveBounds() (gas: 24688 → 24710 | 22 0.089%)
↑ BuybackBurnerTest::test_executeBuyback_revertsWhenPaused() (gas: 73094 → 73161 | 67 0.092%)
↓ CapacityBondTest::test_genesisCredit_vestsLinearly() (gas: 141606 → 141475 | -131 -0.093%)
↑ CapacityBondTest::test_setMinCapacity_updatesBandAndEmits() (gas: 166870 → 167027 | 157 0.094%)
↓ BuybackBurnerTest::test_executeBuyback_revertsWithoutKeeperRole() (gas: 64298 → 64237 | -61 -0.095%)
↑ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setAppealBond_outOfBounds() (gas: 596948 → 597519 | 571 0.096%)
↑ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setAppealBond_happy() (gas: 591081 → 591652 | 571 0.097%)
↑ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setVoteCapBps_outOfBounds() (gas: 636214 → 636830 | 616 0.097%)
↑ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setAgeRampMonths_outOfBounds() (gas: 636172 → 636788 | 616 0.097%)
↑ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setVoteCapBps_happy() (gas: 630461 → 631077 | 616 0.098%)
↑ GovernanceLifecycleTest::test_lifecycle_DecdnGovernor_setAgeRampMonths_happy() (gas: 630454 → 631070 | 616 0.098%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setSharesAndDestinations_happy() (gas: 621947 → 622563 | 616 0.099%)
↑ CapacityBondTest::test_declareMbps_emitsOldAndNewValue() (gas: 158167 → 158324 | 157 0.099%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setWindowEpochs_happy() (gas: 610783 → 611399 | 616 0.101%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_registerRegionalBody_happy() (gas: 610550 → 611166 | 616 0.101%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setOriginBlacklist_happy() (gas: 609684 → 610300 | 616 0.101%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setShares_happy() (gas: 608092 → 608708 | 616 0.101%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_happy() (gas: 605793 → 606409 | 616 0.102%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeHashGlobal_outOfBounds() (gas: 599178 → 599794 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setSharesAndDestinations_outOfBounds() (gas: 597638 → 598254 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setOriginBlacklist_outOfBounds() (gas: 597472 → 598088 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_outOfBounds() (gas: 596988 → 597604 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setAppealBond_outOfBounds() (gas: 596951 → 597567 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_outOfBounds() (gas: 596946 → 597562 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setWindowEpochs_outOfBounds() (gas: 596811 → 597427 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setChallengerIncentivePool_outOfBounds() (gas: 596777 → 597393 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addHashGlobal_outOfBounds() (gas: 596630 → 597246 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setBuybackBurner_outOfBounds() (gas: 596542 → 597158 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setShares_outOfBounds() (gas: 596435 → 597051 | 616 0.103%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxMultiaddrSize_outOfBounds() (gas: 594605 → 595221 | 616 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setClaimSlashGateEpochs_outOfBounds() (gas: 594581 → 595197 | 616 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setUnbondingPeriod_outOfBounds() (gas: 594542 → 595158 | 616 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMultiaddrUpdateCooldown_outOfBounds() (gas: 594466 → 595082 | 616 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setTreasury_outOfBounds() (gas: 594287 → 594903 | 616 0.104%)
↑ OriginAssignmentTest::test_defaultOpen_onlyGovernance() (gas: 21147 → 21169 | 22 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_SlashAppeal_setChallengerIncentivePool_happy() (gas: 591497 → 592113 | 616 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setMaxNamespacesPerPublisher_happy() (gas: 591346 → 591962 | 616 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_PublisherRegistry_setNamespaceTransferTimelock_happy() (gas: 591262 → 591878 | 616 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_setAppealBond_happy() (gas: 591119 → 591735 | 616 0.104%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setTreasury_happy() (gas: 589039 → 589655 | 616 0.105%)
↑ GovernanceLifecycleTest::test_lifecycle_FeeRouter_setBuybackBurner_happy() (gas: 589013 → 589629 | 616 0.105%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setClaimSlashGateEpochs_happy() (gas: 588888 → 589504 | 616 0.105%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinBond_happy() (gas: 588764 → 589380 | 616 0.105%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinCapacityMbps_happy() (gas: 588739 → 589355 | 616 0.105%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxMultiaddrSize_happy() (gas: 588630 → 589246 | 616 0.105%)
↑ OriginAssignmentTest::test_activate_revertsNoPending() (gas: 20987 → 21009 | 22 0.105%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinBond_outOfBounds() (gas: 594537 → 595175 | 638 0.107%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setRegionStabilityWindow_outOfBounds() (gas: 594516 → 595154 | 638 0.107%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMinCapacityMbps_outOfBounds() (gas: 594514 → 595152 | 638 0.107%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxCapacityMbps_outOfBounds() (gas: 594492 → 595130 | 638 0.107%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setUnbondingPeriod_happy() (gas: 588658 → 589296 | 638 0.108%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setMaxCapacityMbps_happy() (gas: 588588 → 589226 | 638 0.108%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setTreasury_happy() (gas: 606105 → 606765 | 660 0.109%)
↓ CapacityBondTest::test_genesisCredit_fullVestAfterDuration() (gas: 141326 → 141172 | -154 -0.109%)
↑ GovernanceLifecycleTest::test_lifecycle_CapacityBond_setRegionStabilityWindow_happy() (gas: 588634 → 589294 | 660 0.112%)
↓ FeeRouterTest::test_setSharesAndDestinations_revertsWithoutRole() (gas: 19569 → 19547 | -22 -0.112%)
↑ OriginAssignmentTest::test_activate_blacklistSkippedWhenUnset() (gas: 2045181 → 2047543 | 2362 0.115%)
↑ BuybackBurnerTest::test_setVault_emitsUpdateEvent() (gas: 24896 → 24925 | 29 0.116%)
↑ OriginAssignmentTest::test_prune_revertsWhenBlacklistUnset() (gas: 1862769 → 1865198 | 2429 0.130%)
↑ ContentBlacklistTest::test_fullAppealFlow_ratifyRemovesHash() (gas: 275665 → 276038 | 373 0.135%)
↓ FeeRouterTest::test_setShares_rejectsNonZeroShareWithoutDestination() (gas: 16239 → 16217 | -22 -0.135%)
↑ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReverse() (gas: 254985 → 255340 | 355 0.139%)
↑ CapacityBondTest::test_updateMultiaddrs_revertsWhenNodeNotActive() (gas: 15613 → 15635 | 22 0.141%)
↑ ContentBlacklistTest::test_reverseAppeal_clearsSuspendedAndBurnsBond() (gas: 261664 → 262037 | 373 0.143%)
↑ BuybackBurnerTest::test_pause_revertsWithoutPauserRole() (gas: 11912 → 11929 | 17 0.143%)
↑ CapacityBondTest::test_setMaxMultiaddrSize_revertsWithoutRole() (gas: 14977 → 14999 | 22 0.147%)
↑ CapacityBondTest::test_setK_revertsWhenGbpsTierOutOfRange() (gas: 43902 → 43967 | 65 0.148%)
↑ CapacityBondTest::test_setMultiaddrUpdateCooldown_revertsWithoutRole() (gas: 14822 → 14844 | 22 0.148%)
↓ FeeRouterTest::test_setBuybackBurner_revertsWithoutRole() (gas: 14720 → 14698 | -22 -0.149%)
↑ CapacityBondTest::test_capacityBand_floorAlwaysBelowCeiling() (gas: 29297 → 29341 | 44 0.150%)
↑ GovernanceLifecycleTest::test_canary_governorVoteWeightWired() (gas: 129769 → 129967 | 198 0.153%)
↑ PaymentChannelTest::test_setters_onlyGovernance() (gas: 13976 → 13998 | 22 0.157%)
↑ OriginAssignmentTest::test_setContentBlacklist_rejectsZero() (gas: 13451 → 13473 | 22 0.164%)
↑ CapacityBondTest::test_bondRequired_zeroForZeroMbps() (gas: 13161 → 13183 | 22 0.167%)
↑ CapacityBondTest::test_setKAlpha_orderingMatters() (gas: 56002 → 56112 | 110 0.196%)
↑ BuybackBurnerTest::test_constructor_revertsOnZeroToken() (gas: 67829 → 67964 | 135 0.199%)
↓ BuybackBurnerTest::test_executeBuyback_revertsZeroAmount() (gas: 20705 → 20661 | -44 -0.213%)
↑ CapacityBondTest::test_slashedAtEpoch_zeroBeforeSlash() (gas: 10152 → 10174 | 22 0.217%)
↑ PaymentChannelTest::test_getRateBounds_returnsConfigured() (gas: 9890 → 9912 | 22 0.222%)
↓ CapacityBondTest::test_setCapacity_onlyGovernance() (gas: 19635 → 19590 | -45 -0.229%)
↑ CapacityBondTest::test_setMinCapacity_revertsOutOfBounds() (gas: 18537 → 18581 | 44 0.237%)
↓ CapacityBondTest::test_declareMbps_revertsBelowFloor() (gas: 17950 → 17907 | -43 -0.240%)
↑ CapacityBondTest::test_declareMbps_revertsZero() (gas: 17895 → 17940 | 45 0.251%)
↓ SlashAppealTest::test_cleanup_openLapse_upholds() (gas: 474119 → 472918 | -1201 -0.253%)
↓ DeployProtocolTest::test_emergencyMultisig_canPauseAndBlockEntrypoint() (gas: 48534 → 48410 | -124 -0.255%)
↑ BuybackBurnerTest::test_unpause_revertsWithoutPauserRole() (gas: 23849 → 23910 | 61 0.256%)
↑ CapacityBondTest::test_escrowHooks_requireSlashAppealRole() (gas: 17017 → 17061 | 44 0.259%)
↓ SlashAppealTest::test_cleanup_fastTrackedLapse_grantsOperatorFavorable() (gas: 456307 → 455127 | -1180 -0.259%)
↑ BuybackBurnerTest::test_constructor_revertsOnZeroAdmin() (gas: 67810 → 67989 | 179 0.264%)
↑ BuybackBurnerTest::test_constructor_revertsOnZeroUsdc() (gas: 67793 → 67972 | 179 0.264%)
↑ CapacityBondTest::test_setMaxCapacity_acceptsInclusiveBounds() (gas: 24407 → 24473 | 66 0.270%)
↓ CapacityBondTest::test_updateRegion_revertsWhenNodeNotActive() (gas: 15741 → 15696 | -45 -0.286%)
↑ CapacityBondTest::test_setMaxCapacity_updatesBandAndEmits() (gas: 31040 → 31129 | 89 0.287%)
↑ CapacityBondTest::test_setUnbondingPeriod_revertsWithoutRole() (gas: 14913 → 14957 | 44 0.295%)
↑ CapacityBondTest::test_setMinBond_revertsWithoutRole() (gas: 14846 → 14890 | 44 0.296%)
↑ CapacityBondTest::test_bondRequired_matchesAdrWorkedExamples() (gas: 29688 → 29776 | 88 0.296%)
↑ CapacityBondTest::test_setClaimSlashGateEpochs_revertsWithoutRole() (gas: 14824 → 14868 | 44 0.297%)
↑ PaymentChannelTest::test_constructor_revertsOnDisputeWindowOutOfBounds() (gas: 76787 → 77036 | 249 0.324%)
↑ DeployProtocolTest::test_roleMatrix_emergencyMultisigGrants() (gas: 19503 → 19569 | 66 0.338%)
↑ CapacityBondTest::test_setCurve_onlyGovernance() (gas: 19416 → 19482 | 66 0.340%)
↑ PaymentChannelTest::test_constructor_revertsOnZeroAdmin() (gas: 71702 → 71951 | 249 0.347%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeHashGlobal_happy() (gas: 993743 → 997238 | 3495 0.352%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_removeOperator_happy() (gas: 1022125 → 1025729 | 3604 0.353%)
↑ PaymentChannelTest::test_constructor_revertsOnEoaFeeRouter() (gas: 76787 → 77058 | 271 0.353%)
↑ CapacityBondTest::test_setMaxCapacity_revertsOutOfBounds() (gas: 18329 → 18395 | 66 0.360%)
↑ CapacityBondTest::test_setK_updatesCurveAndEmits() (gas: 35561 → 35693 | 132 0.371%)
↑ CapacityBondTest::test_declareMbps_revertsAboveCeiling() (gas: 18017 → 18084 | 67 0.372%)
↑ E2EProtocolTest::test_e2e_registerSettleSlashEjectAppeal() (gas: 1468598 → 1474331 | 5733 0.390%)
↑ CapacityBondTest::test_curveDefaults() (gas: 10624 → 10668 | 44 0.414%)
↑ CapacityBondTest::test_setRegionStabilityWindow_revertsWithoutRole() (gas: 14845 → 14911 | 66 0.445%)
↑ ContentBlacklistTest::test_addHashRegional_revertsWithoutRegionalBodyRole() (gas: 14684 → 14750 | 66 0.449%)
↑ FeeRouterTest::test_setTreasury_revertsWithoutRole() (gas: 14696 → 14763 | 67 0.456%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addOperator_happy() (gas: 637690 → 640678 | 2988 0.469%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addHashGlobal_happy() (gas: 609043 → 611922 | 2879 0.473%)
↑ DeployProtocolTest::test_crossContractWiring_genesisGrantorIsTimelock() (gas: 17075 → 17165 | 90 0.527%)
↑ CapacityBondTest::test_bondRequired_strictlyMonotonic() (gas: 37554 → 37752 | 198 0.527%)
↑ E2EProtocolTest::test_e2e_blacklistEjectsOperator() (gas: 417879 → 420295 | 2416 0.578%)
↑ CapacityBondTest::test_setTreasury_revertsWithoutRole() (gas: 14919 → 15007 | 88 0.590%)
↑ BuybackBurnerTest::test_setVault_revertsWithoutGovernanceRole() (gas: 12054 → 12129 | 75 0.622%)
↑ FeeRouterTest::test_bytesInWindow_zeroWindowReturnsZero() (gas: 9326 → 9387 | 61 0.654%)
↑ PaymentChannelTest::test_normalDispute_doesNotExtend() (gas: 317503 → 319584 | 2081 0.655%)
↑ PaymentChannelTest::test_dispute_higherNonceWins() (gas: 307630 → 309711 | 2081 0.676%)
↑ PaymentChannelTest::test_dispute_revertsOnAmountExceedingDeposit() (gas: 303144 → 305225 | 2081 0.686%)
↑ PaymentChannelTest::test_dispute_revertsOnBytesRegression() (gas: 302891 → 304972 | 2081 0.687%)
↑ PaymentChannelTest::test_dispute_revertsOnAmountRegression() (gas: 302754 → 304835 | 2081 0.687%)
↑ PaymentChannelTest::test_dispute_revertsOnStaleNonce() (gas: 300180 → 302261 | 2081 0.693%)
↑ PaymentChannelTest::test_dispute_revertsAfterDeadline() (gas: 295195 → 297276 | 2081 0.705%)
↑ PaymentChannelTest::test_settle_revertsBeforeDisputeDeadline() (gas: 292432 → 294513 | 2081 0.712%)
↑ PaymentChannelTest::test_withdraw_acceptsErc1271Signature() (gas: 711964 → 717406 | 5442 0.764%)
↑ PaymentChannelTest::test_close_revertsOnAmountExceedingDeposit() (gas: 221040 → 223121 | 2081 0.941%)
↑ PaymentChannelTest::test_withdraw_revertsOnAmountExceedingDeposit() (gas: 220800 → 222881 | 2081 0.942%)
↑ PaymentChannelTest::test_openChannel_derivesIdAndIncrementsNonce() (gas: 219442 → 221523 | 2081 0.948%)
↑ GovernanceLifecycleTest::test_lifecycle_ContentBlacklist_addOperator_outOfBounds() (gas: 596767 → 602436 | 5669 0.950%)
↑ PaymentChannelTest::test_zeroVoucherClose_refundsFullDeposit() (gas: 216232 → 218313 | 2081 0.962%)
↑ PaymentChannelTest::test_withdraw_revertsOnBadSignature() (gas: 213634 → 215715 | 2081 0.974%)
↑ PaymentChannelTest::test_reclaimExpired_revertsBeforeExpiry() (gas: 204176 → 206190 | 2014 0.986%)
↑ PaymentChannelTest::test_close_revertsAfterExpiry() (gas: 209040 → 211121 | 2081 0.996%)
↑ PaymentChannelTest::test_withdraw_onlyProvider() (gas: 208846 → 210927 | 2081 0.996%)
↑ PaymentChannelTest::test_close_thirdPartyCannotClose() (gas: 210915 → 213018 | 2103 0.997%)
↑ CapacityBondTest::testFuzz_bondRequired_monotonic(uint256,uint256) (gas: 19427 → 19622 | 195 1.004%)
↑ PaymentChannelTest::test_topUp_onlyClient() (gas: 204390 → 206621 | 2231 1.092%)
↑ PaymentChannelTest::test_dispute_revertsOnByteOnlyAdvance() (gas: 483308 → 488772 | 5464 1.131%)
↑ PaymentChannelTest::test_close_atWatermarkNonce_succeeds() (gas: 471986 → 477450 | 5464 1.158%)
↑ BuybackBurnerTest::test_setPool_revertsWithoutGovernanceRole() (gas: 12132 → 12273 | 141 1.162%)
↑ PaymentChannelTest::test_settle_fullyWithdrawn_noRouterCall() (gas: 467688 → 473130 | 5442 1.164%)
↑ PaymentChannelTest::test_close_revertsOnByteOnlyAdvance() (gas: 464920 → 470362 | 5442 1.171%)
↑ PaymentChannelTest::test_withdraw_revertsWhenDeltaZero() (gas: 464290 → 469732 | 5442 1.172%)
↑ PaymentChannelTest::test_withdraw_revertsOnBytesRegression() (gas: 463839 → 469281 | 5442 1.173%)
↑ PaymentChannelTest::test_withdraw_revertsOnNonMonotonicNonce() (gas: 463515 → 468957 | 5442 1.174%)
↑ DeployProtocolTest::test_assertNoBackDoors_revertsWhenHandoffIncomplete() (gas: 24644804 → 24934827 | 290023 1.177%)
↑ PaymentChannelTest::test_withdraw_routesDeltaAndAdvancesWatermark() (gas: 460090 → 465532 | 5442 1.183%)
↑ PaymentChannelTest::test_zeroVoucherClose_disabledAfterWithdraw() (gas: 457488 → 462930 | 5442 1.190%)
↑ PaymentChannelTest::test_openChannel_distinctIdsAcrossProviders() (gas: 347252 → 351414 | 4162 1.199%)
↑ PaymentChannelTest::test_reclaimExpired_refundsRemainderToClient() (gas: 446830 → 452272 | 5442 1.218%)
↑ PaymentChannelTest::test_voucher_rejectedOnWrongChannelId() (gas: 335707 → 339891 | 4184 1.246%)
↑ PaymentChannelTest::test_close_then_settle_routesAndRefunds() (gas: 420622 → 426064 | 5442 1.294%)
↑ PaymentChannelTest::testFuzz_settle_refundEqualsDepositMinusClaimed(uint256,uint256) (gas: 410648 → 416090 | 5442 1.325%)
↑ PaymentChannelTest::test_settle_amountEqualsDeposit_zeroRefund() (gas: 405432 → 410874 | 5442 1.342%)
↓ CapacityBondTest::test_reduceBondAtTier_zeroInputs() (gas: 1471 → 1448 | -23 -1.564%)
↑ PaymentChannelTest::testFuzz_withdrawThenSettle_partitionsClaim(uint256,uint256,uint256,uint256) (gas: 546319 → 555056 | 8737 1.599%)
↑ PaymentChannelTest::test_withdraw_secondWithdrawRoutesOnlyIncrement() (gas: 546054 → 554879 | 8825 1.616%)
↑ PaymentChannelTest::test_close_afterWithdraw_settleRoutesRemainderOnly() (gas: 538591 → 547394 | 8803 1.634%)
↑ PaymentChannelTest::test_paused_exitsStillCallable() (gas: 659037 → 671201 | 12164 1.846%)
↑ PaymentChannelTest::test_topUp_increasesDeposit() (gas: 222520 → 226710 | 4190 1.883%)
↑ OriginAssignmentTest::test_activate_revertsOperatorWentInactive() (gas: 152943 → 155953 | 3010 1.968%)
↑ OriginAssignmentTest::test_prune_removesBlacklistedOperator() (gas: 243079 → 248023 | 4944 2.034%)
↑ OriginAssignmentTest::test_revoke_byPublisherAndGovernance() (gas: 232436 → 237252 | 4816 2.072%)
↑ OriginAssignmentTest::test_activate_replacesPreviousSet() (gas: 344888 → 352112 | 7224 2.095%)
↑ OriginAssignmentTest::test_activate_setsAuthorizedSet() (gas: 220067 → 224900 | 4833 2.196%)
↑ CapacityBondTest::test_reduceBondAtTier_unbondingOnly() (gas: 951 → 973 | 22 2.313%)
↑ CapacityBondTest::test_reduceBondAtTier_activeOnly() (gas: 899 → 921 | 22 2.447%)
↑ OriginAssignmentTest::test_prune_revertsWhenNotBlacklisted() (gas: 220747 → 226404 | 5657 2.563%)
↑ ContentBlacklistTest::test_addOperator_callsEjectOnCapacityBond() (gas: 91570 → 93920 | 2350 2.566%)
↑ PaymentChannelTest::test_setFeeRouter_updatesTarget() (gas: 284490 → 292460 | 7970 2.802%)
↑ SlashAppealTest::test_uphold_poolUnset_burnsFullBond() (gas: 2175009 → 2249371 | 74362 3.419%)
↑ BuybackBurnerTest::test_executeBuyback_revertsSwapReportMismatch() (gas: 110981 → 116470 | 5489 4.946%)
↑ ContentBlacklistTest::test_removeHashRegional_blocksGlobalRegionEntries() (gas: 44419 → 46682 | 2263 5.095%)
↑ BuybackBurnerTest::test_executeBuyback_happyPath_burnsAndEmits() (gas: 105272 → 110748 | 5476 5.202%)
↓ ContentBlacklistTest::test_hasActiveAppeal_clearedOnReject() (gas: 433926 → 410381 | -23545 -5.426%)
↑ ContentBlacklistTest::test_addHashRegional_globalTakesPrecedence() (gas: 41980 → 44310 | 2330 5.550%)
↑ PaymentChannelTest::test_forcedInclusion_doesNotExtendTwice() (gas: 2756694 → 2916491 | 159797 5.797%)
↑ PaymentChannelTest::test_forcedInclusion_noExtendWhenAmpleTimeRemains() (gas: 2742648 → 2902445 | 159797 5.826%)
↑ PaymentChannelTest::test_forcedInclusion_extendsDeadlineOnce() (gas: 2734132 → 2893929 | 159797 5.845%)
↑ ContentBlacklistTest::test_addHashGlobal_andQuery() (gas: 38191 → 40454 | 2263 5.925%)
↓ ContentBlacklistTest::test_openBlacklistAppeal_revertsDuplicatePerHash() (gas: 356697 → 334316 | -22381 -6.275%)
↓ ContentBlacklistTest::test_rejectAppeal_burnsBond() (gas: 247882 → 229508 | -18374 -7.412%)
↓ ContentBlacklistTest::test_hasActiveAppeal_clearedOnLapseOpen() (gas: 242221 → 223830 | -18391 -7.593%)
↑ BuybackBurnerTest::test_executeBuyback_revertsSwapNotImplementedWhenActualDeltaIsZero() (gas: 60069 → 65569 | 5500 9.156%)
↓ CapacityBondTest::test_reduceBondAtTier_slashEqualsActive() (gas: 942 → 832 | -110 -11.677%)
↓ PublisherRegistryTest::testFuzz_createNamespace_idsAreSequentialAndOwned(uint8) (gas: 441404 → 371835 | -69569 -15.761%)
↑ BuybackBurnerTest::test_executeBuyback_revertsPoolNotWiredWhenVaultUnset() (gas: 840424 → 973299 | 132875 15.810%)
↑ BuybackBurnerTest::test_executeBuyback_revertsPoolNotWiredWhenPoolUnset() (gas: 840272 → 973169 | 132897 15.816%)

New tests:
  + BuybackBurnerTest::test_executeBuyback_revertsWhenAmountExceedsBalance()
  + BuybackBurnerTest::test_executeBuyback_revertsZeroMinOut()
  + BuybackBurnerTest::test_rescueUSDC_revertsOnZeroAmount()
  + BuybackBurnerTest::test_rescueUSDC_revertsOnZeroRecipient()
  + BuybackBurnerTest::test_rescueUSDC_revertsWithoutGovernanceRole()
  + BuybackBurnerTest::test_rescueUSDC_transfersToRecipient()
  + CapacityBondRegionE2ETest::test_crossContractEject_viaContentBlacklist()
  + CapacityBondRegionE2ETest::test_registerNode_corruptEd25519Signature_reverts()
  + CapacityBondRegionE2ETest::test_registerNode_realEd25519Signature_succeeds()
  + CapacityBondRegionE2ETest::test_registerNode_replayAfterNonceBump_reverts()
  + CapacityBondRegionE2ETest::test_updateRegion_cooldownPrevSnapshotAndEvent()
  + ContentBlacklistTest::test_addHash_revertsWhileAppealActive()
  + ContentBlacklistTest::test_regionalCap_countsFastTrackedNotOpen()
  + FeeRouterTest::test_bytesInWindow_clampsOversizedWindow()
  + OriginAssignmentTest::test_activate_revertsOperatorBlacklistedViaOperatorMapping()
  + OriginAssignmentTest::test_prune_removesOperatorBlacklistedViaOperatorMapping()
  + PaymentChannelTest::test_route_zeroesResidualAllowanceAfterUnderPull()
  + PaymentChannelTest::test_topUp_revertsWhenPaused()
  + SlashAppealTest::test_forceResolveStuckAppeal_resolvesAfterRoleRevoked()
  + SlashAppealTest::test_forceResolveStuckAppeal_revertsWhenNotAppealOpen()
  + SlashAppealTest::test_forceResolveStuckAppeal_revertsWithoutGovernanceRole()
  + SlashAppealTest::test_slashAppealPause_extendsCapacityBondFilingWindow()

--------------------------------------------------------------------------------
Total tests: 458, ↑ 224, ↓ 47, ━ 187
Overall gas change: 1250262 (0.753%)

Run: 26891112146

@github-actions

github-actions Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Contracts coverage

Line coverage: 88.96% (1797/2020 lines)
▲ +0.00pp vs base (88.96% → 88.96%)
Run: 26891112146

@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 local internal-testnet rig using anvil, Docker, and WireGuard to stand up the full deCDN contract surface for testing. Feedback on the changes includes replacing the external seq utility in deploy.sh with a native bash loop for portability, updating the fallback sed pattern to handle optional whitespace in JSON output, and replacing angle-bracket placeholders in the README.md shell commands to prevent shell redirection errors.

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/local/deploy.sh Outdated
}

echo "==> waiting for anvil at $RPC_URL"
for i in $(seq 1 30); do

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Using the external seq utility is less portable and spawns an unnecessary subprocess. In bash, you can use the native shell arithmetic loop for ((i=1; i<=30; i++)) which is more efficient and fully portable across all environments running bash.

Suggested change
for i in $(seq 1 30); do
for ((i=1; i<=30; i++)); do

Comment thread contracts/local/deploy.sh Outdated
--rpc-url "$RPC_URL" --private-key "$DEPLOYER_KEY" --broadcast --json)"
usdc="$(printf '%s' "$usdc_json" | { jq -r '.deployedTo' 2>/dev/null || true; })"
if [[ -z "$usdc" || "$usdc" == "null" ]]; then
usdc="$(printf '%s' "$usdc_json" | sed -n 's/.*"deployedTo":"\([^"]*\)".*/\1/p')"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

If jq is not installed, the script falls back to sed to extract the deployed address. However, standard JSON formatters (and some versions of Foundry) output a space after the colon (e.g., "deployedTo": "0x..."). The current sed pattern expects no spaces ("deployedTo":"), which will fail to match if whitespace is present. Allowing optional whitespace makes the fallback significantly more robust.

Suggested change
usdc="$(printf '%s' "$usdc_json" | sed -n 's/.*"deployedTo":"\([^"]*\)".*/\1/p')"
usdc="$(printf '%s' "$usdc_json" | sed -n 's/.*"deployedTo":[[:space:]]*"\([^"]*\)".*/\1/p')"

Comment thread contracts/local/README.md Outdated
Comment on lines +82 to +91
cast send "$USDC" "mint(address,uint256)" <addr> 1000000000 \
--rpc-url "$RPC" --private-key "$DEPLOYER_KEY"

# Send 100,000 TOKEN (18 decimals) from the genesis holder to an operator
# (needs ≥ MIN_BOND = 50,000 TOKEN to stake):
cast send "$TOKEN" "transfer(address,uint256)" <operator> 100000000000000000000000 \
--rpc-url "$RPC" --private-key "$DEPLOYER_KEY"

# Gas for a fresh EOA (anvil cheat method):
cast rpc anvil_setBalance <addr> 0xde0b6b3a7640000 --rpc-url "$RPC"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Using <addr> and <operator> as placeholders in raw bash commands will be interpreted by the shell as input/output redirection operators (e.g., < redirects standard input). If a user copy-pastes these commands directly, the shell will attempt to read from files named addr or operator and fail with a No such file or directory error. Use standard uppercase placeholders without angle brackets instead.

Suggested change
cast send "$USDC" "mint(address,uint256)" <addr> 1000000000 \
--rpc-url "$RPC" --private-key "$DEPLOYER_KEY"
# Send 100,000 TOKEN (18 decimals) from the genesis holder to an operator
# (needs ≥ MIN_BOND = 50,000 TOKEN to stake):
cast send "$TOKEN" "transfer(address,uint256)" <operator> 100000000000000000000000 \
--rpc-url "$RPC" --private-key "$DEPLOYER_KEY"
# Gas for a fresh EOA (anvil cheat method):
cast rpc anvil_setBalance <addr> 0xde0b6b3a7640000 --rpc-url "$RPC"
cast send "$USDC" "mint(address,uint256)" YOUR_ADDRESS 1000000000 \
--rpc-url "$RPC" --private-key "$DEPLOYER_KEY"
# Send 100,000 TOKEN (18 decimals) from the genesis holder to an operator
# (needs ≥ MIN_BOND = 50,000 TOKEN to stake):
cast send "$TOKEN" "transfer(address,uint256)" OPERATOR_ADDRESS 100000000000000000000000 \
--rpc-url "$RPC" --private-key "$DEPLOYER_KEY"
# Gas for a fresh EOA (anvil cheat method):
cast rpc anvil_setBalance YOUR_ADDRESS 0xde0b6b3a7640000 --rpc-url "$RPC"

Comment thread contracts/local/README.md Outdated
```bash
cd contracts/local
docker compose down -v # stop anvil + delete the state volume
rm -f contracts/deployments/<chainId>.json # if it lingers (gitignored anyway)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Using <chainId> in the rm command will be interpreted as a redirection operator by the shell, causing the command to fail or behave unexpectedly. Use a standard uppercase placeholder like YOUR_CHAIN_ID instead.

Suggested change
rm -f contracts/deployments/<chainId>.json # if it lingers (gitignored anyway)
rm -f contracts/deployments/YOUR_CHAIN_ID.json # if it lingers (gitignored anyway)

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 disposable, self-contained “local internal-testnet” rig under contracts/local/ to deploy and exercise the full deCDN contract surface on a VPS using dockerized anvil, with access restricted to a WireGuard interface. This supports internal end-to-end testing while keeping the production Solidity surface unchanged.

Changes:

  • Added a Docker Compose setup to run anvil with persisted chain state and WireGuard-only port publishing.
  • Added a deploy.sh wrapper to deploy mock USDC and then run the production DeployProtocol.s.sol, emitting a deployment manifest + addresses.
  • Added a runbook (README.md) plus .env.example and .gitignore for operator workflow and safety guidance.

Reviewed changes

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

Show a summary per file
File Description
contracts/local/README.md Operator runbook for bringing up the rig, deploying, funding accounts, and scrapping it.
contracts/local/docker-compose.yml Docker Compose definition for a persistent, wg-bound anvil service (plus commented relay stub).
contracts/local/deploy.sh Host-side deployment script: deploys MintableUSDC, then runs the production deploy script and prints addresses.
contracts/local/.gitignore Ignores local rig artifacts (e.g., .env).
contracts/local/.env.example Example environment configuration for networking, chain id, block time, and deploy parameters.

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

Comment thread contracts/local/README.md Outdated
```bash
cd contracts/local
docker compose down -v # stop anvil + delete the state volume
rm -f contracts/deployments/<chainId>.json # if it lingers (gitignored anyway)
Comment thread contracts/local/README.md Outdated
with `cast send`.

```bash
RPC=http://<WG_BIND_IP>:8545
Comment thread contracts/local/README.md Outdated
Comment on lines +103 to +107
> Note: the node's `chain id` is currently bound to Arbitrum Sepolia in
> `load_eth_signer` (see the comment in `crates/node/src/runtime/mod.rs`). Using
> a different `CHAIN_ID` here may require threading the chain id through
> `ResolvedBlockchain` first. Either set `CHAIN_ID` to the value the node
> expects, or make that change before wiring real nodes.
…probe

Wire the configured `[network] relay_url` (DECDN_RELAY_URL) into the node's
iroh endpoint: when set, swap the n0 default relay map for a single
self-hosted relay via RelayMode::Custom, keeping n0 DNS address-lookup for
NodeId discovery. A TCP reachability probe (probe_relay) runs at bring-up so
a down/mistyped relay fails fast instead of degrading into silent connection
failures. Multi-relay + self-hosted discovery tracked in #795.

Activate the opt-in `relay` service in the contracts/local rig (profile
"relay", operator-supplied IROH_RELAY_IMAGE) and document wiring nodes to it.

Address PR review:
- deploy.sh: native bash arithmetic loop instead of `seq`; tolerate optional
  whitespace in the jq-less `deployedTo` sed fallback.
- README: copy-paste-safe placeholders (no `<...>` shell-redirection traps),
  reference RPC_PORT, fix the scrap path relative to contracts/local, and
  correct the chain-id note (node binds the configured blockchain.chain_id,
  not a hardcoded Arbitrum Sepolia id — set it to match CHAIN_ID).

Copy link
Copy Markdown
Contributor Author

/gemini review


Generated by Claude Code

@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 local internal-testnet rig under contracts/local/ utilizing anvil, Docker, and WireGuard, and updates the node runtime to support a custom self-hosted iroh relay with a fail-fast reachability probe. Feedback on these changes includes resolving an issue where IPv6 relay URLs with square brackets fail TCP connection probes, dynamically constructing the default RPC_URL in deploy.sh to prevent connection failures when binding to a specific VPN IP, and correcting a misleading comment in .env.example regarding localhost connectivity.

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 crates/node/src/runtime/mod.rs Outdated
Comment on lines +1282 to +1284
let host = relay
.host_str()
.ok_or_else(|| anyhow::anyhow!("relay url {relay} has no host"))?;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

When parsing a RelayUrl (which is based on url::Url), calling .host_str() on an IPv6 address returns the host with square brackets (e.g., "[::1]"). Passing a host string with square brackets to tokio::net::TcpStream::connect via (host, port) will fail to parse as an IP address and fail DNS resolution, causing the connection to fail.

To support IPv6 relay URLs (such as those used in WireGuard VPNs), we should strip the square brackets from the host string if they are present. Additionally, avoid including the raw URL in the error message to prevent potential credential leakage.

    let host = relay
        .host_str()
        .ok_or_else(|| anyhow::anyhow!("relay url has no host"))?;
    let host = host
        .strip_prefix('[')
        .and_then(|h| h.strip_suffix(']'))
        .unwrap_or(host);
References
  1. Avoid including raw URLs that may contain credentials (e.g., RPC URLs with basic auth) in error messages to prevent credential leakage.

Comment thread contracts/local/deploy.sh Outdated
Comment on lines +25 to +27
RPC_URL="${RPC_URL:-http://127.0.0.1:8545}"
CHAIN_ID="${CHAIN_ID:-31337699}"
TIMELOCK_DELAY="${TIMELOCK_DELAY:-3600}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

If WG_BIND_IP is configured to a specific VPN IP (e.g., 10.0.0.1) in .env, the dockerized anvil will only bind and listen on that interface. In this case, the default RPC_URL of http://127.0.0.1:8545 will fail to connect even when running the script on the VPS itself.

We can make the default RPC_URL dynamically construct from WG_BIND_IP and RPC_PORT so that it automatically uses the correct interface IP when they are configured in .env.

Suggested change
RPC_URL="${RPC_URL:-http://127.0.0.1:8545}"
CHAIN_ID="${CHAIN_ID:-31337699}"
TIMELOCK_DELAY="${TIMELOCK_DELAY:-3600}"
WG_BIND_IP="${WG_BIND_IP:-127.0.0.1}"
RPC_PORT="${RPC_PORT:-8545}"
RPC_URL="${RPC_URL:-http://${WG_BIND_IP}:${RPC_PORT}}"
CHAIN_ID="${CHAIN_ID:-31337699}"
TIMELOCK_DELAY="${TIMELOCK_DELAY:-3600}"

Comment thread contracts/local/.env.example Outdated
Comment on lines +14 to +16
# RPC the deploy script targets. On the VPS itself this is localhost; from a
# laptop on the wg mesh, use http://<WG_BIND_IP>:<RPC_PORT>.
RPC_URL=http://127.0.0.1:8545

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The comment stating "On the VPS itself this is localhost" is misleading when WG_BIND_IP is set to a specific VPN IP (like 10.0.0.1). Since Docker binds the port specifically to that IP, connecting to 127.0.0.1 will result in a connection refusal even on the VPS itself.

Let's update the comment to clarify that the VPN IP must be used if WG_BIND_IP is set to a non-loopback address.

# RPC the deploy script targets. If WG_BIND_IP is set to a specific VPN IP,
# you must use http://<WG_BIND_IP>:<RPC_PORT> even on the VPS itself.
RPC_URL=http://127.0.0.1:8545

@github-actions

github-actions Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Coverage report

Total: 86.59% (was 86.63%, ▼ 0.03%) — 27557/31823 lines

File Coverage Lines Δ
crates/node/src/runtime/mod.rs 46.62% 580/1244 ▲ +2.02%
History
Commit Total Δ vs base
7898329 86.47% ▼ 0.11%
af21557 86.53% ▼ 0.05%
401b793 86.54% ▼ 0.04%
3a46697 (HEAD) 86.59% ▼ 0.03%

Address PR review (gemini):
- probe_relay: strip the brackets url::Url::host_str adds to IPv6 literals
  (`[::1]` → `::1`) before TcpStream::connect, which rejects the bracketed
  form — IPv6 relay URLs (common on WireGuard) now probe correctly. Report
  only host:port (never the full URL) in failure messages so any userinfo
  can't leak into logs. Add unit tests for unbracket_host + probe_relay
  (reachable / unreachable / IPv6).
- contracts/local/deploy.sh: default RPC_URL to http://$WG_BIND_IP:$RPC_PORT
  (Docker publishes anvil's port only on WG_BIND_IP, so 127.0.0.1 won't
  answer when WG_BIND_IP is a non-loopback VPN IP).
- contracts/local/.env.example: comment out the hardcoded RPC_URL so the
  derive applies, and correct the misleading "localhost on the VPS" note.

@alpergundogdu alpergundogdu left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review — anvil internal-testnet rig

The Docker/WireGuard rig itself is well thought through: defaulting WG_BIND_IP to 127.0.0.1, calling out the Docker-bypasses-ufw footgun, reusing the production DeployProtocol.s.sol recipe so the surface matches Sepolia/mainnet, gitignoring the manifest via the 3133769x chain-id range, and the bash -n/docker compose config test plan are all solid. Nothing under src//script/, so the CI gates are genuinely untouched. 👍

One thing needs attention before merge:

IMPORTANT — the PR description contradicts its own diff (scope)

The description has a section titled "iroh relay (follow-up, not in this PR)" stating:

The node ... does not consume network.relay_url today (build_endpoint in crates/node/src/runtime/mod.rs ...). So a self-hosted relay isn't usable without a small endpoint-builder change. ... A commented relay service is stubbed in the compose for when that change lands; tracking it separately.

But the diff does modify build_endpoint in crates/node/src/runtime/mod.rs to consume cfg.network.relay_url (RelayMode::Custom), adds probe_relay/unbracket_host + tests, and the relay compose service is active under a relay profile, not commented out. So the relay support that the description says is a separate follow-up is actually shipped here.

This matters for two reasons:

  1. A reviewer reading the description would not expect a production node-runtime behavior change (the endpoint now fails bring-up on a relay probe failure). The PR title is chore(contracts): ..., which further hides that a crates/node runtime change is included.
  2. If the runtime change was intentional, please update the description/title; if it was meant to be split out, it should move to its own PR so it gets reviewed on its own merits.

Consideration — fail-fast-at-boot couples node availability to relay availability

probe_relay is sound (single TCP connect, 5s timeout, host:port-only error messages to avoid leaking userinfo, IPv6 unbracketing with tests). But making node bring-up fail when the configured relay isn't reachable means a transiently-down relay at startup prevents the node from starting at all. That's defensible for a misconfiguration guard (and you document the intent), but for a relay that exists for resilience it's worth a deliberate decision vs. a warn-and-continue / retry. Not blocking — just flagging the tradeoff.

Minor: the relay compose service has no healthcheck (anvil does); and port_or_known_default() will resolve https://relay.example (no explicit port) to 443 rather than the iroh-relay default 3340 — fine since your examples use explicit ports, just noting.

I confirmed network.relay_url exists in the config schema and is still correctly warn_ignored on SIGHUP reload (reload.rs:1162), so the reload note remains accurate.


Generated by Claude Code

@alpergundogdu alpergundogdu changed the title chore(contracts): disposable anvil internal-testnet rig (Docker + WireGuard) feat(node): iroh relay support + disposable anvil internal-testnet rig Jun 3, 2026
Per PR review: an unreachable relay at startup should not block node
bring-up (the relay exists for resilience, and iroh keeps retrying it in
the background). probe_relay now does a few short TCP connects with backoff
and, on exhaustion, logs a warning and returns — the caller proceeds. Split
host/port resolution (relay_host_port) and the single attempt
(relay_connect_once) out to keep clippy cognitive-complexity in bounds.
Update tests to the bool return; README to warn-not-fail; note why the
relay compose service has no healthcheck (operator-supplied image).

@thiras thiras left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we don't need wg for local. that stuff belongs to the test RPC under devops repo

Per review (thiras): the anvil rig doesn't need WireGuard — exposing a
shared/team test RPC (and hardening it) belongs to the devops test-RPC
setup, not here. Keep the rig but bind anvil (and the optional relay) to
127.0.0.1 only and remove the wg-specific knobs/guidance.

- docker-compose.yml: publish ports on 127.0.0.1 (drop WG_BIND_IP); update
  security comment to point remote exposure at the devops test-RPC setup.
- deploy.sh / .env.example: drop WG_BIND_IP; RPC_URL defaults to
  http://127.0.0.1:$RPC_PORT.
- README: retitle (anvil + Docker), replace the WireGuard security section
  with a local-only safety note + devops pointer, fix examples to 127.0.0.1.

No node/runtime changes; the iroh relay wiring is untouched.
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.

Disposable internal-testnet rig: deploy contract surface to anvil (Docker + WireGuard)

4 participants