@uniswap/client-trading 0.2.0 → 0.2.2

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.
@@ -1652,9 +1652,9 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
1652
1652
  static equals(a: QuoteResponse | PlainMessage<QuoteResponse> | undefined, b: QuoteResponse | PlainMessage<QuoteResponse> | undefined): boolean;
1653
1653
  }
1654
1654
  /**
1655
- * @generated from message trading.v1.ClassicInput
1655
+ * @generated from message trading.v1.QuoteInput
1656
1656
  */
1657
- export declare class ClassicInput extends Message<ClassicInput> {
1657
+ export declare class QuoteInput extends Message<QuoteInput> {
1658
1658
  /**
1659
1659
  * @generated from field: string amount = 1;
1660
1660
  */
@@ -1663,19 +1663,23 @@ export declare class ClassicInput extends Message<ClassicInput> {
1663
1663
  * @generated from field: string token = 2;
1664
1664
  */
1665
1665
  token: string;
1666
- constructor(data?: PartialMessage<ClassicInput>);
1666
+ /**
1667
+ * @generated from field: string maximum_amount = 3;
1668
+ */
1669
+ maximumAmount: string;
1670
+ constructor(data?: PartialMessage<QuoteInput>);
1667
1671
  static readonly runtime: typeof proto3;
1668
- static readonly typeName = "trading.v1.ClassicInput";
1672
+ static readonly typeName = "trading.v1.QuoteInput";
1669
1673
  static readonly fields: FieldList;
1670
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClassicInput;
1671
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClassicInput;
1672
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassicInput;
1673
- static equals(a: ClassicInput | PlainMessage<ClassicInput> | undefined, b: ClassicInput | PlainMessage<ClassicInput> | undefined): boolean;
1674
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuoteInput;
1675
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuoteInput;
1676
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuoteInput;
1677
+ static equals(a: QuoteInput | PlainMessage<QuoteInput> | undefined, b: QuoteInput | PlainMessage<QuoteInput> | undefined): boolean;
1674
1678
  }
1675
1679
  /**
1676
- * @generated from message trading.v1.ClassicOutput
1680
+ * @generated from message trading.v1.QuoteOutput
1677
1681
  */
1678
- export declare class ClassicOutput extends Message<ClassicOutput> {
1682
+ export declare class QuoteOutput extends Message<QuoteOutput> {
1679
1683
  /**
1680
1684
  * @generated from field: string amount = 1;
1681
1685
  */
@@ -1688,14 +1692,18 @@ export declare class ClassicOutput extends Message<ClassicOutput> {
1688
1692
  * @generated from field: string recipient = 3;
1689
1693
  */
1690
1694
  recipient: string;
1691
- constructor(data?: PartialMessage<ClassicOutput>);
1695
+ /**
1696
+ * @generated from field: string minimum_amount = 4;
1697
+ */
1698
+ minimumAmount: string;
1699
+ constructor(data?: PartialMessage<QuoteOutput>);
1692
1700
  static readonly runtime: typeof proto3;
1693
- static readonly typeName = "trading.v1.ClassicOutput";
1701
+ static readonly typeName = "trading.v1.QuoteOutput";
1694
1702
  static readonly fields: FieldList;
1695
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClassicOutput;
1696
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClassicOutput;
1697
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassicOutput;
1698
- static equals(a: ClassicOutput | PlainMessage<ClassicOutput> | undefined, b: ClassicOutput | PlainMessage<ClassicOutput> | undefined): boolean;
1703
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuoteOutput;
1704
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuoteOutput;
1705
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuoteOutput;
1706
+ static equals(a: QuoteOutput | PlainMessage<QuoteOutput> | undefined, b: QuoteOutput | PlainMessage<QuoteOutput> | undefined): boolean;
1699
1707
  }
1700
1708
  /**
1701
1709
  * @generated from message trading.v1.CandidatePoolInRoute
@@ -2031,13 +2039,13 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2031
2039
  */
2032
2040
  swapper: string;
2033
2041
  /**
2034
- * @generated from field: trading.v1.ClassicInput input = 3;
2042
+ * @generated from field: trading.v1.QuoteInput input = 3;
2035
2043
  */
2036
- input?: ClassicInput;
2044
+ input?: QuoteInput;
2037
2045
  /**
2038
- * @generated from field: trading.v1.ClassicOutput output = 4;
2046
+ * @generated from field: trading.v1.QuoteOutput output = 4;
2039
2047
  */
2040
- output?: ClassicOutput;
2048
+ output?: QuoteOutput;
2041
2049
  /**
2042
2050
  * @generated from field: double slippage = 5;
2043
2051
  */
@@ -2122,6 +2130,10 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2122
2130
  * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 25;
2123
2131
  */
2124
2132
  sponsorshipInfo?: SponsorshipInfo;
2133
+ /**
2134
+ * @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
2135
+ */
2136
+ swapSteps: SwapStep[];
2125
2137
  constructor(data?: PartialMessage<ClassicQuote>);
2126
2138
  static readonly runtime: typeof proto3;
2127
2139
  static readonly typeName = "trading.v1.ClassicQuote";
@@ -2131,6 +2143,655 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2131
2143
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassicQuote;
2132
2144
  static equals(a: ClassicQuote | PlainMessage<ClassicQuote> | undefined, b: ClassicQuote | PlainMessage<ClassicQuote> | undefined): boolean;
2133
2145
  }
2146
+ /**
2147
+ * Universal Router SwapStep representation (mirrors the SDK shape used by
2148
+ * SwapRouter.encodeSwaps). Only used in the swapsteps quote/encoding flow.
2149
+ *
2150
+ * @generated from message trading.v1.SwapPoolKey
2151
+ */
2152
+ export declare class SwapPoolKey extends Message<SwapPoolKey> {
2153
+ /**
2154
+ * @generated from field: string currency0 = 1;
2155
+ */
2156
+ currency0: string;
2157
+ /**
2158
+ * @generated from field: string currency1 = 2;
2159
+ */
2160
+ currency1: string;
2161
+ /**
2162
+ * @generated from field: int32 fee = 3;
2163
+ */
2164
+ fee: number;
2165
+ /**
2166
+ * @generated from field: int32 tick_spacing = 4;
2167
+ */
2168
+ tickSpacing: number;
2169
+ /**
2170
+ * @generated from field: string hooks = 5;
2171
+ */
2172
+ hooks: string;
2173
+ constructor(data?: PartialMessage<SwapPoolKey>);
2174
+ static readonly runtime: typeof proto3;
2175
+ static readonly typeName = "trading.v1.SwapPoolKey";
2176
+ static readonly fields: FieldList;
2177
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SwapPoolKey;
2178
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SwapPoolKey;
2179
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapPoolKey;
2180
+ static equals(a: SwapPoolKey | PlainMessage<SwapPoolKey> | undefined, b: SwapPoolKey | PlainMessage<SwapPoolKey> | undefined): boolean;
2181
+ }
2182
+ /**
2183
+ * @generated from message trading.v1.SwapPathKey
2184
+ */
2185
+ export declare class SwapPathKey extends Message<SwapPathKey> {
2186
+ /**
2187
+ * @generated from field: string intermediate_currency = 1;
2188
+ */
2189
+ intermediateCurrency: string;
2190
+ /**
2191
+ * @generated from field: int32 fee = 2;
2192
+ */
2193
+ fee: number;
2194
+ /**
2195
+ * @generated from field: int32 tick_spacing = 3;
2196
+ */
2197
+ tickSpacing: number;
2198
+ /**
2199
+ * @generated from field: string hooks = 4;
2200
+ */
2201
+ hooks: string;
2202
+ /**
2203
+ * @generated from field: string hook_data = 5;
2204
+ */
2205
+ hookData: string;
2206
+ constructor(data?: PartialMessage<SwapPathKey>);
2207
+ static readonly runtime: typeof proto3;
2208
+ static readonly typeName = "trading.v1.SwapPathKey";
2209
+ static readonly fields: FieldList;
2210
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SwapPathKey;
2211
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SwapPathKey;
2212
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapPathKey;
2213
+ static equals(a: SwapPathKey | PlainMessage<SwapPathKey> | undefined, b: SwapPathKey | PlainMessage<SwapPathKey> | undefined): boolean;
2214
+ }
2215
+ /**
2216
+ * @generated from message trading.v1.V4SwapExactIn
2217
+ */
2218
+ export declare class V4SwapExactIn extends Message<V4SwapExactIn> {
2219
+ /**
2220
+ * @generated from field: string currency_in = 1;
2221
+ */
2222
+ currencyIn: string;
2223
+ /**
2224
+ * @generated from field: repeated trading.v1.SwapPathKey path = 2;
2225
+ */
2226
+ path: SwapPathKey[];
2227
+ /**
2228
+ * @generated from field: string amount_in = 3;
2229
+ */
2230
+ amountIn: string;
2231
+ /**
2232
+ * @generated from field: string amount_out_minimum = 4;
2233
+ */
2234
+ amountOutMinimum: string;
2235
+ /**
2236
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2237
+ */
2238
+ minHopPriceX36: string[];
2239
+ constructor(data?: PartialMessage<V4SwapExactIn>);
2240
+ static readonly runtime: typeof proto3;
2241
+ static readonly typeName = "trading.v1.V4SwapExactIn";
2242
+ static readonly fields: FieldList;
2243
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapExactIn;
2244
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapExactIn;
2245
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapExactIn;
2246
+ static equals(a: V4SwapExactIn | PlainMessage<V4SwapExactIn> | undefined, b: V4SwapExactIn | PlainMessage<V4SwapExactIn> | undefined): boolean;
2247
+ }
2248
+ /**
2249
+ * @generated from message trading.v1.V4SwapExactInSingle
2250
+ */
2251
+ export declare class V4SwapExactInSingle extends Message<V4SwapExactInSingle> {
2252
+ /**
2253
+ * @generated from field: trading.v1.SwapPoolKey pool_key = 1;
2254
+ */
2255
+ poolKey?: SwapPoolKey;
2256
+ /**
2257
+ * @generated from field: bool zero_for_one = 2;
2258
+ */
2259
+ zeroForOne: boolean;
2260
+ /**
2261
+ * @generated from field: string amount_in = 3;
2262
+ */
2263
+ amountIn: string;
2264
+ /**
2265
+ * @generated from field: string amount_out_minimum = 4;
2266
+ */
2267
+ amountOutMinimum: string;
2268
+ /**
2269
+ * @generated from field: string hook_data = 5;
2270
+ */
2271
+ hookData: string;
2272
+ /**
2273
+ * @generated from field: optional string min_hop_price_x36 = 6;
2274
+ */
2275
+ minHopPriceX36?: string;
2276
+ constructor(data?: PartialMessage<V4SwapExactInSingle>);
2277
+ static readonly runtime: typeof proto3;
2278
+ static readonly typeName = "trading.v1.V4SwapExactInSingle";
2279
+ static readonly fields: FieldList;
2280
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapExactInSingle;
2281
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapExactInSingle;
2282
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapExactInSingle;
2283
+ static equals(a: V4SwapExactInSingle | PlainMessage<V4SwapExactInSingle> | undefined, b: V4SwapExactInSingle | PlainMessage<V4SwapExactInSingle> | undefined): boolean;
2284
+ }
2285
+ /**
2286
+ * @generated from message trading.v1.V4SwapExactOut
2287
+ */
2288
+ export declare class V4SwapExactOut extends Message<V4SwapExactOut> {
2289
+ /**
2290
+ * @generated from field: string currency_out = 1;
2291
+ */
2292
+ currencyOut: string;
2293
+ /**
2294
+ * @generated from field: repeated trading.v1.SwapPathKey path = 2;
2295
+ */
2296
+ path: SwapPathKey[];
2297
+ /**
2298
+ * @generated from field: string amount_out = 3;
2299
+ */
2300
+ amountOut: string;
2301
+ /**
2302
+ * @generated from field: string amount_in_maximum = 4;
2303
+ */
2304
+ amountInMaximum: string;
2305
+ /**
2306
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2307
+ */
2308
+ minHopPriceX36: string[];
2309
+ constructor(data?: PartialMessage<V4SwapExactOut>);
2310
+ static readonly runtime: typeof proto3;
2311
+ static readonly typeName = "trading.v1.V4SwapExactOut";
2312
+ static readonly fields: FieldList;
2313
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapExactOut;
2314
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapExactOut;
2315
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapExactOut;
2316
+ static equals(a: V4SwapExactOut | PlainMessage<V4SwapExactOut> | undefined, b: V4SwapExactOut | PlainMessage<V4SwapExactOut> | undefined): boolean;
2317
+ }
2318
+ /**
2319
+ * @generated from message trading.v1.V4SwapExactOutSingle
2320
+ */
2321
+ export declare class V4SwapExactOutSingle extends Message<V4SwapExactOutSingle> {
2322
+ /**
2323
+ * @generated from field: trading.v1.SwapPoolKey pool_key = 1;
2324
+ */
2325
+ poolKey?: SwapPoolKey;
2326
+ /**
2327
+ * @generated from field: bool zero_for_one = 2;
2328
+ */
2329
+ zeroForOne: boolean;
2330
+ /**
2331
+ * @generated from field: string amount_out = 3;
2332
+ */
2333
+ amountOut: string;
2334
+ /**
2335
+ * @generated from field: string amount_in_maximum = 4;
2336
+ */
2337
+ amountInMaximum: string;
2338
+ /**
2339
+ * @generated from field: string hook_data = 5;
2340
+ */
2341
+ hookData: string;
2342
+ /**
2343
+ * @generated from field: optional string min_hop_price_x36 = 6;
2344
+ */
2345
+ minHopPriceX36?: string;
2346
+ constructor(data?: PartialMessage<V4SwapExactOutSingle>);
2347
+ static readonly runtime: typeof proto3;
2348
+ static readonly typeName = "trading.v1.V4SwapExactOutSingle";
2349
+ static readonly fields: FieldList;
2350
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapExactOutSingle;
2351
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapExactOutSingle;
2352
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapExactOutSingle;
2353
+ static equals(a: V4SwapExactOutSingle | PlainMessage<V4SwapExactOutSingle> | undefined, b: V4SwapExactOutSingle | PlainMessage<V4SwapExactOutSingle> | undefined): boolean;
2354
+ }
2355
+ /**
2356
+ * @generated from message trading.v1.V4Settle
2357
+ */
2358
+ export declare class V4Settle extends Message<V4Settle> {
2359
+ /**
2360
+ * @generated from field: string currency = 1;
2361
+ */
2362
+ currency: string;
2363
+ /**
2364
+ * @generated from field: string amount = 2;
2365
+ */
2366
+ amount: string;
2367
+ constructor(data?: PartialMessage<V4Settle>);
2368
+ static readonly runtime: typeof proto3;
2369
+ static readonly typeName = "trading.v1.V4Settle";
2370
+ static readonly fields: FieldList;
2371
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4Settle;
2372
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4Settle;
2373
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4Settle;
2374
+ static equals(a: V4Settle | PlainMessage<V4Settle> | undefined, b: V4Settle | PlainMessage<V4Settle> | undefined): boolean;
2375
+ }
2376
+ /**
2377
+ * @generated from message trading.v1.V4SettleAll
2378
+ */
2379
+ export declare class V4SettleAll extends Message<V4SettleAll> {
2380
+ /**
2381
+ * @generated from field: string currency = 1;
2382
+ */
2383
+ currency: string;
2384
+ /**
2385
+ * @generated from field: string max_amount = 2;
2386
+ */
2387
+ maxAmount: string;
2388
+ constructor(data?: PartialMessage<V4SettleAll>);
2389
+ static readonly runtime: typeof proto3;
2390
+ static readonly typeName = "trading.v1.V4SettleAll";
2391
+ static readonly fields: FieldList;
2392
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SettleAll;
2393
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SettleAll;
2394
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SettleAll;
2395
+ static equals(a: V4SettleAll | PlainMessage<V4SettleAll> | undefined, b: V4SettleAll | PlainMessage<V4SettleAll> | undefined): boolean;
2396
+ }
2397
+ /**
2398
+ * @generated from message trading.v1.V4Take
2399
+ */
2400
+ export declare class V4Take extends Message<V4Take> {
2401
+ /**
2402
+ * @generated from field: string currency = 1;
2403
+ */
2404
+ currency: string;
2405
+ /**
2406
+ * @generated from field: string recipient = 2;
2407
+ */
2408
+ recipient: string;
2409
+ /**
2410
+ * @generated from field: string amount = 3;
2411
+ */
2412
+ amount: string;
2413
+ constructor(data?: PartialMessage<V4Take>);
2414
+ static readonly runtime: typeof proto3;
2415
+ static readonly typeName = "trading.v1.V4Take";
2416
+ static readonly fields: FieldList;
2417
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4Take;
2418
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4Take;
2419
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4Take;
2420
+ static equals(a: V4Take | PlainMessage<V4Take> | undefined, b: V4Take | PlainMessage<V4Take> | undefined): boolean;
2421
+ }
2422
+ /**
2423
+ * @generated from message trading.v1.V4TakeAll
2424
+ */
2425
+ export declare class V4TakeAll extends Message<V4TakeAll> {
2426
+ /**
2427
+ * @generated from field: string currency = 1;
2428
+ */
2429
+ currency: string;
2430
+ /**
2431
+ * @generated from field: string min_amount = 2;
2432
+ */
2433
+ minAmount: string;
2434
+ constructor(data?: PartialMessage<V4TakeAll>);
2435
+ static readonly runtime: typeof proto3;
2436
+ static readonly typeName = "trading.v1.V4TakeAll";
2437
+ static readonly fields: FieldList;
2438
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4TakeAll;
2439
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4TakeAll;
2440
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4TakeAll;
2441
+ static equals(a: V4TakeAll | PlainMessage<V4TakeAll> | undefined, b: V4TakeAll | PlainMessage<V4TakeAll> | undefined): boolean;
2442
+ }
2443
+ /**
2444
+ * @generated from message trading.v1.V4TakePortion
2445
+ */
2446
+ export declare class V4TakePortion extends Message<V4TakePortion> {
2447
+ /**
2448
+ * @generated from field: string currency = 1;
2449
+ */
2450
+ currency: string;
2451
+ /**
2452
+ * @generated from field: string recipient = 2;
2453
+ */
2454
+ recipient: string;
2455
+ /**
2456
+ * @generated from field: string bips = 3;
2457
+ */
2458
+ bips: string;
2459
+ constructor(data?: PartialMessage<V4TakePortion>);
2460
+ static readonly runtime: typeof proto3;
2461
+ static readonly typeName = "trading.v1.V4TakePortion";
2462
+ static readonly fields: FieldList;
2463
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4TakePortion;
2464
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4TakePortion;
2465
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4TakePortion;
2466
+ static equals(a: V4TakePortion | PlainMessage<V4TakePortion> | undefined, b: V4TakePortion | PlainMessage<V4TakePortion> | undefined): boolean;
2467
+ }
2468
+ /**
2469
+ * @generated from message trading.v1.V4SwapAction
2470
+ */
2471
+ export declare class V4SwapAction extends Message<V4SwapAction> {
2472
+ /**
2473
+ * @generated from oneof trading.v1.V4SwapAction.action
2474
+ */
2475
+ action: {
2476
+ /**
2477
+ * @generated from field: trading.v1.V4SwapExactIn swap_exact_in = 1;
2478
+ */
2479
+ value: V4SwapExactIn;
2480
+ case: "swapExactIn";
2481
+ } | {
2482
+ /**
2483
+ * @generated from field: trading.v1.V4SwapExactInSingle swap_exact_in_single = 2;
2484
+ */
2485
+ value: V4SwapExactInSingle;
2486
+ case: "swapExactInSingle";
2487
+ } | {
2488
+ /**
2489
+ * @generated from field: trading.v1.V4SwapExactOut swap_exact_out = 3;
2490
+ */
2491
+ value: V4SwapExactOut;
2492
+ case: "swapExactOut";
2493
+ } | {
2494
+ /**
2495
+ * @generated from field: trading.v1.V4SwapExactOutSingle swap_exact_out_single = 4;
2496
+ */
2497
+ value: V4SwapExactOutSingle;
2498
+ case: "swapExactOutSingle";
2499
+ } | {
2500
+ /**
2501
+ * @generated from field: trading.v1.V4Settle settle = 5;
2502
+ */
2503
+ value: V4Settle;
2504
+ case: "settle";
2505
+ } | {
2506
+ /**
2507
+ * @generated from field: trading.v1.V4SettleAll settle_all = 6;
2508
+ */
2509
+ value: V4SettleAll;
2510
+ case: "settleAll";
2511
+ } | {
2512
+ /**
2513
+ * @generated from field: trading.v1.V4Take take = 7;
2514
+ */
2515
+ value: V4Take;
2516
+ case: "take";
2517
+ } | {
2518
+ /**
2519
+ * @generated from field: trading.v1.V4TakeAll take_all = 8;
2520
+ */
2521
+ value: V4TakeAll;
2522
+ case: "takeAll";
2523
+ } | {
2524
+ /**
2525
+ * @generated from field: trading.v1.V4TakePortion take_portion = 9;
2526
+ */
2527
+ value: V4TakePortion;
2528
+ case: "takePortion";
2529
+ } | {
2530
+ case: undefined;
2531
+ value?: undefined;
2532
+ };
2533
+ constructor(data?: PartialMessage<V4SwapAction>);
2534
+ static readonly runtime: typeof proto3;
2535
+ static readonly typeName = "trading.v1.V4SwapAction";
2536
+ static readonly fields: FieldList;
2537
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapAction;
2538
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapAction;
2539
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapAction;
2540
+ static equals(a: V4SwapAction | PlainMessage<V4SwapAction> | undefined, b: V4SwapAction | PlainMessage<V4SwapAction> | undefined): boolean;
2541
+ }
2542
+ /**
2543
+ * @generated from message trading.v1.V2SwapExactInStep
2544
+ */
2545
+ export declare class V2SwapExactInStep extends Message<V2SwapExactInStep> {
2546
+ /**
2547
+ * @generated from field: string recipient = 1;
2548
+ */
2549
+ recipient: string;
2550
+ /**
2551
+ * @generated from field: string amount_in = 2;
2552
+ */
2553
+ amountIn: string;
2554
+ /**
2555
+ * @generated from field: string amount_out_min = 3;
2556
+ */
2557
+ amountOutMin: string;
2558
+ /**
2559
+ * @generated from field: repeated string path = 4;
2560
+ */
2561
+ path: string[];
2562
+ /**
2563
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2564
+ */
2565
+ minHopPriceX36: string[];
2566
+ constructor(data?: PartialMessage<V2SwapExactInStep>);
2567
+ static readonly runtime: typeof proto3;
2568
+ static readonly typeName = "trading.v1.V2SwapExactInStep";
2569
+ static readonly fields: FieldList;
2570
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2SwapExactInStep;
2571
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2SwapExactInStep;
2572
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2SwapExactInStep;
2573
+ static equals(a: V2SwapExactInStep | PlainMessage<V2SwapExactInStep> | undefined, b: V2SwapExactInStep | PlainMessage<V2SwapExactInStep> | undefined): boolean;
2574
+ }
2575
+ /**
2576
+ * @generated from message trading.v1.V2SwapExactOutStep
2577
+ */
2578
+ export declare class V2SwapExactOutStep extends Message<V2SwapExactOutStep> {
2579
+ /**
2580
+ * @generated from field: string recipient = 1;
2581
+ */
2582
+ recipient: string;
2583
+ /**
2584
+ * @generated from field: string amount_out = 2;
2585
+ */
2586
+ amountOut: string;
2587
+ /**
2588
+ * @generated from field: string amount_in_max = 3;
2589
+ */
2590
+ amountInMax: string;
2591
+ /**
2592
+ * @generated from field: repeated string path = 4;
2593
+ */
2594
+ path: string[];
2595
+ /**
2596
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2597
+ */
2598
+ minHopPriceX36: string[];
2599
+ constructor(data?: PartialMessage<V2SwapExactOutStep>);
2600
+ static readonly runtime: typeof proto3;
2601
+ static readonly typeName = "trading.v1.V2SwapExactOutStep";
2602
+ static readonly fields: FieldList;
2603
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2SwapExactOutStep;
2604
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2SwapExactOutStep;
2605
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2SwapExactOutStep;
2606
+ static equals(a: V2SwapExactOutStep | PlainMessage<V2SwapExactOutStep> | undefined, b: V2SwapExactOutStep | PlainMessage<V2SwapExactOutStep> | undefined): boolean;
2607
+ }
2608
+ /**
2609
+ * @generated from message trading.v1.V3SwapExactInStep
2610
+ */
2611
+ export declare class V3SwapExactInStep extends Message<V3SwapExactInStep> {
2612
+ /**
2613
+ * @generated from field: string recipient = 1;
2614
+ */
2615
+ recipient: string;
2616
+ /**
2617
+ * @generated from field: string amount_in = 2;
2618
+ */
2619
+ amountIn: string;
2620
+ /**
2621
+ * @generated from field: string amount_out_min = 3;
2622
+ */
2623
+ amountOutMin: string;
2624
+ /**
2625
+ * @generated from field: string path = 4;
2626
+ */
2627
+ path: string;
2628
+ /**
2629
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2630
+ */
2631
+ minHopPriceX36: string[];
2632
+ constructor(data?: PartialMessage<V3SwapExactInStep>);
2633
+ static readonly runtime: typeof proto3;
2634
+ static readonly typeName = "trading.v1.V3SwapExactInStep";
2635
+ static readonly fields: FieldList;
2636
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3SwapExactInStep;
2637
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3SwapExactInStep;
2638
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3SwapExactInStep;
2639
+ static equals(a: V3SwapExactInStep | PlainMessage<V3SwapExactInStep> | undefined, b: V3SwapExactInStep | PlainMessage<V3SwapExactInStep> | undefined): boolean;
2640
+ }
2641
+ /**
2642
+ * @generated from message trading.v1.V3SwapExactOutStep
2643
+ */
2644
+ export declare class V3SwapExactOutStep extends Message<V3SwapExactOutStep> {
2645
+ /**
2646
+ * @generated from field: string recipient = 1;
2647
+ */
2648
+ recipient: string;
2649
+ /**
2650
+ * @generated from field: string amount_out = 2;
2651
+ */
2652
+ amountOut: string;
2653
+ /**
2654
+ * @generated from field: string amount_in_max = 3;
2655
+ */
2656
+ amountInMax: string;
2657
+ /**
2658
+ * @generated from field: string path = 4;
2659
+ */
2660
+ path: string;
2661
+ /**
2662
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2663
+ */
2664
+ minHopPriceX36: string[];
2665
+ constructor(data?: PartialMessage<V3SwapExactOutStep>);
2666
+ static readonly runtime: typeof proto3;
2667
+ static readonly typeName = "trading.v1.V3SwapExactOutStep";
2668
+ static readonly fields: FieldList;
2669
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3SwapExactOutStep;
2670
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3SwapExactOutStep;
2671
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3SwapExactOutStep;
2672
+ static equals(a: V3SwapExactOutStep | PlainMessage<V3SwapExactOutStep> | undefined, b: V3SwapExactOutStep | PlainMessage<V3SwapExactOutStep> | undefined): boolean;
2673
+ }
2674
+ /**
2675
+ * @generated from message trading.v1.V4SwapStepInner
2676
+ */
2677
+ export declare class V4SwapStepInner extends Message<V4SwapStepInner> {
2678
+ /**
2679
+ * @generated from field: repeated trading.v1.V4SwapAction v4_actions = 1;
2680
+ */
2681
+ v4Actions: V4SwapAction[];
2682
+ constructor(data?: PartialMessage<V4SwapStepInner>);
2683
+ static readonly runtime: typeof proto3;
2684
+ static readonly typeName = "trading.v1.V4SwapStepInner";
2685
+ static readonly fields: FieldList;
2686
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapStepInner;
2687
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapStepInner;
2688
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapStepInner;
2689
+ static equals(a: V4SwapStepInner | PlainMessage<V4SwapStepInner> | undefined, b: V4SwapStepInner | PlainMessage<V4SwapStepInner> | undefined): boolean;
2690
+ }
2691
+ /**
2692
+ * @generated from message trading.v1.WrapEthStep
2693
+ */
2694
+ export declare class WrapEthStep extends Message<WrapEthStep> {
2695
+ /**
2696
+ * @generated from field: string recipient = 1;
2697
+ */
2698
+ recipient: string;
2699
+ /**
2700
+ * @generated from field: string amount = 2;
2701
+ */
2702
+ amount: string;
2703
+ constructor(data?: PartialMessage<WrapEthStep>);
2704
+ static readonly runtime: typeof proto3;
2705
+ static readonly typeName = "trading.v1.WrapEthStep";
2706
+ static readonly fields: FieldList;
2707
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WrapEthStep;
2708
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WrapEthStep;
2709
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WrapEthStep;
2710
+ static equals(a: WrapEthStep | PlainMessage<WrapEthStep> | undefined, b: WrapEthStep | PlainMessage<WrapEthStep> | undefined): boolean;
2711
+ }
2712
+ /**
2713
+ * @generated from message trading.v1.UnwrapWethStep
2714
+ */
2715
+ export declare class UnwrapWethStep extends Message<UnwrapWethStep> {
2716
+ /**
2717
+ * @generated from field: string recipient = 1;
2718
+ */
2719
+ recipient: string;
2720
+ /**
2721
+ * @generated from field: string amount_min = 2;
2722
+ */
2723
+ amountMin: string;
2724
+ constructor(data?: PartialMessage<UnwrapWethStep>);
2725
+ static readonly runtime: typeof proto3;
2726
+ static readonly typeName = "trading.v1.UnwrapWethStep";
2727
+ static readonly fields: FieldList;
2728
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnwrapWethStep;
2729
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnwrapWethStep;
2730
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnwrapWethStep;
2731
+ static equals(a: UnwrapWethStep | PlainMessage<UnwrapWethStep> | undefined, b: UnwrapWethStep | PlainMessage<UnwrapWethStep> | undefined): boolean;
2732
+ }
2733
+ /**
2734
+ * @generated from message trading.v1.SwapStep
2735
+ */
2736
+ export declare class SwapStep extends Message<SwapStep> {
2737
+ /**
2738
+ * @generated from oneof trading.v1.SwapStep.step
2739
+ */
2740
+ step: {
2741
+ /**
2742
+ * @generated from field: trading.v1.V2SwapExactInStep v2_swap_exact_in = 1;
2743
+ */
2744
+ value: V2SwapExactInStep;
2745
+ case: "v2SwapExactIn";
2746
+ } | {
2747
+ /**
2748
+ * @generated from field: trading.v1.V2SwapExactOutStep v2_swap_exact_out = 2;
2749
+ */
2750
+ value: V2SwapExactOutStep;
2751
+ case: "v2SwapExactOut";
2752
+ } | {
2753
+ /**
2754
+ * @generated from field: trading.v1.V3SwapExactInStep v3_swap_exact_in = 3;
2755
+ */
2756
+ value: V3SwapExactInStep;
2757
+ case: "v3SwapExactIn";
2758
+ } | {
2759
+ /**
2760
+ * @generated from field: trading.v1.V3SwapExactOutStep v3_swap_exact_out = 4;
2761
+ */
2762
+ value: V3SwapExactOutStep;
2763
+ case: "v3SwapExactOut";
2764
+ } | {
2765
+ /**
2766
+ * @generated from field: trading.v1.V4SwapStepInner v4_swap = 5;
2767
+ */
2768
+ value: V4SwapStepInner;
2769
+ case: "v4Swap";
2770
+ } | {
2771
+ /**
2772
+ * @generated from field: trading.v1.WrapEthStep wrap_eth = 6;
2773
+ */
2774
+ value: WrapEthStep;
2775
+ case: "wrapEth";
2776
+ } | {
2777
+ /**
2778
+ * @generated from field: trading.v1.UnwrapWethStep unwrap_weth = 7;
2779
+ */
2780
+ value: UnwrapWethStep;
2781
+ case: "unwrapWeth";
2782
+ } | {
2783
+ case: undefined;
2784
+ value?: undefined;
2785
+ };
2786
+ constructor(data?: PartialMessage<SwapStep>);
2787
+ static readonly runtime: typeof proto3;
2788
+ static readonly typeName = "trading.v1.SwapStep";
2789
+ static readonly fields: FieldList;
2790
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SwapStep;
2791
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SwapStep;
2792
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapStep;
2793
+ static equals(a: SwapStep | PlainMessage<SwapStep> | undefined, b: SwapStep | PlainMessage<SwapStep> | undefined): boolean;
2794
+ }
2134
2795
  /**
2135
2796
  * @generated from message trading.v1.GasEstimate
2136
2797
  */
@@ -2405,13 +3066,13 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
2405
3066
  */
2406
3067
  swapper: string;
2407
3068
  /**
2408
- * @generated from field: trading.v1.ClassicInput input = 4;
3069
+ * @generated from field: trading.v1.QuoteInput input = 4;
2409
3070
  */
2410
- input?: ClassicInput;
3071
+ input?: QuoteInput;
2411
3072
  /**
2412
- * @generated from field: trading.v1.ClassicOutput output = 5;
3073
+ * @generated from field: trading.v1.QuoteOutput output = 5;
2413
3074
  */
2414
- output?: ClassicOutput;
3075
+ output?: QuoteOutput;
2415
3076
  /**
2416
3077
  * @generated from field: trading.v1.TradeType trade_type = 6;
2417
3078
  */
@@ -3817,13 +4478,13 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
3817
4478
  */
3818
4479
  quoteId: string;
3819
4480
  /**
3820
- * @generated from field: trading.v1.ClassicInput input = 5;
4481
+ * @generated from field: trading.v1.QuoteInput input = 5;
3821
4482
  */
3822
- input?: ClassicInput;
4483
+ input?: QuoteInput;
3823
4484
  /**
3824
- * @generated from field: trading.v1.ClassicOutput output = 6;
4485
+ * @generated from field: trading.v1.QuoteOutput output = 6;
3825
4486
  */
3826
- output?: ClassicOutput;
4487
+ output?: QuoteOutput;
3827
4488
  /**
3828
4489
  * @generated from field: trading.v1.TradeType trade_type = 7;
3829
4490
  */
@@ -3998,6 +4659,14 @@ export declare class DutchLimitQuote extends Message<DutchLimitQuote> {
3998
4659
  * @generated from field: optional string portion_recipient = 10;
3999
4660
  */
4000
4661
  portionRecipient?: string;
4662
+ /**
4663
+ * @generated from field: trading.v1.QuoteInput input = 11;
4664
+ */
4665
+ input?: QuoteInput;
4666
+ /**
4667
+ * @generated from field: trading.v1.QuoteOutput output = 12;
4668
+ */
4669
+ output?: QuoteOutput;
4001
4670
  constructor(data?: PartialMessage<DutchLimitQuote>);
4002
4671
  static readonly runtime: typeof proto3;
4003
4672
  static readonly typeName = "trading.v1.DutchLimitQuote";
@@ -4108,6 +4777,14 @@ export declare class DutchLimitV2Quote extends Message<DutchLimitV2Quote> {
4108
4777
  * @generated from field: optional string portion_recipient = 11;
4109
4778
  */
4110
4779
  portionRecipient?: string;
4780
+ /**
4781
+ * @generated from field: trading.v1.QuoteInput input = 12;
4782
+ */
4783
+ input?: QuoteInput;
4784
+ /**
4785
+ * @generated from field: trading.v1.QuoteOutput output = 13;
4786
+ */
4787
+ output?: QuoteOutput;
4111
4788
  constructor(data?: PartialMessage<DutchLimitV2Quote>);
4112
4789
  static readonly runtime: typeof proto3;
4113
4790
  static readonly typeName = "trading.v1.DutchLimitV2Quote";
@@ -4230,6 +4907,14 @@ export declare class DutchLimitV3Quote extends Message<DutchLimitV3Quote> {
4230
4907
  * @generated from field: optional string portion_recipient = 13;
4231
4908
  */
4232
4909
  portionRecipient?: string;
4910
+ /**
4911
+ * @generated from field: trading.v1.QuoteInput input = 14;
4912
+ */
4913
+ input?: QuoteInput;
4914
+ /**
4915
+ * @generated from field: trading.v1.QuoteOutput output = 15;
4916
+ */
4917
+ output?: QuoteOutput;
4233
4918
  constructor(data?: PartialMessage<DutchLimitV3Quote>);
4234
4919
  static readonly runtime: typeof proto3;
4235
4920
  static readonly typeName = "trading.v1.DutchLimitV3Quote";
@@ -4438,6 +5123,14 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
4438
5123
  * @generated from field: optional string portion_recipient = 13;
4439
5124
  */
4440
5125
  portionRecipient?: string;
5126
+ /**
5127
+ * @generated from field: trading.v1.QuoteInput input = 14;
5128
+ */
5129
+ input?: QuoteInput;
5130
+ /**
5131
+ * @generated from field: trading.v1.QuoteOutput output = 15;
5132
+ */
5133
+ output?: QuoteOutput;
4441
5134
  constructor(data?: PartialMessage<PriorityQuote>);
4442
5135
  static readonly runtime: typeof proto3;
4443
5136
  static readonly typeName = "trading.v1.PriorityQuote";
@@ -4501,13 +5194,13 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
4501
5194
  */
4502
5195
  swapper: string;
4503
5196
  /**
4504
- * @generated from field: trading.v1.ClassicInput input = 4;
5197
+ * @generated from field: trading.v1.QuoteInput input = 4;
4505
5198
  */
4506
- input?: ClassicInput;
5199
+ input?: QuoteInput;
4507
5200
  /**
4508
- * @generated from field: trading.v1.ClassicOutput output = 5;
5201
+ * @generated from field: trading.v1.QuoteOutput output = 5;
4509
5202
  */
4510
- output?: ClassicOutput;
5203
+ output?: QuoteOutput;
4511
5204
  /**
4512
5205
  * @generated from field: trading.v1.TradeType trade_type = 6;
4513
5206
  */
@@ -4560,6 +5253,10 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
4560
5253
  * @generated from field: optional trading.v1.AutoSlippage auto_slippage = 18;
4561
5254
  */
4562
5255
  autoSlippage?: AutoSlippage;
5256
+ /**
5257
+ * @generated from field: optional double compound_slippage = 19;
5258
+ */
5259
+ compoundSlippage?: number;
4563
5260
  constructor(data?: PartialMessage<ChainedQuote>);
4564
5261
  static readonly runtime: typeof proto3;
4565
5262
  static readonly typeName = "trading.v1.ChainedQuote";