lovewebconnection 0.0.0-stage → 0.2.1
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/.env.example +38 -0
- package/LICENSE +21 -0
- package/README.md +1937 -2
- package/dist/alert-queue.d.ts +72 -0
- package/dist/alert-queue.js +155 -0
- package/dist/alert-store.d.ts +29 -0
- package/dist/alert-store.js +75 -0
- package/dist/balances.d.ts +221 -0
- package/dist/balances.js +1232 -0
- package/dist/cache.d.ts +37 -0
- package/dist/cache.js +128 -0
- package/dist/call.d.ts +46 -0
- package/dist/call.js +377 -0
- package/dist/chain.d.ts +97 -0
- package/dist/chain.js +419 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +1011 -0
- package/dist/compare-history.d.ts +82 -0
- package/dist/compare-history.js +340 -0
- package/dist/compare.d.ts +98 -0
- package/dist/compare.js +492 -0
- package/dist/contract.d.ts +107 -0
- package/dist/contract.js +162 -0
- package/dist/default-abi.d.ts +53 -0
- package/dist/default-abi.js +85 -0
- package/dist/history.d.ts +83 -0
- package/dist/history.js +422 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +27 -0
- package/dist/market-page.d.ts +8 -0
- package/dist/market-page.js +554 -0
- package/dist/market-server.d.ts +46 -0
- package/dist/market-server.js +473 -0
- package/dist/market.d.ts +323 -0
- package/dist/market.js +835 -0
- package/dist/metadata-cache.d.ts +72 -0
- package/dist/metadata-cache.js +197 -0
- package/dist/metrics.d.ts +64 -0
- package/dist/metrics.js +138 -0
- package/dist/plot.d.ts +60 -0
- package/dist/plot.js +317 -0
- package/dist/presets-history.d.ts +372 -0
- package/dist/presets-history.js +1243 -0
- package/dist/presets-summary.d.ts +17 -0
- package/dist/presets-summary.js +55 -0
- package/dist/presets.d.ts +59 -0
- package/dist/presets.js +181 -0
- package/dist/prices.d.ts +63 -0
- package/dist/prices.js +154 -0
- package/dist/rotate.d.ts +19 -0
- package/dist/rotate.js +34 -0
- package/dist/scan.d.ts +81 -0
- package/dist/scan.js +501 -0
- package/dist/sessions.d.ts +104 -0
- package/dist/sessions.js +515 -0
- package/dist/signatures.d.ts +13 -0
- package/dist/signatures.js +43 -0
- package/dist/tokenfile.d.ts +50 -0
- package/dist/tokenfile.js +218 -0
- package/dist/views.d.ts +63 -0
- package/dist/views.js +415 -0
- package/dist/watch.d.ts +306 -0
- package/dist/watch.js +1121 -0
- package/dist/webhook.d.ts +17 -0
- package/dist/webhook.js +35 -0
- package/examples/erc20.abi.json +57 -0
- package/examples/xlayer.tokens.json +4 -0
- package/package.json +77 -4
package/.env.example
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# lwc — EVM chain connection
|
|
2
|
+
# Copy to .env and fill in. .env is gitignored; never commit real endpoints or tokens.
|
|
3
|
+
|
|
4
|
+
# Optional. Built-in presets: xlayer (196, OKB), base (8453, ETH),
|
|
5
|
+
# ethereum (1, ETH), arbitrum (42161, ETH), optimism (10, ETH), polygon (137, POL).
|
|
6
|
+
# A preset supplies the chain id, RPC URL, and native symbol; the settings below
|
|
7
|
+
# override its defaults. --chain <name|id> overrides this per command.
|
|
8
|
+
LWC_CHAIN=xlayer
|
|
9
|
+
|
|
10
|
+
# Custom chains only: the chain id the RPC must report. A mismatch aborts the
|
|
11
|
+
# connection. When LWC_CHAIN names a preset this must match it or be omitted.
|
|
12
|
+
# LWC_CHAIN_ID=
|
|
13
|
+
|
|
14
|
+
# Optional with a preset, required for a custom chain. http(s) JSON-RPC endpoint.
|
|
15
|
+
# LWC_RPC_URL=https://your-rpc.example.org
|
|
16
|
+
|
|
17
|
+
# Optional. Tried when LWC_RPC_URL is unreachable, times out, or answers with
|
|
18
|
+
# the wrong chain id. A preset supplies one; this replaces it. Ignored when
|
|
19
|
+
# LWC_RPC_AUTH is set, so a credential never reaches another operator.
|
|
20
|
+
# LWC_FALLBACK_RPC_URL=
|
|
21
|
+
|
|
22
|
+
# Optional. Human label used in output (defaults to the preset name, or lwc-<chainId>).
|
|
23
|
+
# LWC_CHAIN_NAME=
|
|
24
|
+
|
|
25
|
+
# Optional. Native currency symbol (defaults to the preset's, otherwise ETH).
|
|
26
|
+
# LWC_NATIVE_SYMBOL=
|
|
27
|
+
|
|
28
|
+
# Optional. Authorization header sent to the RPC, e.g. "Bearer <token>".
|
|
29
|
+
# Only use this with an endpoint you trust, and prefer https.
|
|
30
|
+
LWC_RPC_AUTH=
|
|
31
|
+
|
|
32
|
+
# Optional. Per-request timeout in ms (250-120000, defaults to 10000).
|
|
33
|
+
LWC_TIMEOUT_MS=10000
|
|
34
|
+
|
|
35
|
+
# Optional. Per-endpoint Authorization header for compare, named by the endpoint
|
|
36
|
+
# label: drpc=https://… reads LWC_RPC_AUTH_DRPC (dashes become underscores).
|
|
37
|
+
# An unset or empty variable leaves the endpoint on LWC_RPC_AUTH.
|
|
38
|
+
# LWC_RPC_AUTH_DRPC=
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 emeraldjewels4-rgb
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|