@@ -3,7 +3,7 @@ import { Balance, Network, Tx, TxHash } from '@xchainjs/xchain-client'
3
3
import { Keystore } from '@xchainjs/xchain-crypto'
4
4
import { Address , AnyAsset , Chain } from '@xchainjs/xchain-util'
5
5
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'
7
7
import * as Rx from 'rxjs'
8
8
9
9
type NonEmptyArray < T > = nonEmptyArray . NonEmptyArray < T >
@@ -172,14 +172,14 @@ export type StandaloneLedgerService = {
172
172
173
173
// Watch-Only Service Types
174
174
export interface WatchOnlyWalletService {
175
- watchOnlyState$ : any // Will be properly typed from watchOnly service
175
+ watchOnlyState$ : Rx . Observable < WatchOnlyState | null >
176
176
enterWatchOnlyMode : ( wallets : WatchOnlyWallet [ ] ) => void
177
177
exitWatchOnlyMode : ( ) => void
178
178
addWatchWallet : ( wallet : WatchOnlyWallet ) => void
179
179
removeWatchWallet : ( address : string , chain : Chain ) => void
180
180
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 [ ] > >
183
183
clearWatchWallets : ( ) => void
184
184
}
185
185
0 commit comments