The LI.FI intent demo is hosted at lintent.org. It demonstrates the entire intent flow from resource lock mangement, intent issuance, and solving intents.
This project uses SvelteKit and bun. It is configured for a deployment to Cloudflare workers, to change the deployment target modify /svelte.config.js with another adapter.
To start development:
- Copy
.env.exampleto.env. - Then fill in the
envvariables by creating a WalletConnect project - Also create an account with Polymer to generation Polymer API keys.
- Install dependencies
bun install. - Start
bun run dev.
The project now uses a two-layer automated test suite:
- Unit and integration tests with
bun test - Browser UI-state tests with Playwright
Run:
bun run test:unitfor library/unit/integration tests with coverage outputbun run test:e2efor deterministic browser testsbun run test:allto run both
For local Playwright setup:
bun installbunx playwright install chromium
Lintent is built around a single page /src/routes/+page.svelte.
The app consists of a series of screens that are displayed in a scrollable container. Each screen can be found in /src/lib/screens/.
Several helper classes that acts as wrappers for external endpoints can be found in /src/lib/libraries/.
This project is licensed under the MIT License. Any contributions to this repository is provided with a MIT License.