Skip to content

Commit d5d8e98

Browse files
committed
Proper way to build + import hyle-wallet
1 parent 14308e9 commit d5d8e98

26 files changed

+130
-4940
lines changed

front/bun.lockb

25.5 KB
Binary file not shown.

front/package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "hyle-wallet",
2+
"name": "hyle-wallet-front",
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",
@@ -17,24 +17,25 @@
1717
"elliptic": "^6.6.1",
1818
"hyle": "^0.2.5",
1919
"hyle-check-secret": "^0.3.2",
20+
"hyle-wallet": "file:../hyle-wallet",
2021
"react": "^19.1.0",
2122
"react-dom": "^19.1.0",
22-
"react-router-dom": "^7.5.0"
23+
"react-router-dom": "^7.6.0"
2324
},
2425
"devDependencies": {
25-
"@eslint/js": "^9.24.0",
26-
"@types/react": "^19.1.2",
27-
"@types/react-dom": "^19.1.2",
28-
"@vitejs/plugin-react": "^4.4.0",
26+
"@eslint/js": "^9.26.0",
27+
"@types/react": "^19.1.4",
28+
"@types/react-dom": "^19.1.5",
29+
"@vitejs/plugin-react": "^4.4.1",
2930
"autoprefixer": "^10.4.21",
30-
"eslint": "^9.24.0",
31+
"eslint": "^9.26.0",
3132
"eslint-plugin-react-hooks": "^5.2.0",
32-
"eslint-plugin-react-refresh": "^0.4.19",
33-
"globals": "^15.15.0",
33+
"eslint-plugin-react-refresh": "^0.4.20",
34+
"globals": "^16.1.0",
3435
"postcss": "^8.5.3",
35-
"tailwindcss": "^4.1.4",
36-
"typescript": "~5.7.3",
37-
"typescript-eslint": "^8.30.1",
38-
"vite": "^6.2.6"
36+
"tailwindcss": "^4.1.6",
37+
"typescript": "~5.8.3",
38+
"typescript-eslint": "^8.32.1",
39+
"vite": "^6.3.5"
3940
}
4041
}

front/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { useWalletBalance } from './hooks/useWalletBalance';
66
import { useWalletTransactions } from './hooks/useWalletTransactions';
77
import { useWebSocketConnection } from './hooks/useWebSocketConnection';
88
import { getPublicRoutes, getProtectedRoutes, ROUTES } from './routes/routes';
9-
import { WalletProvider, useWallet } from 'hyle-wallet/src';
10-
import { useConfig } from 'hyle-wallet/src/hooks/useConfig';
9+
import { WalletProvider, useWallet } from 'hyle-wallet';
10+
import { useConfig } from 'hyle-wallet';
1111
import { LoadingErrorState } from './components/common/LoadingErrorState';
1212

1313
function AppContent() {

front/src/components/WalletShowcase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { HyleWallet } from 'hyle-wallet/src';
2+
import { HyleWallet } from 'hyle-wallet';
33
import { useLocation } from 'react-router-dom';
44

55
type ProviderOption = 'password' | 'google' | 'github';

front/src/components/layout/WalletLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Outlet, useNavigate, useLocation } from 'react-router-dom';
2-
import { Wallet } from 'hyle-wallet/src';
2+
import { Wallet } from 'hyle-wallet';
33

44
interface WalletLayoutProps {
55
wallet: Wallet;

front/src/components/wallet/Balance.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Wallet } from 'hyle-wallet/src';
1+
import { Wallet } from 'hyle-wallet';
22

33
interface BalanceProps {
44
wallet: Wallet;

front/src/components/wallet/History.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Transaction } from 'hyle-wallet/src';
1+
import { Transaction } from 'hyle-wallet';
22

33
interface HistoryProps {
44
transactions: Transaction[];

front/src/components/wallet/Send.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from 'react';
2-
import { Transaction, verifyIdentity, Wallet } from 'hyle-wallet/src';
2+
import { Transaction, verifyIdentity, Wallet } from 'hyle-wallet';
33
import { blob_builder, BlobTransaction } from 'hyle'
44
import { build_proof_transaction, build_blob as check_secret_blob } from 'hyle-check-secret';
55
import { nodeService } from '../../services/NodeService';

front/src/components/wallet/SessionKeys.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { useState, useEffect } from 'react';
2-
import { Wallet, addSessionKey, removeSessionKey } from 'hyle-wallet/src';
2+
import { Wallet, addSessionKey, removeSessionKey } from 'hyle-wallet';
33
import { nodeService } from '../../services/NodeService';
44
import { indexerService } from '../../services/IndexerService';
55
import { webSocketService } from '../../services/WebSocketService';
6-
import { useSessionKey } from 'hyle-wallet/src/hooks/useSessionKey';
6+
import { useSessionKey, walletContractName } from 'hyle-wallet';
77
import { build_proof_transaction, build_blob as check_secret_blob } from 'hyle-check-secret';
88
import { BlobTransaction } from 'hyle';
99
import './SessionKeys.css';
10-
import { walletContractName } from 'hyle-wallet/src/types/wallet';
1110

1211
interface SessionKeysProps {
1312
wallet: Wallet;

front/src/hooks/useWalletTransactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useEffect, useCallback } from 'react';
2-
import { Transaction } from 'hyle-wallet/src';
2+
import { Transaction } from 'hyle-wallet';
33
import { indexerService } from '../services/IndexerService';
44
import { AppEvent } from '../services/WebSocketService';
55

0 commit comments

Comments
 (0)