Skip to content

Commit

Permalink
chore: Add export of MarketDataDetails type (#4622)
Browse files Browse the repository at this point in the history
## Explanation

<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:

* What is the current state of things and why does it need to change?
`metamask-mobile` uses the `MarketDataDetails` type, so it needs to be
exported from this repository
* What is the solution your changes offer and how does it work? I made
the `MarketDataDetails` get exported
* Are there any changes whose purpose might not obvious to those
unfamiliar with the domain? No
* If your primary goal was to update one package but you found you had
to update another one along the way, why did you do so? n/a
* If you had to upgrade a dependency, why did you do so? n/a
-->

## References


For example:

Helps to fix: MetaMask/metamask-mobile#10205

## Changelog

n/a

## Checklist

- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [ ] I've highlighted breaking changes using the "BREAKING" category
above as appropriate

Co-authored-by: kylan <[email protected]>
  • Loading branch information
kylanhurt and kylan authored Aug 20, 2024
1 parent 40cc4dc commit da78ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/assets-controllers/src/TokenRatesController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export type ContractExchangeRates = {
[address: string]: number | undefined;
};

type MarketDataDetails = {
export type MarketDataDetails = {
tokenAddress: `0x${string}`;
currency: string;
allTimeHigh: number;
Expand Down
1 change: 1 addition & 0 deletions packages/assets-controllers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export type {
TokenRatesControllerMessenger,
TokenRatesControllerState,
TokenRatesControllerStateChangeEvent,
MarketDataDetails,
} from './TokenRatesController';
export {
getDefaultTokenRatesControllerState,
Expand Down

0 comments on commit da78ffa

Please sign in to comment.