Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
dbf09cc
feat: introduce new optional param `preset` for routes and quote requ…
ja88a Oct 21, 2025
23fd120
chore: split the route config parameters from request options - new `…
ja88a Oct 22, 2025
bdb594d
Merge remote-tracking branch 'origin/main' into LF-16003-api-preset-s…
ja88a Oct 28, 2025
e105a1b
chore(release): 17.45.0-alpha.0
ja88a Oct 28, 2025
aaeabe1
chore(release): 17.45.0-alpha.2
ja88a Oct 28, 2025
15a734e
feat: update GetStatusRequest type and Quote (#426)
melianessa Oct 30, 2025
d0c8d5c
chore(release): 17.45.0
melianessa Oct 30, 2025
43a2b2c
feat: add solana tx sponsor option to api (#449)
nathandem Oct 31, 2025
09ea48e
chore(release): 17.46.0
nathandem Oct 31, 2025
8c47a89
chore(release): 17.47.0-alpha.0
ja88a Oct 31, 2025
dd421b4
chore(release): 17.45.0
melianessa Oct 30, 2025
91b18e4
chore(release): 17.46.0
nathandem Oct 31, 2025
10e823f
chore(release): 17.47.0-alpha.1
ja88a Nov 3, 2025
cacce36
docs: add minor comment-based doc
ja88a Nov 3, 2025
f3e68df
Merge branch 'main' into LF-16003-api-preset-stablecoin
ja88a Nov 3, 2025
841046e
Merge remote-tracking branch 'origin/main' into LF-16003-api-preset-s…
ja88a Nov 17, 2025
9c48389
chore(release): 17.47.0-alpha.2
ja88a Nov 18, 2025
5e87bbf
chore: add new hyperliquid primary message type (#457)
melianessa Nov 18, 2025
e0c9b4e
chore(release): 17.47.0
melianessa Nov 18, 2025
6397a98
chore(release): 17.47.1-alpha.0
ja88a Nov 18, 2025
3aa7c27
Merge branch 'main' into LF-16003-api-preset-stablecoin
ja88a Nov 19, 2025
18d98fb
Merge remote-tracking branch 'origin/main' into LF-16003-api-preset-s…
ja88a Nov 20, 2025
e023574
chore(release): 17.49.0-alpha.0
ja88a Nov 20, 2025
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lifi/types",
"version": "17.44.1",
"version": "17.45.0-alpha.2",
"description": "Types for the LI.FI stack",
"keywords": [
"sdk",
Expand Down
78 changes: 55 additions & 23 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,29 +113,56 @@ export interface RoutesRequest {
fromAmountForGas?: string
}

export interface RouteOptions {
integrator?: string // Should contain the identifier of the integrator. Usually, it's dApp/company name.
fee?: number // 0.03 = take 3% integrator fee (requires verified integrator to be set)
maxPriceImpact?: number // Hide routes with price impact greater than or equal to this value
order?: Order // (default: CHEAPEST) 'FASTEST' | 'CHEAPEST'
slippage?: number // (default: 0.03) Expressed as decimal proportion, 0.03 represents 3%
referrer?: string // Integrators can set a wallet address as a referrer to track them
allowSwitchChain?: boolean // (default: false) Whether chain switches should be allowed in the routes
allowDestinationCall?: boolean // (default: true) destination calls are enabled by default
export interface RouteOptionsBase {
/** 0.03 = take 3% integrator fee (requires verified integrator to be set) */
fee?: number

/** Hide routes with price impact greater than or equal to this value */
maxPriceImpact?: number

/** (default: CHEAPEST) 'FASTEST' | 'CHEAPEST' */
order?: Order

/** (default: 0.03) Expressed as decimal proportion, 0.03 represents 3% */
slippage?: number

/** (default: false) Whether chain switches should be allowed in the routes */
allowSwitchChain?: boolean

/** (default: true) destination calls are enabled by default */
allowDestinationCall?: boolean

/** Bridges that should or should not be taken into consideration for the possibilities */
bridges?: AllowDenyPrefer

/** Exchanges that should or should not be taken into consideration for the possibilities */
exchanges?: AllowDenyPrefer

/** Timing strategies for the routes */
timing?: Timing
/**
* Whether to include routes that require a transaction or a message, or both
* @default 'transaction'
*/

/** Whether to include routes that require a transaction or a message, or both
* @default 'transaction' */
executionType?: ExecutionType
jitoBundle?: boolean // Solana specific option, without it implicit source swaps routes are discarded
}

export interface RouteOptions extends RouteOptionsBase {
/** Should contain the identifier of the integrator. Usually, it's dApp/company name. */
integrator?: string

/** Integrators can set a wallet address as a referrer to track them */
referrer?: string

/** Solana specific option, without it implicit source swaps routes are discarded */
jitoBundle?: boolean

/** Preset configuration for stablecoin routing optimization.
* When provided, this preset will override other route options with optimized settings */
preset?: string

/**
* @deprecated This property is deprecated and will be removed in future versions.
*/
insurance?: boolean // Whether the user wants to insure their tx
/** Whether the user wants to insure their tx
* @deprecated This property is deprecated and will be removed in future versions. */
insurance?: boolean
}

export const ExecutionTypes = ['transaction', 'message', 'all'] as const
Expand Down Expand Up @@ -322,12 +349,17 @@ export interface QuoteRequest extends ToolConfiguration, TimingStrings {
fromAmountForGas?: string // the amount of token to convert to gas
maxPriceImpact?: number // hide routes with price impact greater than or equal to this value
skipSimulation?: boolean
jitoBundle?: boolean // Solana specific option, without it implicit source swaps routes are discarded

/**
* @deprecated This property is deprecated and will be removed in future versions.
*/
insurance?: boolean // indicates whether the user wants a quote with bridge insurance
/** Solana specific option, without it implicit source swaps routes are discarded */
jitoBundle?: boolean

/** Preset configuration for stablecoin routing optimization
* When provided, this preset will override other route options with optimized settings */
preset?: string

/** Indicates whether the user wants a quote with bridge insurance
* @deprecated This property is deprecated and will be removed in future versions. */
insurance?: boolean
}

export interface QuoteToAmountRequest
Expand Down