Skip to content
Merged
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ import type {
TokenTag,
} from './tokens/index.js'

export enum SVMPriorityFeeLevel {
NORMAL = 'NORMAL',
FAST = 'FAST',
ULTRA = 'ULTRA',
}

/**
* Used as a bigint replacement for TransactionRequest because bigint is not serializable
*/
Expand Down Expand Up @@ -167,6 +173,9 @@ export interface RouteOptions extends RouteOptionsBase {
/** SVM specific option, wallet to sponsor tx costs */
svmSponsor?: string

/** SVM specific option, priority fee level */
svmPriorityFeeLevel?: SVMPriorityFeeLevel

/** Mayan specific option to bridge from non-EVM chain to Hyperliquid */
mayanNonEvmPermitSignature?: boolean

Expand Down Expand Up @@ -385,6 +394,9 @@ export interface QuoteRequest extends ToolConfiguration, TimingStrings {
/** SVM specific option, wallet to sponsor tx costs */
svmSponsor?: string

/** SVM specific option, priority fee level */
svmPriorityFeeLevel?: SVMPriorityFeeLevel

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