soso-widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
16 lines (15 loc) • 416 B
TypeScript
import type { FormType } from '../form/types.js';
export interface ChainOrderProps {
chainOrder: {
from: number[];
to: number[];
};
availableChains: {
from: number[];
to: number[];
};
}
export interface ChainOrderState extends ChainOrderProps {
initializeChains(chainIds: number[], type: FormType): number[];
setChain(chainId: number, type: FormType): void;
}