diff --git a/packages/bridge-ui/src/app.css b/packages/bridge-ui/src/app.css
index 8e836461a0e..6260bc403b7 100644
--- a/packages/bridge-ui/src/app.css
+++ b/packages/bridge-ui/src/app.css
@@ -50,4 +50,8 @@
.taiko-banner {
background-image: url('assets/taiko-banner.svg');
background-repeat: no-repeat;
+}
+
+.dropdown-content.address-dropdown-content {
+ border-radius: 6px;
}
\ No newline at end of file
diff --git a/packages/bridge-ui/src/components/AddressDropdown.svelte b/packages/bridge-ui/src/components/AddressDropdown.svelte
index e472abe3c68..7be7bb715f7 100644
--- a/packages/bridge-ui/src/components/AddressDropdown.svelte
+++ b/packages/bridge-ui/src/components/AddressDropdown.svelte
@@ -9,17 +9,37 @@
import { getAddressAvatarFromIdenticon } from "../utils/addressAvatar";
import type { BridgeTransaction } from "../domain/transactions";
import { LottiePlayer } from "@lottiefiles/svelte-lottie-player";
- import type { Signer } from "ethers";
+ import { ethers, Signer } from "ethers";
import { errorToast } from "../utils/toast";
+ import CopyIcon from "./icons/Copy.svelte";
+ import DisconnectIcon from "./icons/Disconnect.svelte";
+ import TransactionsIcon from "./icons/Transactions.svelte";
+ import { slide } from "svelte/transition";
+ import {fromChain} from '../store/chain';
+ import { truncateString } from "../utils/truncateString";
+ import Transactions from "./Transactions.svelte";
export let transactions: BridgeTransaction[] = [];
+ let showTransactions = false;
+
let address: string;
let addressAvatarImgData: string;
+ let tokenBalance: string = '';
+
onMount(async () => {
setAddress($signer);
});
+ $: getUserBalance($signer);
+
+ async function getUserBalance(signer) {
+ if (signer) {
+ const userBalance = await signer.getBalance("latest");
+ tokenBalance = ethers.utils.formatEther(userBalance);
+ }
+ }
+
$: setAddress($signer).catch((e) => console.error(e));
async function setAddress(signer: Signer) {
@@ -76,28 +96,40 @@