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

TRUMP #386

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

TRUMP #386

Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion public/backgrounds/main.svg

This file was deleted.

Binary file added public/backgrounds/main.webp
Binary file not shown.
3 changes: 1 addition & 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,7 @@ 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" />
{/* <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
8 changes: 4 additions & 4 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 = SpaceGrotesk({
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 Trump Bridge';
export const APP_DESCRIPTION = 'A token bridge for Trump transfers, created by Hyperlane';
export const APP_URL = 'https://trump.hyperlane.xyz/';
export const BRAND_COLOR = Color.primary['500'];
export const BACKGROUND_COLOR = Color.primary['500'];
export const BACKGROUND_IMAGE = 'url(/backgrounds/main.svg)';
export const BACKGROUND_IMAGE = 'url(/backgrounds/main.webp)';
11 changes: 1 addition & 10 deletions src/consts/chains.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import {
eclipsemainnet,
eclipsemainnetAddresses,
solanamainnet,
solanamainnetAddresses,
} from '@hyperlane-xyz/registry';
import { solanamainnet, solanamainnetAddresses } from '@hyperlane-xyz/registry';
import { ChainMap, ChainMetadata } from '@hyperlane-xyz/sdk';

// A map of chain names to ChainMetadata
Expand All @@ -20,10 +15,6 @@ export const chains: ChainMap<ChainMetadata & { mailbox?: Address }> = {
? [{ http: process.env.NEXT_PUBLIC_SOLANA_RPC_URL }, ...solanamainnet.rpcUrls]
: solanamainnet.rpcUrls,
},
eclipsemainnet: {
...eclipsemainnet,
mailbox: eclipsemainnetAddresses.mailbox,
},
// mycustomchain: {
// protocol: ProtocolType.Ethereum,
// chainId: 123123,
Expand Down
2 changes: 1 addition & 1 deletion src/consts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const config: Config = Object.freeze({
registryBranch,
registryProxyUrl,
showDisabledTokens: false,
showTipBox: true,
showTipBox: false,
version,
transferBlacklist,
walletConnectProjectId,
Expand Down
9 changes: 4 additions & 5 deletions src/consts/warpRouteWhitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// 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 = [
'TRUMP/arbitrum-avalanche-base-flowmainnet-form-optimism-solanamainnet-worldchain',
'TRUMP/solanamainnet-trumpchain',
];
4 changes: 2 additions & 2 deletions src/features/transfer/TransferTokenForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function MaxButton({ balance, disabled }: { balance?: TokenAmount; disabled?: bo
<SolidButton
type="button"
onClick={onClick}
color="primary"
color="accent"
disabled={disabled}
className="absolute bottom-1 right-1 top-2.5 px-2 text-xs opacity-90 all:rounded"
>
Expand Down Expand Up @@ -422,7 +422,7 @@ function SelfButton({ disabled }: { disabled?: boolean }) {
<SolidButton
type="button"
onClick={onClick}
color="primary"
color="accent"
disabled={disabled}
className="absolute bottom-1 right-1 top-2.5 px-2 text-xs opacity-90 all:rounded"
>
Expand Down
42 changes: 21 additions & 21 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,30 @@ module.exports = {
colors: {
black: '#010101',
white: '#ffffff',
gray: { ...defaultColors.gray, '150': '#EBEDF0', '250': '#404040', '350': '#6B6B6B' },
gray: { ...defaultColors.gray, 150: '#EBEDF0', 250: '#404040', 350: '#6B6B6B' },
primary: {
50: '#E6EDF9',
100: '#CDDCF4',
200: '#A7C2EC',
300: '#82A8E4',
400: '#5385D2',
500: '#2764c1',
600: '#1D4685',
700: '#162A4A',
800: '#11213B',
900: '#0D192C',
50: '#FDE7EB',
100: '#FACED6',
200: '#F49CAB',
300: '#EF6A7F',
400: '#E83C58',
500: '#B31942',
600: '#8D1234',
700: '#671026',
800: '#420A18',
900: '#1F040B',
},
accent: {
50: '#FAEAF8',
100: '#F2C1EA',
200: '#EA98DC',
300: '#E26ECE',
400: '#DA45C0',
500: '#D631B9',
600: '#C02CA6',
700: '#952281',
800: '#6B185C',
900: '#400E37',
50: '#E6ECF3',
100: '#C5D2E4',
200: '#94AFCF',
300: '#648CB9',
400: '#3B6CA8',
500: '#0A3161',
600: '#08274C',
700: '#061C37',
800: '#041328',
900: '#020B17',
},
red: {
100: '#EBBAB8',
Expand Down