Implemented the token component and its self-contained Foundry tests. Delivered paths: - `src/TestToken.sol`: Solidity `^0.8.24` fixed-supply ERC-20. Both metadata strings are exactly `test`; decimals are 18. The constructor requires a positive `uint256 initialSupply`, interprets it directly as base units, and mints exactly that amount to its immediate caller. Supply is immutable, with no subsequent mint or burn interface. - `test/TestToken.t.sol`: 32 tests, including four fuzz tests. Uses only the token import and a minimal Foundry cheatcode interface; no forge-std or other library dependency. - `artifacts/goal/batches/sepolia-staking-app/items/token/result.md`: this handoff, left untracked for the output uploader. The contract implements balances, transfers, replacement approvals, and delegated transfers. Successful writes return `true`; invalid operations revert with custom errors. Finite allowances decrease when spent; `type(uint256).max` represents unlimited approval and remains unchanged. Zero-value transfers emit events. Zero transfer recipients, zero transfer senders, and zero approval spenders are rejected. A reverted delegated transfer restores the allowance as well as balances. The interface and required event behavior were checked against [ERC-20 / EIP-20](https://eips.ethereum.org/EIPS/eip-20). `Transfer` indexes `from` and `to`, including the initial mint from the zero address. `Approval` indexes `owner` and `spender`. Explicit approvals emit `Approval`; allowance spending emits `Transfer` only. Interfaces for the next worker: | Interface | Result / meaning | | --- | --- | | `constructor(uint256 initialSupply)` | Positive base-unit supply, minted to `msg.sender`; no multiplication by `10**18` | | `name()` / `symbol()` | `string`, exactly `test` | | `decimals()` | `uint8`, 18 | | `totalSupply()` | `uint256`, fixed at deployment | | `balanceOf(address account)` | `uint256` balance | | `allowance(address owner, address spender)` | `uint256` remaining allowance | | `transfer(address to, uint256 value)` | `bool` | | `approve(address spender, uint256 value)` | `bool`; replaces the existing allowance | | `transferFrom(address from, address to, uint256 value)` | `bool`; spends the caller's allowance from `from` | Import `TestToken` from `src/TestToken.sol` and deploy with the chosen positive supply in base units. One displayed token equals `10**18` base units. Deployment through a factory credits that factory. For staking, users approve the actual staking contract, which can then call `transferFrom(user, stakingContract, amount)`. The website should use integer base units and the deployed token address. The test supply is a fixture, not a selected production supply. Checks actually run: 1. `forge --version` — exit 0, Foundry 1.8.3. 2. `forge fmt src/TestToken.sol test/TestToken.t.sol` — exit 0; formatted the test file. 3. Token test suite with the preinstalled Solidity 0.8.26 executable — exit 0. The command below shows the actual flags; `$SOLC_0_8_26` denotes the local executable path supplied to `--use`: ```sh forge test --match-path test/TestToken.t.sol --use "$SOLC_0_8_26" --offline --evm-version shanghai --out test/scratch/out --cache-path test/scratch/cache --fuzz-runs 1024 -vv ``` Compiled both Solidity files successfully. **32 passed, 0 failed, 0 skipped**. Each of the four fuzz tests ran 1,024 cases. 4. Minimum-version test suite, using Solidity 0.8.24 downloaded into disposable scratch space — exit 0: ```sh forge test --match-path test/TestToken.t.sol --use test/scratch/bin/solc-0.8.24 --offline --evm-version shanghai --out test/scratch/out-0.8.24 --cache-path test/scratch/cache-0.8.24 --fuzz-runs 1024 -vv ``` Compiled both Solidity files successfully. **32 passed, 0 failed, 0 skipped**. Each of the four fuzz tests ran 1,024 cases. 5. `forge fmt --check src/TestToken.sol test/TestToken.t.sol` — exit 0, no formatting differences. 6. Inline `python3` assertions over `test/scratch/out-0.8.24/TestToken.sol/TestToken.json` — exit 0. Confirmed exactly nine ERC-20/metadata function selectors, one `uint256` constructor argument, no library link references, and 3,109 bytes of deployed runtime bytecode. 7. `git status --short --untracked-files=all -- . ':(exclude)test/scratch/**'` — exit 0. Before adding this report, only the two allowed source/test files appeared. 8. `python3 test/scratch/check_delivery.py` — exit 0. Confirmed the final three delivered paths, that the report is untracked and below 12,000 bytes, and that delivered text has no trailing whitespace. Scratch files are excluded by the assignment. Its first run exited 1 at `test/scratch/check_delivery.py:14` because `git status` omits ignored artifact files. The audit was corrected to verify the report's existence and untracked state independently; the corrected check passed. 9. `git diff --check` — exit 0. There are no tracked diffs in this initially empty checkout; the new files' whitespace was independently checked by the Python audit above. The tests cover exact metadata, unscaled constructor units, immediate constructor recipient, mint events, zero-supply rejection, maximum uint256 supply, ordinary/full/zero/self transfers, return values, transfer and approval event fields, allowance replacement/revocation, approvals without balances, owner/spender isolation, allowance exhaustion, balance and allowance overspending, atomic rollback, unlimited allowances, invalid zero addresses, and fuzzed supply conservation and allowance accounting. Tool acquisition issues were resolved locally: `solc --version` returned exit 127 because no executable named `solc` was on PATH. An inline Python download from `binaries.soliditylang.org/linux-amd64/list.json` returned HTTP 403 (exit 1, download script line 8; no source-code failure). The official `ethereum/solc-bin` GitHub mirror succeeded, and the downloaded 0.8.24 binary's SHA-256 matched its compiler manifest. No compiler or test failures remained. Compiler binaries, caches, and build output are only in disposable `test/scratch/` or the pre-existing toolchain; they are not deliverables. To rerun the token suite in the next checkout with Foundry and an available compiler: ```sh forge test --match-path test/TestToken.t.sol --use 0.8.24 --evm-version shanghai --fuzz-runs 1024 -vv forge fmt --check src/TestToken.sol test/TestToken.t.sol ``` The checkout initially contained no tracked source or project configuration. No configuration, dependencies, submodules, deployment scripts, or files belonging to another item were added or changed. Checks requiring the merged trunk: run `forge build` and the complete `forge test` suite with the final project configuration; exercise staking deposits via approval/transferFrom, withdrawals via transfer, and the website's balance/approval/stake flows against the integrated contracts. Sepolia deployment and post-deployment metadata/supply checks also remain with the deployment item. This item performed local token checks only and submitted no chain transaction.