@rhinestone/shared-configs 1.16.0 → 1.18.0
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 +15 -0
- package/dist/configs/chains.json +303 -27
- package/dist/scripts/__tests__/validation.test.js +117 -0
- package/dist/scripts/__tests__/vendor-drift.test.d.ts +1 -0
- package/dist/scripts/__tests__/vendor-drift.test.js +411 -0
- package/dist/scripts/generate.js +15 -1
- package/dist/scripts/validation.d.ts +10 -0
- package/dist/scripts/validation.js +137 -0
- package/dist/scripts/vendor-drift/diff.d.ts +80 -0
- package/dist/scripts/vendor-drift/diff.js +569 -0
- package/dist/scripts/vendor-drift/identity.d.ts +58 -0
- package/dist/scripts/vendor-drift/identity.js +139 -0
- package/dist/scripts/vendor-drift/main.d.ts +10 -0
- package/dist/scripts/vendor-drift/main.js +77 -0
- package/dist/scripts/vendor-drift/report.d.ts +5 -0
- package/dist/scripts/vendor-drift/report.js +94 -0
- package/dist/scripts/vendor-drift/vendors.d.ts +34 -0
- package/dist/scripts/vendor-drift/vendors.js +193 -0
- package/dist/src/chains.d.ts +10 -1
- package/dist/src/chains.js +303 -27
- package/dist/src/generated/packageVersion.d.ts +1 -1
- package/dist/src/generated/packageVersion.js +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/types.d.ts +72 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -17,3 +17,18 @@ Source-of-truth lives in Yeet Jsonnet config:
|
|
|
17
17
|
1. Update Yeet config (for example `yeet/config/chains.jsonnet`, `yeet/config/providers.jsonnet`, or `yeet/config/oft.jsonnet`)
|
|
18
18
|
2. Regenerate configs with `bun run generate` from this directory (requires Go)
|
|
19
19
|
3. Merge to `main` to publish `@rhinestone/shared-configs`
|
|
20
|
+
|
|
21
|
+
## Vendor drift
|
|
22
|
+
|
|
23
|
+
`bun run check:vendor-drift` diffs the RHINO, NEAR and CCTP claims in
|
|
24
|
+
`configs/chains.json` against what each vendor serves right now — Rhino's
|
|
25
|
+
`/bridge/configs`, 1Click's `/v0/tokens`, and, since Circle publishes no
|
|
26
|
+
enumeration endpoint, an on-chain TokenMessengerV2 sweep of every EVM chain in
|
|
27
|
+
the registry.
|
|
28
|
+
|
|
29
|
+
It reports and never gates: the `Vendor Drift Check` workflow runs it daily and
|
|
30
|
+
always succeeds, deliberately not wired into the release path. The CCTP sweep
|
|
31
|
+
falls back to each chain's `publicRpcUrl` when `ALCHEMY_API_KEY` /
|
|
32
|
+
`DRPC_API_KEY` are unset, so it runs with no credentials; override one chain
|
|
33
|
+
with `VENDOR_DRIFT_RPC_<chainId>`. `--strict` exits non-zero on drift, for a
|
|
34
|
+
human running it locally.
|