@xyo-network/xl1-cli 5.6.2 → 5.7.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 +11 -1
- package/dist/cli-min.mjs +1458 -238305
- package/package.json +35 -34
- package/dist/cli-min.mjs.map +0 -1
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, here or on their own.** The `indexer` runs the slash tree and register mirror (when `SlashIndexStore` is bound), the license index (`SlashIndexStore` + `LicenseViewer`) and the payload-locator family (`PayloadIndexPublishRunner`) on timers of its own. `indexerSlash`, `indexerLicense` and `indexerPayloads` run the same passes as separate actors, so they can live in another process or on other infrastructure. Each writes only its own prefix of `s3-index`; bind every add-on in exactly one place, never both on the `indexer` and on its standalone actor. 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`).
|
|
@@ -1390,9 +1397,12 @@ Per-bucket credentials override the shared defaults — e.g. give `s3-chain-stat
|
|
|
1390
1397
|
| Setting | Actor(s) | Default | Meaning |
|
|
1391
1398
|
|---|---|---|---|
|
|
1392
1399
|
| `publishOnFinalize` | `finalizer` | `false` | Push newly finalized blocks (head pointer last) to the `finalized` + `chainState` buckets immediately after each finalization pass. |
|
|
1393
|
-
| `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. |
|
|
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. Also the period of the slash-store timer (slash tree, register mirror, license index), which runs apart from the index passes so a slash catch-up never holds the index head. |
|
|
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
|
+
| `slashIndexFloorBlock` | `indexer` | `0` | First height that can carry a slash payload. The slash index (`SlashIndexStore → s3-index`) starts here instead of at genesis, and a published head below it jumps to it; blocks below the floor are never read, so set it only where the history is known to carry none. |
|
|
1404
|
+
| `slashIndexPagesPerPass` | `indexer` | `10` | 100-block pages one slash-index pass reads before publishing `slash/v1/head.json` and yielding its timer. A longer catch-up continues next pass from the published head, so the first bind on a long chain is paid across passes and survives a restart. |
|
|
1405
|
+
| `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
1406
|
|
|
1397
1407
|
**Environment-variable form** — `__` nests, and each screaming-snake segment maps to camelCase (`CHAIN_STATE` → `chainState`, `READ_URL` → `readUrl`):
|
|
1398
1408
|
|