Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0312800
Move to be library files into dedicated folder
reednaa Feb 18, 2026
858f025
Split intent library into smaller chunks
reednaa Feb 18, 2026
7b971da
Rename hashMultichainInputs, documentation and intent class interface
reednaa Feb 18, 2026
4e0ef5a
Cleanup order selection and readme
reednaa Feb 18, 2026
14d9684
Update agents to explain the library
reednaa Feb 18, 2026
a7283b3
Implement tests for library
reednaa Feb 19, 2026
727c8c7
Use wagmi wallet connector
reednaa Feb 19, 2026
043e503
End to end test of standard order flow
reednaa Feb 19, 2026
fd6b5e6
Remove chain strings in favour of chainIds
reednaa Feb 19, 2026
08b741d
Create mono-repo
reednaa Feb 19, 2026
36e904d
Update agents and packages
reednaa Feb 19, 2026
38e994a
Continue refactor repository for mono repo
reednaa Feb 20, 2026
859d82d
Carry changes from d9d6e0f3eced08d2064f9b6be7abf919d54dde20
reednaa Feb 20, 2026
bd33f16
Remove monorepo and move lintent app top level
reednaa Mar 3, 2026
86ad2d3
Make exclusive for optional
reednaa Mar 3, 2026
7441ad9
Merge pull request #26 from lifinance/exclusiveFor-optional
reednaa Mar 3, 2026
b20a95b
Merge branch 'main' of https://github.com/lifinance/lintent into develop
reednaa Mar 3, 2026
488b3eb
Mobile fixes (#32)
reednaa May 6, 2026
c696007
Accommodate intent.ts standardise-order-classes API changes (#39)
Asem-Abdelhady May 6, 2026
4bab8f1
fix: replace StandardOrderIntent alias with canonical StandardEVMInte…
reednaa May 6, 2026
78b799e
chore: bump version to 0.1.0 for first minor release
reednaa May 6, 2026
ff2b664
fix: resolve security findings and harden server routes
reednaa May 6, 2026
d5ab26a
fix: remove all `as any` casts with proper typing
reednaa May 6, 2026
0f45188
chore: update @lifi/intent to 0.1.1
reednaa May 6, 2026
49c0d5d
Merge remote-tracking branch 'origin/main' into develop
reednaa May 8, 2026
164a08e
Add Stellar and Axelar support
reednaa Oct 6, 2026
cfc24a9
Dedupe preact for Stellar wallet modal
reednaa Oct 6, 2026
7c52d3e
Use Freighter for Stellar wallet
reednaa Oct 6, 2026
4a7bf6c
Block selecting orders on unsupported chains
reednaa Oct 6, 2026
ada5042
Guard order import against unsupported chains
reednaa Oct 6, 2026
b78e4f8
feat(axelar): configure Arbitrum mainnet oracle
reednaa Oct 13, 2026
38cc61c
[V2-316] Add exact Stellar testnet API issuance and aligned Axelar pr…
reednaa Oct 30, 2026
d51de20
[V2-316] Integrate final SDK Git preparation prerequisites
reednaa Oct 30, 2026
c046694
[V2-332] Revoke pending API quote execution before signing
reednaa Oct 30, 2026
1e37d9a
[V2-316] Support Stellar Axelar corridors on mainnet and testnet
reednaa Nov 2, 2026
a4e046a
ci(e2e): pin runner to ubuntu-24.04 for Playwright chromium support
reednaa Nov 2, 2026
1230fbc
Merge origin/main into feat/stellar-axelar
reednaa Nov 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
if-no-files-found: ignore

e2e:
runs-on: ubuntu-latest
# Playwright has no chromium build for ubuntu-latest (26.04) yet.
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
96 changes: 96 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,102 @@ Lintent is LI.FI's interactive demo for the [Open Intents Framework (OIF)](https

The app handles both sides of an intent: the user (intent issuer) and the solver. Each step maps to a dedicated screen so you can follow the entire flow in sequence.

## Stellar ↔ EVM Axelar corridors

Only direct USDC escrow intents are supported, on these Axelar corridors:

- **Mainnet**: Stellar `1201081091099710` ↔ Base `8453` and ↔ Arbitrum `42161`.
- **Testnet**: Stellar `1201081091099711` ↔ Base Sepolia `84532`.

The deployments are public records, matching the order service's
`/api/v1/contracts`, and live in one static table per network
(`AXELAR_NETWORKS` in `src/lib/axelarNetworks.ts`): ABI generation, oracles,
Axelar chain names, Stellar input escrow/output settler, USDC (7 decimals on
Stellar, 6 on EVM), Axelarscan estimator and order API. There is no
environment flag. Pick **Mainnet** or **Testnet** in Asset Management, then a
directional button in Intent Issuance. **Explore without connecting** permits
route/quote-state inspection and historical order reads; it does not create a
wallet or authorize transactions. Freighter must use the selected network's
passphrase.

Quotes come from the network's order API, irrespective of the general API
toggle: `new IntentApi(true)` (`https://order.li.fi`) on mainnet and
`new IntentApi(false)` (`https://order-dev.li.fi`) on testnet. The accept-list
contains exactly the corridor's two Axelar oracles with `stellar:`/`eip155:`
namespaces. Quote ID/reference, validity, oracle metadata, allowances and exact
`openIntentTx` remain bound to the selection and are saved alongside an executed
local order. Account/network/recipient/assets/amounts/settings changes and expiry
invalidate it; stale responses cannot replace a newer request. No manual-order
nonce, deadline or oracle reconstruction is used for these corridors.

Before signing, the factory checks the requested USDC route/account/amounts,
recipient kind, both settlers/oracles, reference↔nonce, validity and allowance
targets. EVM executes the returned `to/data/value` after the returned allowance
check. Stellar decodes the returned **order ScVal**, calls `open` on the returned
escrow, simulates, then asks Freighter to sign under the selected passphrase;
the API payload is not an envelope. Wallets, RPCs, balances and receipt caches
are network-scoped.

The selection's request generation is revocable. Clearing, replacing, refreshing
or editing it also invalidates pending execution, even if the old amount is
restored. The factory rechecks selection identity/generation and live output
amount before EVM approval/open requests and Freighter signing, after asynchronous
preparation and network checks. Only initial quote selection accepts a pre-quote
output placeholder. Revocation cannot undo an approval/signature already requested.

Catamaran may fill and claim externally. Supply its actual fill transaction hash
in **Fill Intent** to inspect proof progress. Stellar fill events and records
identify the real claimant; reads do not require the connected EVM user to equal
that solver. Stellar claimant commitments are opaque bytes32 values, never
public keys or reconstructed G-addresses. Only the actual fill claimant may
manually finalise. This does not add native REST/WS ingestion or firm-quote
attribution to Catamaran.

Manual proofs depend on the network's oracle ABI generation. The proof
destination is the **origin** chain. Only paid Relayed mode with positive native
gas and zero destination config is supported, and forward/reverse chain maps are
checked before publication.

- **current** (testnet): EVM `submit(string,string,address,bytes[],bytes32,uint8)`
with the destination's Axelar name and native oracle string (Stellar C-strkey);
Stellar `submit` with the U256 destination id and the oracle address string.
Maps: EVM `chainIdMap`/`reverseChainIdMap`, Stellar `route`/`chain_name`.
Sources: EVM `7dc19ce`; Stellar `dccd29fad348d6058e0a4f97b8672fd94825ad53`.
- **legacy** (mainnet): EVM `submit(string,bytes32,address,bytes[],bytes32,uint8)`
and Stellar `submit(String,BytesN<32>,…)`, both with the destination's Axelar
name and the raw 32-byte oracle id (EVM addresses left-padded with 12 zero
bytes), which the oracle encodes by route kind. Maps: EVM `route(name)` and
`reverseChainIdMap(id) == keccak256(name)`, Stellar `route(name).chain_id` and
`chain_name`. Sources: EVM `e226659`; Stellar `5b8f3ca`.

Gas is estimated server-side (`/axelar/gas`) for supported corridors only, via
the network's fixed `POST https://{testnet.}api.axelarscan.io/gmp/estimateGasFeeForNHops`,
`{params:[request],showDetailedFees:true}`. Requests use native oracle strings,
the table's Axelar chain names, zero native-token address,
`gasLimit:"500000"`, `gasMultiplier:"auto"` and hex receiving `execute` data.
Encoding follows Catamaran's `proof/lifecycle/native.rs` and `native_origin.rs`:
EVM calldata or Stellar **Operation XDR**, with estimate-only all-`ff` IDs.
Those IDs never authenticate or submit a proof. The one-hop echo must repeat
every request field, 7/18 native decimals and a positive decimal-string total.
Unavailable estimates disable manual publication; there is no gas floor.
Messages link to the network's Axelarscan.

The SDK is pinned to the published P2 Git commit
`352216efb365c620a1a9dd49cb72116b8faf5b61`; no release or local link is assumed.
Normal `bun install` runs the trusted Git package's `prepare` to generate
`_esm`, `_cjs` and `_types`; no manual SDK build or copied outputs are required.
Bun's in-place Git preparation uses the consumer's build tools, so install with
devDependencies enabled: `rollup ^4.61.0`, `rollup-plugin-esbuild ^6.2.1`,
`typescript ^5.6.3` and `@types/bun ^1.3.8` (compatible newer versions are valid).
The manifest explicitly trusts `@lifi/intent`; preserve other audited trust
entries and do not blanket-approve lifecycle scripts. `bun.lock` pins the exact
Git revision and resolved build tools. Production build stages must install
devDependencies before preparing the SDK and building lintent; a
production-only install from an empty dependency tree omits required tools.

Existing PR pushes create automatic Cloudflare previews; no new deployment
workflow is added.

## Architecture

```mermaid
Expand Down
Loading
Loading