Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 17, 2025

Problem

The StarkNet staking package's entrypoint script requires PROVIDER_HTTP_URL and PROVIDER_WS_URL environment variables to connect to StarkNet full nodes (like Juno), but these were not configurable through the DAppNode setup wizard. Users could only rely on hardcoded values from the sepolia variant, making it impossible to customize provider endpoints for mainnet deployments.

# entrypoint.sh expects these variables but they weren't configurable
exec /app/validator \
  --provider-http "${PROVIDER_HTTP_URL}" \
  --provider-ws "${PROVIDER_WS_URL}" \
  # ... other args

Solution

This PR adds the missing provider URL configuration fields to the setup wizard, allowing users to specify their StarkNet full node endpoints during package installation.

Changes Made

setup-wizard.yml:

  • Added provider_http_url field mapping to PROVIDER_HTTP_URL environment variable
  • Added provider_ws_url field mapping to PROVIDER_WS_URL environment variable
  • Both fields are required with sensible mainnet defaults (http://juno.public.dappnode:6070/v0_8 and ws://juno.public.dappnode:6071/v0_8)
  • Clear descriptions explain each URL's purpose (blockchain data queries vs real-time updates)

docker-compose.yml:

  • Added PROVIDER_HTTP_URL: "" and PROVIDER_WS_URL: "" environment variables to the staking service

Compatibility

The sepolia variant continues to work unchanged since it has its own docker-compose.yml with predefined URLs that override the setup wizard values. This ensures existing sepolia deployments are unaffected while enabling mainnet customization.

User Experience

Users will now see two additional setup fields during installation:

  • StarkNet Provider HTTP URL: For querying blockchain data
  • StarkNet Provider WebSocket URL: For real-time blockchain updates

Both fields come with working defaults but can be customized for different StarkNet full node configurations.

Original prompt

Add PROVIDER_HTTP_URL and
PROVIDER_WS_URL to the sutup wizard


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI and others added 2 commits October 17, 2025 10:18
Co-authored-by: hcastc00 <47385090+hcastc00@users.noreply.github.com>
Co-authored-by: hcastc00 <47385090+hcastc00@users.noreply.github.com>
Copilot AI changed the title [WIP] Add PROVIDER_HTTP_URL and PROVIDER_WS_URL to setup wizard Add PROVIDER_HTTP_URL and PROVIDER_WS_URL to setup wizard Oct 17, 2025
Copilot AI requested a review from hcastc00 October 17, 2025 10:23
@hcastc00 hcastc00 marked this pull request as ready for review October 17, 2025 10:26
@hcastc00 hcastc00 merged commit 5ce2b24 into main Oct 17, 2025
4 checks passed
@hcastc00 hcastc00 deleted the copilot/add-provider-urls-setup-wizard branch October 17, 2025 10:26
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.

2 participants