@xyo-network/xl1-cli 4.0.0 → 4.0.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 +14 -5
- package/dist/cli-min.mjs +2798 -2661
- package/dist/cli-min.mjs.map +1 -1
- package/package.json +18 -45
package/README.md
CHANGED
|
@@ -392,9 +392,9 @@ Explicit `connections` + `providerBindings` overrides.
|
|
|
392
392
|
}
|
|
393
393
|
```
|
|
394
394
|
|
|
395
|
-
###
|
|
395
|
+
### Federated API
|
|
396
396
|
|
|
397
|
-
Read-only API proxying a remote chain RPC
|
|
397
|
+
Read-only API proxying a remote chain RPC via explicit `providerBindings`.
|
|
398
398
|
|
|
399
399
|
```json
|
|
400
400
|
{
|
|
@@ -406,12 +406,21 @@ Read-only API proxying a remote chain RPC.
|
|
|
406
406
|
"url": "https://chain.example.com/rpc"
|
|
407
407
|
}
|
|
408
408
|
},
|
|
409
|
+
"providerBindings": {
|
|
410
|
+
"AccountBalanceViewer": { "connection": "default-rpc" },
|
|
411
|
+
"BlockViewer": { "connection": "default-rpc" },
|
|
412
|
+
"FinalizationViewer": { "connection": "default-rpc" },
|
|
413
|
+
"MempoolRunner": { "connection": "default-rpc" },
|
|
414
|
+
"MempoolViewer": { "connection": "default-rpc" },
|
|
415
|
+
"TransactionViewer": { "connection": "default-rpc" },
|
|
416
|
+
"XyoRunner": { "connection": "default-rpc" },
|
|
417
|
+
"XyoViewer": { "connection": "default-rpc" }
|
|
418
|
+
},
|
|
409
419
|
"actors": [
|
|
410
420
|
{
|
|
411
421
|
"name": "api",
|
|
412
422
|
"host": "0.0.0.0",
|
|
413
|
-
"port": 8080
|
|
414
|
-
"stateless": true
|
|
423
|
+
"port": 8080
|
|
415
424
|
}
|
|
416
425
|
]
|
|
417
426
|
}
|
|
@@ -1220,7 +1229,7 @@ If you omit `mnemonic` entirely, the CLI falls back to a built-in dev mnemonic a
|
|
|
1220
1229
|
Two CLI flags help you verify what the chain *would* do without actually starting it:
|
|
1221
1230
|
|
|
1222
1231
|
- `xl1 --dump-config start <actors>` — prints the fully resolved config (file + env + CLI flags merged, defaults applied) to stdout, then exits. Secret-bearing fields are redacted by default; pass `--with-secrets` on a developer box to see raw values.
|
|
1223
|
-
- `xl1 --dump-providers start <actors>` — runs the locator construction up to the point where actor runners would start, then prints a per-actor tree of every registered provider (implementation class, scope, dependencies). Cross-actor duplicates are flagged with `⚠ also in: ...`. Use this to confirm that, e.g., your
|
|
1232
|
+
- `xl1 --dump-providers start <actors>` — runs the locator construction up to the point where actor runners would start, then prints a per-actor tree of every registered provider (implementation class, scope, dependencies). Cross-actor duplicates are flagged with `⚠ also in: ...`. Use this to confirm that, e.g., your federated API actually picked the JsonRpc tier-3 viewers.
|
|
1224
1233
|
|
|
1225
1234
|
```sh
|
|
1226
1235
|
xl1 -c ./xyo.json --dump-providers start api producer
|