@cowprotocol/cow-sdk 5.8.0-RC.9 → 5.8.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 (56) hide show
  1. package/dist/common/consts.d.ts +1 -11
  2. package/dist/common/generated/factories/index.d.ts +0 -2
  3. package/dist/common/generated/index.d.ts +0 -4
  4. package/dist/composable/ConditionalOrderFactory.d.ts +10 -0
  5. package/dist/index-c004f2c4.js +29 -0
  6. package/dist/index-c004f2c4.js.map +1 -0
  7. package/dist/index.d.ts +0 -1
  8. package/dist/index.js +4 -4
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.modern.mjs +1 -1
  11. package/dist/index.module.js +4 -4
  12. package/dist/index.module.js.map +1 -1
  13. package/dist/order-signing/orderSigningUtils.d.ts +8 -18
  14. package/dist/order-signing/utils.d.ts +1 -11
  15. package/dist/package.json +5 -8
  16. package/dist/utils-2718e59e.js +2 -0
  17. package/dist/utils-2718e59e.js.map +1 -0
  18. package/dist/utils-353bb58e.js +2 -0
  19. package/dist/utils-353bb58e.js.map +1 -0
  20. package/dist/utils-61509987.js +2 -0
  21. package/dist/utils-61509987.js.map +1 -0
  22. package/package.json +5 -8
  23. package/dist/common/generated/EthFlow.d.ts +0 -117
  24. package/dist/common/generated/GPv2Settlement.d.ts +0 -107
  25. package/dist/common/generated/factories/EthFlow__factory.d.ts +0 -124
  26. package/dist/common/generated/factories/GPv2Settlement__factory.d.ts +0 -81
  27. package/dist/index-74c14a9c.js +0 -29
  28. package/dist/index-74c14a9c.js.map +0 -1
  29. package/dist/schemas/trading/LimitOrderAdvancedSettings.ts +0 -228
  30. package/dist/schemas/trading/LimitTradeParameters.ts +0 -106
  31. package/dist/schemas/trading/QuoteResultsSerialized.ts +0 -848
  32. package/dist/schemas/trading/QuoterParameters.ts +0 -31
  33. package/dist/schemas/trading/SwapAdvancedSettings.ts +0 -334
  34. package/dist/schemas/trading/TradeParameters.ts +0 -93
  35. package/dist/trading/appDataUtils.d.ts +0 -4
  36. package/dist/trading/calculateUniqueOrderId.d.ts +0 -6
  37. package/dist/trading/consts.d.ts +0 -8
  38. package/dist/trading/getEthFlowTransaction.d.ts +0 -7
  39. package/dist/trading/getOrderToSign.d.ts +0 -8
  40. package/dist/trading/getOrderTypedData.d.ts +0 -4
  41. package/dist/trading/getPreSignTransaction.d.ts +0 -4
  42. package/dist/trading/getQuote.d.ts +0 -14
  43. package/dist/trading/index.d.ts +0 -19
  44. package/dist/trading/postCoWProtocolTrade.d.ts +0 -4
  45. package/dist/trading/postLimitOrder.d.ts +0 -3
  46. package/dist/trading/postOnChainTrade.d.ts +0 -8
  47. package/dist/trading/postSwapOrder.d.ts +0 -4
  48. package/dist/trading/tradingSdk.d.ts +0 -11
  49. package/dist/trading/types.d.ts +0 -135
  50. package/dist/trading/utils.d.ts +0 -16
  51. package/dist/utils-04e08646.js +0 -2
  52. package/dist/utils-04e08646.js.map +0 -1
  53. package/dist/utils-2580613b.js +0 -2
  54. package/dist/utils-2580613b.js.map +0 -1
  55. package/dist/utils-402de186.js +0 -2
  56. package/dist/utils-402de186.js.map +0 -1
