autrace 0.0.24 → 0.0.25
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 +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -8,6 +8,14 @@ A utility package for tracing and visualizing Mina Protocol account updates and
|
|
8
8
|
npm install autrace
|
9
9
|
```
|
10
10
|
|
11
|
+
### Additional Requirements
|
12
|
+
|
13
|
+
`autrace` uses the mermaid cli to generate visualizations. You can ensure that the cli is available by installing it globally with:
|
14
|
+
|
15
|
+
```bash
|
16
|
+
npm install -g @mermaid-js/mermaid-cli
|
17
|
+
```
|
18
|
+
|
11
19
|
## Features
|
12
20
|
|
13
21
|
- `AUTrace`: Track and analyze transaction states and account updates in Mina Protocol
|
@@ -52,7 +60,7 @@ const txn = await Mina.transaction(deployerAccount, async () => {
|
|
52
60
|
});
|
53
61
|
|
54
62
|
// Track different transaction states like so:
|
55
|
-
const sendState = autrace.getTransactionState(
|
63
|
+
const sendState = autrace.getTransactionState(txn.toJSON());
|
56
64
|
|
57
65
|
```
|
58
66
|
|