@bluxcc/core 0.1.5 → 0.1.6

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.
@@ -1,7 +1,7 @@
1
1
  import { Asset, Horizon } from '@stellar/stellar-sdk';
2
2
  import translations from '../constants/locales';
3
3
  import { Route, SupportedWallet } from '../enums';
4
- import { ITransports, IWallet, IExplorer, LanguageKey, IAsset } from '../types';
4
+ import { IAsset, IWallet, IExplorer, LanguageKey, ITransports, IWalletNames } from '../types';
5
5
  import { INetworkTransports } from '../constants/networkDetails';
6
6
  export declare const iAssetToAsset: (asset: IAsset) => Asset;
7
7
  export declare const addXLMToBalances: (balances: IAsset[]) => {
@@ -19,18 +19,18 @@ export declare const formatDate: (isoString: string) => string;
19
19
  export declare const getActiveNetworkTitle: (activeNetwork: string) => string;
20
20
  export declare const getContrastColor: (bgColor: string) => string;
21
21
  export declare const getExplorerUrl: (networkPassphrase: string, explorerProvider: IExplorer, endpoint: "accountUrl" | "transactionUrl" | "operationUrl" | "ledgerUrl", value: string) => string | null;
22
- export declare const getMappedWallets: () => Promise<IWallet[]>;
22
+ export declare const getMappedWallets: (walletNames: IWalletNames) => Promise<IWallet[]>;
23
23
  export declare const getRecentConnectionMethod: () => SupportedWallet[];
24
24
  export declare const getNetworkByPassphrase: (passphrase: string) => string;
25
25
  export declare const getNetworkRpc: (network: string, transports: ITransports) => INetworkTransports;
26
26
  export declare const getSortedCheckedWallets: (wallets: IWallet[]) => IWallet[];
27
27
  export declare const getWalletNetwork: (wallet: IWallet) => Promise<string>;
28
- export declare const handleLoadWallets: () => Promise<IWallet[]>;
28
+ export declare const handleLoadWallets: (walletNames: IWalletNames) => Promise<IWallet[]>;
29
29
  export declare const hexToRgba: (hex: string, alpha: number) => string;
30
30
  export declare const humanizeAmount: (amount: number | string, big?: boolean) => string;
31
31
  export declare const initializeRabetMobile: () => void;
32
32
  export declare const isBackgroundDark: (bgColor: string) => boolean;
33
- export declare const loadWallets: () => Promise<IWallet[]>;
33
+ export declare const loadWallets: (excludedWallets: IWalletNames) => Promise<IWallet[]>;
34
34
  export declare const setRecentConnectionMethod: (walletName: SupportedWallet) => void;
35
35
  export declare const shortenAddress: (address: string, numChars?: number) => string;
36
36
  export declare const timeout: (waiter: number) => Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluxcc/core",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "homepage": "https://blux.cc",
5
5
  "description": "Blux is a wallet infra for the Stellar network",
6
6
  "type": "module",