@ariestools/cli 0.1.16 → 0.1.18

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.
Files changed (52) hide show
  1. package/README.md +51 -11
  2. package/dist/bin/aries.mjs +95560 -254131
  3. package/dist/bin/daemons/chain-server.mjs +9862 -12
  4. package/dist/bin/daemons/dapp-server.mjs +55 -56
  5. package/dist/bin/daemons/datalake-dev.mjs +10967 -4724
  6. package/dist/node/datalake.mjs +7 -5
  7. package/dist/terraform/cluster-aws/cluster.tf +61 -0
  8. package/dist/terraform/cluster-aws/encryption.tofu.example +37 -0
  9. package/dist/terraform/cluster-aws/iam.tf +81 -0
  10. package/dist/terraform/cluster-aws/irsa_ebs_csi.tf +37 -0
  11. package/dist/terraform/cluster-aws/kubeconfig.tf +49 -0
  12. package/dist/terraform/cluster-aws/network.tf +108 -0
  13. package/dist/terraform/cluster-aws/nodegroup.tf +42 -0
  14. package/dist/terraform/cluster-aws/outputs.tf +80 -0
  15. package/dist/terraform/cluster-aws/providers.tf +7 -0
  16. package/dist/terraform/cluster-aws/terraform.tfvars.example +21 -0
  17. package/dist/terraform/cluster-aws/variables.tf +120 -0
  18. package/dist/terraform/cluster-aws/versions.tf +18 -0
  19. package/dist/terraform/cluster-azure/cluster.tf +83 -0
  20. package/dist/terraform/cluster-azure/encryption.tofu.example +37 -0
  21. package/dist/terraform/cluster-azure/identity.tf +9 -0
  22. package/dist/terraform/cluster-azure/kubeconfig.tf +18 -0
  23. package/dist/terraform/cluster-azure/network.tf +23 -0
  24. package/dist/terraform/cluster-azure/outputs.tf +69 -0
  25. package/dist/terraform/cluster-azure/providers.tf +16 -0
  26. package/dist/terraform/cluster-azure/terraform.tfvars.example +24 -0
  27. package/dist/terraform/cluster-azure/variables.tf +126 -0
  28. package/dist/terraform/cluster-azure/versions.tf +14 -0
  29. package/dist/terraform/cluster-gcp/cluster.tf +71 -0
  30. package/dist/terraform/cluster-gcp/encryption.tofu.example +35 -0
  31. package/dist/terraform/cluster-gcp/kubeconfig.tf +47 -0
  32. package/dist/terraform/cluster-gcp/network.tf +47 -0
  33. package/dist/terraform/cluster-gcp/outputs.tf +70 -0
  34. package/dist/terraform/cluster-gcp/providers.tf +14 -0
  35. package/dist/terraform/cluster-gcp/terraform.tfvars.example +17 -0
  36. package/dist/terraform/cluster-gcp/variables.tf +86 -0
  37. package/dist/terraform/cluster-gcp/versions.tf +14 -0
  38. package/dist/terraform/serverless-aws/alb.tf +127 -0
  39. package/dist/terraform/serverless-aws/database.tf +70 -0
  40. package/dist/terraform/serverless-aws/dns.tf +80 -0
  41. package/dist/terraform/serverless-aws/ecr.tf +63 -0
  42. package/dist/terraform/serverless-aws/ecs.tf +199 -0
  43. package/dist/terraform/serverless-aws/encryption.tofu.example +38 -0
  44. package/dist/terraform/serverless-aws/iam.tf +68 -0
  45. package/dist/terraform/serverless-aws/network.tf +190 -0
  46. package/dist/terraform/serverless-aws/outputs.tf +64 -0
  47. package/dist/terraform/serverless-aws/providers.tf +19 -0
  48. package/dist/terraform/serverless-aws/storage.tf +51 -0
  49. package/dist/terraform/serverless-aws/terraform.tfvars.example +19 -0
  50. package/dist/terraform/serverless-aws/variables.tf +151 -0
  51. package/dist/terraform/serverless-aws/versions.tf +14 -0
  52. package/package.json +23 -20
package/README.md CHANGED
@@ -1116,8 +1116,9 @@ aries witness pentair-schedules --json
1116
1116
 
1117
1117
  ### `aries xyo rewards <sequence|mainnet> <view>`
1118
1118
 
1119
- Query finalized XL1 reward activity through the SDK REST gateway and its block
1120
- rollup indexes.
1119
+ Query finalized XL1 **reward lifecycle** activity (pool funding step holders
1120
+ escrows → redemptions) through the SDK REST gateway and its multi-family block
1121
+ rollup indexes (`blocks/*`).
1121
1122
 
