Skip to content

Commit cb7b86f

Browse files
committed
use lit v3
1 parent 4ab07d4 commit cb7b86f

7 files changed

Lines changed: 421 additions & 15238 deletions

File tree

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
.gitignore
55
node_modules
66
dist
7-
.lit-auth-storage

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules
22
dist
33
.env
4-
.lit-auth-storage

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Returns `{ "status": "ok" }`.
4848
| Variable | Required | Default | Description |
4949
|---|---|---|---|
5050
| `PORT` | No | `3100` | Port to listen on |
51-
| `LIT_NETWORK` | No | `naga` | Lit network: `dev`, `test`, or `naga` |
52-
| `LIT_ETHEREUM_PRIVATE_KEY` | For `test`/`naga` | - | Private key for Lit auth. Optional on `dev`. |
51+
| `LIT_CHIPOTLE_API_KEY` | Yes | - | API key for the Lit Chipotle API (see [Lit Express Dashboard](https://dashboard.chipotle.litprotocol.com/)) |
5352
| `GITHUB_PERSONAL_ACCESS_TOKEN` | No | - | GitHub token for FUNDING.json lookups (avoids rate limits) |
5453
| `CACHE_REDIS_CONNECTION_STRING` | No | - | Redis URL for rate limiting (e.g. `redis://localhost:6379`) |
5554

@@ -79,4 +78,6 @@ The GitHub Actions workflow in `.github/workflows/publish-docker.yml` builds and
7978

8079
## Architecture
8180

82-
This service was extracted from the main Drips app to isolate the Lit Protocol SDK (~845MB) and its ethers v5/v6 dependency conflicts from the SvelteKit build. The app proxies requests to this service via `PROJECT_CLAIM_API_URL`.
81+
This service proxies requests to the Lit Chipotle REST API, which executes a Lit Action (see `src/oracle-code.txt`) that produces signed ownership claims. The main Drips app talks to this service via `PROJECT_CLAIM_API_URL`.
82+
83+
The oracle code in `src/oracle-code.txt` is built from the Drips contracts repo (see `contracts/oracle/`). To regenerate it, run `npm run getDeployment ./out` in the contracts oracle directory and copy the output here.

0 commit comments

Comments
 (0)