Skip to content

Commit

Permalink
fix: wip: agw
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Dec 16, 2024
1 parent 4df84f7 commit 9e2bbea
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 11 deletions.
2 changes: 2 additions & 0 deletions lib/hooks/ethereum/EthereumProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client';

import { abstractWalletConnector } from '@abstract-foundation/agw-react/connectors';
import { useCsrRouter } from 'lib/i18n/csr-navigation';
import { usePathname } from 'lib/i18n/navigation';
import { ORDERED_CHAINS, createViemPublicClientForChain, getViemChainConfig } from 'lib/utils/chains';
Expand All @@ -26,6 +27,7 @@ export const connectors = [
},
}),
coinbaseWallet({ appName: 'Revoke.cash' }),
abstractWalletConnector(),
];

export const wagmiConfig = createConfig({
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@
},
"private": true,
"dependencies": {
"@abstract-foundation/agw-client": "^0.0.1-beta.22",
"@abstract-foundation/agw-react": "^0.0.1-beta.22",
"@dotenvx/dotenvx": "^1.14.2",
"@headlessui/react": "^2.1.2",
"@heroicons/react": "^2.1.5",
"@neondatabase/serverless": "^0.10.1",
"@privy-io/cross-app-connect": "^0.0.8",
"@revoke.cash/chains": "^56.0.0",
"@tanstack/query-sync-storage-persister": "^5.52.0",
"@tanstack/react-query": "^5.52.0",
Expand Down Expand Up @@ -77,6 +80,7 @@
"@cypress/grep": "^4.1.0",
"@lavamoat/allow-scripts": "^3.2.0",
"@localazy/cli": "^1.7.14",
"@rainbow-me/rainbowkit": "^2.2.1",
"@tailwindcss/typography": "^0.5.14",
"@types/md5": "^2.3.5",
"@types/mixpanel-browser": "^2.49.1",
Expand Down Expand Up @@ -111,15 +115,16 @@
"lavamoat": {
"allowScripts": {
"$root$": true,
"@abstract-foundation/agw-react>secp256k1": false,
"@biomejs/biome": true,
"@vercel/speed-insights": false,
"cypress": true,
"sharp": true,
"tsx>esbuild": true,
"viem>ws>bufferutil": true,
"viem>ws>utf-8-validate": true,
"wagmi>@wagmi/connectors>cbw-sdk>keccak": false,
"wagmi>@wagmi/connectors>@metamask/sdk>eciesjs>secp256k1": false,
"@biomejs/biome": true
"wagmi>@wagmi/connectors>@metamask/sdk>eciesjs>secp256k1": false
}
},
"mocha": {
Expand Down
Loading

0 comments on commit 9e2bbea

Please sign in to comment.