Files

names-web

Prototype page for buying a SimpleX name in the browser, without a wallet extension. It makes a wallet for the name, shows its redemption code, address and recovery phrase, and prepares the two requests to the service: the commit request with the commitment, and the register request with the registration and the owner's signed RegisterName intent.

Setup

cd names-web
npm install
npx playwright install chromium
npm run build

Running tests

# The TypeScript output against the Haskell implementation (from repo root)
cabal test --test-option=--match="/Names Web/"

# The page in headless Chromium
cd names-web && npm run test:page

# Also register the page's name on a hardhat node running the contracts,
# from a compiled checkout of ens-contracts PR #36
ENS_CONTRACTS_DIR=../path/to/ens-contracts npm run test:page

Development

npm run dev