Skip to content

Commit

Permalink
feat: update addresses and logo
Browse files Browse the repository at this point in the history
  • Loading branch information
zkSoju committed May 3, 2023
1 parent 7c0241d commit 64ac5af
Show file tree
Hide file tree
Showing 10 changed files with 385 additions and 1,086 deletions.
10 changes: 5 additions & 5 deletions components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { ConnectButton } from "@rainbow-me/rainbowkit";
import React from "react";
import { CustomConnectButton } from "./CustomConnectButton";
import Image from "next/image";
import { FaGithub, FaTwitter } from "react-icons/fa";
import { GiPeaceDove } from "react-icons/gi";
import { CustomConnectButton } from "./CustomConnectButton";

const Navbar = () => {
return (
<div className="fixed z-50 flex w-full justify-center">
<div className="flex w-full items-center justify-between px-8 py-8">
<GiPeaceDove className="text-3xl text-white" />
<div className="relative h-16 w-24">
<Image src="/logo_text.png" fill alt="" className="object-contain" />
</div>
<div className="flex items-center space-x-4">
<CustomConnectButton />
<a href="https://github.com/whitenois3" target="_blank">
Expand Down
8 changes: 5 additions & 3 deletions components/TabContentContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import Image from "next/image";
import React from "react";
import { BiCheck, BiCheckDouble } from "react-icons/bi";
import { GiPeaceDove } from "react-icons/gi";
import { BiCheckDouble } from "react-icons/bi";

const TabContentContainer = ({ children }: { children: React.ReactNode }) => {
return (
<>
<div className="relative flex w-full flex-col p-2">{children}</div>
<div className="mb-2 h-px w-full bg-white/5" />
<div className="mb-2 flex w-full items-start justify-between px-4 py-1">
<GiPeaceDove className="text-white/10" />
<div className="relative h-4 w-4">
<Image src="/logo.png" fill alt="" className="object-cover" />
</div>
<div className="flex items-center">
<BiCheckDouble className="mr-2 text-sky-400" />
<p className="text-xs text-white/50">Health Factor</p>
Expand Down
8 changes: 6 additions & 2 deletions components/UnsupportedNetworkContent.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GiPeaceDove } from "react-icons/gi";
import Image from "next/image";
import { useAccount, useSwitchNetwork } from "wagmi";
import { ChainId } from "../sdk";
import { SUPPORTED_CHAIN_NAMES } from "../sdk/constants/chains";
Expand Down Expand Up @@ -34,7 +34,11 @@ const UnsupportedNetworkContent = () => {
<TabContentContainer>
<div className="flex flex-col">
<div className="mb-4 flex flex-col items-start justify-start">
<GiPeaceDove className="mb-2 rounded-sm border border-white/10 p-2 text-4xl text-white" />
<div className="relative mb-2 rounded-sm border border-white/10 p-2 text-white">
<div className="relative h-8 w-8">
<Image src="/logo.png" fill alt="" className="object-cover" />
</div>
</div>
<div className="flex flex-col">
<h4 className="text-white">Dove Protocol</h4>
<p className=" text-xs text-white/50">
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@radix-ui/react-switch": "^1.0.1",
"@radix-ui/react-tabs": "^1.0.1",
"@radix-ui/react-toast": "^1.1.2",
"@rainbow-me/rainbowkit": "^0.11.0",
"@rainbow-me/rainbowkit": "^0.12.12",
"@types/node": "^17.0.21",
"@types/react": "^17.0.39",
"@wagmi/cli": "^0.1.11",
Expand All @@ -37,7 +37,7 @@
"toformat": "^2.0.0",
"typescript": "^4.5.5",
"viem": "^0.1.22",
"wagmi": "^0.11.0",
"wagmi": "^0.12.12",
"zustand": "^3.7.0"
},
"devDependencies": {
Expand Down
9 changes: 7 additions & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ import {
import "@rainbow-me/rainbowkit/styles.css";
import { AnimatePresence } from "framer-motion";
import { AppProps } from "next/app";
import { WagmiConfig, configureChains, createClient, goerli } from "wagmi";
import { arbitrumGoerli, avalancheFuji, polygonMumbai } from "wagmi/chains";
import { WagmiConfig, configureChains, createClient } from "wagmi";
import {
arbitrumGoerli,
avalancheFuji,
goerli,
polygonMumbai,
} from "wagmi/chains";
import { alchemyProvider } from "wagmi/providers/alchemy";
import { jsonRpcProvider } from "wagmi/providers/jsonRpc";
import { ChainId } from "../sdk";
Expand Down
3 changes: 2 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import Image from "next/image";
import { useEffect, useRef, useState } from "react";
import { BiArrowToRight, BiCog, BiHistory } from "react-icons/bi";
import { GiPeaceDove } from "react-icons/gi";
import { goerli, useNetwork, useSwitchNetwork } from "wagmi";
import { useNetwork, useSwitchNetwork } from "wagmi";
import { goerli } from "wagmi/chains";
import AmmTabContent from "../components/AmmTabContent";
import DammTabContent from "../components/DammTabContent";
import HistoryTabContent from "../components/HistoryTabContent";
Expand Down
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo_text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions sdk/constants/addresses.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
import { ChainId } from "../enums/chainId";

export const L1_ROUTER_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.ETHEREUM_GOERLI]: "0x5Aebb6E8f23782Af574232D5E0eA95Ec1EEa3587",
[ChainId.ETHEREUM_GOERLI]: "0x47a7aD7F8a617BF4f4a0cA588fEE7390F9869bC0",
[ChainId.ARBITRUM_GOERLI]: "",
[ChainId.POLYGON_MUMBAI]: "",
[ChainId.AVALANCHE_FUJI]: "",
};

export const L2_ROUTER_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.ETHEREUM_GOERLI]: "",
[ChainId.ARBITRUM_GOERLI]: "0x0eCd916D0DD87433bf2772D8d6363c7A770a5Ab5",
[ChainId.POLYGON_MUMBAI]: "0xa9582De37b16C0d28E89c2F02a66692642F3B487",
[ChainId.AVALANCHE_FUJI]: "0x0656AB5c74a804076ce027ae5BB3eF91dc45f665",
[ChainId.ARBITRUM_GOERLI]: "0xF475ceb78C0e2F49784eFAe8c3BcA993B74aB988",
[ChainId.POLYGON_MUMBAI]: "0xD50853D8D7570b462D0fd109b918D3327a7fB4c7",
[ChainId.AVALANCHE_FUJI]: "0xD24D109675D73a09B4E56581beD3943eDfc3D642",
};

export const DOVE_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.ETHEREUM_GOERLI]: "0x4cEe61a7641390b71225cD64FB6cE7CA30E7e151",
[ChainId.ETHEREUM_GOERLI]: "0x5e2d96cc6a8490e75b8308a2aeb1653793124b91",
[ChainId.ARBITRUM_GOERLI]: "",
[ChainId.POLYGON_MUMBAI]: "",
[ChainId.AVALANCHE_FUJI]: "",
};

export const PAIR_ADDRESS: { [chainId in ChainId]: string } = {
[ChainId.ETHEREUM_GOERLI]: "",
[ChainId.ARBITRUM_GOERLI]: "0xD348BcCdbB17d7ff2A3D48952aa4f2886F151256",
[ChainId.POLYGON_MUMBAI]: "0xDA3fEC084E9958268F650dA21817860ba2D2988d",
[ChainId.AVALANCHE_FUJI]: "0x3c30d2c818ad1fe7B44595A3CF264A97dcE566cE",
[ChainId.ARBITRUM_GOERLI]: "0xCD73e9D7F975d4Ac17385abe9824ECD3f4377d67",
[ChainId.POLYGON_MUMBAI]: "0x36820F7fA9A23657F074909e432a047825910dEA",
[ChainId.AVALANCHE_FUJI]: "0x5F24f6F5d7b5524374c2be55D5af0444ead7b8A3",
};

export const USDC_ADDRESS: { [chainId in ChainId]: string } = {
Expand Down
Loading

0 comments on commit 64ac5af

Please sign in to comment.