@seedprotocol/feed 0.6.7 → 0.6.9
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 +6 -6
- package/dist/config.d.ts +3 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/index.js +196 -199
- package/dist/index.js.map +1 -1
- package/dist/services/arweaveImageService.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -49,9 +49,8 @@ When a custom primary gateway is configured, `ar.seedprotocol.io` is omitted fro
|
|
|
49
49
|
|
|
50
50
|
Item links in the feed can point to EASScan attestation pages. Set these environment variables:
|
|
51
51
|
|
|
52
|
-
- `
|
|
53
|
-
|
|
54
|
-
- **Mainnet**: `https://easscan.org` (default)
|
|
52
|
+
- `EAS_CHAIN_ID` - Chain the feed reads attestations from (e.g. `8453` for Base). Sets both the EAS indexer and the default explorer for item links. Default: `11155420` (Optimism Sepolia).
|
|
53
|
+
- `FEED_ITEM_URL_BASE` - Base URL for attestation links. Item URLs use `{base}/attestation/view/{uid}`. Default: the EAS explorer of `EAS_CHAIN_ID` (e.g. `https://base.easscan.org`), or `https://easscan.org` for chains without a known explorer.
|
|
55
54
|
- `FEED_ITEM_URL_PATH` - Path segment (default: `attestation/view`). Only used when `FEED_ITEM_URL_BASE` is set.
|
|
56
55
|
- `FEED_SITE_URL` - Site URL for fallback when `FEED_ITEM_URL_BASE` is unset (default: `https://seedprotocol.io`).
|
|
57
56
|
|
|
@@ -61,9 +60,10 @@ Item links in the feed can point to EASScan attestation pages. Set these environ
|
|
|
61
60
|
# Arweave gateway for feed media / relation URLs
|
|
62
61
|
ARWEAVE_HOST=arweave.net
|
|
63
62
|
|
|
64
|
-
#
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
# Read Base attestations; item links default to https://base.easscan.org/attestation/view/{uid}
|
|
64
|
+
EAS_CHAIN_ID=8453
|
|
65
|
+
# Optional override for item links:
|
|
66
|
+
# FEED_ITEM_URL_BASE=https://base.easscan.org
|
|
67
67
|
FEED_ITEM_URL_PATH=attestation/view
|
|
68
68
|
```
|
|
69
69
|
|
package/dist/config.d.ts
CHANGED
|
@@ -25,8 +25,9 @@ export declare function resetSiteConfig(): void;
|
|
|
25
25
|
* Load feed configuration from environment variables
|
|
26
26
|
*
|
|
27
27
|
* Environment variables:
|
|
28
|
-
* - FEED_ITEM_URL_BASE: Base URL for attestation links (e.g. https://
|
|
29
|
-
*
|
|
28
|
+
* - FEED_ITEM_URL_BASE: Base URL for attestation links (e.g. https://base.easscan.org).
|
|
29
|
+
* Item links use {base}/attestation/view/{uid}. Default: the EAS explorer of the configured
|
|
30
|
+
* chain (`EAS_CHAIN_ID`, or the SDK / publish chain in-process), else 'https://easscan.org'.
|
|
30
31
|
* - FEED_ITEM_URL_PATH: Path segment for attestation links (default: 'attestation/view').
|
|
31
32
|
* Only used when FEED_ITEM_URL_BASE is set.
|
|
32
33
|
* - FEED_SITE_URL: Site URL for fallback when FEED_ITEM_URL_BASE is unset (default: 'https://seedprotocol.io').
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,GAAG;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;CACrD,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,EAAE,UAYjC,CAAC;AAWF;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,CAAC,EAAE,mBAAmB,EAC/B,IAAI,GAAE,UAAuB,GAC5B,UAAU,CAoBZ;AAED,mFAAmF;AACnF,wBAAgB,aAAa,IAAI,UAAU,CAE1C;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,mBAAmB,GAAG,UAAU,CAGxE;AAED,4DAA4D;AAC5D,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,IAAI;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,EAAE,YAAY,GAAG,eAAe,CAAC;CACvD,CAiBA"}
|