@velora-dex/sdk 9.5.4-dev.2 → 9.5.4

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 (93) hide show
  1. package/README.md +0 -156
  2. package/dist/examples/helpers/delta.d.ts +1 -1
  3. package/dist/examples/helpers/delta.d.ts.map +1 -1
  4. package/dist/index.d.ts +3 -4
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/methods/delta/cancelDeltaOrder.d.ts.map +1 -1
  7. package/dist/methods/delta/getDeltaOrders.d.ts +4 -4
  8. package/dist/methods/delta/getDeltaOrders.d.ts.map +1 -1
  9. package/dist/methods/delta/getDeltaPrice.d.ts +1 -1
  10. package/dist/methods/delta/getDeltaPrice.d.ts.map +1 -1
  11. package/dist/methods/delta/helpers/orders.d.ts +17 -16
  12. package/dist/methods/delta/helpers/orders.d.ts.map +1 -1
  13. package/dist/methods/delta/helpers/types.d.ts +11 -56
  14. package/dist/methods/delta/helpers/types.d.ts.map +1 -1
  15. package/dist/methods/delta/postDeltaOrder.d.ts +3 -3
  16. package/dist/methods/delta/postDeltaOrder.d.ts.map +1 -1
  17. package/dist/sdk/full.d.ts +0 -2
  18. package/dist/sdk/full.d.ts.map +1 -1
  19. package/dist/sdk/simple.d.ts +0 -4
  20. package/dist/sdk/simple.d.ts.map +1 -1
  21. package/dist/sdk.cjs.development.js +402 -1539
  22. package/dist/sdk.cjs.development.js.map +1 -1
  23. package/dist/sdk.cjs.production.min.js +1 -1
  24. package/dist/sdk.cjs.production.min.js.map +1 -1
  25. package/dist/sdk.esm.js +387 -1523
  26. package/dist/sdk.esm.js.map +1 -1
  27. package/dist/types.d.ts +0 -8
  28. package/dist/types.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/examples/helpers/delta.ts +1 -6
  31. package/src/index.js +0 -55
  32. package/src/index.ts +0 -37
  33. package/src/methods/delta/cancelDeltaOrder.ts +1 -4
  34. package/src/methods/delta/getDeltaOrders.ts +5 -6
  35. package/src/methods/delta/getDeltaPrice.ts +1 -1
  36. package/src/methods/delta/helpers/orders.ts +20 -32
  37. package/src/methods/delta/helpers/types.ts +15 -60
  38. package/src/methods/delta/postDeltaOrder.ts +4 -4
  39. package/src/methods/delta/postTWAPDeltaOrder.ts +1 -1
  40. package/src/sdk/full.ts +0 -8
  41. package/src/sdk/simple.ts +0 -30
  42. package/src/types.ts +0 -9
  43. package/dist/examples/deltaV2.d.ts +0 -2
  44. package/dist/examples/deltaV2.d.ts.map +0 -1
  45. package/dist/examples/helpers/deltaV2.d.ts +0 -5
  46. package/dist/examples/helpers/deltaV2.d.ts.map +0 -1
  47. package/dist/methods/deltaV2/buildDeltaOrder.d.ts +0 -45
  48. package/dist/methods/deltaV2/buildDeltaOrder.d.ts.map +0 -1
  49. package/dist/methods/deltaV2/buildExternalDeltaOrder.d.ts +0 -49
  50. package/dist/methods/deltaV2/buildExternalDeltaOrder.d.ts.map +0 -1
  51. package/dist/methods/deltaV2/buildTWAPDeltaOrder.d.ts +0 -60
  52. package/dist/methods/deltaV2/buildTWAPDeltaOrder.d.ts.map +0 -1
  53. package/dist/methods/deltaV2/cancelDeltaOrder.d.ts +0 -21
  54. package/dist/methods/deltaV2/cancelDeltaOrder.d.ts.map +0 -1
  55. package/dist/methods/deltaV2/getAgentsList.d.ts +0 -10
  56. package/dist/methods/deltaV2/getAgentsList.d.ts.map +0 -1
  57. package/dist/methods/deltaV2/getBridgeRoutes.d.ts +0 -20
  58. package/dist/methods/deltaV2/getBridgeRoutes.d.ts.map +0 -1
  59. package/dist/methods/deltaV2/getDeltaOrders.d.ts +0 -40
  60. package/dist/methods/deltaV2/getDeltaOrders.d.ts.map +0 -1
  61. package/dist/methods/deltaV2/getDeltaPrice.d.ts +0 -46
  62. package/dist/methods/deltaV2/getDeltaPrice.d.ts.map +0 -1
  63. package/dist/methods/deltaV2/helpers/orders.d.ts +0 -191
  64. package/dist/methods/deltaV2/helpers/orders.d.ts.map +0 -1
  65. package/dist/methods/deltaV2/index.d.ts +0 -72
  66. package/dist/methods/deltaV2/index.d.ts.map +0 -1
  67. package/dist/methods/deltaV2/isTokenSupportedInDelta.d.ts +0 -8
  68. package/dist/methods/deltaV2/isTokenSupportedInDelta.d.ts.map +0 -1
  69. package/dist/methods/deltaV2/postDeltaOrder.d.ts +0 -29
  70. package/dist/methods/deltaV2/postDeltaOrder.d.ts.map +0 -1
  71. package/dist/methods/deltaV2/postExternalDeltaOrder.d.ts +0 -11
  72. package/dist/methods/deltaV2/postExternalDeltaOrder.d.ts.map +0 -1
  73. package/dist/methods/deltaV2/postTWAPDeltaOrder.d.ts +0 -17
  74. package/dist/methods/deltaV2/postTWAPDeltaOrder.d.ts.map +0 -1
  75. package/dist/methods/deltaV2/types.d.ts +0 -169
  76. package/dist/methods/deltaV2/types.d.ts.map +0 -1
  77. package/src/examples/deltaV2.ts +0 -196
  78. package/src/examples/helpers/deltaV2.ts +0 -34
  79. package/src/methods/deltaV2/buildDeltaOrder.ts +0 -86
  80. package/src/methods/deltaV2/buildExternalDeltaOrder.ts +0 -95
  81. package/src/methods/deltaV2/buildTWAPDeltaOrder.ts +0 -131
  82. package/src/methods/deltaV2/cancelDeltaOrder.ts +0 -100
  83. package/src/methods/deltaV2/getAgentsList.ts +0 -32
  84. package/src/methods/deltaV2/getBridgeRoutes.ts +0 -82
  85. package/src/methods/deltaV2/getDeltaOrders.ts +0 -149
  86. package/src/methods/deltaV2/getDeltaPrice.ts +0 -108
  87. package/src/methods/deltaV2/helpers/orders.ts +0 -363
  88. package/src/methods/deltaV2/index.ts +0 -312
  89. package/src/methods/deltaV2/isTokenSupportedInDelta.ts +0 -52
  90. package/src/methods/deltaV2/postDeltaOrder.ts +0 -62
  91. package/src/methods/deltaV2/postExternalDeltaOrder.ts +0 -45
  92. package/src/methods/deltaV2/postTWAPDeltaOrder.ts +0 -58
  93. package/src/methods/deltaV2/types.ts +0 -202
