Skip to main content
Glama
clarity-fintech

CLRTY-1 ALE

Official

CLRTY-1-ALE-Atomic-Liquidity

CLRTY-1 Atomic Liquidity Engine — Signal → 1inch Fusion → USDT settlement
CLRTY-1 (chain 1202) service · TypeScript/Node · Creator Chandler William Ferguson
Org clarity-fintech/CLRTY-1-ALE-Atomic-Liquidity · package @clarity-fintech/clrty-ale-atomic-liquidity

This repository is self-contained and downloadable: clone it, install once, and it builds, tests, and runs against CLRTY-1 with the scripts documented below.


Contents

Related MCP server: 1inch Cross-Chain Swap MCP Server

What this is

CLRTY-1-ALE-Atomic-Liquidity — CLRTY-1 Atomic Liquidity Engine — Signal → 1inch Fusion → USDT settlement

  • Language: TypeScript (ES modules), entry dist/server.js

  • Runtime: Node.js ≥ 18, HTTP service via express

  • Settlement context: CLRTY-1 / chain 1202

Quickstart

git clone https://github.com/clarity-fintech/CLRTY-1-ALE-Atomic-Liquidity
cd CLRTY-1-ALE-Atomic-Liquidity
npm install
npm run build          # compile TypeScript -> dist/
cp .env.example .env         # then edit the values (see Configuration)
npm run dev            # hot-reload dev server
npm start              # run the built service

Command reference

Command

What it does

npm run build

Compile TypeScript to JavaScript (tsc).

npm run start

Run the compiled service from the build output.

npm run dev

Run the service in watch/hot-reload mode (tsx).

npm run test

Run the unit test suite (RPC smoke disabled).

npm run smoke

Smoke-check connectivity to CLRTY-1 (scripts/smoke-clrty1.mjs).

npm run test:live

Run the live integration tests against CLRTY-1 (CLRTY_LIVE=1).

Architecture

Source lives in src/. Module-by-module:

Module

Role

src/ale.ts

Atomic Liquidity Engine — Signal → 1inch Fusion → USDT settle.

src/clrty1.ts

CLRTY-1 L1 RPC client — duplicated into each service repo (no private npm this pass).

src/liquidity/pool_loops.ts

$CLRTY liquidity pool interaction loops — duplicated per service repo.

src/oneinch.ts

1inch Fusion quote/swap — mock unless ONEINCH_API_KEY is set.

src/security/validate_ebpf.ts

exports validateEbpfPolicy

src/server.ts

exports createApp

src/settle_usdt.ts

USDT settlement log against CLRTY-1 tip.

Configuration

Copy .env.example to .env and set:

Variable

Default / example

CLRTY_L1_RPC

https://rpc.clarity-fintech.com

CLRTY_L1_RPC_URL

(required)

CLRTY_API_BASE

https://api.clarity-fintech.com

CLRTY_L1_CHAIN_ID

clrty-1

CLRTY_L1_NUMERIC_CHAIN_ID

1202

CLRTY_RPC_SMOKE

1

PORT

8101

ONEINCH_API_KEY

(required)

ONEINCH_API_URL

https://api.1inch.dev

CLRTY_POOL_FINALIZE

0

HTTP surface

The service starts an HTTP server (see src/server.ts). Route handlers are defined in the modules listed under Architecture; start it with npm start (or npm run dev) and call it over the port configured in your .env.

Testing

npm test               # unit tests (vitest)
npm run smoke          # CLRTY-1 connectivity smoke test
CLRTY_LIVE=1 npm run test:live   # live CLRTY-1 integration

Test files: tests/ale.test.ts, tests/clrty1_live.test.ts, tests/smoke.test.ts

CLRTY-1 integration

  • src/clrty1.ts holds the CLRTY-1 client (chain 1202), used by the service to read settlement context and submit/observe activity.

  • Configure the endpoint via the .env values above; the smoke script verifies reachability.

Security

  • security/CHECKLIST.md — pre-deploy security checklist.

  • security/ebpf/ — eBPF settlement-path filters (settlement_path.bpf.c, filters.yaml).

MIS kernel binding

This service is bound into the MIS substrate: see MIS_KERNEL.md and manifests/mis_kernel.json. It settles on the same CLRTY-1 / chain 1202 network as the MIS .mis modules, compiled by the CLRTY-MIS-Kernel misc compiler.


CLRTY-1 (chain 1202) · Creator Chandler William Ferguson

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Multi-aggregator swap router for AI agents on Base. 10 bps fee. MCP-native, non-custodial.

  • MCP server: NEED + YIELD + CLEAN-MONEY gates with EIP-3009 attestations · Hive Civilization

  • MCP server connecting AI agents to non-custodial staking data across 130+ networks.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clarity-fintech/CLRTY-1-ALE-Atomic-Liquidity'

If you have feedback or need assistance with the MCP directory API, please join our Discord server