Skip to content

Faucet for beta TOKEN behind the onramp captcha, and decdn setup support #2597

Closed as not planned

Description

@thiras

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:

  1. Deploy the faucet on the testnet and on Ethereum for the beta with claimAmount = minBond and one claim per address. Record its address in each deployment manifest and in the CLI's deployment files. A large operator that needs more than minBond for its declared capacity asks for a top-up: a TOPUP_ROLE held by a Labs Safe calls claimFor(operator, amount).
  2. Gate it with the onramp's captcha. The claim() entrypoint stays per-address, but the faucet's GOVERNANCE_ROLE points claims at a relayer: the onramp (sponsord-onramp, Turnstile gate, feat(onramp): webhook gate #2550 webhook alternative) verifies the challenge and submits claimFor(operator) from a funded relayer key, so the operator needs no ETH before their first claim either. Same Gate trait, one more route. On Ethereum, the relayer pays L1 gas for each claimFor; budget it from the measurement in deploy: mainnet beta (governance on Ethereum, payments on several chains) #2925.
  3. decdn setup --faucet (or decdn node bond --faucet): setup already 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.
  4. Docs. testnet-funds.mdx drops "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

Activity

  1. added
    kind:feature
    prio:medium
    area:contracts
    area:sponsord
    on Oct 24, 2026
  2. added theissue type on Oct 24, 2026
  3. changed the title [-]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[/+] on Nov 20, 2026
  4. alpergundogdu commented on Nov 23, 2026

    @alpergundogdu
    Contributor

    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

  5. moved this from Backlog to Done in deCDNon Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:contractsarea:sponsordkind:featureprio:medium

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions