Skip to content

Commit

Permalink
fix: remove not needed code
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidsowardx committed May 8, 2024
1 parent 5e2b79d commit d2edb62
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 40 deletions.
8 changes: 3 additions & 5 deletions src/chrome/background/message-handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { closePopup as closePopupFn } from 'chrome/helpers/close-popup'
import { openParingPopup as openParingPopupFn } from 'chrome/helpers/open-pairing-popup'
import { errAsync, ok, okAsync, ResultAsync } from 'neverthrow'
import { errAsync, okAsync, ResultAsync } from 'neverthrow'
import { AppLogger } from 'utils/logger'
import {
messageDiscriminator,
Expand All @@ -17,14 +17,12 @@ import { LedgerTabWatcher } from './ledger-tab-watcher'
import { ensureTab } from 'chrome/helpers/ensure-tab'
import { focusTabByUrl } from 'chrome/helpers/focus-tab'
import { createGatewayModule } from './create-gateway-module'
import {
notificationDispatcher,
WalletInteraction,
} from './notification-dispatcher'
import { notificationDispatcher } from './notification-dispatcher'
import { getExtensionOptions } from 'options'
import { chromeLocalStore } from 'chrome/helpers/chrome-local-store'
import { RadixNetworkConfigById } from '@radixdlt/babylon-gateway-api-sdk'
import { ConnectionsClient } from 'pairing/state/connections'
import { WalletInteraction } from '@radixdlt/radix-dapp-toolkit'

export type BackgroundMessageHandler = ReturnType<
typeof BackgroundMessageHandler
Expand Down
21 changes: 1 addition & 20 deletions src/chrome/background/notification-dispatcher.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
import { TransactionStatus } from '@radixdlt/babylon-gateway-api-sdk'
import { WalletInteraction } from '@radixdlt/radix-dapp-toolkit'
import { createNotification } from 'chrome/helpers/chrome-notifications'
import {
getShowDAppRequestNotifications,
getShowTransactionResultNotifications,
} from 'options'

export type WalletInteraction = {
interactionId: string
items:
| {
discriminator: 'transaction' | 'unauthorizedRequest' | 'cancelRequest'
}
| {
discriminator: 'authorizedRequest'
auth: {
discriminator:
| 'usePersona'
| 'loginWithChallenge'
| 'loginWithoutChallenge'
}
}
metadata: {
version: number
}
}

export const txNotificationPrefix = 'transaction'
export const txNotificationSplitter = '___'
export const notificationDispatcher = {
Expand Down
15 changes: 0 additions & 15 deletions src/chrome/helpers/validate-zod-schema.ts

This file was deleted.

0 comments on commit d2edb62

Please sign in to comment.