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
Copy file name to clipboardExpand all lines: CLAUDE.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,19 @@ cd contracts && forge test # Run contract tests
81
81
-**BigCache**: In-memory caching layer
82
82
-**Migrations**: Versioned database migrations for schema changes
83
83
84
+
### Inspecting Aggregator Data (BadgerDB)
85
+
86
+
To read the live aggregator's stored task/execution state (e.g. the actual EventTrigger topics array as persisted, not the high-level CreateTask log summary), use the `examples/example.ts` CLI in the `ava-sdk-js` repo. It speaks the gRPC API against whatever endpoint the loaded `.env` points at (`localhost:2206` for the local `dev` aggregator).
The `getWorkflow` output is the ground truth — it shows the trigger's `topics`, `addresses`, and `inputVariables` exactly as stored. Prefer this over inferring state from log lines, since `engine.CreateTask` does not dump the full trigger payload to the aggregator log.
returnfmt.Errorf("error: subject cannot be empty")
31
32
}
32
33
34
+
if!common.IsHexAddress(opt.Subject) {
35
+
returnfmt.Errorf("error: subject must be a valid 0x-prefixed EOA address (got %q). The subject is used as the owner identity bound to this API key.", opt.Subject)
36
+
}
37
+
33
38
iflen(opt.Roles) <1 {
34
39
returnfmt.Errorf("error: at least one role is required")
Short: "Create a long live JWT key to interact with userdata of AVS",
14
-
Long: `Create an JWT key that allow one to manage user tasks. This key cannot control operator aspect, only user storage such as tasks management`,
16
+
Short: "Create a long-lived JWT key to interact with user data of AVS",
17
+
Long: `Create a JWT key that allows one to manage user tasks. This key cannot control operator aspect, only user storage such as tasks management.
18
+
19
+
The --subject flag must be a 0x-prefixed EOA address. The auth layer treats the JWT subject as the owner address and derives a smart wallet from it (see aggregator/auth.go), so any non-address subject will fail authentication.`,
0 commit comments