@effectstream/npm-avail-light-client 0.100.13 → 0.100.15
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 +43 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @effectstream/npm-avail-light-client
|
|
2
|
+
|
|
3
|
+
NPM wrapper around the [Avail](https://www.availproject.org/) light client
|
|
4
|
+
CLI. Installs a pinned binary into `node_modules/.bin/npm-avail-light-client`
|
|
5
|
+
so the EffectStream orchestrator and Avail-side E2E tests can spin up a
|
|
6
|
+
light client without each developer fetching the binary by hand.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
bun add @effectstream/npm-avail-light-client
|
|
12
|
+
# or
|
|
13
|
+
npm install @effectstream/npm-avail-light-client
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The package downloads the pinned light-client binary for your OS/arch on
|
|
17
|
+
install.
|
|
18
|
+
|
|
19
|
+
## Standalone usage
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Through the bin shim
|
|
23
|
+
bunx npm-avail-light-client --network mainnet
|
|
24
|
+
|
|
25
|
+
# Or invoke the script directly
|
|
26
|
+
bun run --bun @effectstream/npm-avail-light-client/start -- --network mainnet
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Inside EffectStream
|
|
30
|
+
|
|
31
|
+
The orchestrator's Avail step boots this binary alongside the Avail node
|
|
32
|
+
wrapper (`@effectstream/npm-avail-node`) so syncs against Avail-DA work
|
|
33
|
+
locally. See:
|
|
34
|
+
|
|
35
|
+
- [`templates/avail/`](https://github.com/PaimaStudios/paima-engine/tree/main/templates/avail) — full template using Avail.
|
|
36
|
+
- [`e2e/avail/`](https://github.com/PaimaStudios/paima-engine/tree/main/e2e/avail) — E2E suite.
|
|
37
|
+
- `@effectstream/sync` — `AvailFetcher`, `AvailSyncState` on the runtime side.
|
|
38
|
+
|
|
39
|
+
## Links
|
|
40
|
+
|
|
41
|
+
- Docs: https://effectstream.github.io/docs/packages/binaries/avail-light-client
|
|
42
|
+
- Source: https://github.com/PaimaStudios/paima-engine/tree/main/packages/binaries/avail-light-client
|
|
43
|
+
- Avail Light Client: https://github.com/availproject/avail-light
|