Skip to content

Commit

Permalink
Merge pull request #252 from zkLinkProtocol/feat/scroll
Browse files Browse the repository at this point in the history
Feat/scroll
  • Loading branch information
leochw authored Jun 11, 2024
2 parents 27f325b + 54ee2f9 commit 46dbb8a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 15 deletions.
4 changes: 2 additions & 2 deletions components/header/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<img src="/img/portal-banner-mobile.png" className="mobileImg" />
</a>
</swiper-slide>
<swiper-slide>
<!-- <swiper-slide>
<a href="https://www.binance.com/en/activity/mission/zklink-nova-airdrop" target="\_blank">
<img src="/img/banner-binance-zkl@2x.png" className="bannerImg" />
<img src="/img/banner-binance-zkl-mobile.png" className="mobileImg" />
</a>
</swiper-slide>
</swiper-slide> -->
</swiper>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion components/transaction/DepositThirdPartyBridge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const handleLink = (link: string) => {
const ThirdPartyBridges = [
{
name: "Free (Official Bridge of Merlin Chain)",
name: "Free",
logo: "/img/Free.svg",
url: "https://free.tech/zklink",
desc: "Bridge M-BTC and solvBTC from Merlin to earn 1.5x Nova Points",
Expand Down
24 changes: 23 additions & 1 deletion data/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
sepolia,
zkSync,
zkSyncSepoliaTestnet,
scroll,
} from "@wagmi/core/chains";
import { defineChain } from "viem";

Expand Down Expand Up @@ -53,7 +54,7 @@ export const mantaSepolia = /*#__PURE__*/ defineChain({
address: "0x5Be4F807e0ae836Fc754dDEDDd72c0F4A28C8d43",
blockCreated: 468626,
},
}
},
});

export const l1Networks = {
Expand Down Expand Up @@ -144,6 +145,10 @@ export const l1Networks = {
...base,
name: "Base Mainnet",
},
scroll: {
...scroll,
name: "Scroll Mainnet",
},
baseSepoliaTestnet: {
...baseSepolia,
name: "Base Sepolia Testnet",
Expand Down Expand Up @@ -326,6 +331,23 @@ export const nexusNode: ZkSyncNetwork[] = [
l1Network: l1Networks.base,
wethContract: ["0x4200000000000000000000000000000000000006"],
},
{
id: 810180,
key: "scroll",
name: "zkLink Nova",
rpcUrl: "https://rpc.zklink.io",
logoUrl: "/img/scroll.svg",
blockExplorerUrl: "https://explorer.zklink.io",
blockExplorerApi: "https://explorer-api.zklink.io",
withdrawalFinalizerApi: "https://withdrawal-api.zklink.io",
mainContract: "0x119B9459D9119D07c23aD06778AeaBec804Fd1a2",
erc20BridgeL1: "0x3C7c0ebFCD5786ef48df5ed127cdDEb806db976c",
erc20BridgeL2: "0xa03248B029b4e348F156f4b1d93CB433a4e1361e",
l1Gateway: "0xC97c5E43c14D4F524347795410C299db1FA331b3",
isEthGasToken: true,
l1Network: l1Networks.scroll,
wethContract: ["0x5300000000000000000000000000000000000004"],
},
];

export const nexusGoerliNode: ZkSyncNetwork[] = [
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default defineNuxtConfig({
icons: [
{
src: "icon.png",
sizes: "180",
sizes: "180x180",
type: "image/png",
},
],
Expand Down
1 change: 1 addition & 0 deletions public/img/scroll.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 1 addition & 10 deletions views/transactions/Deposit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@
</div>
</div>

<div class="mb-[10px]" v-else-if="route.query?.s === 'binance'">
<!-- <img src="/img/okx-cryptopedia.svg" class="h-[64px] w-[64px] rounded-[8px]" /> -->
<div class="z-2">
<img src="/img/banner-binance@2x.png" class="block hidden w-full md:block" />
<img src="/img/banner-binance-mobile@2x.png" class="block block w-full md:hidden" />
</div>
</div>

<PageTitle v-if="step === 'form'">{{ pageTitle }}</PageTitle>
<PageDesc v-if="step === 'form' && pageDesc">{{ pageDesc }}</PageDesc>
<PageTitle v-if="step === 'form'">Deposit</PageTitle>
<PageTitle
v-else-if="step === 'confirm'"
:back-function="
Expand Down

0 comments on commit 46dbb8a

Please sign in to comment.