Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 202 additions & 8 deletions bun.lock

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
"devDependencies": {
"@eslint/compat": "^1.2.5",
"@eslint/js": "^9.18.0",
"@playwright/test": "^1.55.0",
"@rollup/plugin-inject": "^5.0.5",
"@sveltejs/kit": "^2.16.0",
"@sveltejs/vite-plugin-svelte": "^6.1.1",
"@tailwindcss/vite": "^4.0.0",
"@types/bun": "^1.3.8",
"@playwright/test": "^1.55.0",
"drizzle-kit": "^0.31.9",
"dotenv": "^17.2.3",
"eslint": "^9.18.0",
Expand All @@ -46,14 +47,21 @@
"vite": "^7.1.1"
},
"dependencies": {
"@lifi/intent": "0.0.3-alpha.1",
"@coral-xyz/anchor": "^0.32.1",
"@electric-sql/pglite": "^0.3.15",
"@lifi/intent": "file:../intent.ts",
"@metamask/sdk": "^0.34.0",
"@solana/wallet-adapter-base": "^0.9.27",
"@solana/wallet-adapter-phantom": "^0.9.28",
"@solana/wallet-adapter-solflare": "^0.6.32",
"@solana/web3.js": "^1.98.4",
"@sveltejs/adapter-cloudflare": "^7.0.3",
"@wagmi/connectors": "^7.2.1",
"@wagmi/core": "^3.4.0",
"axios": "^1.9.0",
"base64-js": "^1.5.1",
"bs58": "^6.0.0",
"buffer": "^6.0.3",
"drizzle-orm": "^0.45.1",
"rxjs": "^7.8.2",
"viem": "~2.45.1",
Expand Down
6 changes: 6 additions & 0 deletions src/hooks.client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Buffer } from "buffer";
// Buffer is not available in browser environments by default.
// Polyfill it globally so Solana/Anchor libraries that depend on Node's Buffer
// can run client-side. This hook runs only in the browser (never SSR), which
// is the correct place for browser-only globals.
globalThis.Buffer = Buffer;
Loading
Loading