Repository navigation
Description
Component
contracts (Solidity)
Who it affects
node operator
Problem
An operator who wants to join the testnet reads Testnet funds: "The team sends testnet TOKEN to operators directly. Send your EVM operator address through any channel on the contact section." Then they wait for a person. The bond is 50,000 TOKEN (minBond in crates/cli/deployments/421614.json), so there is no small-claim path either.
contracts/testnet/TestnetFaucet.sol exists for this (#636): claim() dispenses claimAmount per cooldown per address, defaults 1,000 TOKEN per 24 h. It is not in the 421614 deployment manifest and no doc or command points at it. At its default parameters it is also the wrong shape: fifty daily claims to reach one bond.
The mainnet beta (#2925) uses a non-transferable TOKEN (#2923) on Ethereum. Operators can only get it from the faucet, so the faucet is the entry path on mainnet too, not just a testnet convenience.
Proposed solution
Make TOKEN self-serve, behind the same captcha the demo already uses:
- Deploy the faucet on the testnet and on Ethereum for the beta with
claimAmount = minBondand one claim per address. Record its address in each deployment manifest and in the CLI's deployment files. A large operator that needs more thanminBondfor its declared capacity asks for a top-up: aTOPUP_ROLEheld by a Labs Safe callsclaimFor(operator, amount). - Gate it with the onramp's captcha. The
claim()entrypoint stays per-address, but the faucet'sGOVERNANCE_ROLEpoints claims at a relayer: the onramp (sponsord-onramp, Turnstile gate, feat(onramp): webhook gate #2550 webhook alternative) verifies the challenge and submitsclaimFor(operator)from a funded relayer key, so the operator needs no ETH before their first claim either. SameGatetrait, one more route. On Ethereum, the relayer pays L1 gas for eachclaimFor; budget it from the measurement in deploy: mainnet beta (governance on Ethereum, payments on several chains) #2925. decdn setup --faucet(ordecdn node bond --faucet):setupalready checks balances before it submits; when TOKEN is short it opens the faucet page for the operator's address, waits for the claim, and continues. ETH stays an external faucet on the testnet (the doc already lists them) and USDC stays Circle's.- Docs.
testnet-funds.mdxdrops "the team sends it".
Alternatives considered
- Keep sending TOKEN by hand. It is the step every operator has to be nudged through after a release, and it does not scale past the current fleet.
- Lower
minBond. Changes the economics the network is supposed to exercise (ADR 026 § Capacity-bond curve); the faucet amount is the knob that should move, not the bond. - Faucet with no gate. A sybil drains it in an afternoon; the captcha is already deployed and costs nothing to reuse.
Design scope
- This proposal changes the protocol, the economics, or the contract surface.
On the mainnet beta, the faucet is a production contract. It moves out of contracts/testnet/ into the audited surface, and the CI grep gate changes to match.
Related
- Original faucet contract: feat(contracts): TestnetFaucet for ad-hoc TOKEN distribution on testnet #636
- Non-transferable beta TOKEN: contracts: non-transferable TOKEN for the mainnet beta #2923
- Mainnet beta deployment: deploy: mainnet beta (governance on Ethereum, payments on several chains) #2925
decdn node earnings, the other half of operator self-serve: cli:decdn node earningsprints settled and owed USDC per period #2598- Auto-update channel for deployed nodes (decdn/devops): opt-in auto-update timer that follows the pinned release line on Ansible and cloud-init hosts devops#175
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
[-]testnet: deploy TestnetFaucet behind the onramp captcha with a minBond-sized claim, and let `decdn setup` use it[/-][+]Faucet for beta TOKEN behind the onramp captcha, and `decdn setup` support[/+]alpergundogdu commentedon Nov 23, 2026
Closing as not planned: the mainnet beta design is changing and will not use a TOKEN bond, so there is no beta TOKEN to hand out. New issues will describe the replacement.
Generated by Claude Code