-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
241 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Link } from "react-daisyui"; | ||
import { shortTransaction } from "utils/shortTransaction"; | ||
|
||
export const EtherScanLink = ({ hash }: { hash: `0x${string}` }) => { | ||
return ( | ||
<Link | ||
href={`https://holesky.etherscan.io/tx/${hash}`} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="text-primary" | ||
> | ||
{shortTransaction(hash)} | ||
</Link> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 0 additions & 99 deletions
99
frontend/src/components/homePage/modals/createDepositForm.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Event } from "types/events"; | ||
import { useEvents } from "./useEvents"; | ||
export const useDepositCreatedEvents = () => { | ||
return useEvents({ | ||
eventKind: Event.DEPOSIT_CREATED, | ||
key: "depositCreatedEvents", | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { merge } from "rxjs"; | ||
import { useDepositReleasedEvents } from "./useDepositReleasedEvents"; | ||
import { useDepositCreatedEvents } from "./useDepositCreatedEvents"; | ||
|
||
export const useDepositEvents = () => { | ||
const { events$: depositCreatedEvents$ } = useDepositCreatedEvents(); | ||
const { events$: depositReleasedEvents$ } = useDepositReleasedEvents(); | ||
|
||
return { | ||
events$: merge(depositReleasedEvents$, depositCreatedEvents$), | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Event } from "types/events"; | ||
import { useEvents } from "./useEvents"; | ||
export const useDepositReleasedEvents = () => { | ||
return useEvents({ | ||
eventKind: Event.DEPOSIT_CREATED, | ||
key: "allocationCreatedEvents", | ||
}); | ||
}; |
Oops, something went wrong.