@bluxcc/react 0.1.18 → 0.1.20

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,6 +1,7 @@
1
1
  import { Horizon, rpc } from '@stellar/stellar-sdk';
2
2
  import { HorizonApi } from '@stellar/stellar-sdk/lib/horizon';
3
3
  import { Url } from '../utils/network/url';
4
+ import { UseAccountResult } from '../useStellar/useAccount';
4
5
  /**
5
6
  * Enum representing the supported wallets in the system.
6
7
  */
@@ -10,7 +11,8 @@ export declare enum SupportedWallets {
10
11
  Freighter = "Freighter",
11
12
  Xbull = "xBull",
12
13
  Lobstr = "LOBSTR",
13
- Hana = "Hana"
14
+ Hana = "Hana",
15
+ Hot = "Hot"
14
16
  }
15
17
  /**
16
18
  * Enum defining the various Stellar network environments.
@@ -31,6 +33,13 @@ export interface AccountData {
31
33
  thresholds: Horizon.HorizonApi.AccountThresholds;
32
34
  transactions?: Horizon.ServerApi.TransactionRecord[];
33
35
  }
36
+ export interface IAsset {
37
+ logo?: string;
38
+ balance: string;
39
+ assetCode: string;
40
+ assetType: string;
41
+ assetIssuer: string;
42
+ }
34
43
  interface IServers {
35
44
  horizon: Url;
36
45
  soroban: Url;
@@ -119,6 +128,7 @@ export interface ContextInterface {
119
128
  waitingStatus: 'connecting' | 'signing';
120
129
  showAllWallets: boolean;
121
130
  activeNetwork: string;
131
+ account: UseAccountResult;
122
132
  signTransaction: ISignTransaction<boolean>;
123
133
  servers: {
124
134
  horizon: Horizon.Server;
@@ -3,7 +3,7 @@ interface UseAccountProps {
3
3
  address?: string;
4
4
  network?: string;
5
5
  }
6
- interface UseAccountResult {
6
+ export interface UseAccountResult {
7
7
  loading: boolean;
8
8
  error: Error | null;
9
9
  account: Horizon.AccountResponse | null;
@@ -0,0 +1,12 @@
1
+ import { Horizon } from '@stellar/stellar-sdk';
2
+ export interface IAssetImageDescription {
3
+ logo: string;
4
+ domain: string;
5
+ trustline: number;
6
+ asset_code: string;
7
+ description: string;
8
+ asset_issuer: string;
9
+ is_verified: boolean;
10
+ }
11
+ declare const getAssetLogos: (balanceLines: Horizon.HorizonApi.BalanceLine[]) => Promise<never[]>;
12
+ export default getAssetLogos;
@@ -1,4 +1,4 @@
1
- import { ITransports } from "../../types";
2
- import { NetworkDetails } from "../../constants/networkDetails";
1
+ import { ITransports } from '../../types';
2
+ import { NetworkDetails } from '../../constants/networkDetails';
3
3
  declare const getNetworkRpc: (network: string, transports: ITransports) => NetworkDetails;
4
4
  export default getNetworkRpc;
@@ -0,0 +1,2 @@
1
+ declare const getActiveNetworkTitle: (activeNetwork: string) => string;
2
+ export default getActiveNetworkTitle;
@@ -0,0 +1,4 @@
1
+ import { Horizon } from '@stellar/stellar-sdk';
2
+ import { IAsset } from '../../types';
3
+ declare const paymentTransaction: (memo: string, amount: string, destinationAddress: string, asset: IAsset, sourceAddress: string, server: Horizon.Server, networkPassphrase: string) => Promise<string>;
4
+ export default paymentTransaction;
@@ -0,0 +1,2 @@
1
+ import { WalletInterface } from '../../types';
2
+ export declare const hotConfig: WalletInterface;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bluxcc/react",
3
3
  "author": "Blux team",
4
- "version": "0.1.18",
4
+ "version": "0.1.20",
5
5
  "homepage": "https://blux.cc",
6
6
  "description": "Connecting to the Stellar Ecosystem and Beyond",
7
7
  "repository": {
@@ -31,7 +31,6 @@
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@albedo-link/intent": "^0.12.0",
34
- "@creit.tech/xbull-wallet-connect": "^0.3.0",
35
34
  "@lobstrco/signer-extension-api": "^1.0.0-beta.0",
36
35
  "@stellar/freighter-api": "^3.0.0",
37
36
  "@stellar/stellar-sdk": "^13.1.0",
@@ -40,26 +39,29 @@
40
39
  },
41
40
  "devDependencies": {
42
41
  "@eslint/js": "^9.17.0",
42
+ "@rollup/plugin-alias": "^5.1.1",
43
43
  "@rollup/plugin-commonjs": "^28.0.2",
44
+ "@rollup/plugin-json": "^6.1.0",
44
45
  "@rollup/plugin-node-resolve": "^16.0.0",
45
46
  "@rollup/plugin-terser": "^0.4.4",
46
47
  "@rollup/plugin-typescript": "^12.1.2",
48
+ "@tailwindcss/postcss": "^4.1.6",
47
49
  "@types/react": "^19.0.2",
48
50
  "@types/react-dom": "^19.0.2",
49
51
  "@typescript-eslint/eslint-plugin": "^8.19.1",
50
52
  "@typescript-eslint/parser": "^8.19.1",
51
- "autoprefixer": "^10.4.20",
52
53
  "eslint": "^9.17.0",
53
54
  "eslint-plugin-react": "^7.37.3",
54
55
  "eslint-plugin-react-hooks": "^5.1.0",
55
56
  "globals": "^15.14.0",
56
- "postcss": "^8.4.49",
57
+ "postcss": "^8.5.3",
57
58
  "prettier": "^3.5.3",
58
59
  "prettier-plugin-tailwindcss": "^0.6.11",
59
60
  "rollup": "^4.29.1",
60
61
  "rollup-plugin-peer-deps-external": "^2.2.4",
61
62
  "rollup-plugin-postcss": "^4.0.2",
62
- "tailwindcss": "^3.4.17",
63
+ "tailwindcss": "^4.1.6",
64
+ "tslib": "^2.8.1",
63
65
  "typescript": "^5.7.2",
64
66
  "typescript-eslint": "^8.19.1"
65
67
  },
@@ -69,5 +71,8 @@
69
71
  },
70
72
  "sideEffects": [
71
73
  "*.css"
72
- ]
74
+ ],
75
+ "dependencies": {
76
+ "@hot-wallet/sdk": "^1.0.11"
77
+ }
73
78
  }