-
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.
* use proofs endpoint WIP * map _id to eventId * add options for _id & eventId * remove `sendHistoricalWithdrawEthereumRequest` * use for fresh & historic withdrawEthereum requests * use `sendWithdrawEthereumRequest` * auto expand advanced if some unclaimed withdrawals
- Loading branch information
1 parent
231df2f
commit 850cad7
Showing
7 changed files
with
75 additions
and
37 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
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,14 @@ | ||
import { BRIDGE_RELAYER_URL } from "@/constants"; | ||
import { HistoricalEventProof } from "@/types"; | ||
|
||
export default async function fetchUnclaimedEventProof( | ||
eventProofId: number | ||
): Promise<HistoricalEventProof> { | ||
return await fetch(`${BRIDGE_RELAYER_URL}/proofs/${eventProofId}`) | ||
.then((response) => { | ||
if (!response.ok) throw new Error("No event proof found"); | ||
|
||
return response.json(); | ||
}) | ||
.catch((err) => console.log(err.message)); | ||
} |
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