@shapeshiftoss/types 4.3.1 → 4.4.1

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.
package/dist/base.d.ts CHANGED
@@ -37,60 +37,27 @@ 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",
74
61
  Test = "Test"
75
62
  }
76
- export declare type SwapSource = {
77
- name: string;
78
- proportion: string;
79
- };
80
- export interface MinMaxOutput {
81
- minimum: string;
82
- maximum: string;
83
- }
84
- export declare type GetMinMaxInput = {
85
- sellAsset: Asset;
86
- buyAsset: Asset;
87
- };
88
- export declare type ExecQuoteOutput = {
89
- txid: string;
90
- };
91
- export declare type ApprovalNeededOutput = {
92
- approvalNeeded: boolean;
93
- gas?: string;
94
- gasPrice?: string;
95
- };
96
63
  export {};
package/dist/base.js CHANGED
@@ -45,6 +45,7 @@ var AssetDataSource;
45
45
  AssetDataSource["YearnFinance"] = "yearnfinance";
46
46
  })(AssetDataSource = exports.AssetDataSource || (exports.AssetDataSource = {}));
47
47
  // swapper
48
+ // TODO remove this once web is using the type from swapper
48
49
  var SwapperType;
49
50
  (function (SwapperType) {
50
51
  SwapperType["Zrx"] = "0x";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "4.3.1",
3
+ "version": "4.4.1",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "type-check": "tsc --project ./tsconfig.build.json --noEmit"
23
23
  },
24
24
  "devDependencies": {
25
- "@shapeshiftoss/hdwallet-core": "^1.20.0"
25
+ "@shapeshiftoss/hdwallet-core": "^1.23.0"
26
26
  }
27
27
  }