Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
97359d8
feat: use hardcoded chains (#1117)
GarageInc Aug 27, 2025
d5c290b
feat (HQI-1973): L2 bridge (#1119)
GarageInc Sep 30, 2025
ba76c30
feat: upd wagmi lib (#1121)
GarageInc Sep 30, 2025
2aac4af
feat: restore tx by hash (#1122)
GarageInc Oct 1, 2025
ef0fad4
feat: review fixes for L2 swap page (#1123)
GarageInc Oct 2, 2025
6d69c1e
fix: bridge (#1124)
GarageInc Oct 3, 2025
b18387f
feat: new testethic (#1125)
GarageInc Oct 6, 2025
9d1d106
feat/pre release fixes (#1126)
GarageInc Oct 7, 2025
1da4137
Fix/decrease rpc calls (#1127)
GarageInc Oct 7, 2025
c04a45f
fix: eth transfer fee calculation (#1128)
GarageInc Oct 7, 2025
93e86b0
fix: correct chain switch
GarageInc Oct 7, 2025
56533cb
fix: show header links for all chains (#1132)
GarageInc Oct 7, 2025
f203b72
fix: correct chain switch (#1133)
GarageInc Oct 7, 2025
6c0df8a
Merge branch 'prod' into dev
GarageInc Oct 7, 2025
926f012
feat: chain mismatch bridge (#1134)
GarageInc Oct 7, 2025
862e05c
feat: auto switch to mainnet on shell (#1135)
GarageInc Oct 8, 2025
c52d2be
fix: renamed RPC and chain (#1136)
GarageInc Oct 8, 2025
9b47baa
chore: renamed links in header
GarageInc Oct 8, 2025
686a5cc
chore: cleanup
GarageInc Oct 8, 2025
7e53847
fix: recreating order
GarageInc Oct 8, 2025
28a5cf4
Merge branch 'prod' into dev
GarageInc Oct 8, 2025
b7622ba
fix: from address explorer url for withdraw
GarageInc Oct 9, 2025
f12fc26
chore: check current chain on bridge before switching to default
GarageInc Oct 9, 2025
77e7d80
Merge branch 'prod' into dev
GarageInc Oct 9, 2025
0bde48d
feat: refactored faucet (#1139)
GarageInc Oct 22, 2025
569d127
feat: correct link to testethiq faucet on bridge page
GarageInc Oct 23, 2025
52a1ffe
Merge branch 'prod' into dev
GarageInc Oct 24, 2025
6eb9e7d
chore: cleanup trash command
GarageInc Oct 24, 2025
275e846
fix: claim info counter
GarageInc Oct 24, 2025
4c44822
feat: show chain selector for faucet
GarageInc Oct 24, 2025
baf9dda
Merge branch 'prod' into dev
GarageInc Oct 24, 2025
781de41
fix: balances view and notFound page
GarageInc Oct 27, 2025
afde549
Merge branch 'prod' into dev
GarageInc Oct 27, 2025
3506e53
chore: remove file .txt
GarageInc Oct 27, 2025
6afb069
chore: self review, removed unused vars
GarageInc Nov 28, 2025
4604fa4
fix: bridge addresses
GarageInc Nov 28, 2025
875be4e
Merge branch 'prod' into dev
GarageInc Nov 28, 2025
01429f8
chore: trigger build
GarageInc Nov 30, 2025
ee0f5ac
chore: remove self hosted ubuntu
GarageInc Nov 30, 2025
bc76d38
chore: use ubuntu-latest
GarageInc Nov 30, 2025
2b63dd6
feat: contracts API
GarageInc Dec 8, 2025
09d89cf
fix: correct bridge addresses
GarageInc Dec 8, 2025
8e2c902
Merge branch 'prod' into dev
GarageInc Dec 8, 2025
2235b15
Merge branch 'prod' into dev
GarageInc Dec 9, 2025
278b568
fix: bridge state amount input
GarageInc Dec 9, 2025
276aa34
chore: typo approve msg
GarageInc Dec 10, 2025
8cd519f
feat: left only en locale
GarageInc Dec 10, 2025
fff7632
fix: bridge status msg
GarageInc Dec 10, 2025
5e0e7e4
feat: proves for withdrawals
GarageInc Dec 11, 2025
fa910a5
fix: locale direction
GarageInc Dec 11, 2025
b40e3a6
fix: proves state
GarageInc Dec 11, 2025
844b3f4
fix: bridge block
GarageInc Dec 12, 2025
fb3e402
Merge branch 'prod' into dev
GarageInc Dec 12, 2025
9b5e426
feat: enable precompiles
GarageInc Dec 12, 2025
35f9bf8
Merge branch 'prod' into dev
GarageInc Dec 15, 2025
4608a68
chore: update viem package to version 2.43.1 and refactor wallet clie…
GarageInc Dec 18, 2025
45ce0b2
Merge branch 'prod' into dev
GarageInc Dec 18, 2025
0b6fe50
feat: evmos beta proposals issue
GarageInc Dec 19, 2025
135ac3c
chore: self review
GarageInc Dec 19, 2025
055dbff
Merge branch 'prod' into dev
GarageInc Dec 19, 2025
c6b9e13
fix: revert evmos version
GarageInc Dec 19, 2025
0daae5a
fix: types
GarageInc Dec 19, 2025
f6e2d15
fix: switch to any from evmos type
GarageInc Dec 19, 2025
24ac907
fix: update proposal ID handling to use 'any' type for better compati…
GarageInc Dec 19, 2025
17403e2
fix: tally results display
GarageInc Dec 19, 2025
64a7473
fix: update tally response type to TallyResults for improved type safety
GarageInc Dec 19, 2025
ca99969
chore: self review
GarageInc Dec 19, 2025
2e57dc8
Merge branch 'prod' into dev
GarageInc Dec 19, 2025
9d4a67f
fix: eth label in bridge selector
GarageInc Dec 19, 2025
70ef5dc
feat: add order delete btn
GarageInc Dec 19, 2025
7141a94
fix: proposals
GarageInc Dec 20, 2025
35e9f44
Merge branch 'prod' into dev
GarageInc Dec 20, 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
25 changes: 22 additions & 3 deletions libs/bridge/src/lib/components/token-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ interface TokenSelectorProps {
disabled?: boolean;
}

const NATIVE_ETH_ADDRESS = '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee';

const isNativeToken = (address: string): boolean => {
return address.toLowerCase() === NATIVE_ETH_ADDRESS.toLowerCase();
};

export function TokenSelectOption({
children: _,
...rest
Expand All @@ -42,6 +48,10 @@ export function TokenSelectOption({
: '';
}, [token.formattedBalance]);

const displayAddress = useMemo(() => {
return isNativeToken(token.address) ? 'native' : token.address;
}, [token.address]);

return (
<tokenSelectComponents.Option {...rest}>
<div className="flex items-center justify-between">
Expand All @@ -50,7 +60,7 @@ export function TokenSelectOption({
{token.symbol} {token.name && `(${token.name})`}
</div>
<div className="text-[10px] leading-[12px] text-[#0D0D0E80]">
{token.address}
{displayAddress}
</div>
</div>
{balanceText && (
Expand All @@ -76,12 +86,21 @@ export function TokenSelector({
const { t } = useTranslate('bridge');

const handleFilterOption = useCallback((option: any, inputValue: string) => {
const { label, value } = option.data;
const { label, value, token } = option.data;
const inputLower = inputValue.toLowerCase();
const labelLower = label.toLowerCase();
const valueLower = value.toLowerCase();

return labelLower.includes(inputLower) || valueLower.includes(inputLower);
// Check if it matches label or address
const matchesLabelOrAddress =
labelLower.includes(inputLower) || valueLower.includes(inputLower);

// If searching for "native" and token is native ETH, include it
if (inputLower === 'native' && isNativeToken(token.address)) {
return true;
}

return matchesLabelOrAddress;
}, []);

const classNames = useMemo<ClassNamesConfig<TokenSelectOption>>(() => {
Expand Down
Loading
Loading