Skip to content

catalystsystem/lintent

Repository files navigation

LI.FI Intent Demo

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.

Project

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.

Development

To start development:

  1. Copy .env.example to .env.
  2. Then fill in the env variables by creating a WalletConnect project
  3. Also create an account with Polymer to generation Polymer API keys.
  4. Install dependencies bun install.
  5. Start bun run dev.

Testing

The project now uses a two-layer automated test suite:

  1. Unit and integration tests with bun test
  2. Browser UI-state tests with Playwright

Run:

  • bun run test:unit for library/unit/integration tests with coverage output
  • bun run test:e2e for deterministic browser tests
  • bun run test:all to run both

For local Playwright setup:

  1. bun install
  2. bunx playwright install chromium

Structure

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/.

Libraries

Several helper classes that acts as wrappers for external endpoints can be found in /src/lib/libraries/.

License

This project is licensed under the MIT License. Any contributions to this repository is provided with a MIT License.

About

Simple interface to issue Catalyst-intent swaps

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •