@xyo-network/xl1-cli 5.7.0 → 5.7.3
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 +8 -0
- package/dist/cli-min.mjs +416 -414
- package/package.json +34 -34
package/README.md
CHANGED
|
@@ -130,6 +130,9 @@ Runnable `xyo.json`-style configs for XL1 3.0 declare every backing store, RPC e
|
|
|
130
130
|
| `producer` | Block producer. Drives heartbeat blocks and packages mempool transactions. |
|
|
131
131
|
| `finalizer` | Selects a chain head from competing producer candidates and writes finalizations. Optionally publishes finalized blocks + the chain-state head to S3 (`publishOnFinalize`). |
|
|
132
132
|
| `indexer` | Publishes step-summary and transaction-inclusion indexes to the S3 `index` bucket for HTTP/CDN reads. |
|
|
133
|
+
| `indexerSlash` | Publishes the slash tree (`slash/v1`) and mirrors the parameter register into the `index` bucket, on its own. |
|
|
134
|
+
| `indexerLicense` | Publishes the license ledger (`license/v1`) into the `index` bucket, on its own. |
|
|
135
|
+
| `indexerPayloads` | Publishes the payload-locator family (`payloads/`) into the `index` bucket, on its own. |
|
|
133
136
|
| `mirror` | Keeps a verified copy of a published chain — blocks, payloads, head, contract manifests — in its own S3 buckets, reading the network's public REST endpoints. |
|
|
134
137
|
| `mempool` | Holds pending transactions until the producer pulls them. |
|
|
135
138
|
| `bridge` | EVM bridge — relays deposits / withdrawals between XL1 and an EVM chain. |
|
|
@@ -792,12 +795,16 @@ One config per actor **process** — the shape a real multi-host deployment runs
|
|
|
792
795
|
| `producer` | `chain-mongo` authority + `default-evm-rpc` + `producer-wallet` | — | authority store + EVM staking contract |
|
|
793
796
|
| `finalizer` | `chain-mongo` authority | `s3-finalized` (blocks), `s3-chain-state` (head) | authority store |
|
|
794
797
|
| `indexer` | `default-evm-rpc` (when EVM event or rewards indexing is enabled) | `s3-index` | finalized blocks + chain-state over REST; finalized contract logs and reward inputs |
|
|
798
|
+
| `indexerSlash` | — | `s3-index` (`slash/v1`, register mirror) | finalized blocks, chain-state and index over REST; the register (optional) |
|
|
799
|
+
| `indexerLicense` | — | `s3-index` (`license/v1`) | finalized blocks, chain-state and index over REST; license bodies from `rest-datalake` |
|
|
800
|
+
| `indexerPayloads` | — | `s3-index` (`payloads/`) | only the index bucket's own published `blocks` and `schemas` frames |
|
|
795
801
|
| `mirror` | — | its own `s3-mirror-finalized` + `s3-mirror-chain-state` | finalized blocks, chain-state, and index over REST |
|
|
796
802
|
| `mempool` | `chain-mongo` | — | authority store |
|
|
797
803
|
| `bridge` | `chain-mongo` + `default-evm-rpc` + `bridge-wallet` + Redis | — | authority store + remote EVM chain |
|
|
798
804
|
| `rewardRedemption` | `chain-mongo` + `default-evm-rpc` + `rewardRedemption-wallet` | — | authority store + EVM staking contract |
|
|
799
805
|
|
|
800
806
|
- **One writer per bucket.** The finalizer owns `s3-finalized` + `s3-chain-state`; the indexer owns `s3-index`. No other actor writes the network's object storage; a mirror writes only its own target buckets.
|
|
807
|
+
- **Index add-ons are actors of their own.** The `indexer` runs only the main index and, when bound, the EVM event and rewards passes. The slash tree and register mirror (`indexerSlash`), the license index (`indexerLicense`) and the payload-locator family (`indexerPayloads`) are separate actors, so they can share the indexer's process or live on other infrastructure. Each writes only its own prefix of `s3-index`; run each one in exactly one place. A standalone process that reads blocks over REST binds `BlockViewer`, `IndexViewer` and `ChainStateViewer` to their REST connections together: left alone, `IndexViewer` resolves in-process, which reads blocks, and planning reports the cycle. `indexerSlash` takes `floorBlock`, `pagesPerPass` and `syncInterval`; the license fold's bounds stay options of the `LicenseViewer` binding and the payloads pass bounds options of the `PayloadIndexPublishRunner` binding.
|
|
801
808
|
- **`BlockViewer` is not auto-bound to REST.** When a process declares a local store, `BlockViewer` defaults to it, so the API and indexer configs bind `BlockViewer → rest-finalized` explicitly to read finalized blocks from the CDN. `ChainStateViewer` / `IndexViewer` bind to their REST connections automatically when those connections are declared (the explicit bindings here are for clarity).
|
|
802
809
|
- **Staking and rewards.** `chain.id` is the staking contract address on the backing EVM. Event publishing binds `EvmChainViewer → default-evm-rpc` and `EvmEventIndexPublishRunner → s3-index`. Durable reward publishing additionally binds `NetworkStakeRewardsIndexPublishRunner → s3-index`, `StakeEventsViewer → rest-index`, and `StakeViewer → default-evm-rpc`. API processes bind `NetworkStakeStepRewardsByPositionViewer → rest-index` to read the resulting index without local cache priming.
|
|
803
810
|
- **Wallets.** Wallet connections (`<actor>-wallet`) and the `XyoSigner` binding are auto-synthesized for signing actors (`producer`, `bridge`, `rewardRedemption`); they are shown explicitly here for clarity. `bridge` and `rewardRedemption` cannot be co-located in one process (they share `XyoSigner`).
|
|
@@ -1393,6 +1400,7 @@ Per-bucket credentials override the shared defaults — e.g. give `s3-chain-stat
|
|
|
1393
1400
|
| `publishSyncInterval` | `indexer` | `5000` | Milliseconds between index sync passes; each pass advances the XL1 and EVM source indexes, then publishes rewards when both durable heads are available. |
|
|
1394
1401
|
| `publishContentEncoding` | `finalizer`, `indexer` | unset | Wire/storage encoding for published files: `br`, `gzip`, or `none`. |
|
|
1395
1402
|
| `publishProgressInterval` | `finalizer`, `indexer` | `100` | Publishes between progress log lines during a sync pass (runner default when unset). |
|
|
1403
|
+
| `stallWarningMs` | `finalizer` | `60000` | Milliseconds one finalization pass may stay in flight before it is logged as stalled (an error naming the phase and the published head, repeated each period, plus a `finalizer_actor_pass_in_flight_ms` gauge). A hung publish holds finalization and the published head with it. |
|
|
1396
1404
|
|
|
1397
1405
|
**Environment-variable form** — `__` nests, and each screaming-snake segment maps to camelCase (`CHAIN_STATE` → `chainState`, `READ_URL` → `readUrl`):
|
|
1398
1406
|
|