You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(contracts): TestnetFaucet for ad-hoc TOKEN distribution on testnet #636
When we open a testnet (Arbitrum Sepolia first; possibly a public testnet later), node operators and devs need TOKEN to stake and to ve-lock. The current onboarding path is "ask the deployer multisig nicely" — that works for a closed group of ~10 nodes but doesn't scale to ad-hoc developer onboarding or community-run nodes.
USDC is not in scope for this issue — Circle runs the canonical USDC faucet on Arbitrum Sepolia (developers.circle.com/stablecoins/docs/usdc-on-testnet). Devs grab USDC from there. If we ever need a public testnet at thousands-of-users scale and Circle's faucet rate-limits become a real bottleneck, we'd revisit with a MockUSDC path then.
Scope
New TestnetFaucet contract:
Pre-funded with TOKEN at deploy time from the initial holder
claim() dispenses a fixed amount per address with cooldown (e.g., 1000 TOKEN per 24h per address)
Request to add a TestnetFaucet Solidity contract that dispenses TOKEN on Arbitrum Sepolia for developer/operator onboarding. The issue is well-scoped: USDC is explicitly out of scope (Circle's faucet covers it), mainnet exclusion is called out, and acceptance criteria are concrete. The contract lives outside the audited production surface tracked in #452, with a CI guard to keep it that way.
📊 Assessment
Dimension
Value
Reasoning
Type
Feature
New contract deliverable with defined scope and acceptance criteria
Labels
enhancement, technical, poc-blocking
New capability; contract implementation; needed before open testnet onboarding
Coding agent
Suitable
Requirements are fully specified: contract interface, OZ inheritance, governance setters, file location, deploy script target, CI path-filter gate, and runbook note all defined
🔗 Similar issues
No duplicate or closely related open issues found beyond the referenced parent (#452) and sibling PR (#635).
💡 Notes and suggestions
Implementation checklist:
contracts/testnet/TestnetFaucet.sol — OZ AccessControl + ReentrancyGuard + Pausable; claim() with per-address cooldown mapping; setClaimAmount, setCooldown, withdraw behind DEFAULT_ADMIN_ROLE
Unit tests: happy-path claim, double-claim within cooldown reverts, post-cooldown re-claim, withdraw drains balance
script/testnet/DeployTestnetFaucet.s.sol — separate from production Deploy.s.sol; seeds faucet from TOKEN_INITIAL_HOLDER
CI path-filter check (e.g., a grep/assert in a workflow step) that TestnetFaucet does not appear in the production deploy script or broadcast artifacts
Consider an allowlist (AccessControl role MINTER_ROLE or a whitelist) if the testnet faucet needs to be restricted during early access, with a governance setter to open it publicly later.
The withdraw escape hatch should emit an event for traceability even though it's testnet-only.
Cooldown should use block.timestamp; document the known miner-manipulation window (irrelevant on testnet but good practice for auditability).
Activity
github-actions commentedon May 21, 2026
🎯 Triage report
Request to add a
TestnetFaucetSolidity contract that dispenses TOKEN on Arbitrum Sepolia for developer/operator onboarding. The issue is well-scoped: USDC is explicitly out of scope (Circle's faucet covers it), mainnet exclusion is called out, and acceptance criteria are concrete. The contract lives outside the audited production surface tracked in #452, with a CI guard to keep it that way.📊 Assessment
enhancement,technical,poc-blocking🔗 Similar issues
No duplicate or closely related open issues found beyond the referenced parent (#452) and sibling PR (#635).
💡 Notes and suggestions
Implementation checklist:
contracts/testnet/TestnetFaucet.sol— OZAccessControl+ReentrancyGuard+Pausable;claim()with per-address cooldown mapping;setClaimAmount,setCooldown,withdrawbehindDEFAULT_ADMIN_ROLEwithdrawdrains balance(address, elapsed_time)pairs verify cooldown invariant holdsscript/testnet/DeployTestnetFaucet.s.sol— separate from productionDeploy.s.sol; seeds faucet fromTOKEN_INITIAL_HOLDERTestnetFaucetdoes not appear in the production deploy script or broadcast artifactsDesign notes:
AccessControlroleMINTER_ROLEor a whitelist) if the testnet faucet needs to be restricted during early access, with a governance setter to open it publicly later.withdrawescape hatch should emit an event for traceability even though it's testnet-only.block.timestamp; document the known miner-manipulation window (irrelevant on testnet but good practice for auditability).feat(contracts): testnet faucet for ad-hoc TOKEN distribution (#655)