import Mpc from '../../mpc' import ZeroX, { type IZeroX, type ZeroXOptions } from './zero-x' import LiFi, { type ILiFi, type LifiOptions } from './lifi' export type TradingOptions = LifiOptions & ZeroXOptions export type { LifiOptions, ILiFi, ZeroXOptions, IZeroX } /** * Trading integrations (LiFi, 0x). */ export default class Trading { public lifi: LiFi public zeroX: ZeroX constructor({ mpc, ...defaults }: { mpc: Mpc } & TradingOptions) { this.lifi = new LiFi({ mpc, ...defaults }) this.zeroX = new ZeroX({ mpc, ...defaults }) } }