@bluxcc/core 0.1.24 → 0.2.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.
package/dist/store.d.ts CHANGED
@@ -5,7 +5,7 @@ import { UseBalancesResult } from './hooks/useBalances';
5
5
  import { UseTransactionsResult } from './hooks/useTransactions';
6
6
  import { IAsset, IWallet, ISignMessage, IInternalConfig, ISendTransaction, IAppearance, AuthenticateApiResponse } from './types';
7
7
  export type WaitingStatus = 'login' | 'sendTransaction' | 'signMessage';
8
- export type AlertType = 'error' | 'success' | 'info' | 'warn' | 'none';
8
+ export type AlertType = 'error' | 'success' | 'warn' | 'none' | 'copy';
9
9
  export interface IUser {
10
10
  address: string;
11
11
  walletPassphrase: string;
package/dist/types.d.ts CHANGED
@@ -10,7 +10,7 @@ interface IServers {
10
10
  soroban: string;
11
11
  }
12
12
  export interface IWalletConnectMetaData {
13
- icons: [];
13
+ icons: string[];
14
14
  url: string;
15
15
  projectId: string;
16
16
  description: string;
@@ -25,7 +25,7 @@ export interface IConfig {
25
25
  explorer?: IExplorer;
26
26
  isPersistent?: boolean;
27
27
  showWalletUIs?: boolean;
28
- loginMethods?: ILoginMethods;
28
+ loginMethods?: ILoginMethods | string[];
29
29
  transports?: ITransports;
30
30
  excludeWallets?: IWalletNames;
31
31
  walletConnect?: IWalletConnectMetaData;
@@ -34,7 +34,7 @@ export interface IConfig {
34
34
  export interface IInternalConfig extends IConfig {
35
35
  explorer: IExplorer;
36
36
  appearance: IAppearance;
37
- loginMethods: ILoginMethods;
37
+ loginMethods: ILoginMethods | string[];
38
38
  showWalletUIs: boolean;
39
39
  defaultNetwork: string;
40
40
  lang: LanguageKey;
@@ -3,6 +3,9 @@ import translations from '../constants/locales';
3
3
  import { Route, SupportedWallet } from '../enums';
4
4
  import { IAsset, IWallet, IExplorer, LanguageKey, ITransports, IWalletNames } from '../types';
5
5
  import { INetworkTransports } from '../constants/networkDetails';
6
+ import { HorizonApi } from '@stellar/stellar-sdk/lib/horizon';
7
+ export declare const getAssetTitle: (asset: HorizonApi.BalanceLineNative | HorizonApi.BalanceLineAsset<"credit_alphanum4"> | HorizonApi.BalanceLineAsset<"credit_alphanum12"> | HorizonApi.BalanceLineLiquidityPool) => string;
8
+ export declare const getAssetSubtitle: (asset: HorizonApi.BalanceLineNative | HorizonApi.BalanceLineAsset<"credit_alphanum4"> | HorizonApi.BalanceLineAsset<"credit_alphanum12"> | HorizonApi.BalanceLineLiquidityPool) => string;
6
9
  export declare const iAssetToAsset: (asset: IAsset) => Asset;
7
10
  export declare const addXLMToBalances: (balances: IAsset[]) => {
8
11
  assetIssuer: string;
@@ -27,7 +30,7 @@ export declare const getNetworkRpc: (network: string, transports: ITransports) =
27
30
  export declare const getSortedCheckedWallets: (wallets: IWallet[]) => IWallet[];
28
31
  export declare const getWalletNetwork: (wallet: IWallet) => Promise<string>;
29
32
  export declare const handleLoadWallets: (walletNames: IWalletNames) => Promise<IWallet[]>;
30
- export declare const hexToRgba: (hex: string, alpha: number) => string;
33
+ export declare const hexToRgba: (hex: string, alpha?: number) => string;
31
34
  export declare const humanizeAmount: (amount: number | string, big?: boolean) => string;
32
35
  export declare const initializeRabetMobile: () => void;
33
36
  export declare const isBackgroundDark: (bgColor: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluxcc/core",
3
- "version": "0.1.24",
3
+ "version": "0.2.0",
4
4
  "homepage": "https://blux.cc",
5
5
  "description": "Blux is a wallet infra for the Stellar network",
6
6
  "type": "module",