Skip to content

Commit 76b9d07

Browse files
authored
fix: Change some additional references to the history service URL (#1976)
Mirror-ref: f94fd3f5b11ed328db26d686b1cbc871140d9e06
1 parent 1c8758a commit 76b9d07

9 files changed

Lines changed: 21 additions & 22 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agent/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn default_legacy_sched_interval() -> Duration {
5555

5656
fn default_history_service_url() -> Url {
5757
#[allow(clippy::expect_used, reason = "hardcoded URL is always valid")]
58-
"https://history.pyth-lazer.dourolabs.app/history/v1/symbols"
58+
"https://pyth.dourolabs.app/v1/symbols"
5959
.parse()
6060
.expect("hardcoded URL is valid")
6161
}

agent/src/lazer_publisher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ mod tests {
311311
authorization_token: None,
312312
publish_keypair_path: PathBuf::from(signing_key_file.path()),
313313
publish_interval_duration: Duration::from_millis(25),
314-
history_service_url: "https://history.pyth-lazer.dourolabs.app/history/v1/symbols"
314+
history_service_url: "https://pyth.dourolabs.app/v1/symbols"
315315
.parse()
316316
.expect("should never fail on valid hardcoded URL"),
317317
enable_update_deduplication: false,

agent/src/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mod tests {
3838
#[tokio::test]
3939
#[ignore]
4040
async fn test_fetch_metadata() {
41-
let url: Url = "https://history.pyth-lazer.dourolabs.app/history/v1/symbols"
41+
let url: Url = "https://pyth.dourolabs.app/v1/symbols"
4242
.parse()
4343
.expect("should never fail on valid hardcoded URL");
4444
println!("{:?}", fetch_metadata(&url).await.unwrap());

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,5 @@
164164
},
165165
"type": "module",
166166
"types": "./dist/cjs/index.d.ts",
167-
"version": "6.2.2"
167+
"version": "6.2.3"
168168
}

sdk/js/src/constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ export const SOLANA_LAZER_PROGRAM_ID =
22
"pytd2yyk641x7ak7mkaasSJVXh6YYZnC7wTmtgAyxPt";
33
export const SOLANA_LAZER_STORAGE_ID =
44
"3rdJbqfnagQ4yx9HXJViD4zc4xpiSqmFsKpPuSCQVyQL";
5-
export const DEFAULT_METADATA_SERVICE_URL =
6-
"https://history.pyth-lazer.dourolabs.app/history";
5+
export const DEFAULT_METADATA_SERVICE_URL = "https://pyth.dourolabs.app";
76
export const DEFAULT_PRICE_SERVICE_URL = "https://pyth-lazer-0.dourolabs.app";
87
export const DEFAULT_STREAM_SERVICE_0_URL =
98
"wss://pyth-lazer-0.dourolabs.app/v1/stream";

sdk/rust/client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-lazer-client"
3-
version = "26.0.0"
3+
version = "26.0.1"
44
edition = "2024"
55
description = "A Rust client for Pyth Lazer"
66
license = "Apache-2.0"

sdk/rust/client/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,13 @@ cargo run --example subscribe_price_feeds
270270

271271
### Symbol Metadata
272272

273-
Fetch symbol metadata using the history client:
273+
Fetch symbol metadata using the api client:
274274

275275
```rust
276-
use pyth_lazer_client::history_client::{PythLazerHistoryClient, PythLazerHistoryClientConfig};
276+
use pyth_lazer_client::api_client::{PythLazerApiClient, PythLazerApiClientConfig};
277277

278-
let client = PythLazerHistoryClient::new(
279-
PythLazerHistoryClientConfig::default()
278+
let client = PythLazerApiClient::new(
279+
PythLazerApiClientConfig::default()
280280
);
281281

282282
// Get all symbol metadata
@@ -289,23 +289,23 @@ let symbols = handle.symbols();
289289

290290
See [`examples/symbols.rs`](examples/symbols.rs) and [`examples/symbols_stream.rs`](examples/symbols_stream.rs) for complete examples.
291291

292-
## History Client
292+
## API Client
293293

294-
The `PythLazerHistoryClient` provides access to symbol metadata and historical price information:
294+
The `PythLazerApiClient` provides access to symbol metadata and historical price information:
295295

296296
```rust
297-
use pyth_lazer_client::history_client::{PythLazerHistoryClient, PythLazerHistoryClientConfig};
297+
use pyth_lazer_client::api_client::{PythLazerApiClient, PythLazerApiClientConfig};
298298
use std::time::Duration;
299299

300-
let config = PythLazerHistoryClientConfig {
301-
urls: vec!["https://history.pyth-lazer.dourolabs.app/".parse()?],
300+
let config = PythLazerApiClientConfig {
301+
urls: vec!["https://pyth.dourolabs.app/".parse()?],
302302
update_interval: Duration::from_secs(30),
303303
request_timeout: Duration::from_secs(15),
304304
cache_dir: Some("/tmp/pyth-lazer-cache".into()),
305305
channel_capacity: 1000,
306306
};
307307

308-
let client = PythLazerHistoryClient::new(config);
308+
let client = PythLazerApiClient::new(config);
309309

310310
// Fetch symbol metadata once
311311
let symbols = client.all_symbols_metadata().await?;
@@ -320,7 +320,7 @@ while let Some(symbols) = stream.recv().await {
320320
}
321321
```
322322

323-
The history client supports:
323+
The API client supports:
324324

325325
- **One-time fetches** - Get current data with `all_symbols_metadata()`
326326
- **Auto-updating handles** - Background updates with `all_symbols_metadata_handle()`
@@ -334,7 +334,7 @@ The history client supports:
334334

335335
- **`PythLazerStreamClient`** - The main client for streaming price updates
336336
- **`PythLazerStreamClientBuilder`** - Builder for configuring the stream client
337-
- **`PythLazerHistoryClient`** - Client for fetching symbol metadata
337+
- **`PythLazerApiClient`** - Client for fetching symbol metadata
338338
- **`SubscribeRequest`** - Subscription configuration
339339
- **`SubscriptionParams`** - Subscription parameters wrapper
340340
- **`AnyResponse`** - Enum for JSON or binary responses
@@ -347,7 +347,7 @@ The history client supports:
347347
- `subscribe(request: SubscribeRequest) -> Result<()>` - Subscribe to price feeds
348348
- `unsubscribe(id: SubscriptionId) -> Result<()>` - Unsubscribe from a feed
349349

350-
#### PythLazerHistoryClient
350+
#### PythLazerApiClient
351351

352352
- `all_symbols_metadata() -> Result<Vec<SymbolMetadata>>` - Fetch all symbols once
353353
- `all_symbols_metadata_handle() -> Result<SymbolMetadataHandle>` - Get auto-updating handle

0 commit comments

Comments
 (0)