402mob-runtime 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/runtime/cli.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@ An owner-controlled Base USDC signer, delegated buyer and text-statistics seller
|
|
|
7
7
|
Use Node.js 24+ on Linux or macOS. Check https://evidence.contact/agent-runtime-release.json for this version's publication status. Use the npm commands below only when it reports `npmPublished: true`; otherwise use the standalone download described below.
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm exec --yes --package=402mob-runtime@0.3.
|
|
10
|
+
npm exec --yes --package=402mob-runtime@0.3.2 -- 402mob-runtime wallet web \
|
|
11
11
|
--dir "$HOME/.local/share/402mob/runtime-owner"
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
For a persistent CLI, install into your own prefix:
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
npm install --prefix "$HOME/.local/share/402mob/runtime-cli" --ignore-scripts 402mob-runtime@0.3.
|
|
17
|
+
npm install --prefix "$HOME/.local/share/402mob/runtime-cli" --ignore-scripts 402mob-runtime@0.3.2
|
|
18
18
|
export PATH="$HOME/.local/share/402mob/runtime-cli/node_modules/.bin:$PATH"
|
|
19
19
|
```
|
|
20
20
|
|
|
@@ -66,7 +66,7 @@ Run `402mob-runtime --help` for all commands. Full guides: https://evidence.cont
|
|
|
66
66
|
|
|
67
67
|
`local_port_in_use` means another process already owns the named local port. If it is your signer, press Enter in its original terminal for a new pairing link, or stop it with Ctrl+C and restart with the same `--dir`. Do not start a second signer for the same wallet on different ports. The CLI preserves wallet state and closes any listener opened during a failed startup. Version 0.2.0 reported this condition as `adapter_failure`.
|
|
68
68
|
|
|
69
|
-
If the local console page returns `adapter_failure` while the hosted console works, upgrade from 0.2.0 or 0.2.1 to 0.3.
|
|
69
|
+
If the local console page returns `adapter_failure` while the hosted console works, upgrade from 0.2.0 or 0.2.1 to 0.3.2. Those versions incorrectly blocked page assets beneath hidden installation directories such as `.npm` and `.local`. Stop the old signer, restart the upgraded version with the same wallet `--dir`, and use its new pairing link.
|
|
70
70
|
|
|
71
71
|
## Recovery and custody
|
|
72
72
|
|
package/dist/runtime/cli.js
CHANGED
|
@@ -63917,9 +63917,12 @@ var BaseUsdcReader = class {
|
|
|
63917
63917
|
try {
|
|
63918
63918
|
requireThat(await this.client.getChainId() === 8453, "wrong_rpc_chain");
|
|
63919
63919
|
const r = await this.client.getTransactionReceipt({ hash: proof2.transaction });
|
|
63920
|
+
requireThat(r.transactionHash.toLowerCase() === proof2.transaction.toLowerCase(), "transaction_mismatch");
|
|
63920
63921
|
requireThat(r.status === "success", "transaction_reverted");
|
|
63921
|
-
const tip = await this.client.getBlockNumber();
|
|
63922
|
+
const tip = await this.client.getBlockNumber({ cacheTime: 0 });
|
|
63922
63923
|
if (tip < r.blockNumber + 2n) throw new RuntimeFault("chain_confirming", true);
|
|
63924
|
+
const block = await this.client.getBlock({ blockNumber: r.blockNumber });
|
|
63925
|
+
if (!block.hash || block.hash.toLowerCase() !== r.blockHash.toLowerCase()) throw new RuntimeFault("chain_confirming", true);
|
|
63923
63926
|
const matches = r.logs.filter((log) => {
|
|
63924
63927
|
if (log.address.toLowerCase() !== USDC.toLowerCase()) return false;
|
|
63925
63928
|
try {
|