Skip to content

Commit

Permalink
improve(coingecko): Export class + extra types (#78)
Browse files Browse the repository at this point in the history
Both of these types are returned by functions in the CoinGecko class.

Ref: ACX-125
  • Loading branch information
pxrl authored Aug 18, 2022
1 parent ca0de27 commit 6b9d39b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/coingecko/Coingecko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export function msToS(ms: number) {
return Math.floor(ms / 1000);
}

type CoinGeckoAssetPlatform = {
export type CoinGeckoAssetPlatform = {
id: string;
chain_identifier: number;
name: string;
shortname: string;
};

type CoinGeckoPrice = {
export type CoinGeckoPrice = {
address: string;
timestamp: number;
price: number;
Expand Down Expand Up @@ -167,4 +167,3 @@ export class Coingecko {
}
}
}
export default Coingecko;
1 change: 1 addition & 0 deletions src/coingecko/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Coingecko";
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * as transfersHistory from "./transfers-history";
export * as relayFeeCalculator from "./relayFeeCalculator";
export * as utils from "./utils";
export * as contracts from "./contracts";
export * as coingecko from "./coingecko";

0 comments on commit 6b9d39b

Please sign in to comment.