@@ -1,31 +0,0 @@
1
- export default {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "properties": {
6
- "account": {
7
- "type": "string"
8
- },
9
- "chainId": {
10
- "type": "number",
11
- "enum": [
12
- 1,
13
- 100,
14
- 42161,
15
- 8453,
16
- 11155111
17
- ],
18
- "description": "Supported chains and their `chainId` for the SDK."
19
- },
20
- "appCode": {
21
- "type": "string",
22
- "description": "The code identifying the CLI, UI, service generating the order."
23
- }
24
- },
25
- "required": [
26
- "account",
27
- "appCode",
28
- "chainId"
29
- ],
30
- "definitions": {}
31
- } as const
@@ -1,334 +0,0 @@
1
- export default {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "properties": {
5
- "quoteRequest": {
6
- "type": "object",
7
- "properties": {
8
- "sellAmountBeforeFee": {
9
- "type": "string",
10
- "description": "The total amount that is available for the order. From this value, the fee is deducted and the buy amount is calculated."
11
- },
12
- "validTo": {
13
- "type": "number",
14
- "description": "Unix timestamp (`uint32`) until which the order is valid."
15
- },
16
- "sellToken": {
17
- "type": "string",
18
- "description": "ERC-20 token to be sold"
19
- },
20
- "buyToken": {
21
- "type": "string",
22
- "description": "ERC-20 token to be bought"
23
- },
24
- "receiver": {
25
- "anyOf": [
26
- {
27
- "type": "string",
28
- "description": "20 byte Ethereum address encoded as a hex with `0x` prefix."
29
- },
30
- {
31
- "type": "null"
32
- }
33
- ],
34
- "description": "An optional address to receive the proceeds of the trade instead of the `owner` (i.e. the order signer)."
35
- },
36
- "appData": {
37
- "anyOf": [
38
- {
39
- "type": "string",
40
- "description": "The string encoding of a JSON object representing some `appData`. The format of the JSON expected in the `appData` field is defined [here](https://github.com/cowprotocol/app-data)."
41
- },
42
- {
43
- "type": "string",
44
- "description": "32 bytes encoded as hex with `0x` prefix. It's expected to be the hash of the stringified JSON object representing the `appData`."
45
- }
46
- ],
47
- "description": "AppData which will be assigned to the order. Expects either a string JSON doc as defined on [AppData](https://github.com/cowprotocol/app-data) or a hex encoded string for backwards compatibility. When the first format is used, it's possible to provide the derived appDataHash field."
48
- },
49
- "appDataHash": {
50
- "type": "string",
51
- "description": "The hash of the stringified JSON appData doc. If present, `appData` field must be set with the aforementioned data where this hash is derived from. In case they differ, the call will fail."
52
- },
53
- "sellTokenBalance": {
54
- "type": "string",
55
- "enum": [
56
- "erc20",
57
- "internal",
58
- "external"
59
- ],
60
- "description": "Where should the `sellToken` be drawn from?"
61
- },
62
- "buyTokenBalance": {
63
- "type": "string",
64
- "enum": [
65
- "erc20",
66
- "internal"
67
- ],
68
- "description": "Where should the `buyToken` be transferred to?"
69
- },
70
- "from": {
71
- "type": "string",
72
- "description": "20 byte Ethereum address encoded as a hex with `0x` prefix."
73
- },
74
- "priceQuality": {
75
- "type": "string",
76
- "enum": [
77
- "fast",
78
- "optimal",
79
- "verified"
80
- ],
81
- "description": "How good should the price estimate be?\n\nFast: The price estimate is chosen among the fastest N price estimates. Optimal: The price estimate is chosen among all price estimates. Verified: The price estimate is chosen among all verified/simulated price estimates.\n\n**NOTE**: Orders are supposed to be created from `verified` or `optimal` price estimates."
82
- },
83
- "signingScheme": {
84
- "type": "string",
85
- "enum": [
86
- "eip712",
87
- "ethsign",
88
- "presign",
89
- "eip1271"
90
- ],
91
- "description": "How was the order signed?"
92
- },
93
- "onchainOrder": {
94
- "description": "Flag to signal whether the order is intended for on-chain order placement. Only valid for non ECDSA-signed orders.\""
95
- },
96
- "validFor": {
97
- "type": "number",
98
- "description": "Number (`uint32`) of seconds that the order should be valid for."
99
- },
100
- "sellAmountAfterFee": {
101
- "type": "string",
102
- "description": "The `sellAmount` for the order."
103
- },
104
- "buyAmountAfterFee": {
105
- "type": "string",
106
- "description": "The `buyAmount` for the order."
107
- }
108
- },
109
- "additionalProperties": false
110
- },
111
- "appData": {
112
- "type": "object",
113
- "properties": {
114
- "appCode": {
115
- "type": "string",
116
- "description": "The code identifying the CLI, UI, service generating the order."
117
- },
118
- "environment": {
119
- "type": "string",
120
- "description": "Environment from which the order came from."
121
- },
122
- "metadata": {
123
- "type": "object",
124
- "properties": {
125
- "signer": {
126
- "type": "string",
127
- "description": "The address of the trader who signs the CoW Swap order. This field should normally be omitted; it is recommended to use it if the signer is a smart-contract wallet using EIP-1271 signatures."
128
- },
129
- "referrer": {
130
- "type": "object",
131
- "properties": {
132
- "address": {
133
- "type": "string"
134
- }
135
- },
136
- "required": [
137
- "address"
138
- ],
139
- "additionalProperties": false
140
- },
141
- "utm": {
142
- "type": "object",
143
- "properties": {
144
- "utmSource": {
145
- "type": "string",
146
- "description": "Tracks in which medium the traffic originated from (twitter, facebook, etc.)"
147
- },
148
- "utmMedium": {
149
- "type": "string",
150
- "description": "Tracks in which medium the traffic originated from (mail, CPC, social, etc.)"
151
- },
152
- "utmCampaign": {
153
- "type": "string",
154
- "description": "Track the performance of a specific campaign"
155
- },
156
- "utmContent": {
157
- "type": "string",
158
- "description": "Track which link was clicked"
159
- },
160
- "utmTerm": {
161
- "type": "string",
162
- "description": "Track which keyword term a website visitor came from"
163
- }
164
- },
165
- "additionalProperties": false
166
- },
167
- "quote": {
168
- "type": "object",
169
- "properties": {
170
- "slippageBips": {
171
- "type": "number",
172
- "description": "Slippage tolerance that was applied to the order to get the limit price. Expressed in Basis Points (BPS). One basis point is equivalent to 0.01% (1/100th of a percent)"
173
- },
174
- "smartSlippage": {
175
- "type": "boolean",
176
- "description": "Whether the given slippageBips used is originated from a Smart slippage suggestion"
177
- }
178
- },
179
- "required": [
180
- "slippageBips"
181
- ],
182
- "additionalProperties": false
183
- },
184
- "orderClass": {
185
- "type": "object",
186
- "properties": {
187
- "orderClass": {
188
- "type": "string",
189
- "enum": [
190
- "market",
191
- "limit",
192
- "liquidity",
193
- "twap"
194
- ],
195
- "description": "Indicator of the order class."
196
- }
197
- },
198
- "required": [
199
- "orderClass"
200
- ],
201
- "additionalProperties": false
202
- },
203
- "hooks": {
204
- "type": "object",
205
- "properties": {
206
- "version": {
207
- "type": "string",
208
- "description": "Semantic versioning of document."
209
- },
210
- "pre": {
211
- "type": "array",
212
- "items": {
213
- "type": "object",
214
- "properties": {
215
- "target": {
216
- "type": "string",
217
- "description": "The contract to call for the hook"
218
- },
219
- "callData": {
220
- "type": "string",
221
- "description": "The calldata to use when calling the hook"
222
- },
223
- "gasLimit": {
224
- "type": "string",
225
- "description": "The gas limit (in gas units) for the hook"
226
- },
227
- "dappId": {
228
- "type": "string",
229
- "description": "CoW Swap has an interface that allows dApps to build hooks for orders. This field is used to identify the dApp that has built the hook."
230
- }
231
- },
232
- "required": [
233
- "target",
234
- "callData",
235
- "gasLimit"
236
- ],
237
- "additionalProperties": false
238
- },
239
- "description": "CoW Hooks to call before an order executes"
240
- },
241
- "post": {
242
- "type": "array",
243
- "items": {
244
- "type": "object",
245
- "properties": {
246
- "target": {
247
- "type": "string",
248
- "description": "The contract to call for the hook"
249
- },
250
- "callData": {
251
- "type": "string",
252
- "description": "The calldata to use when calling the hook"
253
- },
254
- "gasLimit": {
255
- "type": "string",
256
- "description": "The gas limit (in gas units) for the hook"
257
- },
258
- "dappId": {
259
- "type": "string",
260
- "description": "CoW Swap has an interface that allows dApps to build hooks for orders. This field is used to identify the dApp that has built the hook."
261
- }
262
- },
263
- "required": [
264
- "target",
265
- "callData",
266
- "gasLimit"
267
- ],
268
- "additionalProperties": false
269
- },
270
- "description": "CoW Hooks to call after an order executes"
271
- }
272
- },
273
- "additionalProperties": false,
274
- "description": "Optional Pre and Post order interaction hooks attached to a single order"
275
- },
276
- "widget": {
277
- "type": "object",
278
- "properties": {
279
- "appCode": {
280
- "type": "string",
281
- "description": "The code identifying the UI powering the widget"
282
- },
283
- "environment": {
284
- "type": "string",
285
- "description": "Environment from which the order came from."
286
- }
287
- },
288
- "required": [
289
- "appCode"
290
- ],
291
- "additionalProperties": false
292
- },
293
- "partnerFee": {
294
- "type": "object",
295
- "properties": {
296
- "bps": {
297
- "type": "number",
298
- "description": "The fee in basis points (BPS) to be paid to the partner. One basis point is equivalent to 0.01% (1/100th of a percent)"
299
- },
300
- "recipient": {
301
- "type": "string",
302
- "description": "The Ethereum address of the partner to receive the fee."
303
- }
304
- },
305
- "required": [
306
- "bps",
307
- "recipient"
308
- ],
309
- "additionalProperties": false
310
- },
311
- "replacedOrder": {
312
- "type": "object",
313
- "properties": {
314
- "uid": {
315
- "type": "string",
316
- "description": "The replaced order UID."
317
- }
318
- },
319
- "required": [
320
- "uid"
321
- ],
322
- "additionalProperties": false
323
- }
324
- },
325
- "additionalProperties": false,
326
- "description": "Each metadata will specify one aspect of the order."
327
- }
328
- },
329
- "additionalProperties": false
330
- }
331
- },
332
- "additionalProperties": false,
333
- "definitions": {}
334
- } as const
@@ -1,93 +0,0 @@
1
- export default {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "properties": {
6
- "env": {
7
- "type": "string",
8
- "enum": [
9
- "prod",
10
- "staging"
11
- ],
12
- "description": "The environment to use for the Cow API."
13
- },
14
- "partiallyFillable": {
15
- "type": "boolean",
16
- "description": "Is the order fill-or-kill or partially fillable?"
17
- },
18
- "slippageBps": {
19
- "type": "number",
20
- "description": "Slippage tolerance that was applied to the order to get the limit price. Expressed in Basis Points (BPS). One basis point is equivalent to 0.01% (1/100th of a percent)"
21
- },
22
- "receiver": {
23
- "anyOf": [
24
- {
25
- "type": "string",
26
- "description": "20 byte Ethereum address encoded as a hex with `0x` prefix."
27
- },
28
- {
29
- "type": "null"
30
- }
31
- ],
32
- "description": "An optional Ethereum address to receive the proceeds of the trade instead of the owner (i.e. the order signer)."
33
- },
34
- "validFor": {
35
- "type": "number",
36
- "description": "Unix timestamp (`uint32`) until which the order is valid."
37
- },
38
- "partnerFee": {
39
- "type": "object",
40
- "properties": {
41
- "bps": {
42
- "type": "number",
43
- "description": "The fee in basis points (BPS) to be paid to the partner. One basis point is equivalent to 0.01% (1/100th of a percent)"
44
- },
45
- "recipient": {
46
- "type": "string",
47
- "description": "The Ethereum address of the partner to receive the fee."
48
- }
49
- },
50
- "required": [
51
- "bps",
52
- "recipient"
53
- ],
54
- "additionalProperties": false
55
- },
56
- "kind": {
57
- "type": "string",
58
- "enum": [
59
- "buy",
60
- "sell"
61
- ],
62
- "description": "Is this order a buy or sell?"
63
- },
64
- "sellToken": {
65
- "type": "string",
66
- "description": "ERC-20 token to be sold."
67
- },
68
- "sellTokenDecimals": {
69
- "type": "number"
70
- },
71
- "buyToken": {
72
- "type": "string",
73
- "description": "ERC-20 token to be bought."
74
- },
75
- "buyTokenDecimals": {
76
- "type": "number"
77
- },
78
- "amount": {
79
- "type": "string",
80
- "description": "Amount of a token. `uint256` encoded in decimal."
81
- }
82
- },
83
- "required": [
84
- "amount",
85
- "buyToken",
86
- "buyTokenDecimals",
87
- "kind",
88
- "sellToken",
89
- "sellTokenDecimals"
90
- ],
91
- "description": "Trade type, assets, amounts, and optional parameters.",
92
- "definitions": {}
93
- } as const
@@ -1,4 +0,0 @@
1
- import { AppDataInfo, AppDataRootSchema, BuildAppDataParams } from './types';
2
- import { AppDataParams } from '@cowprotocol/app-data';
3
- export declare function buildAppData({ slippageBps, appCode, orderClass: orderClassName }: BuildAppDataParams, advancedParams?: AppDataParams): Promise<AppDataInfo>;
4
- export declare function generateAppDataFromDoc(doc: AppDataRootSchema): Promise<Pick<AppDataInfo, 'fullAppData' | 'appDataKeccak256'>>;
@@ -1,6 +0,0 @@
1
- import { UnsignedOrder } from '../order-signing';
2
- import { CowEnv, SupportedChainId } from '../common';
3
- export interface EthFlowOrderExistsCallback {
4
- (orderId: string, orderDigest: string): Promise<boolean>;
5
- }
6
- export declare function calculateUniqueOrderId(chainId: SupportedChainId, order: UnsignedOrder, checkEthFlowOrderExists?: EthFlowOrderExistsCallback, env?: CowEnv): Promise<string>;
@@ -1,8 +0,0 @@
1
- import { SigningScheme } from '../order-book';
2
- export declare const log: (text: string) => void;
3
- export declare const DEFAULT_QUOTE_VALIDITY: number;
4
- export declare const SIGN_SCHEME_MAP: {
5
- eip712: SigningScheme;
6
- ethsign: SigningScheme;
7
- };
8
- export declare const GAS_LIMIT_DEFAULT: bigint;
@@ -1,7 +0,0 @@
1
- import { Signer } from 'ethers';
2
- import { LimitTradeParameters, TransactionParams } from './types';
3
- import { EthFlowOrderExistsCallback } from './calculateUniqueOrderId';
4
- export declare function getEthFlowTransaction(signer: Signer, appDataKeccak256: string, _params: LimitTradeParameters, networkCostsAmount?: string, checkEthFlowOrderExists?: EthFlowOrderExistsCallback): Promise<{
5
- orderId: string;
6
- transaction: TransactionParams;
7
- }>;
@@ -1,8 +0,0 @@
1
- import { UnsignedOrder } from '../order-signing';
2
- import { LimitTradeParameters } from './types';
3
- interface OrderToSignParams {
4
- from: string;
5
- networkCostsAmount?: string;
6
- }
7
- export declare function getOrderToSign({ from, networkCostsAmount }: OrderToSignParams, limitOrderParams: LimitTradeParameters, appDataKeccak256: string): UnsignedOrder;
8
- export {};
@@ -1,4 +0,0 @@
1
- import { OrderTypedData } from './types';
2
- import { UnsignedOrder } from '../order-signing';
3
- import { SupportedChainId } from '../common';
4
- export declare function getOrderTypedData(chainId: SupportedChainId, orderToSign: UnsignedOrder): Promise<OrderTypedData>;
@@ -1,4 +0,0 @@
1
- import { SupportedChainId } from '../common';
2
- import type { Signer } from 'ethers';
3
- import { TransactionParams } from './types';
4
- export declare function getPreSignTransaction(signer: Signer, chainId: SupportedChainId, account: string, orderId: string): Promise<TransactionParams>;
@@ -1,14 +0,0 @@
1
- import { QuoteResults, QuoterParameters, SwapAdvancedSettings, SwapParameters, TradeParameters } from './types';
2
- import { OrderBookApi } from '../order-book';
3
- import { Signer } from 'ethers';
4
- export type QuoteResultsWithSigner = {
5
- result: QuoteResults & {
6
- signer: Signer;
7
- };
8
- orderBookApi: OrderBookApi;
9
- };
10
- export declare function getQuote(_tradeParameters: TradeParameters, trader: QuoterParameters, advancedSettings?: SwapAdvancedSettings, _orderBookApi?: OrderBookApi): Promise<{
11
- result: QuoteResults;
12
- orderBookApi: OrderBookApi;
13
- }>;
14
- export declare function getQuoteWithSigner(swapParameters: SwapParameters, advancedSettings?: SwapAdvancedSettings, orderBookApi?: OrderBookApi): Promise<QuoteResultsWithSigner>;
@@ -1,19 +0,0 @@
1
- export * from './types';
2
- export * from './tradingSdk';
3
- /**
4
- * Main trading functions
5
- */
6
- export { getQuote, getQuoteWithSigner } from './getQuote';
7
- export { postSwapOrder, postSwapOrderFromQuote } from './postSwapOrder';
8
- export { postLimitOrder } from './postLimitOrder';
9
- export { postCoWProtocolTrade } from './postCoWProtocolTrade';
10
- export { getOrderToSign } from './getOrderToSign';
11
- export { postOnChainTrade } from './postOnChainTrade';
12
- export { getEthFlowTransaction } from './getEthFlowTransaction';
13
- export { getPreSignTransaction } from './getPreSignTransaction';
14
- /**
15
- * Helpers
16
- */
17
- export * from './appDataUtils';
18
- export * from './calculateUniqueOrderId';
19
- export { swapParamsToLimitOrderParams, mapQuoteAmountsAndCosts } from './utils';
@@ -1,4 +0,0 @@
1
- import { OrderBookApi } from '../order-book';
2
- import type { Signer } from 'ethers';
3
- import { AppDataInfo, LimitTradeParameters } from './types';
4
- export declare function postCoWProtocolTrade(orderBookApi: OrderBookApi, signer: Signer, appData: AppDataInfo, params: LimitTradeParameters, networkCostsAmount?: string): Promise<string>;
@@ -1,3 +0,0 @@
1
- import { LimitOrderAdvancedSettings, LimitOrderParameters } from './types';
2
- import { OrderBookApi } from '../order-book';
3
- export declare function postLimitOrder(params: LimitOrderParameters, advancedSettings?: LimitOrderAdvancedSettings, _orderBookApi?: OrderBookApi): Promise<string>;
@@ -1,8 +0,0 @@
1
- import { Signer } from 'ethers';
2
- import { AppDataInfo, LimitTradeParameters } from './types';
3
- import { EthFlowOrderExistsCallback } from './calculateUniqueOrderId';
4
- import { OrderBookApi } from '../order-book';
5
- export declare function postOnChainTrade(orderBookApi: OrderBookApi, signer: Signer, appData: Pick<AppDataInfo, 'fullAppData' | 'appDataKeccak256'>, _params: LimitTradeParameters, networkCostsAmount?: string, checkEthFlowOrderExists?: EthFlowOrderExistsCallback): Promise<{
6
- txHash: string;
7
- orderId: string;
8
- }>;
@@ -1,4 +0,0 @@
1
- import { SwapAdvancedSettings, SwapParameters } from './types';
2
- import { QuoteResultsWithSigner } from './getQuote';
3
- export declare function postSwapOrder(params: SwapParameters, advancedSettings?: SwapAdvancedSettings): Promise<string>;
4
- export declare function postSwapOrderFromQuote({ orderBookApi, result: { signer, appDataInfo, quoteResponse, tradeParameters, amountsAndCosts }, }: QuoteResultsWithSigner): Promise<string>;
@@ -1,11 +0,0 @@
1
- import { LimitOrderAdvancedSettings, LimitTradeParameters, QuoteAndPost, SwapAdvancedSettings, TradeParameters, TraderParameters } from './types';
2
- import { postOnChainTrade } from './postOnChainTrade';
3
- export declare class TradingSdk {
4
- readonly traderParams: TraderParameters;
5
- constructor(traderParams: TraderParameters);
6
- postSwapOrder(params: TradeParameters, advancedSettings?: SwapAdvancedSettings): Promise<string>;
7
- postLimitOrder(params: LimitTradeParameters, advancedSettings?: LimitOrderAdvancedSettings): Promise<string>;
8
- postOnChainTrade(params: TradeParameters, advancedSettings?: SwapAdvancedSettings): Promise<ReturnType<typeof postOnChainTrade>>;
9
- getQuote(params: TradeParameters, advancedSettings?: SwapAdvancedSettings): Promise<QuoteAndPost>;
10
- private mergeParams;
11
- }