Skip to content

Commit ae221c4

Browse files
committed
demo: turnkey fe wallets
1 parent 722aac5 commit ae221c4

File tree

17 files changed

+1447
-1346
lines changed

17 files changed

+1447
-1346
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.18.1
1+
20

packages/demo/backend/src/types/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface WalletData {
1212
/** Wallet address */
1313
address: Address
1414
/** Wallet ID */
15-
id: string
15+
// id: string
1616
}
1717

1818
/**

packages/demo/frontend/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"@eth-optimism/verbs-service": "workspace:*",
2323
"@eth-optimism/viem": "^0.4.13",
2424
"@privy-io/react-auth": "^2.24.0",
25+
"@turnkey/react-wallet-kit": "^1.1.2",
2526
"buffer": "^6.0.3",
27+
"eventemitter3": "^5",
2628
"react": "^18",
2729
"react-dom": "^18",
2830
"react-router": "7",
@@ -31,6 +33,7 @@
3133
"zod": "^4.0.5"
3234
},
3335
"devDependencies": {
36+
"@tailwindcss/postcss": "^4.1.13",
3437
"@testing-library/jest-dom": "^6.1.4",
3538
"@testing-library/react": "^14.1.2",
3639
"@testing-library/user-event": "^14.5.1",
@@ -44,7 +47,8 @@
4447
"globals": "^15.0.0",
4548
"jsdom": "^23.0.1",
4649
"postcss": "^8.4.31",
47-
"tailwindcss": "^3.3.3",
50+
"postcss-import": "^16.1.1",
51+
"tailwindcss": "^4.1.13",
4852
"typescript": "^5.2.2",
4953
"typescript-eslint": "^8.0.0",
5054
"vite": "^4.4.5",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
/** @type {import('postcss-load-config').Config} */
12
export default {
23
plugins: {
3-
tailwindcss: {},
44
autoprefixer: {},
5+
'@tailwindcss/postcss': {},
56
},
67
}

packages/demo/frontend/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
22
import Terminal from './components/Terminal'
33
import Home from './components/Home'
4-
import { PrivyProvider } from './providers/PrivyProvider'
4+
import { Turnkey as TurnkeyProvider } from './providers/TurnkeyProvider'
55

66
function App() {
77
return (
8-
<PrivyProvider>
8+
<TurnkeyProvider>
99
<Router>
1010
<div className="w-full h-screen bg-terminal-bg">
1111
<Routes>
@@ -14,7 +14,7 @@ function App() {
1414
</Routes>
1515
</div>
1616
</Router>
17-
</PrivyProvider>
17+
</TurnkeyProvider>
1818
)
1919
}
2020

0 commit comments

Comments
 (0)