Add project scaffolding
All checks were successful
check / check (push) Successful in 10s

Makefile, Dockerfile, CI workflow, prettier config, manifests for
Chrome (MV3) and Firefox (MV2), source directory structure, and
minimal test suite. All checks pass.
This commit is contained in:
2026-02-24 09:48:21 +07:00
parent c2ff5d1788
commit 065f0eaa81
22 changed files with 3521 additions and 0 deletions

2
src/background/index.js Normal file
View File

@@ -0,0 +1,2 @@
// AutistMask background service worker
// TODO: wallet management, message routing, provider implementation

2
src/content/index.js Normal file
View File

@@ -0,0 +1,2 @@
// AutistMask content script
// TODO: inject window.ethereum provider into page context

13
src/popup/index.html Normal file
View File

@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AutistMask</title>
<link rel="stylesheet" href="styles/main.css" />
</head>
<body>
<div id="app"></div>
<script src="index.js"></script>
</body>
</html>

2
src/popup/index.js Normal file
View File

@@ -0,0 +1,2 @@
// AutistMask popup UI
// TODO: lock screen, account list, send/receive views

18
src/popup/styles/main.css Normal file
View File

@@ -0,0 +1,18 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 360px;
min-height: 600px;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: #1a1a2e;
color: #e0e0e0;
}
#app {
padding: 16px;
}

22
src/shared/constants.js Normal file
View File

@@ -0,0 +1,22 @@
const ETHEREUM_MAINNET_CHAIN_ID = "0x1";
const DEFAULT_RPC_URL = "https://eth.llamarpc.com";
const BIP44_ETH_PATH = "m/44'/60'/0'/0";
const ERC20_ABI = [
"function name() view returns (string)",
"function symbol() view returns (string)",
"function decimals() view returns (uint8)",
"function balanceOf(address) view returns (uint256)",
"function transfer(address to, uint256 amount) returns (bool)",
"function allowance(address owner, address spender) view returns (uint256)",
"function approve(address spender, uint256 amount) returns (bool)",
];
module.exports = {
ETHEREUM_MAINNET_CHAIN_ID,
DEFAULT_RPC_URL,
BIP44_ETH_PATH,
ERC20_ABI,
};