Skip to content

Commit 6f4b64d

Browse files
committed
rename to HermesClient
1 parent 092db66 commit 6f4b64d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/hermes/client/js/src/HermesClient.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type DurationInSeconds = number;
1818
export type HexString = string;
1919
export type DurationInMs = number;
2020

21-
export type HermesConnectionConfig = {
21+
export type HermesClientConfig = {
2222
/* Timeout of each request (for all of retries). Default: 5000ms */
2323
timeout?: DurationInMs;
2424
/**
@@ -30,7 +30,7 @@ export type HermesConnectionConfig = {
3030
httpRetries?: number;
3131
};
3232

33-
export class HermesConnection {
33+
export class HermesClient {
3434
private baseURL: string;
3535
private timeout: DurationInMs;
3636
private httpRetries: number;
@@ -39,9 +39,9 @@ export class HermesConnection {
3939
* Constructs a new Connection.
4040
*
4141
* @param endpoint endpoint URL to the price service. Example: https://website/example/
42-
* @param config Optional HermesConnectionConfig for custom configurations.
42+
* @param config Optional HermesClientConfig for custom configurations.
4343
*/
44-
constructor(endpoint: string, config?: HermesConnectionConfig) {
44+
constructor(endpoint: string, config?: HermesClientConfig) {
4545
this.baseURL = endpoint;
4646
this.timeout = config?.timeout ?? DEFAULT_TIMEOUT;
4747
this.httpRetries = config?.httpRetries ?? DEFAULT_HTTP_RETRIES;

apps/hermes/client/js/src/examples/HermesClient.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import yargs from "yargs";
22
import { hideBin } from "yargs/helpers";
33

4-
import { HermesConnection } from "../index";
4+
import { HermesClient } from "../HermesClient";
55

66
function sleep(ms: number) {
77
return new Promise((resolve) => setTimeout(resolve, ms));
@@ -29,7 +29,7 @@ const argv = yargs(hideBin(process.argv))
2929
.parseSync();
3030

3131
async function run() {
32-
const connection = new HermesConnection(argv.endpoint);
32+
const connection = new HermesClient(argv.endpoint);
3333

3434
const priceIds = argv.priceIds as string[];
3535

0 commit comments

Comments
 (0)