Skip to content

Commit

Permalink
Ink mainnet chain page update (#5806)
Browse files Browse the repository at this point in the history
## Problem solved

Update Ink Mainnet Chain Page
Add OP Superchain Application CTA to chain page

Linear Issues:
INFRA-520

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new blockchain entry for `Ink` in the dashboard, including the addition of an image asset and relevant metadata.

### Detailed summary
- Added `inkBanner.jpg` to the project assets.
- Updated `ApplyForOpCreditsForm.tsx` to include `Ink` in the chain options.
- Enhanced `utils.ts` with `Ink` metadata, including:
  - `headerImgUrl`: set to `inkBanner.src`
  - `about` description for `Ink`
  - `cta` and `gasSponsored` attributes set to true.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
  • Loading branch information
DustinTurska committed Dec 19, 2024
1 parent cfc1398 commit df03dbd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions apps/dashboard/src/app/(dashboard)/(chain)/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import funkiBanner from "./temp-assets/funkiBanner.jpg";
import funkiCTA from "./temp-assets/funkiCTA.jpg";
import hashfireBanner from "./temp-assets/hashfireBanner.png";
import hashfireCTA from "./temp-assets/hashfireCTA.png";
import inkBanner from "./temp-assets/inkBanner.jpg";
import laosBanner from "./temp-assets/laosBanner.jpg";
import laosCTA from "./temp-assets/laosCTA.jpg";
import liskBanner from "./temp-assets/liskBanner.png";
Expand Down Expand Up @@ -221,6 +222,14 @@ const chainMetaRecord = {
cta: OP_CTA,
gasSponsored: true,
},
// Ink
57073: {
headerImgUrl: inkBanner.src,
about:
"Ink is an Ethereum OP Stack layer 2 blockchain designed to be the house of DeFi for the Superchain, a powerful base layer for deploying innovative DeFi protocols.",
cta: OP_CTA,
gasSponsored: true,
},
// vanar
2040: {
headerImgUrl: vanarBanner.src,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export const ApplyForOpCreditsForm: React.FC<ApplyForOpCreditsFormProps> = ({
"Lisk",
"Arena-Z",
"Superseed",
"Ink",
].map((chain) => ({
label: chain === "Optimism" ? "OP Mainnet" : chain,
value: chain,
Expand Down

0 comments on commit df03dbd

Please sign in to comment.