How we build, run and test the extension, and how a release goes to the Chrome Web Store. The last two sections are about Lace, the wallet we read for patterns, and the decisions the wallet is built on. The extension lives in ../extension/; its README lists every script.
The web wallet lives on main. seedelf-web-wallet, the long-lived dev branch it was built on, is merged and finished.
Feature branches and PRs:
main and name it web-wallet/<topic>. Keep the prefix: it reads well in the log, and it’s what tags use.main.
seedelf-platform/ that isn’t Markdown or in the web wallet’s media/; touches wasm/README.md, which a test reads, any workflow or seedelf-verification/test-tools.sh, which extension/tests/workflows.test.ts reads, or the Lovejoin scripts’ .hex files in seedelf-verification/Lovejoin/, which a Rust test includes; changes more files than the API lists (3,000); or goes into a branch other than main. A renamed file counts by its old path too. A PR that changes only the data layer’s Rust doesn’t run the check: data-layer.yml’s No Markdown included step makes the one check of that Rust that workflows.test.ts makes. The check is five jobs side by side: Rust, the WebAssembly, and on that WebAssembly the extension’s unit tests, end-to-end tests and store package. Its last job, Web Wallet required, always reports: green when every job passed, or all were skipped because the PR touches nothing they cover. main’s ruleset requires that job, with no bypass, so no merge lands while the check is red or still running, and no path filter can leave a PR waiting on a check that never comes. No approving review is asked while the project has one maintainer.web-wallet.yml runs its own copy of it, so it decides its own Web Wallet required: read that diff before trusting the green.main, after a merge, so go through a PR even for a docs change: one that’s only Markdown skips the check and goes green at once.main runs the check again after each merge, which keeps the caches every PR’s first run starts from, but a red there only shows after the fact, once the tree is already on main.web-wallet/<x>.<y>.<z> — that’s the tag namespace (web-wallet/1.0.0), and a branch and tag sharing a name makes git checkout ambiguous.The old branch:
seedelf-web-wallet; it’s finished and far behind main, and can be deleted whenever.Shared Rust code:
web-wallet/<topic> branch into main too. The builder extraction is the main example.The work happens in chunks: a number, a branch, and a plan in plans/ while it’s built. When one lands, what still holds moves into the design docs (architecture.md, flows.md, privacy.md, keys-and-accounts.md, this file) and the plan to docs/archive/plans/, so plans/ holds only live specs, beside plans/release-records.md, the releases’ records; plans/README.md has the rules. What could come next is in backlog.md, and what each release carried in releases.md.
Chrome runs an extension straight from a folder once developer mode is on. There is no store and no packaging.
cd seedelf-web-wallet/extension && npm install && npm run build. This builds the Rust core to WebAssembly and then the extension into dist/. Every build has both networks: mainnet by default, with preprod on the welcome screen and in Settings (see architecture.md). A wallet from before the switch stays on preprod. VITE_ENABLE_MAINNET=false npm run build makes a preprod-only build.chrome://extensions and turn on Developer mode (top right).dist/ folder.After a rebuild, click the reload arrow on the extension’s card. npm run dev rebuilds dist/ on every change, but you still reload the extension by hand.
After packaging, build again. npm run package and npm run package:preprod write a store build into the same dist/: it has no dev key, so Chrome gives it another ID, with empty storage, and package:preprod’s has preprod alone, so the welcome screen has no network to choose and every wallet is a preprod one. Run npm run build before loading or reloading dist/ for everyday use.
dist/ is rebuilt and the extension isn’t reloaded (after a package, say): Chrome keeps running the old service worker, which asks for the old WebAssembly file. Each build gives that file a new hashed name and deletes the previous one.Debugging:
Gotchas:
key in extension/src/manifest.ts fixes the ID at jfekiogplaamnceifeehipmomhojngcb.
VITE_STORE_BUILD=true, which npm run package sets), because the store assigns its own ID.On mainnet, every build reads Seedelf Wallet’s own data layer first (architecture.md): https://mainnet.seedelf.logicalmechanism.io, which answers the store’s ID and the dev build’s. So a plain npm run build reads the live server, and its worker’s network panel shows mainnet.seedelf.logicalmechanism.io where the list below says 127.0.0.1:8099. A dev build can read a local API instead:
seedelf-data/ (its README) with the dev build’s pinned ID allowed: DATA_ORIGINS=chrome-extension://jfekiogplaamnceifeehipmomhojngcb cargo run -p seedelf-data-api. It listens on 127.0.0.1:8099.VITE_DATA_ORIGIN=http://127.0.0.1:8099 npm run build, and reload the extension. Its CSP’s connect-src gains the origin; the manifest asks for no new host.127.0.0.1:8099/seedelf/v1/mainnet/…: a restore’s contract/snapshot, then contract/since/<cursor> and names at each reading, never Koios’s credential_utxos for the contract;127.0.0.1:8099/api/v1/… for the account, staking, governance and submits;contract/since/… every 5 s while Home watches it, and no tx_status for it;DATA_ORIGINS (403s), each part on api.koios.rest within one request, and back on the API 5 minutes later;127.0.0.1:8099/messaging/v1/preprod/envelopes, read at unlock and every minute while the wallet shows mainnet: a build with VITE_DATA_ORIGIN reaches the relay there too (relayOrigin), and nothing goes to /messaging/v1/mainnet/;127.0.0.1:8099 but /messaging/….npm run e2e:data builds with VITE_DATA_ORIGIN=https://data.seedelf.test and runs e2e/data-layer.spec.ts against its fake (e2e/data-layer.ts). It writes that build to dist/: run npm run build again for everyday use.extension/.preprod-test-wallet.txt (gitignored): one line, phrase: and 24 words. The live runs restore it.| Layer | What | How |
|---|---|---|
| Rust | seedelf-crypto, seedelf-core, seedelf-messaging (Seedelf Messaging’s protocol: its vectors, the session layer’s rules and a two-wallet simulation) and the wasm crate |
cargo test. The CLI’s offline integration tests (seedelf-cli/tests/cli/) guard the builder extraction. The WebAssembly’s own JS tests run in Node once it’s built: node --test "seedelf-web-wallet/wasm/tests/*.test.mjs" from seedelf-platform/, as CI runs them. |
| The relay | Seedelf Messaging’s relay in the data layer’s API (seedelf-data/api/src/messaging/): each refusal, the price and the window, pages, expiry, a restart, and its copy of the checks, held to seedelf-messaging’s messaging_relay_v1.json |
cargo test --locked in seedelf-data/, offline, as data-layer.yml runs it. Its --ignored tests read live services, and its load test runs only with RELAY_LOAD=1 (the data layer’s README) |
| Model | Seedelf Messaging’s protocol in Tamarin (seedelf-messaging/model/) | model/check.sh alone, after a change to the protocol: it caps each lemma’s memory and cores in a container, and a whole run takes hours |
| Key derivation | The frozen v1 Seedelf key vectors, and the Cardano account vectors (verified against @cardano-sdk, Lace’s library) |
Checked in Rust, and again from JS through WebAssembly, so both sides agree |
| TypeScript | The manifest, the vault and wallet state, the Koios and giveme.my clients, and the worker’s services and handlers against the real WASM, over recorded preprod answers; the screens, rendered to markup (renderToStaticMarkup: Vitest has no DOM) |
Vitest (npm test). A screen’s wiring is tested with its effects and handlers run, over tests/screens-wiring-review-fixes.test.ts’s vi.mock("react") seam: effects run in the render, the worker answers at once, a press acts as its element is made (on), and a state only an awaited answer reaches starts from a seed (seed). What a press does after an await is its rule’s own test’s. |
| End to end, data layer | Mainnet through the data layer’s fake, each part falling back to the Koios fake | npm run e2e:data (a build with VITE_DATA_ORIGIN, then e2e/data-layer.spec.ts), as CI runs it |
| End to end | The built extension in a real browser | Playwright (npm run e2e) launches Chromium with dist/ loaded and drives the side panel’s layout and the full tab. Branded Chrome no longer accepts --load-extension, so it uses Playwright’s Chromium. The dApp connector’s tests load a copy of the build whose manifest grants the sites from install, because Chrome’s own dialog for an optional permission can’t be answered from automation (withSiteAccess in e2e/support.ts); their dApp is a page served at https://dapp.example/. The harness sets the network before the wallet starts (network, preprod by default, as the fakes answer), so the suite runs on a dev build and on the store’s mainnet build alike. |
| Live reads | The balance scan and the ADA Handle lookup against the real preprod Koios | LIVE_KOIOS=1 npx vitest run tests/live.test.ts; skipped otherwise |
| Probes | Transactions checked against preprod’s node and scripts, submitting nothing | node tests/fixtures/probe-staking.mjs: every staking transaction through Ogmios’s decoder, and an account-paid mint with the rewards through the real policy. probe-governance.mjs does the same for every DRep transaction (register, update, retire, vote), and probe-note.mjs for a public send with a note. The record-*.mjs scripts do the same for the Seedelf spends, and keep what they recorded as fixtures. |
| Live | Real preprod transactions from the built extension, by hand, never in CI | node e2e/live/run.mjs all runs every Seedelf flow in one browser session on the private test wallet, waiting for each to confirm, and prints the hashes. node e2e/live/run.mjs staking stakes, delegates the vote and changes pool; withdraw-rewards and unstake wait until rewards arrive. run.mjs also takes single flows: mint live-1 account + move-in 25.5. It puts the wallet on preprod before the first page opens, so it runs on npm run build’s build. all gives its Seedelfs fresh tags each run (live1-…, live2-…), because each run leaves its first Seedelf, about 1.5 tADA, in the test wallet, and a tag two Seedelfs share finds neither. CI never runs it, so tests/live-runs-copy.test.ts checks that every label it fills, presses or waits for is still in the wallet’s English: otherwise a renamed control would break it unseen. |
| Manual | What a script can’t see, before each release | The preprod checklist |
These hold for every change to what the wallet shows, from one label to a whole restyle.
background/secret-box/ does.extension/scripts/i18n-critical.mjs) holds what a privacy or warning callout or an alert shows, what an element whose class carries the --warn modifier, spelled so, shows, and any key named .privacy. or .warn.. A note anywhere else, in a plain note paragraph or in a class coloured as a warning under another name, is in it only by its key’s name: so name every privacy note’s key .privacy. and every warning’s .warn..components/Hint.tsx holds what a feature is and how a transaction runs once sent, in one of three places: beside a screen’s title (Screen’s hint), beside a section’s heading or a field’s label (Hinted), or on a row of its own. A note stays on the page when it says what someone else learns or sees (a privacy note, Koios, giveme.my, Minswap), what an action costs or locks up, what can’t be undone, what to do next, or what’s happening now, and so does an empty list’s line and a one-line note, where an icon saves nothing.font-src 'self', img-src 'self' data:, in extension/src/manifest.ts).RateLimit in extension/src/background/koios.ts); a response holds at most 1,000 rows. The e2e tests assert the exact requests a screen makes.e2e/extension.spec.ts only look inside a part (a phrase’s words, a cut name, a review’s rows). Renaming a control means updating e2e/extension.spec.ts in the same commit, and e2e/store-images.spec.ts and flows.md too, so the tests and the docs keep up with the screens. CI doesn’t run the store images’ spec, so tests/store-images-copy.test.ts fails npm test when English it fills, clicks or waits for is gone from en.json. CI doesn’t run the live runs (e2e/live/) either, and tests/live-runs-copy.test.ts holds them likewise: a renamed control updates them too.extension/tests/words.test.ts checks the source, and extension/tests/i18n.test.ts every locale.On the built extension (npm run build, then load dist/ unpacked), in the side panel and in a tab.
cargo test --workspace --locked, and the three tests it skips as slow, all offline: payments in parts over UTxOs of every shape (about a minute: cargo test --release --locked -p seedelf-wasm --test payment_parts_shapes_test -- --ignored), and the box rule’s two, its sweep over many more balances than the default run’s and a timed payment in parts over 200 + 200 boxes (about three minutes, on an idle machine for the timing: cargo test --release --locked -p seedelf-core --test box_rule_reference_test -- --ignored), the WASM tests, npm test and VITE_ENABLE_MAINNET=false npm test, and npm run e2e, and the relay’s (cargo test --locked in seedelf-data/). Then LIVE_KOIOS=1 npx vitest run tests/live.test.ts, and node e2e/live/run.mjs all on the funded test wallet. Keep the six hashes.
npm run build’s build. Each restores the test wallet in a fresh profile, and a restore can’t know a Bootstrap’s hold: a held box someone else’s mix moved can come back by itself while a run is open. So run them on a wallet holding no Bootstrap’s boxes (the phrase in .preprod-test-wallet.txt picks it).$handle;47bece42…), once a second wallet, from another recovery phrase, has put boxes in it to mix with: a pool holding the tester’s own boxes alone has nobody to mix with, since a wallet’s own boxes never count. Then a Lovejoin mix from each side, and Bring one back now; Public activity names the public account’s deposit Into Lovejoin and its mixes Lovejoin mix;www.giveme.my blocked, that run stops by itself after three runs that sent nothing, and its Try again asks “Bring the retired pools’ boxes back now?”;www.giveme.my blocked once that collateral’s deposit lands, an hour on, Bring the rest back now and its line on the swap’s page, a site’s (whose press opens its return’s review) and the mix’s card: the chain reads “You chose not to wait…”, the 5 ₳ box stays unmixed, and Mix my boxes again moves it once unblocked;/messaging/ until Turn on Messages (under it, while off, the line that turning it on lists the Seedelfs publicly), which reads /messaging/v1/preprod/certificates and posts each created Seedelf’s certificate there. From A, New message to B’s Seedelf by its whole name: its bubble reads preparing, about 7 s, then sending, then sent, expires …. B, with Messages open, lists it as a request within about 10 s, from Unknown sender, Wrote to your ⟨Seedelf⟩. B’s reply moves it to Conversations, and A’s thread shows the reply. From A, Show my Seedelf: B’s thread says it isn’t checked on the chain yet, and once B presses its check, Showed you their Seedelf …, verified on the chain, with Verified Seedelf … in its header. Lock B and write from A: B asks the server nothing until it’s unlocked, and the message arrives at that unlock. A second conversation from A to B’s Seedelf, before any reply: after 16 messages the box says to wait for a reply, and Start again is offered at once; the next message opens a new conversation, the old one says it was started again, and B’s new request says what it continues. Turn A’s Messages off: A’s certificate is withdrawn (a post to /messaging/v1/preprod/withdrawals), and B’s New message to A’s Seedelf then says That Seedelf doesn’t take messages. before any work; what A writes in a conversation waits (waiting for Messages to be on), and nothing else goes to /messaging/;Read every review and every privacy note as you go.
$handle that doesn’t exist.preprod.koios.rest and www.giveme.my (and Minswap’s preprod aggregator, for a swap, and ipfs.blockfrost.dev for an NFT image you asked to see). While preprod’s Messages is on and the wallet unlocked, it also shows mainnet.seedelf.logicalmechanism.io’s /messaging/v1/preprod/envelopes (the relay’s host, where both networks’ pools are): a page at unlock and every minute, every 10 s while a page of the wallet is on screen, and a post for each message; and its /messaging/v1/preprod/certificates: a read at the switch, a Seedelf’s turn-on, a first message, a reveal’s check and the first sync of each unlock, and a post for each Seedelf turned on, minutes apart; and a post to /messaging/v1/preprod/withdrawals for each at a turn-off. Switch the wallet to mainnet with preprod’s Messages still on: the panel still shows a read of /messaging/v1/preprod/envelopes every minute, and never one of /messaging/v1/mainnet/.npm run package, dist/ loaded unpacked in a fresh profile):
mainnet.seedelf.logicalmechanism.io, www.giveme.my and api.coingecko.com (and agg-api.minswap.org, for a swap, and ipfs.blockfrost.dev for an NFT image you asked to see), plus preprod.koios.rest only for something still on its way on preprod, and api.koios.rest only for a part the data layer couldn’t answer;mainnet.seedelf.logicalmechanism.io but /messaging/v1/preprod/, while preprod’s Messages is on (Messages has no Koios version), and off, the next reading goes there again. The line under it says Using Seedelf’s data layer. with a green light while it’s off, and Using Koios only. in grey once it’s on;/messaging/v1/mainnet/, then or later;/messaging/v1/preprod/envelopes every minute, and mainnet’s Messages page says Messages are also on for Preprod., with Turn off, which stops it;/messaging/ on either network.This is the repeatable release path for a new Web Store version, in two parts. The version, the refreshed token and DRep lists and the Lovejoin pools’ head start are committed on the release branch (web-wallet/release-<x.y.z>), with the checks, and reach main through its PR. The package is built after the merge, from the merge commit on main in a clean tree, so the commit releases.md records gives the same zip. Change part 1’s release_version to the new, higher version for each later release; part 2 reads it from package.json.
Which number. The store only demands one strictly higher than the last, so the semantics are for the wallet’s own users: a minor bump for a release that adds something a user can do (1.1.0, the transaction view), a patch for a fix or a listing hotfix on its own (1.0.1). The web wallet’s line runs from 1.0.0 and is deliberately apart from the Rust workspace’s and the CLI’s 0.x.y, so that a listing hotfix is free to bump it alone (the root CLAUDE.md has the rule).
From the repository root, on a web-wallet/release-<x.y.z> branch from main:
(cd seedelf-data && cargo test --locked)
cd seedelf-platform
cargo test --workspace --locked
cargo test --release --locked -p seedelf-wasm --test payment_parts_shapes_test -- --ignored
cargo test --release --locked -p seedelf-core --test box_rule_reference_test -- --ignored
cd seedelf-web-wallet/extension
npm ci
release_version=1.9.3
npm version "$release_version" --no-git-tag-version
npm run tokens
npm run dreps
npm run lovejoin-pools
git diff -- package.json package-lock.json src/tokens src/dreps src/lovejoin-pools.json
Read those diffs (steps 2 and 3 of Releasing to the Web Store say what to look for), and commit them together.
Then the pools’ names on Cardanoscan (step 3 says why), in the maintainer’s fork of Strica’s registry, checked out beside this repository. In the same terminal, from extension/, it starts from Strica’s own master:
registry=../../../../cardano-contracts-registry
if [ ! -d "$registry/.git" ]; then
echo "No registry fork at $registry: skipped. It's the owner's step, never a release gate."
elif [ -n "$(git -C "$registry" status --porcelain --untracked-files=no)" ]; then
echo "The fork at $registry has uncommitted changes: commit or discard them, then run this again."
elif pending=$(gh pr list --repo StricaHQ/cardano-contracts-registry --author @me --state open \
--search "Lovejoin token pools in:title" --json url --jq '.[0].url // empty') && [ -n "$pending" ]; then
echo "The last pools PR is still open ($pending): run this again once it's merged, or close it and run this again."
else
git -C "$registry" fetch -q https://github.com/StricaHQ/cardano-contracts-registry.git master \
&& git -C "$registry" switch -q --detach FETCH_HEAD \
&& npm run -s lovejoin-registry -- "$registry/projects/lovejoin.json"
fi
It skips, saying why, in three cases:
master could keep them, and they’d go out in the PR.master would repeat the open one’s entries. Closing it is fine: the next run adds its pools again, since the script adds what Strica’s master lacks.Otherwise the script’s last line says what it did. “No new pools” means there’s nothing to send, and the fork is left at Strica’s master. Otherwise send the new entries, then message Cardanoscan the PR’s link from the official X account or email, as their README asks. npm ci comes first, as Strica’s validator has changed its dependencies before:
(cd "$registry" && npm ci && npm run validate && git switch -c "lovejoin-pools-$release_version" \
&& git commit -qam "Lovejoin token pools" && git push -u origin "lovejoin-pools-$release_version" \
&& gh pr create --repo StricaHQ/cardano-contracts-registry --head "logicalmechanism:lovejoin-pools-$release_version" \
--title "Lovejoin token pools" --body "Adds the scripts of Lovejoin's token pools launched since its last update.")
Then the checks:
npm run build
npm test
VITE_ENABLE_MAINNET=false npm test
npm run e2e
(cd ../.. && node --test "seedelf-web-wallet/wasm/tests/*.test.mjs")
LIVE_KOIOS=1 npx vitest run tests/live.test.ts
node e2e/live/run.mjs all
node e2e/live/run.mjs staking
Then complete the manual preprod checklist, including the dApp, private-session, swap, and Lovejoin flows. If the UI or a caption in e2e/store-images.spec.ts changed, regenerate the store images (npm run store:images), and bring the listing in store/README.md up to date. Commit them, and open the PR into main.
main, after the merge: build and test the store packageFirst, if the release changed seedelf-data/ (Seedelf Messaging’s relay is in it) or the token list (extension/src/tokens/list.json, which the API builds in), deploy the API: Actions → Data layer deploy, deploy, on main, approved, then a status run (seedelf-data/deploy/README.md). A wallet the store ships must never meet an API older than the one it was reviewed against, and checklist item 9 reads this one from the store’s build. The same goes for the relay, Messages’ only server: one older than the wallet answers it with older limits, and one that predates a change to what a message holds refuses its messages. The deploy checks /health and CORS alone, so then check, from any machine, the routes those don’t read. Each line should print 200 application/json, the relay’s two 200 application/octet-stream, and the last the store’s origin, GET and POST, and content-type:
api=https://mainnet.seedelf.logicalmechanism.io
curl -s -o /dev/null -w '%{http_code} %{content_type} lovejoin/pools\n' "$api/seedelf/v1/mainnet/lovejoin/pools"
curl -s -o /dev/null -w '%{http_code} %{content_type} lovejoin/tokens\n' "$api/seedelf/v1/mainnet/lovejoin/tokens"
curl -s -o /dev/null -w '%{http_code} %{content_type} pool_history\n' "$api/api/v1/pool_history?_pool_bech32=pool1gaztx97t53k47fr7282d70tje8323vvzx8pshgts30t9krw62tm&select=epoch_no,active_stake,block_cnt,deleg_rewards&order=epoch_no.desc&limit=18"
curl -s -o /dev/null -w '%{http_code} %{content_type} account_update_history\n' -X POST -H 'content-type: application/json' \
-d '{"_stake_addresses":["stake1uxkjkwuygxqf24wacumm8ph2nlhp9e0ahv37fshdr060cyc36wvr9"]}' \
"$api/api/v1/account_update_history?select=action_type,tx_hash,epoch_no,absolute_slot,block_time&action_type=neq.withdrawal&order=absolute_slot.asc,tx_hash.asc,action_type.asc&offset=0&limit=1000"
curl -s -o /dev/null -w '%{http_code} %{content_type} messaging/mainnet\n' "$api/messaging/v1/mainnet/envelopes"
curl -s -o /dev/null -w '%{http_code} %{content_type} messaging/preprod\n' "$api/messaging/v1/preprod/envelopes"
curl -s -D - -o /dev/null -X OPTIONS "$api/messaging/v1/mainnet/envelopes" -H 'Origin: chrome-extension://dkefopeefhophfkjkkdebhoklagjdmcp' \
-H 'Access-Control-Request-Method: POST' -H 'Access-Control-Request-Headers: content-type' | tr -d '\r' | grep -i '^access-control-allow-'
The relay’s two are Messages’ only server, both networks’ pools: refused, every wallet with Messages on says it can’t reach the server, and what it writes waits. The deploy’s own check reads neither. To stop Messages for every wallet (a Seedelf-key report that comes through Messages, say), the runbook’s Stopping Messages turns every /messaging/ route into a 410, which wallets read as paused; never DATA_MESSAGING_GB_MONTH=0, which the API refuses at start, taking every route down.
The first two are the token pools’ routes: refused, they send every wallet’s token pool reads to Koios, which then learns which boxes are the wallet’s. Right after a deploy they can print 503 for up to a minute, while the restarted server works out its first pool list off the request: ask again before you take it for a failed deploy (the runbook says the same). The last two ask exactly what the wallet asks for a pool’s history and for a delegation history: a 404 or a 400 there holds the wallet’s whole public part on Koios for 5 minutes. status’s .prev is what a rollback would put back, and the runbook’s Routine says how to tell what it lacks.
Then, from the repository root, at the merge commit, with nothing changed or added (git status --porcelain prints nothing):
git switch main
git pull --ff-only
git status --porcelain
cd seedelf-platform/seedelf-web-wallet/extension
npm ci
release_version=$(node -p "require('./package.json').version")
npm run package
npm run e2e
sha256sum "release/seedelf-wallet-$release_version-mainnet.zip"
stat -c %s "release/seedelf-wallet-$release_version-mainnet.zip"
git rev-parse HEAD
No npm version, npm run tokens, npm run dreps or npm run lovejoin-pools here. On main the bump fails (“Version not changed”), and each refresh rewrites a bundled file no commit has, so the zip wouldn’t be the recorded commit’s. release_version is read from package.json, which the merge brought: the zip is the version part 1 set.
The package to upload is:
seedelf-platform/seedelf-web-wallet/extension/release/seedelf-wallet-$release_version-mainnet.zip
With package.json at 1.9.3, that file is extension/release/seedelf-wallet-1.9.3-mainnet.zip.
npm run package builds the store’s mainnet build (VITE_ENABLE_MAINNET=true, VITE_STORE_BUILD=true) and refuses one whose manifest lacks https://api.koios.rest/*. The second npm run e2e runs the whole suite against it, with preprod chosen before the wallet starts (the fakes are preprod’s). Then do checklist item 9 by hand on it.
Keep for the release record, with the commit git rev-parse HEAD printed, the SHA-256 and the size in bytes:
wasm/build.sh’s last two lines, Rust: <release> (<commit hash>), from rustc -vV, and C compiler: <first line of clang --version>, each unknown when it can’t tell;scripts/package.mjs’s sha256 <hex>, and the line after it, Zipped with Node <version>, zlib <version>.The next npm run package overwrites a zip of the same version, so take the hash from the zip you upload, never from one rebuilt since.
Then build it a second time, apart, for the record’s reproducibility line: the same commit in a worktree of its own, with its own node_modules and its own cargo target, so nothing built for the first zip is reused, and in a clean environment (env -i: only PATH and HOME, and LC_ALL=C.UTF-8), so a toolchain or a flag left in the shell (RUSTUP_TOOLCHAIN, RUSTC, CFLAGS, CARGO_TARGET_DIR) reaches only the first, and the two hashes then disagree. In the same terminal, from extension/, it prints the second zip’s SHA-256, which must be the first’s, and removes the worktree:
second=$(mktemp -d)
git worktree add --detach "$second/tree" HEAD
(cd "$second/tree/seedelf-platform/seedelf-web-wallet/extension" && env -i PATH="$PATH" HOME="$HOME" LC_ALL=C.UTF-8 npm ci && env -i PATH="$PATH" HOME="$HOME" LC_ALL=C.UTF-8 npm run package && sha256sum "release/seedelf-wallet-$release_version-mainnet.zip")
git worktree remove --force "$second/tree"
Its WebAssembly builds from nothing, which takes a while. Never make the second build in the main tree: there it reuses the first’s target, which proves nothing, and it overwrites the zip you upload.
npm run package:preprod makes a preprod-only store build (-preprod.zip) for tests. Never upload it.
extension/release/seedelf-wallet-$release_version-mainnet.zip._locales: fill in English, then Español and 日本語, each with its own description and screenshots (In Spanish and Japanese).Tag the commit the zip was built from, still HEAD if main hasn’t moved since step 2. The slash keeps release.yml off it, and SECURITY.md’s bounty scope is the latest such tag:
git tag "web-wallet/$release_version" HEAD
git push origin "web-wallet/$release_version"
The official Chrome upload flow is also described in Publish in the Chrome Web Store.
The listing’s text, its images and the privacy policy are in store/, laid out by the dashboard’s tabs. The maintainer who holds the developer account uploads the package by hand.
Steps 1 to 6 happen on the release branch and are committed in its PR; steps 7 to 12 run on main’s merge commit, in a clean tree. The privacy policy and the wallet’s Settings link point at main, so the merge comes before npm run package (store/README.md).
npm version <x.y.z> --no-git-tag-version in extension/. It updates package.json and package-lock.json, and the manifest takes its version from there. Every upload needs a higher version than the last.npm run tokens in extension/. Read the diff of src/tokens/registry.*.json, and any “also claimed by” warning, before committing it. To add a token, vet its unit and put it in src/tokens/list.json first; node scripts/tokens.mjs find <network> <TICKER> shows the registry’s entries for a ticker. The release’s record says what changed, or that nothing did.
seedelf-data/api/data/token-decimals.json), and a private row keeps what it was given until it’s spent. So refresh it too, by seedelf-data/scripts/token-decimals.py’s two lines, and if the file changed, commit it: step 7’s deploy carries it.npm run dreps in extension/. It rewrites src/dreps/<network>.json with every registered DRep that has a name, except one whose profile asks directories not to list it (CIP-119’s doNotList, which the wallet’s own DRep form sets by default): a pasted ID still finds that one. Koios’s servers disagree about DRep metadata (three single-pass runs once named 371, 407 and 406 mainnet DReps against the 449 committed, each missing a different set), so the script asks again for the DReps still unnamed, in up to three passes. A DRep the committed list names that’s still registered but that no pass names keeps its committed name, unless it asks not to be listed, and a list that would still lose more than 5% of the committed one’s other DReps is refused with nothing written: run it again later. Its line for each network says how many passes it took, how many names it kept as committed, how many committed DReps are no longer registered, and how many DReps ask not to be listed. Skim the diff for anything odd before committing it; the release’s record says what changed.
npm run lovejoin-pools in extension/. It rewrites src/lovejoin-pools.json with every shown pool on each network, read from the holder through the real Koios under the release’s token list, so a first look on a new install starts there instead of the chain’s start. It’s a head start, never a gate: a pool launched after it is found live. On mainnet by the data layer’s list, which a pool read asks at most every 5 minutes while the worker runs. On preprod, with Koios only, or while the data layer can’t answer, by Koios’s holder: as Lovejoin’s page opens and at a pool’s start, and, at most every 5 minutes a network while the worker runs (lookSoon), at Settings’ Bring every box back and wherever a return, a review or a funding asks for the 5 ₳ pool while the wallet keeps none (1.8.0’s release review, O1). So a 5 ₳ pool launched later is found without Lovejoin’s page on both networks, and a token pool on mainnet by the list; on those Koios paths, once a 5 ₳ pool is kept, a token pool waits for the page, a pool’s start or Settings’ press, since no ask looks then (1.8.0’s review of its fixes, r2-critic#1). Its test fails if src/tokens/list.json changed since it was written, so run it after npm run tokens. The release’s record names the pools it added.npm run lovejoin-registry -- <the fork's projects/lovejoin.json> in extension/. Cardanoscan names a script only by its hash, from Strica’s cardano-contracts-registry, and a token pool’s four scripts are its own, made from its launch’s seed, so a pool shows unnamed until they’re added. The same registry tells cardano.org’s transaction leaderboard which transactions are Lovejoin’s. Only v2’s pools are named (the owner, 2026-11-19): the registry tracks the pools people should use, and every new pool is v2. The script verifies each mainnet pool in src/lovejoin-pools.json again through WebAssembly (it needs wasm/pkg, which npm run build makes). It adds each v2 pool’s four entries to the maintainer’s fork of the registry (logicalmechanism/cardano-contracts-registry), named for the pool’s value, as Mix Box v2 (5 ADA) or Fee Pool v2 (1,000 SNEK + 4 ADA), as version 3, linked to v2’s contracts at the commit core pins it to (tests/lovejoin-registry.test.ts). A pool on the retired 8131b1d set is skipped, and a line says so: the head start keeps it so wallets find their boxes there, but the registry never names it. Strica’s file has none of 8131b1d’s entries, and the classic pool’s were removed (Strica’s PR #74). It only adds: an entry already there is never changed or removed, and the hand-written ones (the project and the reference holder, which holds every pool’s reference token) are left alone. Given no file, it prints the entries. A pool that doesn’t verify, one on a set it neither names nor knows as retired, a token with no ticker or a name over the registry’s 45 characters stops it with nothing written; it’s never a release gate. With nothing new it writes nothing, and says so. Part 1’s second block sends what it added. The release’s record names the pools it added, or says none were new.npm run build). The live runs expect the dev build’s pinned ID.e2e/store-images.spec.ts changed, run npm run store:images and look at docs/store/images/, and at its es/ and ja/: each screen is shot in all three languages. They’re made from the recordings on mainnet, so they show the MAINNET badge and no test-network strip (store/README.md, Graphic assets). The Japanese ones need a Japanese font on the machine (Noto Sans CJK JP here), or Chromium draws boxes.main, merged once its Web Wallet check is green on every step (Branching).seedelf-data/ (Seedelf Messaging’s relay included) or extension/src/tokens/list.json (step 2’s decimals included; the API builds the token list in, and shows a Lovejoin pool only of a listed token, so a token added to the list without a deploy leaves its pools hidden from every mainnet wallet): Actions → Data layer deploy, deploy, on main, approved, then a status run, curl -s https://mainnet.seedelf.logicalmechanism.io/health, and part 2’s checks of the routes /health doesn’t read (seedelf-data/deploy/README.md). A wallet the store ships must never meet an API older than the one it was reviewed against: a public route the API lacks answers 404, and a request it takes in another shape 400, and either holds the wallet’s whole public part on Koios for 5 minutes; a token pools’ route refused sends the token pools’ reads to Koios; and the relay is Messages’ only server, so a wallet reviewed against a relay change meets the older relay’s answers and limits. It goes before the package, so the store build’s check on mainnet (step 9) reads it.main at the merge commit, with git status --porcelain printing nothing: npm run package in extension/.
VITE_ENABLE_MAINNET=true and VITE_STORE_BUILD=true: mainnet by default, preprod in Settings, and no dev key.dist/ with a key, one whose version doesn’t match package.json, and one whose manifest lacks https://api.koios.rest/* (a preprod-only build).Cargo.lock (--locked) with the pinned Rust (rust-toolchain.toml, unless a RUSTUP_TOOLCHAIN or RUSTC in the shell overrides it: the Rust: line says which ran), and carries no local path.licenses/THIRD-PARTY.txt: every Rust crate compiled into the WebAssembly, every bundled npm package, and SecretBox, each with its licence text. It fails if one of them ships no licence and has no known fallback (scripts/third-party.mjs).release/seedelf-wallet-<version>-mainnet.zip and prints sha256 <hex>, then Zipped with Node <version>, zlib <version>. wasm/build.sh ends its part with Rust: <release> (<commit hash>) and C compiler: <first line of clang --version>, each unknown when it can’t tell.PATH.npm run e2e runs every end-to-end test on it, with preprod chosen (e2e/support.ts). Load dist/ unpacked in a fresh Chrome profile once, and do checklist item 9: it opens on mainnet, and the switch works both ways.web-wallet/<version> on the commit it was built from, and push the tag (step 6 above).Testers install the store’s build: it’s mainnet, with preprod in Settings for testing (store/README.md). There’s no separate unlisted or private listing.
dist/, loaded unpacked the same way we do. It gets no automatic updates..crx files don’t work for normal users: Chrome generally allows installs from outside the store only through enterprise policy.IOG’s Lace wallet (Apache-2.0) is our reference for browser-extension and Cardano patterns. We take patterns and a few individual files. We don’t take its framework, its UI stack or its branding.
Clone it locally for reading. seedelf-platform/_reference/ is gitignored.
git clone https://github.com/input-output-hk/lace seedelf-platform/_reference/lace
git -C seedelf-platform/_reference/lace checkout e431933
Every Lace path in these docs is relative to that checkout. e431933 is where Lace’s extension is at 2.4.2, the version the docs measure against; SecretBox (extension/src/background/secret-box/) was adapted from the lace-extension@2.4.0 tag, three commits earlier, and its files are the same at both.
VITE_ENABLE_MAINNET=false makes a preprod-only build for tests. See architecture.md.chrome.storage.session (memory-only, cleared when the browser closes).