File tree 2 files changed +6
-6
lines changed
apps/hermes/client/js/src
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export type DurationInSeconds = number;
18
18
export type HexString = string ;
19
19
export type DurationInMs = number ;
20
20
21
- export type HermesConnectionConfig = {
21
+ export type HermesClientConfig = {
22
22
/* Timeout of each request (for all of retries). Default: 5000ms */
23
23
timeout ?: DurationInMs ;
24
24
/**
@@ -30,7 +30,7 @@ export type HermesConnectionConfig = {
30
30
httpRetries ?: number ;
31
31
} ;
32
32
33
- export class HermesConnection {
33
+ export class HermesClient {
34
34
private baseURL : string ;
35
35
private timeout : DurationInMs ;
36
36
private httpRetries : number ;
@@ -39,9 +39,9 @@ export class HermesConnection {
39
39
* Constructs a new Connection.
40
40
*
41
41
* @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.
43
43
*/
44
- constructor ( endpoint : string , config ?: HermesConnectionConfig ) {
44
+ constructor ( endpoint : string , config ?: HermesClientConfig ) {
45
45
this . baseURL = endpoint ;
46
46
this . timeout = config ?. timeout ?? DEFAULT_TIMEOUT ;
47
47
this . httpRetries = config ?. httpRetries ?? DEFAULT_HTTP_RETRIES ;
Original file line number Diff line number Diff line change 1
1
import yargs from "yargs" ;
2
2
import { hideBin } from "yargs/helpers" ;
3
3
4
- import { HermesConnection } from "../index " ;
4
+ import { HermesClient } from "../HermesClient " ;
5
5
6
6
function sleep ( ms : number ) {
7
7
return new Promise ( ( resolve ) => setTimeout ( resolve , ms ) ) ;
@@ -29,7 +29,7 @@ const argv = yargs(hideBin(process.argv))
29
29
. parseSync ( ) ;
30
30
31
31
async function run ( ) {
32
- const connection = new HermesConnection ( argv . endpoint ) ;
32
+ const connection = new HermesClient ( argv . endpoint ) ;
33
33
34
34
const priceIds = argv . priceIds as string [ ] ;
35
35
You can’t perform that action at this time.
0 commit comments