-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53d0a35
commit c59bee0
Showing
7 changed files
with
96 additions
and
96 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
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export type Currency = 'btc'; | ||
|
||
/** | ||
* The rate object. | ||
* | ||
* @property conversionRate - The conversion rate. It maps a currency code (e.g. "btc") to its | ||
* conversion rate | ||
* @property conversionDate - The date of the conversion rate as a UNIX timestamp. | ||
* @property usdConversionRate - The conversion rate to USD. | ||
*/ | ||
export type Rate = { | ||
conversionRate: string; | ||
conversionDate: number; | ||
usdConversionRate?: string; | ||
}; | ||
|
||
/** | ||
* The request parameters for the `snap_getCurrencyRate` method. | ||
* | ||
* @property currency - The currency symbol. | ||
*/ | ||
export type GetCurrencyRateParams = { | ||
currency: Currency; | ||
}; | ||
|
||
/** | ||
* The result returned by the `snap_getCurrencyRate` method, which is the {@link Rate} object. | ||
*/ | ||
export type GetCurrencyRateResult = Rate | null; |
This file was deleted.
Oops, something went wrong.
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