Skip to content

Commit b258fca

Browse files
committed
clean
1 parent c757b00 commit b258fca

File tree

4 files changed

+6
-215
lines changed

4 files changed

+6
-215
lines changed

CLAUDE.md

Lines changed: 0 additions & 209 deletions
This file was deleted.

src/renderer/components/wallet/watchOnly/ImportWatchOnlyWallets.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { useIntl } from 'react-intl'
77
import { useNavigate } from 'react-router-dom'
88

99
import { EnabledChain } from '../../../../shared/utils/chain'
10-
import * as walletRoutes from '../../../routes/wallet'
1110
import { useWalletContext } from '../../../contexts/WalletContext'
11+
import * as walletRoutes from '../../../routes/wallet'
1212
import { WatchOnlyWallet } from '../../../services/wallet/types'
1313
import { BorderButton, FlatButton } from '../../uielements/button'
1414
import { Input } from '../../uielements/input'

src/renderer/services/wallet/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Balance, Network, Tx, TxHash } from '@xchainjs/xchain-client'
33
import { Keystore } from '@xchainjs/xchain-crypto'
44
import { Address, AnyAsset, Chain } from '@xchainjs/xchain-util'
55
import type { nonEmptyArray } from 'fp-ts'
6-
import { array, function as FP, option as O } from 'fp-ts'
6+
import { array, either as E, function as FP, option as O } from 'fp-ts'
77
import * as Rx from 'rxjs'
88

99
type NonEmptyArray<T> = nonEmptyArray.NonEmptyArray<T>
@@ -172,14 +172,14 @@ export type StandaloneLedgerService = {
172172

173173
// Watch-Only Service Types
174174
export interface WatchOnlyWalletService {
175-
watchOnlyState$: any // Will be properly typed from watchOnly service
175+
watchOnlyState$: Rx.Observable<WatchOnlyState | null>
176176
enterWatchOnlyMode: (wallets: WatchOnlyWallet[]) => void
177177
exitWatchOnlyMode: () => void
178178
addWatchWallet: (wallet: WatchOnlyWallet) => void
179179
removeWatchWallet: (address: string, chain: Chain) => void
180180
getWatchWallet: (address: string, chain: Chain) => WatchOnlyWallet | undefined
181-
exportWatchWallets: () => Promise<any>
182-
importWatchWallets: () => Promise<any>
181+
exportWatchWallets: () => Promise<E.Either<Error, string>>
182+
importWatchWallets: () => Promise<E.Either<Error, WatchOnlyWallet[]>>
183183
clearWatchWallets: () => void
184184
}
185185

src/renderer/services/wallet/watchOnly.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const createWatchOnlyService = (): WatchOnlyWalletService => {
166166
}
167167

168168
// Convert wallet accounts to watch-only format
169-
const watchWallets: WatchOnlyWallet[] = walletAccounts.map(({ chain, address }, index) => ({
169+
const watchWallets: WatchOnlyWallet[] = walletAccounts.map(({ chain, address }) => ({
170170
address,
171171
chain,
172172
walletIndex: 0,

0 commit comments

Comments
 (0)