Skip to content

Commit 40d67c6

Browse files
Eth client (#285)
* feat: add eth client
1 parent e53fda7 commit 40d67c6

File tree

27 files changed

+3479
-367
lines changed

27 files changed

+3479
-367
lines changed

package-lock.json

Lines changed: 914 additions & 256 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/babylon-wallet-connector/src/core/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,15 @@ export interface IETHProvider extends IProvider {
180180
* @param eventName - The name of the event to listen for
181181
* @param handler - The callback function to be executed when the event occurs
182182
*/
183+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
183184
on(eventName: string, handler: Function): void;
184185

185186
/**
186187
* Unregisters an event listener for the specified event
187188
* @param eventName - The name of the event to listen for
188189
* @param handler - The callback function to be executed when the event occurs
189190
*/
191+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
190192
off(eventName: string, handler: Function): void;
191193
}
192194

routes/vault/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"dependencies": {
2626
"@babylonlabs-io/core-ui": "*",
2727
"@babylonlabs-io/wallet-connector": "*",
28+
"@wagmi/core": "^2.16.3",
2829
"react-router": "7.6.3",
2930
"viem": "^2.37.9"
3031
},

routes/vault/src/VaultLayout.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
import { useAppKitBridge } from "@babylonlabs-io/wallet-connector";
12
import { Borrow } from "./components/ui";
23

4+
// TODO: Uncomment this when we have a way to test the contract queries
5+
// import ContractQueryExample from "./components/examples/ContractQueryExample";
6+
37
export default function VaultLayout() {
8+
// Initialize AppKit bridge for ETH wallet connection
9+
useAppKitBridge();
10+
411
return (
512
<div className="container mx-auto flex max-w-[760px] flex-1 flex-col gap-12 px-4">
13+
{/* <ContractQueryExample /> */}
614
<Borrow />
715
</div>
816
);

0 commit comments

Comments
 (0)