# Release tooling Implemented `release/deploy.py` and its operator guide in `release/README.md`. The tool deploys `TestToken(uint256 initialSupply)` and `ShareStaking(address tokenAddress)` from Foundry artifacts, using `cast` and Python's standard library. Supply is a positive decimal integer in base units; the deployer does not assume token decimals. Signers can be supplied via a Foundry keystore/account, an RPC-unlocked owner account, or `cast`'s interactive key prompt. The flow checks Sepolia chain ID before deployment, validates the artifact constructor ABI and bytecode, submits token creation, and requires a successful receipt whose transaction hash matches the submitted hash and whose `contractAddress` is nonzero. It confirms that exact address before constructing staking initcode. It accepts token and staking transaction hashes to resume without resubmitting. Before returning, it checks both matching successful creation receipts, nonempty runtime code at both receipt addresses, `name()` and `symbol()` equal `test`, and `staking.token()` equal the token receipt address. Only then does stdout contain JSON with numeric `chainId` and string `token`, `staking`, `tokenTx`, and `stakingTx`; progress, confirmation, and errors go to stderr. ## Handoff Run `forge build`, then follow the deploy/save/publish commands in `release/README.md`. The site consumer should read `site/deployment.json` fields `chainId`, `token`, `staking`, `tokenTx`, and `stakingTx`. For interrupted deployments, resume with `--token-tx HASH` and, when already sent, `--staking-tx HASH`; the README documents signer and address-confirmation options and static publication via `rsync`. ## Checks run - `python3 -B test/scratch/test_release.py` — passed, 8 local fixture tests covering constructor encoding/base-unit parsing, deployment ordering and stdout JSON, receipt-hash resumption, wrong chain, failed token receipt, token metadata, and staking-token linkage. - `python3 -B -c 'import ast, pathlib; ast.parse(pathlib.Path("release/deploy.py").read_text())'` — passed. - `python3 -B release/deploy.py --help` — passed; CLI options rendered. - `git diff --check` and a trailing-whitespace scan of both release files — passed. The repository had no contract sources or `foundry.toml` at this item checkout, so `forge build`, validation against the merged Foundry artifacts, and live Sepolia deployment/receipt checks remain for the merged trunk and operator's RPC/signer. An initial attempt to redirect CLI help output to `/tmp` was denied by the workspace sandbox; running the help command directly passed.