Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renzo #160

Open
wants to merge 90 commits into
base: main
Choose a base branch
from
Open

Renzo #160

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
59c7f33
Initial Renzo Warp Route
nambrot Jun 18, 2024
8d82b6b
Use 3.15.1
nambrot Jun 18, 2024
5740b5a
Renzo branding
nambrot Jun 18, 2024
f1a7cb1
Add explorer link
nambrot Jun 18, 2024
20a60b4
fix: remove duplicate isDestinationCollateralSufficient (#189)
AlexBHarley Jun 19, 2024
1c5eba4
chore: link to new terms
AlexBHarley Jun 19, 2024
0635168
copy: built with
AlexBHarley Jun 19, 2024
3eaad28
Merge branch 'main' into alexbharley/ezeth-updates
AlexBHarley Jun 19, 2024
7a29813
chore: more noticeable prompt to try again
AlexBHarley Jun 19, 2024
5e18df7
Prettier
nambrot Jun 19, 2024
844c11c
Merge branch 'ezeth' into alexbharley/ezeth-updates
nambrot Jun 19, 2024
fd3e2ee
Prettier
nambrot Jun 19, 2024
282945f
Merge pull request #190 from AlexBHarley/alexbharley/ezeth-updates
nambrot Jun 19, 2024
7e3339d
Make footer logos black (#191)
yorhodes Jun 19, 2024
56634ad
black footer logos (#192)
yorhodes Jun 19, 2024
ad3c4aa
Fix geoblock middleware [Renzo] (#194)
AlexBHarley Jun 21, 2024
04cdc24
Add new warp route with Fraxtal
nambrot Jul 9, 2024
0e86a21
add prettier fix
nbayindirli Jul 9, 2024
6a8358c
Add back logo
nambrot Jul 10, 2024
a333ec8
Merge pull request #196 from hyperlane-xyz/nambrot/fraxtal-extension
nambrot Jul 10, 2024
87285ef
Merge branch 'main' into main-to-ezeth
jmrossy Jul 23, 2024
fb9d69b
Allow hyperlane domain based images
jmrossy Jul 23, 2024
848c183
Merge pull request #201 from hyperlane-xyz/main-to-ezeth
jmrossy Jul 23, 2024
4d33d7f
Merge branch 'main' into main-to-ezeth
jmrossy Aug 4, 2024
74efc4f
Merge pull request #208 from hyperlane-xyz/main-to-ezeth
jmrossy Aug 6, 2024
e8abf4f
Add Renzo deploy config 2
ltyu Aug 19, 2024
3edbadf
Add logoUri
ltyu Aug 19, 2024
6d29c77
Run prettier
ltyu Aug 19, 2024
c745ddc
Up registry version
ltyu Aug 19, 2024
71a081b
Add Renzo 3
ltyu Aug 20, 2024
4fc412e
Run prettier
ltyu Aug 21, 2024
02c46a2
Merge pull request #212 from hyperlane-xyz/ezeth-2
ltyu Aug 21, 2024
b4aedd6
add logoURI
ltyu Aug 21, 2024
59e2329
Merge branch 'ezeth' into ezeth-2
ltyu Aug 21, 2024
258afa2
Merge pull request #214 from hyperlane-xyz/ezeth-2
ltyu Aug 21, 2024
75c29a1
Merge branch 'main' into main-to-ezeth-3
ltyu Aug 22, 2024
902998b
Merge pull request #222 from hyperlane-xyz/ltyu/main-to-ezeth-3
ltyu Aug 23, 2024
4995c43
tip box with info about issues
tkporter Aug 31, 2024
ee38676
Merge pull request #236 from hyperlane-xyz/trevor/ezeth-tip
tkporter Aug 31, 2024
9abcb59
Revert "tip box with info about issues"
nambrot Aug 31, 2024
3d9bdab
Merge pull request #237 from hyperlane-xyz/revert-236-trevor/ezeth-tip
nambrot Aug 31, 2024
5624e87
Merge branch 'main' into ezeth
jmrossy Sep 18, 2024
0ffee25
Merge branch 'main' into main-to-ezeth
jmrossy Sep 18, 2024
337250d
Merge branch 'main' into main-to-ezeth
jmrossy Sep 18, 2024
e1100f3
Merge branch 'main' into main-to-ezeth
jmrossy Sep 18, 2024
c3894e2
Merge pull request #244 from hyperlane-xyz/main-to-ezeth
cmcewen Sep 18, 2024
5e9a5dd
Merge branch 'main' into main-to-ezeth
jmrossy Sep 20, 2024
fbed8e9
Merge pull request #262 from hyperlane-xyz/main-to-ezeth
jmrossy Sep 20, 2024
f35ff8c
Merge branch 'main' into main-to-ezeth
jmrossy Sep 26, 2024
504b124
Renzo style fixes
jmrossy Sep 26, 2024
15eab0a
Merge fixes
jmrossy Sep 26, 2024
f4984ad
Merge branch 'main' into main-to-ezeth
jmrossy Sep 27, 2024
0f101d0
Merge pull request #273 from hyperlane-xyz/main-to-ezeth
jmrossy Sep 27, 2024
6680df1
Merge branch 'main' of https://github.com/hyperlane-xyz/hyperlane-war…
ltyu Oct 4, 2024
e6f9638
Add pzEth
ltyu Oct 4, 2024
424010f
Run prettier
ltyu Oct 4, 2024
4cdd499
Merge pull request #282 from hyperlane-xyz/ltyu/add-pzEth
ltyu Oct 4, 2024
c2a9969
Merge branch 'ezeth' into ezeth-main
cmcewen Oct 16, 2024
08893cf
Add Sei and Taiko
ltyu Oct 16, 2024
28d7a09
fix: run prettier
cmcewen Oct 16, 2024
69a5cb1
Merge pull request #293 from hyperlane-xyz/ezeth-main
ltyu Oct 16, 2024
b32596e
Merge branch 'ezeth' into ltyu/add-sei-taiko
ltyu Oct 16, 2024
6e12205
Merge pull request #292 from hyperlane-xyz/ltyu/add-sei-taiko
ltyu Oct 16, 2024
d24ce53
Readd ezEth
ltyu Oct 23, 2024
fce92f3
Merge pull request #301 from hyperlane-xyz/ltyu/readd-pzEth
ltyu Oct 23, 2024
ec40839
Use warpRouteWhitelist.ts instead of warpRoute.yaml
ltyu Oct 23, 2024
5e44b7f
Add trailing whitespace
ltyu Oct 28, 2024
1267e3f
Merge pull request #302 from hyperlane-xyz/ltyu/use-warpRouteWhitelist
ltyu Oct 29, 2024
0b3be2a
Merge branch 'main' into main-to-ezeth
jmrossy Nov 21, 2024
740519c
Remove solana and eclipse chain configs
jmrossy Nov 21, 2024
d826977
Fix transfer details modal error for successful transfer when metadat…
jmrossy Nov 21, 2024
9cee876
Merge branch 'main' into main-to-ezeth
jmrossy Nov 21, 2024
285184c
Merge pull request #334 from hyperlane-xyz/main-to-ezeth
jmrossy Nov 25, 2024
96320be
feat: add ezSOL
tkporter Nov 29, 2024
2999126
Bump Registry to 6.6
ltyu Dec 10, 2024
f221634
Update route names
ltyu Dec 10, 2024
a75f085
Add yarnlock
ltyu Dec 10, 2024
7467409
pause pzeth
tkporter Dec 11, 2024
d8bcfde
Merge pull request #350 from hyperlane-xyz/trevor/pause-pzeth
tkporter Dec 11, 2024
e3a180a
feat: remove zircuit and arbitrum from ezeth (#351)
ltyu Dec 12, 2024
ee3a3e1
feat: Remove filter and re-add whitelist (#352)
ltyu Dec 12, 2024
8f66167
Readd pzeth to whitelist
ltyu Dec 12, 2024
15fbada
Merge branch 'ezeth' into ltyu/swell-ezeth
ltyu Dec 12, 2024
88b89c5
Bump Registry to 6.6
ltyu Dec 10, 2024
c6a2e32
Use registry 6.5
ltyu Dec 12, 2024
043c3a7
Merge pull request #353 from hyperlane-xyz/ltyu/readd-pzeth-whitelist
ltyu Dec 12, 2024
c8cdeae
Merge branch 'ezeth' of github.com:hyperlane-xyz/hyperlane-warp-ui-te…
tkporter Dec 12, 2024
660a876
Merge pull request #343 from hyperlane-xyz/trevor/add-ezsol
tkporter Dec 13, 2024
097a9d6
Merge branch 'ezeth' into ltyu/swell-ezeth
ltyu Dec 13, 2024
c5179f2
Merge pull request #349 from hyperlane-xyz/ltyu/swell-ezeth
ltyu Dec 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const isDev = process.env.NODE_ENV !== 'production'
const ENABLE_CSP_HEADER = true;
const FRAME_SRC_HOSTS = ['https://*.walletconnect.com', 'https://*.walletconnect.org','https://*.solflare.com'];
const STYLE_SRC_HOSTS = []
const IMG_SRC_HOSTS = ['https://*.walletconnect.com', 'https://*.githubusercontent.com'];
const IMG_SRC_HOSTS = ['https://*.walletconnect.com', 'https://*.githubusercontent.com', 'https://*.hyperlane.xyz'];
const cspHeader = `
default-src 'self';
script-src 'self'${isDev ? " 'unsafe-eval'" : ''};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@headlessui/react": "^2.2.0",
"@hyperlane-xyz/registry": "6.1.0",
"@hyperlane-xyz/registry": "6.6.0",
"@hyperlane-xyz/sdk": "7.1.0",
"@hyperlane-xyz/utils": "7.1.0",
"@hyperlane-xyz/widgets": "7.1.0",
Expand Down
Binary file added public/logos/everclear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions public/logos/ezeth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/logos/renzo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/buttons/SolidButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function SolidButton(
baseColors = 'bg-accent-500 text-white';
onHover = 'hover:bg-accent-600';
} else if (color === 'green') {
baseColors = 'bg-green-500 text-white';
baseColors = 'bg-green-500';
onHover = 'hover:bg-green-600';
} else if (color === 'red') {
baseColors = 'bg-red-600 text-white';
Expand Down
33 changes: 21 additions & 12 deletions src/components/nav/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DiscordIcon, GithubIcon, HyperlaneLogo, TwitterIcon } from '@hyperlane-xyz/widgets';
import { DiscordIcon, GithubIcon, TwitterIcon } from '@hyperlane-xyz/widgets';
import Image from 'next/image';
import Link from 'next/link';
import { ReactNode } from 'react';
import { links } from '../../consts/links';
Expand All @@ -14,13 +15,23 @@ type FooterLink = {
const footerLinks: FooterLink[] = [
{ title: 'Docs', url: links.docs, external: true },
{ title: 'Terms', url: links.tos, external: true },
{ title: 'Twitter', url: links.twitter, external: true, icon: <TwitterIcon color="#fff" /> },
{
title: 'Twitter',
url: links.twitter,
external: true,
icon: <TwitterIcon color={Color.white} />,
},
{ title: 'Homepage', url: links.home, external: true },
{ title: 'Privacy', url: links.privacyPolicy, external: true },
{ title: 'Discord', url: links.discord, external: true, icon: <DiscordIcon color="#fff" /> },
{
title: 'Discord',
url: links.discord,
external: true,
icon: <DiscordIcon color={Color.white} />,
},
{ title: 'Explorer', url: links.explorer, external: true },
{ title: 'Bounty', url: links.bounty, external: true },
{ title: 'Github', url: links.github, external: true, icon: <GithubIcon color="#fff" /> },
{ title: 'Github', url: links.github, external: true, icon: <GithubIcon color={Color.white} /> },
];

export function Footer() {
Expand All @@ -38,14 +49,12 @@ export function Footer() {

function FooterLogo() {
return (
<div className="flex items-center justify-center">
<div className="ml-2 h-12 w-12 sm:h-14 sm:w-14">
<HyperlaneLogo color={Color.white} />
</div>
<div className="ml-6 space-y-1 text-lg font-medium sm:text-xl">
<div>Go interchain</div>
<div>with Hyperlane</div>
</div>
<div className="ml-6 flex items-center justify-center gap-1.5 space-y-1 text-lg font-medium sm:text-xl">
<span>Built with</span>
<Image src="/logos/everclear.png" alt="" width={24} height={24} />
<span>Everclear and</span>
<Image src="/logos/renzo.svg" alt="" width={22} height={22} />
<span>Renzo</span>
</div>
);
}
Expand Down
2 changes: 0 additions & 2 deletions src/components/nav/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Link from 'next/link';
import { ConnectWalletButton } from '../../features/wallet/ConnectWalletButton';
import Logo from '../../images/logos/app-logo.svg';
import Name from '../../images/logos/app-name.svg';
import Title from '../../images/logos/app-title.svg';

export function Header() {
return (
Expand All @@ -12,7 +11,6 @@ export function Header() {
<Link href="/" className="flex items-center py-2">
<Image src={Logo} width={24} alt="" />
<Image src={Name} width={130} alt="" className="ml-2 mt-0.5 hidden sm:block" />
<Image src={Title} width={210} alt="" className="ml-2 mt-0.5 pb-px" />
</Link>
<div className="flex flex-col items-end gap-2 md:flex-row-reverse md:items-start">
<ConnectWalletButton />
Expand Down
6 changes: 3 additions & 3 deletions src/consts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export const MAIN_FONT = Space_Grotesk({
preload: true,
fallback: ['sans-serif'],
});
export const APP_NAME = 'Hyperlane Warp UI Template';
export const APP_DESCRIPTION = 'A DApp for Hyperlane Warp Route transfers';
export const APP_URL = 'hyperlane-warp-template.vercel.app';
export const APP_NAME = 'Hyperlane Renzo Bridge';
export const APP_DESCRIPTION = 'A token bridge for ezETH transfers, created by Hyperlane';
export const APP_URL = 'renzo.hyperlane.xyz';
export const BRAND_COLOR = Color.primary;
export const BACKGROUND_COLOR = Color.primary;
export const BACKGROUND_IMAGE = 'url(/backgrounds/main.svg)';
4 changes: 2 additions & 2 deletions src/consts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ interface Config {
export const config: Config = Object.freeze({
addressBlacklist: ADDRESS_BLACKLIST.map((address) => address.toLowerCase()),
chainWalletWhitelists,
enableExplorerLink: false,
enableExplorerLink: true,
explorerApiKeys,
isDevMode,
registryUrl,
registryProxyUrl,
showDisabledTokens: false,
showTipBox: true,
showTipBox: false,
version,
transferBlacklist,
walletConnectProjectId,
Expand Down
10 changes: 5 additions & 5 deletions src/consts/warpRouteWhitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Warp Route IDs use format `SYMBOL/chainname1-chainname2...` where chains are ordered alphabetically
// If left null, all warp routes in the configured registry will be included
// If set to a list (including an empty list), only the specified routes will be included
export const warpRouteWhitelist: Array<string> | null = null;
// Example:
// [
// // 'ETH/ethereum-viction'
// ];
export const warpRouteWhitelist: Array<string> | null = [
'ezETH/arbitrum-base-blast-bsc-ethereum-fraxtal-linea-mode-optimism-sei-swell-taiko-zircuit',
'ezSOL/eclipsemainnet-solanamainnet',
'pzETH/ethereum-swell-zircuit',
];
16 changes: 8 additions & 8 deletions src/features/transfer/useTokenTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ async function executeTransfer({
const sender = getAccountAddressForChain(multiProvider, origin, activeAccounts.accounts);
if (!sender) throw new Error('No active account found for origin chain');

const isCollateralSufficient = await warpCore.isDestinationCollateralSufficient({
originTokenAmount,
destination,
});
if (!isCollateralSufficient) {
toast.error('Insufficient collateral on destination for transfer');
throw new Error('Insufficient destination collateral');
}
// const isCollateralSufficient = await warpCore.isDestinationCollateralSufficient({
// originTokenAmount,
// destination,
// });
// if (!isCollateralSufficient) {
// toast.error('Insufficient collateral on destination for transfer');
// throw new Error('Insufficient destination collateral');
// }

addTransfer({
timestamp: new Date().getTime(),
Expand Down
6 changes: 5 additions & 1 deletion src/images/logos/app-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading