Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed May 27, 2024
1 parent e9d2609 commit 0ea4bf0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<script lang="ts">
import { notificationsManager } from '@auxiliary/wallet-connect/notifications'
import { Button, IconName } from '@bloomwalletio/ui'
import { AccountActionsMenu, AccountSwitcher, FormattedBalance } from '@components'
import { selectedAccount, selectedAccountIndex } from '@core/account/stores'
import { selectedAccountIndex } from '@core/account/stores'
import { formatCurrency, localize } from '@core/i18n'
import { resetLedgerPreparedOutput, resetShowInternalVerificationPopup } from '@core/ledger'
import { SupportedL1EvmNetworkId } from '@core/network'
import { allAccountFiatBalances, selectedAccountTokens } from '@core/token/stores'
import { resetSendFlowParameters } from '@core/wallet'
import { PopupId, openPopup } from '@desktop/auxiliary/popup'
Expand All @@ -31,17 +29,9 @@
}
function onReceiveClick(): void {
subscribeToNotifications()
// openPopup({
// id: PopupId.ReceiveAddress,
// })
}
function subscribeToNotifications(): void {
// Get the domain of the target dapp from the Explorer API response (https://explorer-api.walletconnect.com/v3/dapps?projectId=YOUR_PROJECT_ID&is_notify_enabled=true)
const appDomain = new URL('https://gm.walletconnect.com').hostname
notificationsManager.subscribeToDapp(appDomain, $selectedAccount, SupportedL1EvmNetworkId.Ethereum)
openPopup({
id: PopupId.ReceiveAddress,
})
}
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './notifyEvent.enum'
export * from './notify-event.enum'

0 comments on commit 0ea4bf0

Please sign in to comment.