@shapeshiftoss/types 1.16.1 → 1.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/market.d.ts +5 -8
  2. package/package.json +1 -1
package/dist/market.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { ChainTypes } from '.';
2
1
  export declare type MarketData = {
3
2
  price: string;
4
3
  marketCap: string;
@@ -18,21 +17,19 @@ export declare type HistoryData = {
18
17
  date: string;
19
18
  };
20
19
  export declare type PriceHistoryArgs = {
21
- chain: ChainTypes;
20
+ caip19: string;
22
21
  timeframe: HistoryTimeframe;
23
- tokenId?: string;
24
22
  };
25
23
  export declare type MarketDataArgs = {
26
- chain: ChainTypes;
27
- tokenId?: string;
24
+ caip19: string;
28
25
  };
29
- export declare type MarketDataType = (args: MarketDataArgs) => Promise<MarketData>;
26
+ export declare type FindAllMarketType = (args: FindAllMarketArgs) => Promise<MarketCapResult>;
27
+ export declare type FindByCaip19MarketType = (args: MarketDataArgs) => Promise<MarketData>;
30
28
  export declare type PriceHistoryType = (args: PriceHistoryArgs) => Promise<HistoryData[]>;
31
- export declare type GetByMarketCapArgs = {
29
+ export declare type FindAllMarketArgs = {
32
30
  pages: number;
33
31
  perPage: number;
34
32
  };
35
33
  export declare type MarketCapResult = {
36
34
  [k: string]: MarketData;
37
35
  };
38
- export declare type GetByMarketCapType = (args?: GetByMarketCapArgs) => Promise<MarketCapResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",