@shapeshiftoss/types 4.3.2 → 4.4.0

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/base.d.ts +3 -16
  2. package/package.json +1 -1
package/dist/base.d.ts CHANGED
@@ -37,37 +37,24 @@ export declare enum AssetDataSource {
37
37
  CoinGecko = "coingecko",
38
38
  YearnFinance = "yearnfinance"
39
39
  }
40
- declare type AbstractAsset = {
40
+ export declare type Asset = {
41
41
  assetId: string;
42
42
  chainId: string;
43
+ /** @deprecated: do not use. This will be removed once consumers have handled it */
43
44
  chain: ChainTypes;
44
45
  description?: string;
45
46
  isTrustedDescription?: boolean;
46
- dataSource: AssetDataSource;
47
+ /** @deprecated: do not use. This will be removed once consumers have handled it */
47
48
  network: NetworkTypes;
48
49
  symbol: string;
49
50
  name: string;
50
51
  precision: number;
51
- slip44: number;
52
52
  color: string;
53
- secondaryColor: string;
54
53
  icon: string;
55
54
  explorer: string;
56
55
  explorerTxLink: string;
57
56
  explorerAddressLink: string;
58
- sendSupport: boolean;
59
- receiveSupport: boolean;
60
57
  };
61
- declare type OmittedTokenAssetFields = 'chain' | 'network' | 'slip44' | 'explorer' | 'explorerTxLink' | 'explorerAddressLink';
62
- declare type TokenAssetFields = {
63
- tokenId: string;
64
- contractType: 'erc20' | 'erc721';
65
- };
66
- export declare type TokenAsset = Omit<AbstractAsset, OmittedTokenAssetFields> & TokenAssetFields;
67
- export declare type BaseAsset = AbstractAsset & {
68
- tokens?: TokenAsset[];
69
- };
70
- export declare type Asset = AbstractAsset & Partial<TokenAssetFields>;
71
58
  export declare enum SwapperType {
72
59
  Zrx = "0x",
73
60
  Thorchain = "Thorchain",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "4.3.2",
3
+ "version": "4.4.0",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",