Skip to content

Commit

Permalink
wasm, core: impl external key refresh wallet (#143)
Browse files Browse the repository at this point in the history
core: impl refresh wallet for externally managed keys
  • Loading branch information
sehyunc authored Dec 26, 2024
1 parent 0356283 commit 2712134
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/core/src/actions/refreshWallet.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { REFRESH_WALLET_ROUTE } from '../constants.js'
import type { Config } from '../createConfig.js'
import type { RenegadeConfig } from '../createConfig.js'
import { postRelayerWithAuth } from '../utils/http.js'
import { getWalletId } from './getWalletId.js'

export type RefreshWalletReturnType = Promise<{ taskId: string }>
export type RefreshWalletReturnType = {
taskId: string
}

export async function refreshWallet(config: Config): RefreshWalletReturnType {
export async function refreshWallet(
config: RenegadeConfig,
): Promise<RefreshWalletReturnType> {
const { getBaseUrl } = config
const walletId = getWalletId(config)

Expand Down

0 comments on commit 2712134

Please sign in to comment.