Configuration Types
Core Configuration Types
export interface SquidConfig {
integratorId: string;
apiUrl?: string;
theme?: Theme;
themeType?: 'dark' | 'light';
initialAssets?: {
from: TokenData;
to: TokenData;
};
defaultTokensPerChain?: TokenData[];
priceImpactWarnings?: {
warning: number;
critical: number;
};
availableChains?: {
source?: ChainId[];
destination?: ChainId[];
};
loadPreviousStateFromLocalStorage?: boolean;
slippage?: SlippageOption;
hideAnimations?: boolean;
preferDex?: DexName[] | string[];
collectFees?: {
integratorAddress: string;
fee: number; // Basis points (e.g., 50 = 0.05%)
};
degenMode?: boolean;
}
export type ChainId = number | string;
export type SlippageOption = 0.5 | 1 | 1.5 | 3;
export type TokenData = {
address: string;
chainId: ChainId;
};
export type DexName = string; // Specific DEX names to be listed hereTheme Configuration
Important Notes
Deprecated or Removed Types
Last updated