@paimaexample/npm-avail-light-client 0.3.43 → 0.3.45

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 (2) hide show
  1. package/config.yml +22 -26
  2. package/package.json +1 -1
package/config.yml CHANGED
@@ -1,31 +1,27 @@
1
- # Default configuration for avail-light-client
2
- # For a full list of options, see the official Avail documentation.
1
+ # Avail Light Client config (no --network needed)
3
2
 
4
- log_level="info"
5
- http_server_host="127.0.0.1"
6
- http_server_port=7007
3
+ # Logging
4
+ log_level = "info"
7
5
 
8
- # Secret key for libp2p keypair. Can be either set to 'seed' or to 'key'.
9
- # If set to seed, keypair will be generated from that seed.
10
- # If 'secret_key' is not set, a random seed will be used.
11
- # secret_key={ seed: "avail" }
6
+ # API server
7
+ http_server_host = "127.0.0.1"
8
+ http_server_port = 7007
12
9
 
13
- # P2P TCP listener port (default: 37000).
14
- port=37000
15
-
16
- # WebSocket endpoint of a full node.
10
+ # RPC to full node (custom 9955)
17
11
  full_node_ws = ["ws://127.0.0.1:9944"]
18
12
 
19
- # Application ID. If not set or set to 0, application client is not started.
20
- app_id=0
21
-
22
- # Confidence threshold (default: 92.0).
23
- confidence=92.0
24
-
25
- # File system path where RocksDB used by the light client stores its data.
26
- # This path is relative to the location of this config file.
27
- avail_path="avail_path"
28
-
29
- # Vector of Light Client bootstrap nodes.
30
- # This is for a local setup. Replace with public bootstraps for testnet/mainnet.
31
- bootstraps=["/ip4/127.0.0.1/tcp/39000/p2p/12D3KooWMm1c4pzeLPGkkCJMAgFbsfQ8xmVDusg272icWsaNHWzN"]
13
+ # App / LC behavior
14
+ app_id = 0
15
+ confidence = 92.0
16
+ avail_path = "avail_path"
17
+ network_mode = "both" # both | p2p-only | rpc-only
18
+
19
+ # LibP2P
20
+ port = 37000
21
+ webrtc_port = 37001
22
+ # secret_key = { seed = "avail" } # optional deterministic key
23
+ bootstraps = ["/ip4/127.0.0.1/tcp/39000/p2p/12D3KooWMm1c4pzeLPGkkCJMAgFbsfQ8xmVDusg272icWsaNHWzN"]
24
+
25
+ # Telemetry / network identity (equivalent to local --network defaults)
26
+ ot_collector_endpoint = "http://127.0.0.1:4317"
27
+ genesis_hash = "DEV"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paimaexample/npm-avail-light-client",
3
- "version": "0.3.43",
3
+ "version": "0.3.45",
4
4
  "description": "A wrapper for the Avail Light Client CLI",
5
5
  "main": "_index.js",
6
6
  "bin": {