Skip to content
Open

TRUMP #386

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f3252f4
chore: Enable TRUMP route
jmrossy Jan 20, 2025
fa3840c
Hide app title
jmrossy Jan 20, 2025
5df29d5
fix: remove eclipse chain and tip card
Xaroz Jan 20, 2025
8fbdd44
Merge pull request #387 from hyperlane-xyz/trump-fixes
Xaroz Jan 20, 2025
c0ba406
feat: add theming support to trump branch
Xaroz Jan 20, 2025
885974d
Merge pull request #388 from hyperlane-xyz/feat/trump-theming
Xaroz Jan 20, 2025
7cfc050
Trumpchain (#390)
nambrot Jan 21, 2025
f088f4a
Merge remote-tracking branch 'origin/main' into trump
github-actions[bot] Jan 27, 2025
024b770
chore: fix conflicts
Xaroz Jan 28, 2025
7663654
Merge pull request #405 from hyperlane-xyz/main-to-trump
Xaroz Jan 28, 2025
559ea1a
chore: update app settings
Xaroz Jan 30, 2025
845f20b
Merge pull request #415 from hyperlane-xyz/trump-app-settings
jmrossy Jan 30, 2025
0cc6104
Merge remote-tracking branch 'origin/main' into trump
github-actions[bot] Feb 5, 2025
bf001d8
Merge pull request #423 from hyperlane-xyz/main-to-trump
Xaroz Feb 5, 2025
22356f4
Merge remote-tracking branch 'origin/main' into trump
github-actions[bot] Feb 27, 2025
48e0323
chore: disable add route button
Xaroz Feb 27, 2025
87ed43d
Merge pull request #428 from hyperlane-xyz/main-to-trump
Xaroz Feb 27, 2025
cfef0e4
Merge remote-tracking branch 'origin/main' into trump
github-actions[bot] Mar 10, 2025
83fd86b
Merge main into branch
Xaroz Mar 12, 2025
51b94f4
Merge pull request #449 from hyperlane-xyz/main-to-trump
Xaroz Mar 12, 2025
fcbf078
Merge remote-tracking branch 'origin/main' into trump
github-actions[bot] Apr 9, 2025
25c1300
Merge pull request #467 from hyperlane-xyz/main-to-trump
Xaroz Apr 10, 2025
ec7aa96
Merge remote-tracking branch 'origin/main' into trump
github-actions[bot] Apr 18, 2025
bfd0abc
Merge branch 'main' into main-to-trump
Xaroz May 12, 2025
7924bdf
Merge branch 'main' into main-to-trump
Xaroz May 19, 2025
98f82c6
Merge pull request #512 from hyperlane-xyz/main-to-trump
Xaroz May 19, 2025
dce9cee
Merge remote-tracking branch 'origin/main' into trump
github-actions[bot] May 28, 2025
4b0b082
Merge pull request #584 from hyperlane-xyz/main-to-trump
Xaroz May 28, 2025
c96e6e1
chore: remove trumpchain route
Xaroz Jun 6, 2025
5df18a4
Merge pull request #623 from hyperlane-xyz/xaroz/remove-trumpchain-route
Xaroz Jun 6, 2025
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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)';
23 changes: 1 addition & 22 deletions src/consts/chains.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import {
eclipsemainnet,
eclipsemainnetAddresses,
solanamainnet,
solanamainnetAddresses,
sonicsvm,
sonicsvmAddresses,
soon,
soonAddresses,
} 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,18 +11,6 @@ export const chains: ChainMap<ChainMetadata & { mailbox?: Address }> = {
// SVM chains require mailbox addresses for the token adapters
mailbox: solanamainnetAddresses.mailbox,
},
eclipsemainnet: {
...eclipsemainnet,
mailbox: eclipsemainnetAddresses.mailbox,
},
soon: {
...soon,
mailbox: soonAddresses.mailbox,
},
sonicsvm: {
...sonicsvm,
mailbox: sonicsvmAddresses.mailbox,
},
// mycustomchain: {
// protocol: ProtocolType.Ethereum,
// chainId: 123123,
Expand Down
6 changes: 3 additions & 3 deletions src/consts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export const config: Config = Object.freeze({
registryUrl,
registryBranch,
registryProxyUrl,
showAddRouteButton: true,
showAddChainButton: true,
showAddRouteButton: false,
showAddChainButton: false,
showDisabledTokens: false,
showTipBox: true,
showTipBox: false,
version,
transferBlacklist,
walletConnectProjectId,
Expand Down
8 changes: 3 additions & 5 deletions src/consts/warpRouteWhitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// 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',
];
4 changes: 2 additions & 2 deletions src/features/transfer/TransferTokenForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,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 @@ -423,7 +423,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