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 {
2222 PriceFeedRequestConfig ,
2323 PriceServiceConnectionConfig ,
2424 PriceFeedUpdateCallback ,
25- HexString ,
2625} from "./types.js" ;
2726export { PriceServiceConnection } from "./client/PriceServiceConnection.js" ;
27+ export { HexString } from "./types.js" ;
2828
2929/**
3030 * 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 } ;
12export type HexString = string ;
23
34export interface PriceFeedRequestConfig {
45 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+ } ;
515}
616
717export interface PriceServiceConnectionConfig {
818 url : string ;
919 priceFeedRequestConfig ?: PriceFeedRequestConfig ;
1020 timeout ?: number ;
1121 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+ } ;
1230}
1331
1432export 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 " ;
33import { BCS } from "aptos" ;
44import { Buffer } from "buffer" ;
55
You can’t perform that action at this time.
0 commit comments