Skip to content

feat: add gasless request flags - #559

Open
CallumGrindle wants to merge 4 commits into
mainfrom
feat/gasless-quote-surface-types
Open

feat: add gasless request flags#559
CallumGrindle wants to merge 4 commits into
mainfrom
feat/gasless-quote-surface-types

Conversation

@CallumGrindle

@CallumGrindle CallumGrindle commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

What

Adds the gasless request flag for the gasless EVM execution surface (M2 slice of the gasless types train):

  • gasless?: boolean on QuoteRequest — opts the quote into gasless execution: the response returns signable typed data instead of a transactionRequest, and the relay fee is deducted from the input amount. Default false.
  • gasless?: boolean on RouteOptionsBase — the same flag for /advanced/routes, placed with the other execution-shape options (executionType, allowDestinationCall).

The relay-fee FeeCost name constant originally included here was removed: the fee-name constants integrators match on (LIFI_SHARED_FEE_NAME and friends) live in the backend and are published through the docs — FeeCost.name stays a plain string in this package.

Why

Linear: https://linear.app/lifi-linear/issue/CORE-790

Phase 1 of gasless EVM execution (EIP-7702 batched approve+swap). The backend implementation consumes this via a beta release; the intent factory follows.

Release

No version bump / CHANGELOG edit — standard-version owns both. After merge: pnpm release:beta + tag push to cut the beta for lifi-backend and intent factory.

🤖 Generated with Claude Code

@CallumGrindle
CallumGrindle force-pushed the feat/gasless-quote-surface-types branch from 61f92db to 41b981a Compare August 4, 2026 09:57
CallumGrindle and others added 3 commits August 6, 2026 15:27
Adds the request surface the gasless EVM execution quote flow needs:

- `gasless?: boolean` on `QuoteRequest` and `RouteOptionsBase`, placed next to
  `executionType` in both, since it selects an execution mode.
- `LIFI_GASLESS_RELAY_FEE_NAME`, the stable `FeeCost.name` integrators match on
  to find the relay fee entry in `feeCosts`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The fee-name constants integrators match on (LIFI_SHARED_FEE_NAME and
friends) live in the backend and are published through the docs; FeeCost.name
stays a plain string here. This PR now only adds the gasless request flag.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The relay fee constant no longer ships from this package, so the gasless
flag comments name the FeeCost.name value directly instead of pointing at
an identifier consumers cannot import.
@CallumGrindle
CallumGrindle force-pushed the feat/gasless-quote-surface-types branch from 5da178f to 55ace02 Compare August 6, 2026 14:28
@CallumGrindle CallumGrindle changed the title feat: add gasless request flag and relay fee cost name constant feat: add gasless request flags Aug 6, 2026
@CallumGrindle

Copy link
Copy Markdown
Contributor Author

Rebased onto the latest main and force-updated the branch. This repository does not currently have a develop branch, and PR #559 targets main. The stale 17.89.0-beta.2 version-only commit was dropped during the rebase, so the beta can now be released again from the updated branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant