-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update HexString type and fix import paths
Co-Authored-By: Connor Prussin <[email protected]>
- Loading branch information
1 parent
e9b7ade
commit 78e873c
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,32 @@ | ||
export const HexString = String as { new(...args: any[]): string }; | ||
export type HexString = string; | ||
|
||
export interface PriceFeedRequestConfig { | ||
binary?: boolean; | ||
verbose?: boolean; | ||
allowOutOfOrder?: boolean; | ||
logger?: { | ||
trace: (...args: any[]) => void; | ||
debug: (...args: any[]) => void; | ||
info: (...args: any[]) => void; | ||
warn: (...args: any[]) => void; | ||
error: (...args: any[]) => void; | ||
}; | ||
} | ||
|
||
export interface PriceServiceConnectionConfig { | ||
url: string; | ||
priceFeedRequestConfig?: PriceFeedRequestConfig; | ||
timeout?: number; | ||
httpRetries?: number; | ||
verbose?: boolean; | ||
logger?: { | ||
trace: (...args: any[]) => void; | ||
debug: (...args: any[]) => void; | ||
info: (...args: any[]) => void; | ||
warn: (...args: any[]) => void; | ||
error: (...args: any[]) => void; | ||
}; | ||
} | ||
|
||
export type PriceFeedUpdateCallback = (priceFeed: any) => void; |
4 changes: 2 additions & 2 deletions
4
target_chains/aptos/sdk/js/src/AptosPriceServiceConnection.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters