diff --git a/packages/core/src/actions/getTaskHistory.ts b/packages/core/src/actions/getTaskHistory.ts index 035be11..92be673 100644 --- a/packages/core/src/actions/getTaskHistory.ts +++ b/packages/core/src/actions/getTaskHistory.ts @@ -3,7 +3,7 @@ import { getWalletId } from './getWalletId.js' import { getRelayerWithAuth } from '../utils/http.js' import { TASK_HISTORY_ROUTE } from '../constants.js' -import type { Config } from '../createConfig.js' +import type { RenegadeConfig } from '../createConfig.js' import { BaseError, type BaseErrorType } from '../errors/base.js' import type { Task as TaskHistoryItem } from '../types/task.js' @@ -12,7 +12,7 @@ export type GetTaskHistoryReturnType = Map export type GetTaskHistoryErrorType = BaseErrorType export async function getTaskHistory( - config: Config, + config: RenegadeConfig, ): Promise { const { getBaseUrl } = config const walletId = getWalletId(config) diff --git a/packages/core/src/actions/waitForTaskCompletionWs.ts b/packages/core/src/actions/waitForTaskCompletionWs.ts index c552dae..37f6236 100644 --- a/packages/core/src/actions/waitForTaskCompletionWs.ts +++ b/packages/core/src/actions/waitForTaskCompletionWs.ts @@ -1,5 +1,5 @@ import { TASK_STATUS_ROUTE } from '../constants.js' -import type { Config } from '../createConfig.js' +import type { RenegadeConfig } from '../createConfig.js' import { AuthType } from '../utils/websocket.js' import { type WebsocketWaiterParams, @@ -9,7 +9,7 @@ import { getTaskHistory } from './getTaskHistory.js' import type { WaitForTaskCompletionParameters } from './waitForTaskCompletion.js' export async function waitForTaskCompletionWs( - config: Config, + config: RenegadeConfig, parameters: WaitForTaskCompletionParameters, ): Promise { const { id, timeout } = parameters diff --git a/packages/core/src/utils/websocket.ts b/packages/core/src/utils/websocket.ts index 7e14623..61f5fe9 100644 --- a/packages/core/src/utils/websocket.ts +++ b/packages/core/src/utils/websocket.ts @@ -1,5 +1,5 @@ import { SIG_EXPIRATION_BUFFER_MS } from '../constants.js' -import type { Config } from '../createConfig.js' +import type { RenegadeConfig } from '../createConfig.js' import { addExpiringAuthToHeaders } from './http.js' export enum AuthType { @@ -9,7 +9,7 @@ export enum AuthType { } export type RelayerWebsocketParams = { - config: Config + config: RenegadeConfig topic: string authType: AuthType onmessage: (this: WebSocket, ev: MessageEvent) => any @@ -38,7 +38,7 @@ export type UnsubscriptionBody = { } export class RelayerWebsocket { - private config: Config + private config: RenegadeConfig private topic: string private authType: AuthType private onmessage: (this: WebSocket, ev: MessageEvent) => any diff --git a/packages/core/src/utils/websocketWaiter.ts b/packages/core/src/utils/websocketWaiter.ts index 8d21801..458dd63 100644 --- a/packages/core/src/utils/websocketWaiter.ts +++ b/packages/core/src/utils/websocketWaiter.ts @@ -1,4 +1,4 @@ -import type { Config } from '../createConfig.js' +import type { RenegadeConfig } from '../createConfig.js' import { type AuthType, RelayerWebsocket, @@ -6,7 +6,7 @@ import { } from './websocket.js' export type WebsocketWaiterParams = { - config: Config + config: RenegadeConfig topic: string authType: AuthType messageHandler: (message: any) => any | undefined