1122
1123
  ```sh
1123
1124
  aries xyo rewards sequence summary
@@ -1136,21 +1137,56 @@ aries xyo rewards sequence index verify --concurrency 8
1136
1137
  | `steps` | Per-step direct funding, supplemental funding, and allocation; optionally filter with `--step-level` |
1137
1138
  | `recipients` | Rank recipients at the `funded`, `supplemental-funding`, `allocated`, or `redeemed` stage |
1138
1139
  | `address <address>` | Reward lifecycle events involving an escrow, staker, or destination |
1139
- | `index status` | Show the durable rewards-index head and its XL1/EVM source-watermark lag |
1140
- | `index verify` | Recompute cumulative totals from every immutable reward-step record and verify the snapshot and source hashes |
1140
+ | `index status` | Show the durable **network-stake** rewards-index head and its XL1/EVM source-watermark lag |
1141
+ | `index verify` | Recompute cumulative **network-stake** totals from every immutable reward-step record and verify the snapshot and source hashes |
1142
+
1143
+ **Two different “rewards indexes”.** Do not confuse them:
1144
+
1145
+ | Index | Path / command | What it is for | Used by `summary` / `steps` / `recipients` / `address`? |
1146
+ |---|---|---|---|
1147
+ | Multi-family **blocks** index | `indexes.*.xyo.space` `blocks/{level}/{i}.json` | Bulk block frames for history walks | **Yes** (via `blocksByStep`) |
1148
+ | Local **lifecycle cache** | `~/.aries/xyo-rewards/<net>/lifecycle/v1/` | Client-side cumulative summary resume | **Yes** (`summary` only, from-block 0) |
1149
+ | Durable **network-stake** rewards index | `rewards/network-stake/v1/{policy}/…` + `xyo rewards … index` | Stake-reward **allocation** math (XL1 ∩ EVM watermarks) | **No** — backfilling or verifying it does **not** speed lifecycle summary |
1141
1150
 
1142
1151
  | Common option | Default | Description |
1143
1152
  |---|---|---|
1144
- | `--from-block <n>` | `0` | First finalized block to include |
1153
+ | `--from-block <n>` | `0` | First finalized block to include (non-zero → range-delta lifecycle nets) |
1145
1154
  | `--to-block <n>` | finalized head | Last finalized block to include |
1146
- | `--concurrency <n>` | `2` | Indexed ranges read concurrently, from 1 to 16 |
1155
+ | `--recent-blocks <n>` | | Scan only the last N blocks (derived from `--to-block`/head; not with `--from-block`) |
1156
+ | `--skip-balance` | `false` | Skip the step-holder balance batch (faster incremental scans; omits outstanding balance) |
1157
+ | `--lifecycle-cache` | `true` | Summary only: reuse/extend local cumulative cache under `~/.aries/xyo-rewards/<network>/lifecycle/v1/` |
1158
+ | `--refresh-lifecycle-cache` | `false` | Summary only: force a full cumulative rescan and rewrite the local cache |
1159
+ | `--concurrency <n>` | `8` | Indexed ranges read concurrently, from 1 to 16 |
1147
1160
  | `--json` | `false` | Stable machine-readable output; XL1 amounts include atto and decimal forms |
1148
1161
  | `--explain` | `false` | Show indexed frame use, direct reads, gateway setup/scan/balance requests, bytes, timing, and SDK budget warnings |
1149
1162
  | `--no-progress` | | Suppress the default gateway and scan progress written to stderr |
1150
1163
 
1151
- The initial rewards-index backfill is an internal S3 mutation and is intentionally
1152
- excluded from the public `aries` binary. Operators run it through `ariesi` only
1153
- while the automatic indexer writer is stopped:
1164
+ **Incremental / recent windows.** Full-history mainnet scans are expensive because every
1165
+ finalized block’s transfers are decoded. Prefer a bounded window when you only need recent
1166
+ activity:
1167
+
1168
+ ```sh
1169
+ aries xyo rewards mainnet summary --recent-blocks 50000 --skip-balance
1170
+ aries xyo rewards mainnet summary --from-block 900000 --to-block 950000 --skip-balance
1171
+ ```
1172
+
1173
+ With a non-zero start, funding/allocation/escrow nets are **range deltas**. Step-holder
1174
+ balance (unless `--skip-balance`) remains the actual balance at `--to-block`.
1175
+
1176
+ **Local lifecycle cache (summary).** Cumulative `summary` runs (`--from-block 0`, no
1177
+ `--recent-blocks`) persist accumulator state under
1178
+ `~/.aries/xyo-rewards/<network>/lifecycle/v1/head.json`. The next run verifies the
1179
+ cached block hash, hydrates unique sets and totals, and **only live-scans the tip**
1180
+ above the cache watermark. Use `--no-lifecycle-cache` to disable, or
1181
+ `--refresh-lifecycle-cache` to rebuild. Cache status appears in `--explain` and
1182
+ stderr progress. This is a client-side acceleration cache — not the durable
1183
+ network-stake rewards index under `rewards/network-stake/...`.
1184
+
1185
+ The initial **network-stake** rewards-index backfill is an internal S3 mutation and
1186
+ is intentionally excluded from the public `aries` binary. It builds stake-allocation
1187
+ snapshots under `rewards/network-stake/...` and does **not** feed or accelerate
1188
+ `summary` / `steps` / `recipients` / `address`. Operators run it through `ariesi`
1189
+ only while the automatic indexer writer is stopped:
1154
1190
 
1155
1191
  ```sh
1156
1192
  ariesi xyo rewards sequence index backfill --dry-run
@@ -1186,8 +1222,12 @@ while the step-holder balance remains the actual balance at `--to-block`.
1186
1222
 
1187
1223
  `--explain` is intentionally part of the product rather than only a debugging
1188
1224
  flag. It separates gateway startup work from the reward scan and makes direct
1189
- block fallbacks, payload volume, and repeated request patterns visible. Those
1190
- measurements identify reward-specific indexes worth publishing through the XL1
1225
+ block fallbacks, payload volume, and repeated request patterns visible. It also
1226
+ reports **blocks-index lag** (multi-family `blocks/*` watermark vs chain head):
1227
+ when the blocks index trails the tip, the unfinished range falls back to
1228
+ per-block GETs and full-history scans slow down sharply. Check overall index
1229
+ health with `ariesi xyo s3 index monitor mainnet`. Those measurements also
1230
+ identify reward-specific lifecycle indexes worth publishing through the XL1
1191
1231
  indexing pipeline as full-history use grows.
1192
1232
 
1193
1233
  Human-readable commands print gateway initialization and bounded scan progress