Skip to content

Commit

Permalink
fix: update types and fix import conflicts
Browse files Browse the repository at this point in the history
Co-Authored-By: Connor Prussin <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and cprussin committed Feb 13, 2025
1 parent 189082c commit 619c25b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion price_service/sdk/js/src/client/PriceServiceConnection.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { HexString, PriceFeedRequestConfig, PriceServiceConnectionConfig, PriceFeedUpdateCallback } from "../types.js";
import { PriceFeed } from "../schemas/PriceFeed.js";
import type { PriceFeedRequestConfig, PriceServiceConnectionConfig, PriceFeedUpdateCallback } from "../types.js";
import axios, { AxiosInstance } from "axios";
import axiosRetry from "axios-retry";
import * as WebSocket from "isomorphic-ws";
Expand Down
1 change: 0 additions & 1 deletion price_service/sdk/js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export type {
HexString,
} from "./types.js";
export { PriceServiceConnection } from "./client/PriceServiceConnection.js";
export { Price, PriceFeed, PriceFeedMetadata } from "./schemas/PriceFeed.js";

/**
* A Pyth Price represented as `${price} ± ${conf} * 10^${expo}` published at `publishTime`.
Expand Down
2 changes: 2 additions & 0 deletions price_service/sdk/js/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export interface PriceFeedRequestConfig {
export interface PriceServiceConnectionConfig {
url: string;
priceFeedRequestConfig?: PriceFeedRequestConfig;
timeout?: number;
httpRetries?: number;
}

export type PriceFeedUpdateCallback = (priceFeed: any) => void;
4 changes: 2 additions & 2 deletions target_chains/aptos/sdk/js/src/AptosPriceServiceConnection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PriceServiceConnection } from "@pythnetwork/price-service-sdk/lib/client/PriceServiceConnection.js";
import type { HexString } from "@pythnetwork/price-service-sdk/lib/types.js";
import { PriceServiceConnection } from "@pythnetwork/price-service-sdk";
import type { HexString } from "@pythnetwork/price-service-sdk";
import { BCS } from "aptos";
import { Buffer } from "buffer";

Expand Down

0 comments on commit 619c25b

Please sign in to comment.