File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
target_chains/aptos/sdk/js/src Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ export type {
22
22
PriceFeedRequestConfig ,
23
23
PriceServiceConnectionConfig ,
24
24
PriceFeedUpdateCallback ,
25
- HexString ,
26
25
} from "./types.js" ;
27
26
export { PriceServiceConnection } from "./client/PriceServiceConnection.js" ;
27
+ export { HexString } from "./types.js" ;
28
28
29
29
/**
30
30
* A Pyth Price represented as `${price} ± ${conf} * 10^${expo}` published at `publishTime`.
Original file line number Diff line number Diff line change
1
+ export const HexString = String as { new ( ...args : any [ ] ) : string } ;
1
2
export type HexString = string ;
2
3
3
4
export interface PriceFeedRequestConfig {
4
5
binary ?: boolean ;
6
+ verbose ?: boolean ;
7
+ allowOutOfOrder ?: boolean ;
8
+ logger ?: {
9
+ trace : ( ...args : any [ ] ) => void ;
10
+ debug : ( ...args : any [ ] ) => void ;
11
+ info : ( ...args : any [ ] ) => void ;
12
+ warn : ( ...args : any [ ] ) => void ;
13
+ error : ( ...args : any [ ] ) => void ;
14
+ } ;
5
15
}
6
16
7
17
export interface PriceServiceConnectionConfig {
8
18
url : string ;
9
19
priceFeedRequestConfig ?: PriceFeedRequestConfig ;
10
20
timeout ?: number ;
11
21
httpRetries ?: number ;
22
+ verbose ?: boolean ;
23
+ logger ?: {
24
+ trace : ( ...args : any [ ] ) => void ;
25
+ debug : ( ...args : any [ ] ) => void ;
26
+ info : ( ...args : any [ ] ) => void ;
27
+ warn : ( ...args : any [ ] ) => void ;
28
+ error : ( ...args : any [ ] ) => void ;
29
+ } ;
12
30
}
13
31
14
32
export type PriceFeedUpdateCallback = ( priceFeed : any ) => void ;
Original file line number Diff line number Diff line change 1
- import { PriceServiceConnection } from "@pythnetwork/price-service-sdk" ;
2
- import type { HexString } from "@pythnetwork/price-service-sdk" ;
1
+ import { PriceServiceConnection } from "@pythnetwork/price-service-sdk/lib/client/PriceServiceConnection.js " ;
2
+ import { HexString } from "@pythnetwork/price-service-sdk/lib/types.js " ;
3
3
import { BCS } from "aptos" ;
4
4
import { Buffer } from "buffer" ;
5
5
You can’t perform that action at this time.
0 commit comments