@lifi/widget
Version:
LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.
18 lines (15 loc) • 381 B
text/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
}