Type Alias NaviWidgetContextType

NaviWidgetContextType: {
    client: SwapPanelClient | null;
    operator?: string;
    panel: {
        destroy?: () => void;
        hide: () => void;
        openState: OpenState;
        setTheme: (theme: Theme) => Promise<boolean>;
        show: () => void;
        theme?: Theme;
    };
    swap: {
        setServiceFee: (config: SwapServiceFee) => Promise<boolean>;
        setTokenFrom: (token: string) => Promise<boolean>;
        setTokenFromAmount: (amount: string) => Promise<boolean>;
        setTokenTo: (token: string) => Promise<boolean>;
    };
}

Type declaration

  • client: SwapPanelClient | null
  • Optionaloperator?: string
  • panel: {
        destroy?: () => void;
        hide: () => void;
        openState: OpenState;
        setTheme: (theme: Theme) => Promise<boolean>;
        show: () => void;
        theme?: Theme;
    }
  • swap: {
        setServiceFee: (config: SwapServiceFee) => Promise<boolean>;
        setTokenFrom: (token: string) => Promise<boolean>;
        setTokenFromAmount: (amount: string) => Promise<boolean>;
        setTokenTo: (token: string) => Promise<boolean>;
    }