You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List Android and iOS Trezor emulator checks directly in README so Bitkit app PR testing starts there.
Add root AGENTS.md guidance to keep actionable test workflows in README.
- Treat `README.md` as the entry point for testing Bitkit app PRs and merged features.
6
+
- When adding or changing test workflows, keep the actionable setup and check steps in `README.md`, not only in supporting docs.
7
+
- Supporting docs such as `docs/trezor-emulator.md` may contain deeper internals and troubleshooting, but README must remain enough to run the test flow.
Use the bundled Trezor User Env helper when checking Bitkit app PRs that need the official Trezor emulator:
170
+
Use this section as the entry point when checking Bitkit app PRs or merged features that need the official Trezor emulator. Start by preparing the deterministic Trezor User Env:
171
171
172
172
```bash
173
173
./scripts/trezor-emulator start
174
174
```
175
175
176
176
The macOS Trezor User Env service is included in the default `docker compose up -d` stack. The helper starts or reuses that service, then resets Bridge and the emulator into the deterministic review state. Linux users can start the host-network service with `docker compose --profile trezor-linux up -d trezor-user-env-linux`.
177
177
178
-
For Bitkit Android on a physical phone:
178
+
The helper starts the official Trezor User Env without its regtest stack, launches Bridge, wipes a deterministic T2T1 emulator, and sets it up with the `all all ...` seed and `Bitkit Test Trezor` label. It uses `scripts/trezor-controller.py` inside the container to talk to the User Env websocket controller.
179
+
180
+
##### Bitkit Android
181
+
182
+
For a physical phone, reverse the Bridge port and install the dev build with Bridge enabled:
For Bitkit iOS, run the relevant Trezor branch from Xcode and open `Settings -> Advanced -> Trezor Hardware Wallet`.
195
+
Open the dashboard at `Settings -> Advanced -> Dev Settings -> Trezor`, then check:
196
+
197
+
- Scan shows the Bridge emulator device
198
+
- Connect succeeds and device features are shown
199
+
- Get address succeeds
200
+
- Get public key succeeds
201
+
- Sign and verify message succeed
202
+
- Send or compose reaches the expected funded or no-funds state
203
+
- Disconnect, reconnect, and forget-device cleanup behave correctly
204
+
205
+
##### Bitkit iOS
206
+
207
+
Run the relevant Trezor branch from Xcode. The User Env dashboard and Bridge are available on the host at:
208
+
209
+
- User Env dashboard: `http://localhost:9002`
210
+
- Trezor Bridge: `http://localhost:21325`
211
+
212
+
Open the dashboard at `Settings -> Advanced -> Trezor Hardware Wallet`, then check:
213
+
214
+
- Scan shows the Bridge emulator device
215
+
- Connect succeeds and device features are shown
216
+
- Get address succeeds
217
+
- Get public key succeeds
218
+
- Sign and verify message succeed
219
+
- Send or compose reaches the expected funded or no-funds state
220
+
- Disconnect, reconnect, and forget-device cleanup behave correctly
192
221
193
-
The helper starts the official Trezor User Env without its regtest stack, launches Bridge, wipes a deterministic T2T1 emulator, and sets it up with the `all all ...` seed and `Bitkit Test Trezor` label. It uses `scripts/trezor-controller.py` inside the container to talk to the User Env websocket controller. See [docs/trezor-emulator.md](docs/trezor-emulator.md) for the smoke checklist, helper internals, and troubleshooting commands.
222
+
See [docs/trezor-emulator.md](docs/trezor-emulator.md) for helper internals, environment overrides, and troubleshooting commands.
0 commit comments