diff --git a/README.md b/README.md index 1854836..13e3a7b 100644 --- a/README.md +++ b/README.md @@ -2648,7 +2648,7 @@ Currently supported: ### Non-Goals for 1.0 -- Multi-chain support (Ethereum mainnet only) +- Chains other than Ethereum mainnet and the Sepolia testnet - Hardware wallet support ## TODO @@ -2682,7 +2682,10 @@ Currently supported: ## Policies - We don't mention "the other wallet" by name in code or documentation. We're - our own thing. + our own thing. Written exception: the injected provider in + `src/content/inpage.js` sets the flag named after the other wallet to `true`. + It is an interface-compatibility flag many dApps check, and without it the + wallet stops working on their sites. - The README is the complete authoritative technical documentation. It's ok if it gets big. diff --git a/RULES.md b/RULES.md index 9644a38..5cfc926 100644 --- a/RULES.md +++ b/RULES.md @@ -118,4 +118,7 @@ contradicts either, the originals govern. - [ ] "Address" not "account" or "derived key" - [ ] "Password" not "encryption key" or "vault passphrase" - [ ] Error messages are full sentences -- [ ] No competitor mentioned by name in code or documentation +- [ ] No competitor mentioned by name in code or documentation. Written + exception: the injected provider in `src/content/inpage.js` sets the flag + named after the other wallet to `true`, an interface-compatibility flag + many dApps check (README.md, Policies) diff --git a/TODO.md b/TODO.md index e2d5100..618163a 100644 --- a/TODO.md +++ b/TODO.md @@ -44,6 +44,16 @@ then continue tagging as milestones land. # Completed Steps +- 2026-10-07: Two contradictions between the documents and the code are resolved + as ruled on [#165](https://git.eeqj.de/sneak/AutistMask/issues/165). The + README's 1.0 non-goal now puts Ethereum mainnet and the Sepolia testnet in + scope and other chains out of it. The injected provider's flag named after the + other wallet stays, as an interface-compatibility flag many dApps check, and + is written down as an exception to the rule against naming competitors in the + README's Policies section, in `RULES.md` and in a comment beside it in + `src/content/inpage.js`. `script/check-censored` already allows that flag only + in that file and its built copies, so it is unchanged. + - 2026-10-07: Two holes in what `tests/persistedFieldContract.test.js` checks are closed ([#379](https://git.eeqj.de/sneak/AutistMask/issues/379)). The check that every swept field is driven both truthy and falsy counts only diff --git a/src/content/inpage.js b/src/content/inpage.js index 38f57a8..09bb914 100644 --- a/src/content/inpage.js +++ b/src/content/inpage.js @@ -99,7 +99,10 @@ const provider = { isAutistMask: true, - isMetaMask: true, // compatibility — many dApps check this + // An interface-compatibility flag many dApps check. Kept as a written + // exception to the rule that no competitor is named in code: see + // Policies in README.md, and RULES.md. + isMetaMask: true, chainId: currentChainId, networkVersion: currentNetworkVersion, selectedAddress: null,