@cetusprotocol/terminal 0.2.0 → 0.3.0

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
@@ -0,0 +1,4 @@
1
+ export declare function useAccountServiceName(): {
2
+ fetchServiceNames: (address: string[]) => Promise<void>;
3
+ getServiceNames: (accounts: any) => Promise<void>;
4
+ };
@@ -1 +1,3 @@
1
- export default function useGetMyAssetsPrice(): void;
1
+ export default function useGetMyAssetsPrice(): {
2
+ getMyAssetsPrice: () => void;
3
+ };
@@ -1,5 +1,5 @@
1
1
  import { TokenBalance } from '../types';
2
- export default function useGetTokenBalance(coinType?: string): {
2
+ export default function useGetTokenBalance(coin?: any): {
3
3
  getOwnerCoinBalances: (account?: string, coinType?: string) => Promise<void>;
4
4
  balanceInfo: TokenBalance | undefined;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { TokenPrice } from '../types';
2
2
  export default function useTokenPrice(): {
3
- fetchTokenPrices: (coinTypeList: string[]) => Promise<TokenPrice[] | null>;
3
+ fetchTokenPrices: (coinTypeList: string[]) => Promise<any[] | null>;
4
4
  getTokenPrice: (coinType?: string) => TokenPrice | undefined;
5
5
  getTokenAmountValue: (coinType?: string, amount?: string, defaultReturn?: string) => string;
6
6
  };
@@ -2,7 +2,8 @@ import { Token } from '../types';
2
2
  import { CoinMetadata } from '@mysten/sui/client';
3
3
  export declare function coinMetadataToCoinInfo(metadata: CoinMetadata, coinType: string): Token;
4
4
  export declare function useTokens(): {
5
- getTokens: () => Promise<void>;
5
+ getTrustTokens: () => Promise<void>;
6
6
  fetchTokenInfo: (coinType: string) => Promise<Token | undefined>;
7
7
  getTokenInfo: (coinType?: string) => Token | undefined;
8
+ getTokens: (coinTypes: string[]) => Promise<any>;
8
9
  };
@@ -11,6 +11,8 @@ interface AccountState {
11
11
  setIsOpenAccountList: (value: boolean) => void;
12
12
  tokenBalanceObj: Record<string, TokenBalance>;
13
13
  setTokenBalanceObj: (data: Record<string, TokenBalance>) => void;
14
+ accountServiceNameObj: any;
15
+ setAccountServiceNameObj: (value: any) => void;
14
16
  }
15
17
  declare const useAccountStore: import('zustand').UseBoundStore<import('zustand').StoreApi<AccountState>>;
16
18
  export { useAccountStore };