Skip to content

chore(funder): source dedicated funder seed from env secret#410

Merged
UtkarshBhardwaj007 merged 2 commits into
mainfrom
chore/dedicated-funder-seed-env
Jun 17, 2026
Merged

chore(funder): source dedicated funder seed from env secret#410
UtkarshBhardwaj007 merged 2 commits into
mainfrom
chore/dedicated-funder-seed-env

Conversation

@ReinhardHatko

Copy link
Copy Markdown
Collaborator

The dedicated testnet funder seed was hardcoded in funder.ts, shipping in every published binary. Read it from the MASTER_FUNDER_SEED environment variable instead (CI injects it from the repository secret of the same name); when unset, the funder chain degrades to Alice-only. The chain is exercised only by the E2E suite and operator tooling, so no end-user command is affected.

Also reorder the chain so the dedicated funder is primary and public Alice is the fallback — draw down our own controlled account first rather than the shared dev account others drain unpredictably.

  • funder.ts: derive dedicated funder from MASTER_FUNDER_SEED?.trim() at //0; drop the literal mnemonic; dedicated entry leads FUNDER_CHAIN
  • check-funder-balance.ts: exit 2 with a clear message when the seed is unset
  • CI: inject MASTER_FUNDER_SEED from the secret in the e2e + balance-check workflows
  • docs/e2e-bootstrap.md: MASTER_FUNDER_SEED is now actually consumed (was documented but unwired)
  • add funder.test.ts; update funding.test.ts for the new order

The dedicated testnet funder seed was hardcoded in funder.ts, shipping in every
published binary. Read it from the MASTER_FUNDER_SEED environment variable
instead (CI injects it from the repository secret of the same name); when
unset, the funder chain degrades to Alice-only. The chain is exercised only by
the E2E suite and operator tooling, so no end-user command is affected.

Also reorder the chain so the dedicated funder is primary and public Alice is
the fallback — draw down our own controlled account first rather than the
shared dev account others drain unpredictably.

- funder.ts: derive dedicated funder from MASTER_FUNDER_SEED?.trim() at //0;
  drop the literal mnemonic; dedicated entry leads FUNDER_CHAIN
- check-funder-balance.ts: exit 2 with a clear message when the seed is unset
- CI: inject MASTER_FUNDER_SEED from the secret in the e2e + balance-check workflows
- docs/e2e-bootstrap.md: MASTER_FUNDER_SEED is now actually consumed (was documented but unwired)
- add funder.test.ts; update funding.test.ts for the new order
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Dev build ready — try this branch:

curl -fsSL https://raw.githubusercontent.com/paritytech/playground-cli/main/install.sh | VERSION=dev/chore/dedicated-funder-seed-env bash

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

E2E Test Pass · ❌ FAIL

Tag: e2e-ci-pr · Branch: chore/dedicated-funder-seed-env · Commit: fc3866a · Run logs

Cell Result Time
pr-deploy-frontend ❌ FAIL 4m15s
pr-login-session ❌ FAIL 3m30s
pr-deploy-cdm ✅ PASS 4m31s
pr-deploy-foundry ✅ PASS 1m13s
pr-preflight ❌ FAIL 4m29s
pr-mod ❌ FAIL 4m50s
pr-install ✅ PASS 1m40s
${{ matrix.cell }} ⏭️ SKIP 0m00s
${{ matrix.cell }} ⏭️ SKIP 0m00s

Sentry traces: view spans for this run

…rder

Follow-up to the env-secret funder change:

- funder.ts: derive the dedicated funder at the bare root (empty derivation
  path) instead of //0, so the funded account matches the signing path;
  replace the address cast with a real null narrow in FUNDER_CHAIN
- funder.test.ts: pin the derivation path with a frozen bare-root vector so a
  path regression fails loudly
- e2e/e2e-release/e2e-post-release workflows: reword comments to describe the
  dedicated funder as primary and Alice as the fallback (matches the new order)
- docs/e2e-bootstrap.md + changeset: reflect the bare-root primary funder
@UtkarshBhardwaj007 UtkarshBhardwaj007 merged commit 68ee9ee into main Jun 17, 2026
16 of 20 checks passed
@UtkarshBhardwaj007 UtkarshBhardwaj007 deleted the chore/dedicated-funder-seed-env branch June 17, 2026 17:14
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