@cetusprotocol/terminal 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -43,7 +43,7 @@ export declare function useGetSwapPrice(direct: boolean, fromAmount?: string, to
43
43
  export default function useCheckTokenScamsAlert(coinInfo?: Token): {
44
44
  isScamsCoin: boolean | undefined;
45
45
  };
46
- export declare function useCheckCustomCoinPair(fromCoin?: Token, toCoin?: Token): {
46
+ export declare function useCheckCustomCoinPair(fromCoinType?: string, toCoinType?: string): {
47
47
  isCustomMode: boolean;
48
48
  customWarnTokenList: Token[];
49
49
  };
@@ -1,8 +1,8 @@
1
1
  import { SwapRouterData, Token } from '../types/common';
2
2
  interface SwapState {
3
- defaultFromCoin: Token | undefined;
4
- defaultToCoin: Token | undefined;
5
- setDefaultCoin: (from: Token | undefined, to: Token | undefined) => void;
3
+ defaultFromCoinType?: string;
4
+ defaultToCoinCoinType?: string;
5
+ setDefaultCoin: (from?: string, to?: string) => void;
6
6
  fromCoin: Token | undefined;
7
7
  toCoin: Token | undefined;
8
8
  setFromCoin: (value: Token | undefined) => void;