package/src/sdk/full.ts CHANGED
@@ -12,10 +12,6 @@ import {
12
12
  constructAllDeltaOrdersHandlers,
13
13
  DeltaOrderHandlers,
14
14
  } from '../methods/delta';
15
- import {
16
- constructAllDeltaOrdersHandlers as constructAllDeltaV2OrdersHandlers,
17
- DeltaOrderHandlers as DeltaV2OrderHandlers,
18
- } from '../methods/deltaV2';
19
15
  import {
20
16
  constructGetQuote,
21
17
  GetQuoteFunctions,
@@ -30,7 +26,6 @@ export type AllSDKMethods<TxResponse> = {
30
26
  /** @deprecated NFT Orders are deprecated and will be removed in a future version. */
31
27
  nftOrders: NFTOrderHandlers<TxResponse>;
32
28
  delta: DeltaOrderHandlers<TxResponse>;
33
- deltaV2: DeltaV2OrderHandlers<TxResponse>;
34
29
  quote: GetQuoteFunctions;
35
30
  } & Required<ConstructBaseInput>;
36
31
 
@@ -46,8 +41,6 @@ export const constructFullSDK = <TxResponse = any>(
46
41
  constructAllNFTOrdersHandlers(config);
47
42
  const delta: DeltaOrderHandlers<TxResponse> =
48
43
  constructAllDeltaOrdersHandlers(config);
49
- const deltaV2: DeltaV2OrderHandlers<TxResponse> =
50
- constructAllDeltaV2OrdersHandlers(config);
51
44
  const quote = constructGetQuote(config);
52
45
 
53
46
  return {
@@ -55,7 +48,6 @@ export const constructFullSDK = <TxResponse = any>(
55
48
  limitOrders,
56
49
  nftOrders,
57
50
  delta,
58
- deltaV2,
59
51
  quote,
60
52
  apiURL: config.apiURL ?? API_URL,
61
53
  chainId: config.chainId,
package/src/sdk/simple.ts CHANGED
@@ -137,8 +137,6 @@ import {
137
137
  IsTokenSupportedInDeltaFunctions,
138
138
  } from '../methods/delta/isTokenSupportedInDelta';
139
139
 
140
- import * as DeltaV2 from '../methods/deltaV2';
141
-
142
140
  export type SwapFetchMethods = GetBalancesFunctions &
143
141
  GetTokensFunctions &
144
142
  GetSpenderFunctions &
@@ -170,15 +168,6 @@ export type DeltaFetchMethods = BuildDeltaOrderFunctions &
170
168
  IsTokenSupportedInDeltaFunctions &
171
169
  PostDeltaOrderFunctions;
172
170
 
173
- export type DeltaV2FetchMethods = DeltaV2.BuildDeltaOrderFunctions &
174
- DeltaV2.GetDeltaOrdersFunctions &
175
- DeltaV2.GetDeltaPriceFunctions &
176
- GetDeltaContractFunctions &
177
- GetPartnerFeeFunctions &
178
- DeltaV2.GetBridgeRoutesFunctions &
179
- DeltaV2.IsTokenSupportedInDeltaFunctions &
180
- DeltaV2.PostDeltaOrderFunctions;
181
-
182
171
  export type SimpleFetchSDK = {
183
172
  swap: SwapFetchMethods;
184
173
  /** @deprecated Limit Orders are deprecated and will be removed in a future version. */
@@ -186,7 +175,6 @@ export type SimpleFetchSDK = {
186
175
  /** @deprecated NFT Orders are deprecated and will be removed in a future version. */
187
176
  nftOrders: NFTOrdersFetchMethods;
188
177
  delta: DeltaFetchMethods;
189
- deltaV2: DeltaV2FetchMethods;
190
178
  quote: QuoteFetchMethods;
191
179
  } & Required<ConstructBaseInput>;
192
180
 
@@ -199,7 +187,6 @@ export type SimpleSDK = {
199
187
  /** @deprecated NFT Orders are deprecated and will be removed in a future version. */
200
188
  nftOrders: NFTOrderHandlers<TxHash>;
201
189
  delta: DeltaOrderHandlers<TxHash>;
202
- deltaV2: DeltaV2.DeltaOrderHandlers<TxHash>;
203
190
  quote: QuoteFetchMethods;
204
191
  } & Required<ConstructBaseInput>;
205
192
 
@@ -311,18 +298,6 @@ export function constructSimpleSDK(
311
298
  constructIsTokenSupportedInDelta
312
299
  );
313
300
 
314
- const deltaV2 = constructPartialSDK(
315
- config,
316
- DeltaV2.constructBuildDeltaOrder,
317
- DeltaV2.constructPostDeltaOrder,
318
- DeltaV2.constructGetDeltaOrders,
319
- DeltaV2.constructGetDeltaPrice,
320
- constructGetDeltaContract,
321
- constructGetPartnerFee,
322
- DeltaV2.constructGetBridgeRoutes,
323
- DeltaV2.constructIsTokenSupportedInDelta
324
- );
325
-
326
301
  const quote = constructPartialSDK(config, constructGetQuote);
327
302
 
328
303
  return {
@@ -330,7 +305,6 @@ export function constructSimpleSDK(
330
305
  limitOrders,
331
306
  nftOrders,
332
307
  delta,
333
- deltaV2,
334
308
  quote,
335
309
  apiURL: options.apiURL ?? API_URL,
336
310
  chainId: options.chainId,
@@ -359,9 +333,6 @@ export function constructSimpleSDK(
359
333
  const delta: DeltaOrderHandlers<TxHash> =
360
334
  constructAllDeltaOrdersHandlers<TxHash>(config);
361
335
 
362
- const deltaV2: DeltaV2.DeltaOrderHandlers<TxHash> =
363
- DeltaV2.constructAllDeltaOrdersHandlers<TxHash>(config);
364
-
365
336
  const quote = constructGetQuote(config);
366
337
 
367
338
  return {
@@ -369,7 +340,6 @@ export function constructSimpleSDK(
369
340
  limitOrders,
370
341
  nftOrders,
371
342
  delta,
372
- deltaV2,
373
343
  quote,
374
344
  apiURL: options.apiURL ?? API_URL,
375
345
  chainId: options.chainId,
package/src/types.ts CHANGED
@@ -241,12 +241,3 @@ export interface JsonFragment {
241
241
  */
242
242
  readonly gas?: string;
243
243
  }
244
-
245
- /** @description Standard pagination envelope returned by paginated API endpoints. */
246
- export type PaginatedResponse<T> = {
247
- data: T[];
248
- total: number;
249
- page: number;
250
- limit: number;
251
- hasMore: boolean;
252
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=deltaV2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deltaV2.d.ts","sourceRoot":"","sources":["../../src/examples/deltaV2.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { DeltaV2 } from '../..';
2
- type GetDeltaOrderV2Fn = () => Promise<DeltaV2.DeltaAuction>;
3
- export declare function startStatusCheckV2(getDeltaOrder: GetDeltaOrderV2Fn): () => void;
4
- export {};
5
- //# sourceMappingURL=deltaV2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deltaV2.d.ts","sourceRoot":"","sources":["../../../src/examples/helpers/deltaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAQhC,KAAK,iBAAiB,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAiB7D,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,cAQlE"}
@@ -1,45 +0,0 @@
1
- import type { ConstructFetchInput, RequestParameters } from '../../types';
2
- import type { DeltaAuctionOrder } from '../delta/helpers/types';
3
- import type { BuiltDeltaOrder, DeltaRoute } from './types';
4
- export type { BuiltDeltaOrder } from './types';
5
- export type BuildDeltaOrderParams = {
6
- /** @description The address of the order owner */
7
- owner: string;
8
- /** @description The address of the order beneficiary. Defaults to owner. */
9
- beneficiary?: string;
10
- /** @description The deadline for the order (unix seconds) */
11
- deadline?: number;
12
- /** @description The nonce of the order. Random if omitted. */
13
- nonce?: string;
14
- /** @description Optional permit signature for the src token. Defaults to "0x". */
15
- permit?: string;
16
- /** @description Partner string. Passed to the server to resolve partner fee details. */
17
- partner?: string;
18
- /** @description Partner fee in basis points (bps), 50bps=0.5% */
19
- partnerFeeBps?: number;
20
- /** @description Partner address */
21
- partnerAddress?: string;
22
- /** @description Take surplus flag */
23
- partnerTakesSurplus?: boolean;
24
- /** @description Whether the surplus should be capped. True by default. */
25
- capSurplus?: boolean;
26
- /** @description Metadata for the order, hex string */
27
- metadata?: string;
28
- /** @description Designates the Order as partially fillable instead of fill-or-kill. Default false. */
29
- partiallyFillable?: boolean;
30
- /** @description DeltaRoute from getDeltaPrice — either price.route or any price.alternatives[i] */
31
- route: DeltaRoute;
32
- /** @description Order side. SELL or BUY. */
33
- side: 'SELL' | 'BUY';
34
- /** @description Slippage in basis points (bps). 10000 = 100%, 50 = 0.5%. Default 0. */
35
- slippage?: number;
36
- /** @description If passed, the server will use this as SELL destAmount (as BUY srcAmount) and expectedAmount */
37
- limitAmount?: string;
38
- };
39
- type BuildDeltaOrder = (buildOrderParams: BuildDeltaOrderParams, requestParams?: RequestParameters) => Promise<BuiltDeltaOrder<DeltaAuctionOrder>>;
40
- export type BuildDeltaOrderFunctions = {
41
- /** @description Build a Delta v2 order from a DeltaRoute via the server endpoint, ready to sign and post. */
42
- buildDeltaOrder: BuildDeltaOrder;
43
- };
44
- export declare const constructBuildDeltaOrder: (options: ConstructFetchInput) => BuildDeltaOrderFunctions;
45
- //# sourceMappingURL=buildDeltaOrder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildDeltaOrder.d.ts","sourceRoot":"","sources":["../../../src/methods/deltaV2/buildDeltaOrder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,qBAAqB,GAAG;IAClC,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sGAAsG;IACtG,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,mGAAmG;IACnG,KAAK,EAAE,UAAU,CAAC;IAClB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IACrB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gHAAgH;IAChH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,eAAe,GAAG,CACrB,gBAAgB,EAAE,qBAAqB,EACvC,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG;IACrC,6GAA6G;IAC7G,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,wBAAwB,YAC1B,mBAAmB,KAC3B,wBA+BF,CAAC"}
@@ -1,49 +0,0 @@
1
- import type { ConstructFetchInput, RequestParameters } from '../../types';
2
- import type { ExternalDeltaOrder } from '../delta/helpers/types';
3
- import type { BuiltDeltaOrder, DeltaRoute } from './types';
4
- export type { BuiltDeltaOrder } from './types';
5
- export type BuildExternalDeltaOrderParams = {
6
- /** @description The address of the order owner */
7
- owner: string;
8
- /** @description The address of the external handler contract */
9
- handler: string;
10
- /** @description Protocol-specific encoded bytes for the external handler */
11
- data: string;
12
- /** @description The address of the order beneficiary. Defaults to owner. */
13
- beneficiary?: string;
14
- /** @description The deadline for the order (unix seconds) */
15
- deadline?: number;
16
- /** @description The nonce of the order. Random if omitted. */
17
- nonce?: string;
18
- /** @description Optional permit signature for the src token. Defaults to "0x". */
19
- permit?: string;
20
- /** @description Partner string. Passed to the server to resolve partner fee details. */
21
- partner?: string;
22
- /** @description Partner fee in basis points (bps), 50bps=0.5% */
23
- partnerFeeBps?: number;
24
- /** @description Partner address */
25
- partnerAddress?: string;
26
- /** @description Take surplus flag */
27
- partnerTakesSurplus?: boolean;
28
- /** @description Whether the surplus should be capped. True by default. */
29
- capSurplus?: boolean;
30
- /** @description Metadata for the order, hex string */
31
- metadata?: string;
32
- /** @description Designates the Order as partially fillable. Default false. */
33
- partiallyFillable?: boolean;
34
- /** @description DeltaRoute from getDeltaPrice */
35
- route: DeltaRoute;
36
- /** @description Order side. SELL or BUY. */
37
- side: 'SELL' | 'BUY';
38
- /** @description Slippage in basis points (bps). Default 0. */
39
- slippage?: number;
40
- /** @description If passed, the server will use this as SELL destAmount (as BUY srcAmount) and expectedAmount */
41
- limitAmount?: string;
42
- };
43
- type BuildExternalDeltaOrder = (buildOrderParams: BuildExternalDeltaOrderParams, requestParams?: RequestParameters) => Promise<BuiltDeltaOrder<ExternalDeltaOrder>>;
44
- export type BuildExternalDeltaOrderFunctions = {
45
- /** @description Build a Delta v2 External Order from a DeltaRoute via the server endpoint, ready to sign and post. */
46
- buildExternalDeltaOrder: BuildExternalDeltaOrder;
47
- };
48
- export declare const constructBuildExternalDeltaOrder: (options: ConstructFetchInput) => BuildExternalDeltaOrderFunctions;
49
- //# sourceMappingURL=buildExternalDeltaOrder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildExternalDeltaOrder.d.ts","sourceRoot":"","sources":["../../../src/methods/deltaV2/buildExternalDeltaOrder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,MAAM,6BAA6B,GAAG;IAC1C,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,iDAAiD;IACjD,KAAK,EAAE,UAAU,CAAC;IAClB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IACrB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gHAAgH;IAChH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,uBAAuB,GAAG,CAC7B,gBAAgB,EAAE,6BAA6B,EAC/C,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAElD,MAAM,MAAM,gCAAgC,GAAG;IAC7C,sHAAsH;IACtH,uBAAuB,EAAE,uBAAuB,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,gCAAgC,YAClC,mBAAmB,KAC3B,gCAoCF,CAAC"}
@@ -1,60 +0,0 @@
1
- import type { ConstructFetchInput, RequestParameters } from '../../types';
2
- import type { TWAPBuyDeltaOrder, TWAPDeltaOrder } from '../delta/helpers/types';
3
- import type { BuiltDeltaOrder, DeltaRoute } from './types';
4
- export type { BuiltDeltaOrder } from './types';
5
- type BuildTWAPDeltaOrderBase = {
6
- /** @description The address of the order owner */
7
- owner: string;
8
- /** @description The address of the order beneficiary. Defaults to owner. */
9
- beneficiary?: string;
10
- /** @description The deadline for the order (unix seconds) */
11
- deadline?: number;
12
- /** @description The nonce of the order. Random if omitted. */
13
- nonce?: string;
14
- /** @description Optional permit signature for the src token. Defaults to "0x". */
15
- permit?: string;
16
- /** @description Partner string. Passed to the server to resolve partner fee details. */
17
- partner?: string;
18
- /** @description Seconds between slice executions (min 60) */
19
- interval: number;
20
- /** @description Number of slices (min 2) */
21
- numSlices: number;
22
- /** @description Slippage in basis points (bps). 10000 = 100%, 50 = 0.5%. Default 0. */
23
- slippage?: number;
24
- /** @description DeltaRoute from getDeltaPrice for a single slice */
25
- route: DeltaRoute;
26
- /** @description Partner fee in basis points (bps) */
27
- partnerFeeBps?: number;
28
- /** @description Partner address */
29
- partnerAddress?: string;
30
- /** @description Take surplus flag */
31
- partnerTakesSurplus?: boolean;
32
- /** @description Whether the surplus should be capped. True by default. */
33
- capSurplus?: boolean;
34
- /** @description Metadata for the order, hex string */
35
- metadata?: string;
36
- /** @description Designates the Order as partially fillable. Default false. */
37
- partiallyFillable?: boolean;
38
- /** @description If passed, the server will use this as SELL destAmount (as BUY srcAmount) and expectedAmount for each slice */
39
- limitAmount?: string;
40
- };
41
- export type BuildTWAPSellDeltaOrderParams = BuildTWAPDeltaOrderBase & {
42
- onChainOrderType: 'TWAPOrder';
43
- /** @description Total source token amount across all slices. route.origin.input.amount must equal floor(totalSrcAmount / numSlices). */
44
- totalSrcAmount: string;
45
- };
46
- export type BuildTWAPBuyDeltaOrderParams = BuildTWAPDeltaOrderBase & {
47
- onChainOrderType: 'TWAPBuyOrder';
48
- /** @description Total destination token amount to buy across all slices. route.origin.output.amount must equal floor(totalDestAmount / numSlices). */
49
- totalDestAmount: string;
50
- /** @description Maximum source token amount willing to spend across all slices. */
51
- maxSrcAmount: string;
52
- };
53
- export type BuildTWAPDeltaOrderParams = BuildTWAPSellDeltaOrderParams | BuildTWAPBuyDeltaOrderParams;
54
- type BuildTWAPDeltaOrder = (buildOrderParams: BuildTWAPDeltaOrderParams, requestParams?: RequestParameters) => Promise<BuiltDeltaOrder<TWAPDeltaOrder | TWAPBuyDeltaOrder>>;
55
- export type BuildTWAPDeltaOrderFunctions = {
56
- /** @description Build a Delta v2 TWAP Order (sell or buy) from a DeltaRoute via the server endpoint, ready to sign and post. */
57
- buildTWAPDeltaOrder: BuildTWAPDeltaOrder;
58
- };
59
- export declare const constructBuildTWAPDeltaOrder: (options: ConstructFetchInput) => BuildTWAPDeltaOrderFunctions;
60
- //# sourceMappingURL=buildTWAPDeltaOrder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildTWAPDeltaOrder.d.ts","sourceRoot":"","sources":["../../../src/methods/deltaV2/buildTWAPDeltaOrder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,KAAK,uBAAuB,GAAG;IAC7B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,KAAK,EAAE,UAAU,CAAC;IAClB,qDAAqD;IACrD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,+HAA+H;IAC/H,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,uBAAuB,GAAG;IACpE,gBAAgB,EAAE,WAAW,CAAC;IAC9B,wIAAwI;IACxI,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,uBAAuB,GAAG;IACnE,gBAAgB,EAAE,cAAc,CAAC;IACjC,sJAAsJ;IACtJ,eAAe,EAAE,MAAM,CAAC;IACxB,mFAAmF;IACnF,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC,6BAA6B,GAC7B,4BAA4B,CAAC;AAEjC,KAAK,mBAAmB,GAAG,CACzB,gBAAgB,EAAE,yBAAyB,EAC3C,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,eAAe,CAAC,cAAc,GAAG,iBAAiB,CAAC,CAAC,CAAC;AAElE,MAAM,MAAM,4BAA4B,GAAG;IACzC,gIAAgI;IAChI,mBAAmB,EAAE,mBAAmB,CAAC;CAC1C,CAAC;AAEF,eAAO,MAAM,4BAA4B,YAC9B,mBAAmB,KAC3B,4BAyDF,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { ConstructProviderFetchInput, RequestParameters } from '../../types';
2
- import { type CancelDeltaOrderData } from '../delta/helpers/buildCancelDeltaOrderData';
3
- type SuccessResponse = {
4
- success: true;
5
- };
6
- type CancelDeltaOrderRequestParams = {
7
- orderIds: string[];
8
- signature: string;
9
- };
10
- export type SignCancelDeltaOrderRequest = (params: CancelDeltaOrderData, requestParams?: RequestParameters) => Promise<string>;
11
- export type PostCancelDeltaOrderRequest = (params: CancelDeltaOrderRequestParams, requestParams?: RequestParameters) => Promise<SuccessResponse>;
12
- export type CancelDeltaOrder = (params: CancelDeltaOrderData, requestParams?: RequestParameters) => Promise<SuccessResponse>;
13
- export type CancelDeltaOrderFunctions = {
14
- signCancelDeltaOrderRequest: SignCancelDeltaOrderRequest;
15
- postCancelDeltaOrderRequest: PostCancelDeltaOrderRequest;
16
- /** @description Cancel one or more Delta orders via the v2 endpoint */
17
- cancelDeltaOrders: CancelDeltaOrder;
18
- };
19
- export declare const constructCancelDeltaOrder: (options: Pick<ConstructProviderFetchInput<any, "signTypedDataCall">, "contractCaller" | "fetcher" | "apiURL" | "chainId">) => CancelDeltaOrderFunctions;
20
- export {};
21
- //# sourceMappingURL=cancelDeltaOrder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cancelDeltaOrder.d.ts","sourceRoot":"","sources":["../../../src/methods/deltaV2/cancelDeltaOrder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAErB,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,4CAA4C,CAAC;AAEpD,KAAK,eAAe,GAAG;IAAE,OAAO,EAAE,IAAI,CAAA;CAAE,CAAC;AAEzC,KAAK,6BAA6B,GAAG;IACnC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CACxC,MAAM,EAAE,oBAAoB,EAC5B,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB,MAAM,MAAM,2BAA2B,GAAG,CACxC,MAAM,EAAE,6BAA6B,EACrC,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,eAAe,CAAC,CAAC;AAE9B,MAAM,MAAM,gBAAgB,GAAG,CAC7B,MAAM,EAAE,oBAAoB,EAC5B,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,eAAe,CAAC,CAAC;AAE9B,MAAM,MAAM,yBAAyB,GAAG;IACtC,2BAA2B,EAAE,2BAA2B,CAAC;IACzD,2BAA2B,EAAE,2BAA2B,CAAC;IACzD,uEAAuE;IACvE,iBAAiB,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAC3B,IAAI,CACX,2BAA2B,CAAC,GAAG,EAAE,mBAAmB,CAAC,EACrD,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CACpD,KACA,yBAsDF,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { ConstructFetchInput, RequestParameters } from '../../types';
2
- export type AgentList = string[];
3
- type GetAgentsList = (requestParams?: RequestParameters) => Promise<AgentList>;
4
- export type GetAgentsListFunctions = {
5
- /** @description List agents available on the current chain. */
6
- getAgentsList: GetAgentsList;
7
- };
8
- export declare const constructGetAgentsList: ({ apiURL, chainId, fetcher, }: ConstructFetchInput) => GetAgentsListFunctions;
9
- export {};
10
- //# sourceMappingURL=getAgentsList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAgentsList.d.ts","sourceRoot":"","sources":["../../../src/methods/deltaV2/getAgentsList.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC;AAIjC,KAAK,aAAa,GAAG,CAAC,aAAa,CAAC,EAAE,iBAAiB,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;AAE/E,MAAM,MAAM,sBAAsB,GAAG;IACnC,+DAA+D;IAC/D,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,kCAIhC,mBAAmB,KAAG,sBAaxB,CAAC"}
@@ -1,20 +0,0 @@
1
- import type { ConstructFetchInput, RequestParameters } from '../../types';
2
- import type { BridgeProtocolResponse } from '../delta/getBridgeInfo';
3
- import type { BridgeRoute } from './types';
4
- type GetBridgeRoutesParams = {
5
- /** @description Include tokens that can be swapped on destChain after bridge. Default is true. */
6
- allowBridgeAndSwap?: boolean;
7
- /** @description Include only the specified bridges. Default is all bridges. */
8
- bridges?: string[];
9
- };
10
- type GetBridgeRoutes = (params?: GetBridgeRoutesParams, requestParams?: RequestParameters) => Promise<BridgeRoute[]>;
11
- type GetBridgeProtocols = (requestParams?: RequestParameters) => Promise<BridgeProtocolResponse[]>;
12
- export type GetBridgeRoutesFunctions = {
13
- /** @description Fetch supported bridge routes as a flat array (v2 replacement for bridge-info). */
14
- getBridgeRoutes: GetBridgeRoutes;
15
- /** @description Fetch supported bridge protocols (unchanged from v1). */
16
- getBridgeProtocols: GetBridgeProtocols;
17
- };
18
- export declare const constructGetBridgeRoutes: ({ apiURL, fetcher, }: ConstructFetchInput) => GetBridgeRoutesFunctions;
19
- export {};
20
- //# sourceMappingURL=getBridgeRoutes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBridgeRoutes.d.ts","sourceRoot":"","sources":["../../../src/methods/deltaV2/getBridgeRoutes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,KAAK,qBAAqB,GAAG;IAC3B,kGAAkG;IAClG,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AASF,KAAK,eAAe,GAAG,CACrB,MAAM,CAAC,EAAE,qBAAqB,EAC9B,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;AAE5B,KAAK,kBAAkB,GAAG,CACxB,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;AAMvC,MAAM,MAAM,wBAAwB,GAAG;IACrC,mGAAmG;IACnG,eAAe,EAAE,eAAe,CAAC;IACjC,yEAAyE;IACzE,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,yBAGlC,mBAAmB,KAAG,wBAsCxB,CAAC"}
@@ -1,40 +0,0 @@
1
- import type { Address, ConstructFetchInput, PaginatedResponse, RequestParameters } from '../../types';
2
- import type { DeltaOrderType, OnChainOrderType } from '../delta/helpers/types';
3
- import type { DeltaOrderStatus, DeltaAuction } from './types';
4
- type GetDeltaOrderById = (orderId: string, requestParams?: RequestParameters) => Promise<DeltaAuction>;
5
- type GetDeltaOrderByHash = (orderHash: string, requestParams?: RequestParameters) => Promise<DeltaAuction>;
6
- type OrdersFilter = {
7
- /** @description `order.owner` to fetch Delta Orders for. */
8
- userAddress: Address;
9
- /** @description Pagination option. Default 1. */
10
- page?: number;
11
- /** @description Pagination option. Default 100, max 1000. */
12
- limit?: number;
13
- /** @description Filter by chainId. Omitted = orders across all chains. */
14
- chainId?: number[];
15
- /** @description Filter by integrator-facing status. */
16
- status?: DeltaOrderStatus[];
17
- /** @description Filter by order type. MARKET or LIMIT. */
18
- type?: DeltaOrderType;
19
- /** @description Filter by on-chain order type. */
20
- onChainOrderType?: OnChainOrderType;
21
- };
22
- type GetDeltaOrders = (options: OrdersFilter, requestParams?: RequestParameters) => Promise<PaginatedResponse<DeltaAuction>>;
23
- type GetRequiredBalanceParams = {
24
- userAddress: Address;
25
- tokenAddress?: Address;
26
- };
27
- type GetRequiredBalance = (userParams: GetRequiredBalanceParams, requestParams?: RequestParameters) => Promise<Record<string, string>>;
28
- export type GetDeltaOrdersFunctions = {
29
- /** @description Fetch a single order by its UUID. */
30
- getDeltaOrderById: GetDeltaOrderById;
31
- /** @description Fetch a single order by its EIP-712 order hash. */
32
- getDeltaOrderByHash: GetDeltaOrderByHash;
33
- /** @description List Delta orders with the v2 pagination envelope. */
34
- getDeltaOrders: GetDeltaOrders;
35
- /** @description Required balance per token across the user's open Delta v2 orders. Pass `tokenAddress` to narrow the result to a single token. */
36
- getRequiredBalanceForDeltaOrders: GetRequiredBalance;
37
- };
38
- export declare const constructGetDeltaOrders: ({ apiURL, fetcher, chainId, }: ConstructFetchInput) => GetDeltaOrdersFunctions;
39
- export {};
40
- //# sourceMappingURL=getDeltaOrders.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDeltaOrders.d.ts","sourceRoot":"","sources":["../../../src/methods/deltaV2/getDeltaOrders.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,OAAO,EACP,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE9D,KAAK,iBAAiB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,YAAY,CAAC,CAAC;AAE3B,KAAK,mBAAmB,GAAG,CACzB,SAAS,EAAE,MAAM,EACjB,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,YAAY,CAAC,CAAC;AAE3B,KAAK,YAAY,GAAG;IAClB,4DAA4D;IAC5D,WAAW,EAAE,OAAO,CAAC;IACrB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,uDAAuD;IACvD,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,0DAA0D;IAC1D,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAOF,KAAK,cAAc,GAAG,CACpB,OAAO,EAAE,YAAY,EACrB,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;AAE9C,KAAK,wBAAwB,GAAG;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,KAAK,kBAAkB,GAAG,CACxB,UAAU,EAAE,wBAAwB,EACpC,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAErC,MAAM,MAAM,uBAAuB,GAAG;IACpC,qDAAqD;IACrD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,mEAAmE;IACnE,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,sEAAsE;IACtE,cAAc,EAAE,cAAc,CAAC;IAC/B,kJAAkJ;IAClJ,gCAAgC,EAAE,kBAAkB,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,uBAAuB,kCAIjC,mBAAmB,KAAG,uBA2ExB,CAAC"}
@@ -1,46 +0,0 @@
1
- import { SwapSide } from '../../constants';
2
- import type { ConstructFetchInput, EnumerateLiteral, RequestParameters } from '../../types';
3
- import type { DeltaPrice } from './types';
4
- type SwapSideUnion = EnumerateLiteral<typeof SwapSide>;
5
- export type DeltaPriceParams = {
6
- /** @description Source Token Address */
7
- srcToken: string;
8
- /** @description Destination Token Address. For Crosschain Orders, the destination token on the destination chain */
9
- destToken: string;
10
- /** @description srcToken amount in wei */
11
- amount: string;
12
- /** @description Source Token Decimals */
13
- srcDecimals: number;
14
- /** @description Destination Token Decimals */
15
- destDecimals: number;
16
- /** @description User's Wallet Address */
17
- userAddress?: string;
18
- /** @description Beneficiary Address */
19
- beneficiary?: string;
20
- /** @description Partner string. */
21
- partner?: string;
22
- /** @description Partner fee in basis points (bps), 50bps=0.5% */
23
- partnerFeeBps?: number;
24
- /** @description Destination Chain ID for Crosschain Orders */
25
- destChainId?: number;
26
- /** @description SELL or BUY, default is SELL */
27
- side?: SwapSideUnion;
28
- /** @description In %. Bypasses the API price impact check (default = 15%) */
29
- maxImpact?: number;
30
- maxUSDImpact?: number;
31
- includeAgents?: string[];
32
- excludeAgents?: string[];
33
- includeBridges?: string[];
34
- excludeBridges?: string[];
35
- /** @description Allow swap on destChain after bridge. Default is true. */
36
- allowBridgeAndSwap?: boolean;
37
- degenMode?: boolean;
38
- };
39
- type GetDeltaPrice = (options: DeltaPriceParams, requestParams?: RequestParameters) => Promise<DeltaPrice>;
40
- export type GetDeltaPriceFunctions = {
41
- /** @description Fetch a v2 price quote (route-based response). */
42
- getDeltaPrice: GetDeltaPrice;
43
- };
44
- export declare const constructGetDeltaPrice: ({ apiURL, chainId, fetcher, }: ConstructFetchInput) => GetDeltaPriceFunctions;
45
- export {};
46
- //# sourceMappingURL=getDeltaPrice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getDeltaPrice.d.ts","sourceRoot":"","sources":["../../../src/methods/deltaV2/getDeltaPrice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,aAAa,GAAG,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,oHAAoH;IACpH,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAaF,KAAK,aAAa,GAAG,CACnB,OAAO,EAAE,gBAAgB,EACzB,aAAa,CAAC,EAAE,iBAAiB,KAC9B,OAAO,CAAC,UAAU,CAAC,CAAC;AAEzB,MAAM,MAAM,sBAAsB,GAAG;IACnC,kEAAkE;IAClE,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,kCAIhC,mBAAmB,KAAG,sBAkCxB,CAAC"}