diff --git a/apps/web/src/app/(routes)/bridge/_components/BridgingQuestBanner.tsx b/apps/web/src/app/(routes)/bridge/_components/BridgingQuestBanner.tsx index cc351726..3fa7c2f7 100644 --- a/apps/web/src/app/(routes)/bridge/_components/BridgingQuestBanner.tsx +++ b/apps/web/src/app/(routes)/bridge/_components/BridgingQuestBanner.tsx @@ -32,7 +32,9 @@ export default function BridgingQuestBanner({ View quests diff --git a/apps/web/src/app/(routes)/bridge/_components/SmallBridgingQuestBanner.tsx b/apps/web/src/app/(routes)/bridge/_components/SmallBridgingQuestBanner.tsx index 1e79e917..ed87e485 100644 --- a/apps/web/src/app/(routes)/bridge/_components/SmallBridgingQuestBanner.tsx +++ b/apps/web/src/app/(routes)/bridge/_components/SmallBridgingQuestBanner.tsx @@ -17,7 +17,8 @@ export default function SmallBridgingQuestBanner({ className, "rounded-2xl bg-galaxy-blue pt-4 text-white dark:bg-void-black" )} - href="/" + href="https://quests.arkproject.dev/" + rel="noreferrer" target="_blank" >
diff --git a/apps/web/src/app/(routes)/lounge/_components/CongratsModal.tsx b/apps/web/src/app/(routes)/lounge/_components/CongratsModal.tsx index 86995b89..fb823e29 100644 --- a/apps/web/src/app/(routes)/lounge/_components/CongratsModal.tsx +++ b/apps/web/src/app/(routes)/lounge/_components/CongratsModal.tsx @@ -64,7 +64,9 @@ function ArkQuestsBanner({ className }: ArkQuestsBannerProps) { Check your progress @@ -218,7 +220,7 @@ export default function CongratsModal({ isFromTransfer }: CongratsModalProps) { diff --git a/apps/web/src/app/(routes)/lounge/_components/NftTransferItem.tsx b/apps/web/src/app/(routes)/lounge/_components/NftTransferItem.tsx index 1db0d162..45539ffb 100644 --- a/apps/web/src/app/(routes)/lounge/_components/NftTransferItem.tsx +++ b/apps/web/src/app/(routes)/lounge/_components/NftTransferItem.tsx @@ -34,6 +34,7 @@ interface NftTransferItemProps { | "withdraw_completed_l2"; tokenIds: Array; totalCount: number; + txHash?: string; } function getDisplayedDate(timestamp?: number) { @@ -63,6 +64,7 @@ export default function NftTransferItem({ status, tokenIds, totalCount, + txHash, }: NftTransferItemProps) { const [open, setOpen] = useState(false); const [withdrawModalOpen, setWithdrawModalOpen] = useState(false); @@ -145,19 +147,57 @@ export default function NftTransferItem({
- {status === "withdraw_available_l1" && ( + {status === "withdraw_available_l1" ? ( setWithdrawModalOpen(true)} requestContent={requestContent} /> - )} + ) : status === "withdraw_completed_l1" || + status === "withdraw_completed_l2" ? ( +
+ {arrivalChain === "Ethereum" ? ( + + + View on Etherscan + + + ) : ( + <> + + + View on Voyager + + + + + View on Starkscan + + + + )} +
+ ) : null}
- - - + {totalCount > 1 && ( + + + + )} ); })} @@ -183,6 +184,7 @@ export default function NftTransferList({ status={bridgeRequest.status} tokenIds={bridgeRequest.tokenIds} totalCount={bridgeRequest.totalCount} + txHash={bridgeRequest.txHash} /> ); })} diff --git a/apps/web/src/app/(routes)/page.tsx b/apps/web/src/app/(routes)/page.tsx index 1ea9b7d0..b92bd5a2 100644 --- a/apps/web/src/app/(routes)/page.tsx +++ b/apps/web/src/app/(routes)/page.tsx @@ -36,7 +36,12 @@ export default function Page() { Bridging is an ArkProject Quest - + - Collection owner + Submit Collection diff --git a/apps/web/src/server/api/routers/bridgeRequest.ts b/apps/web/src/server/api/routers/bridgeRequest.ts index 5e8e4d85..7137caec 100644 --- a/apps/web/src/server/api/routers/bridgeRequest.ts +++ b/apps/web/src/server/api/routers/bridgeRequest.ts @@ -60,6 +60,7 @@ type BridgeRequestResponse = { statusTimestamp: number; tokenIds: Array; totalCount: number; + txHash?: string; }; export const bridgeRequestRouter = createTRPCRouter({ @@ -184,6 +185,7 @@ export const bridgeRequestRouter = createTRPCRouter({ statusTimestamp: lastBridgeRequestEvent?.block_timestamp ?? 0, tokenIds: bridgeRequest.token_ids, totalCount: bridgeRequest.token_ids.length, + txHash: lastBridgeRequestEvent?.tx_hash, }; } );