@shapeshiftoss/types 4.0.0 → 4.0.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
@@ -1,5 +1,3 @@
1
- import { HDWallet } from '@shapeshiftoss/hdwallet-core';
2
- import { QuoteFeeData } from './chain-adapters';
3
1
  /** Common */
4
2
  export declare type BIP44Params = {
5
3
  purpose: number;
@@ -81,61 +79,9 @@ export interface MinMaxOutput {
81
79
  minimum: string;
82
80
  maximum: string;
83
81
  }
84
- export declare type QuoteResponse = {
85
- price: string;
86
- to: string;
87
- data?: string;
88
- value?: string;
89
- gas?: string;
90
- estimatedGas?: string;
91
- gasPrice?: string;
92
- protocolFee?: string;
93
- minimumProtocolFee?: string;
94
- buyTokenAddress?: string;
95
- sellTokenAddress?: string;
96
- buyAmount?: string;
97
- sellAmount?: string;
98
- allowanceTarget?: string;
99
- sources?: Array<SwapSource>;
100
- };
101
- export declare type Quote<C extends ChainTypes> = {
102
- success: boolean;
103
- statusReason?: string;
104
- sellAssetAccountId?: string;
105
- buyAssetAccountId?: string;
106
- sellAsset: Asset;
107
- buyAsset: Asset;
108
- feeData?: QuoteFeeData<C>;
109
- rate?: string;
110
- depositAddress?: string;
111
- receiveAddress?: string;
112
- buyAmount?: string;
113
- sellAmount?: string;
114
- minimum?: string | null;
115
- maximum?: string | null;
116
- txData?: string;
117
- value?: string;
118
- allowanceContract?: string;
119
- sources?: Array<SwapSource>;
120
- };
121
- export declare type GetQuoteInput = {
82
+ export declare type GetMinMaxInput = {
122
83
  sellAsset: Asset;
123
84
  buyAsset: Asset;
124
- sellAmount?: string;
125
- buyAmount?: string;
126
- sellAssetAccountId?: string;
127
- buyAssetAccountId?: string;
128
- slippage?: string;
129
- sendMax?: boolean;
130
- priceImpact?: string;
131
- };
132
- export declare type BuildQuoteTxInput = {
133
- input: GetQuoteInput;
134
- wallet: HDWallet;
135
- };
136
- export declare type ExecQuoteInput<C extends ChainTypes> = {
137
- quote: Quote<C>;
138
- wallet: HDWallet;
139
85
  };
140
86
  export declare type ExecQuoteOutput = {
141
87
  txid: string;
package/dist/base.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ /** Common */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.SwapperType = exports.AssetDataSource = exports.UtxoAccountType = exports.WithdrawType = exports.NetworkTypes = exports.ChainTypes = void 0;
4
5
  var ChainTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/types",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Common types shared across packages",
5
5
  "repository": "https://github.com/shapeshift/lib",
6
6
  "license": "MIT",