@uniswap/client-trading 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/trading/v1/api_pb.d.ts +653 -0
- package/dist/trading/v1/api_pb.js +861 -0
- package/package.json +1 -1
|
@@ -2122,6 +2122,10 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2122
2122
|
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 25;
|
|
2123
2123
|
*/
|
|
2124
2124
|
sponsorshipInfo?: SponsorshipInfo;
|
|
2125
|
+
/**
|
|
2126
|
+
* @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
|
|
2127
|
+
*/
|
|
2128
|
+
swapSteps: SwapStep[];
|
|
2125
2129
|
constructor(data?: PartialMessage<ClassicQuote>);
|
|
2126
2130
|
static readonly runtime: typeof proto3;
|
|
2127
2131
|
static readonly typeName = "trading.v1.ClassicQuote";
|
|
@@ -2131,6 +2135,655 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2131
2135
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassicQuote;
|
|
2132
2136
|
static equals(a: ClassicQuote | PlainMessage<ClassicQuote> | undefined, b: ClassicQuote | PlainMessage<ClassicQuote> | undefined): boolean;
|
|
2133
2137
|
}
|
|
2138
|
+
/**
|
|
2139
|
+
* Universal Router SwapStep representation (mirrors the SDK shape used by
|
|
2140
|
+
* SwapRouter.encodeSwaps). Only used in the swapsteps quote/encoding flow.
|
|
2141
|
+
*
|
|
2142
|
+
* @generated from message trading.v1.SwapPoolKey
|
|
2143
|
+
*/
|
|
2144
|
+
export declare class SwapPoolKey extends Message<SwapPoolKey> {
|
|
2145
|
+
/**
|
|
2146
|
+
* @generated from field: string currency0 = 1;
|
|
2147
|
+
*/
|
|
2148
|
+
currency0: string;
|
|
2149
|
+
/**
|
|
2150
|
+
* @generated from field: string currency1 = 2;
|
|
2151
|
+
*/
|
|
2152
|
+
currency1: string;
|
|
2153
|
+
/**
|
|
2154
|
+
* @generated from field: int32 fee = 3;
|
|
2155
|
+
*/
|
|
2156
|
+
fee: number;
|
|
2157
|
+
/**
|
|
2158
|
+
* @generated from field: int32 tick_spacing = 4;
|
|
2159
|
+
*/
|
|
2160
|
+
tickSpacing: number;
|
|
2161
|
+
/**
|
|
2162
|
+
* @generated from field: string hooks = 5;
|
|
2163
|
+
*/
|
|
2164
|
+
hooks: string;
|
|
2165
|
+
constructor(data?: PartialMessage<SwapPoolKey>);
|
|
2166
|
+
static readonly runtime: typeof proto3;
|
|
2167
|
+
static readonly typeName = "trading.v1.SwapPoolKey";
|
|
2168
|
+
static readonly fields: FieldList;
|
|
2169
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SwapPoolKey;
|
|
2170
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SwapPoolKey;
|
|
2171
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapPoolKey;
|
|
2172
|
+
static equals(a: SwapPoolKey | PlainMessage<SwapPoolKey> | undefined, b: SwapPoolKey | PlainMessage<SwapPoolKey> | undefined): boolean;
|
|
2173
|
+
}
|
|
2174
|
+
/**
|
|
2175
|
+
* @generated from message trading.v1.SwapPathKey
|
|
2176
|
+
*/
|
|
2177
|
+
export declare class SwapPathKey extends Message<SwapPathKey> {
|
|
2178
|
+
/**
|
|
2179
|
+
* @generated from field: string intermediate_currency = 1;
|
|
2180
|
+
*/
|
|
2181
|
+
intermediateCurrency: string;
|
|
2182
|
+
/**
|
|
2183
|
+
* @generated from field: int32 fee = 2;
|
|
2184
|
+
*/
|
|
2185
|
+
fee: number;
|
|
2186
|
+
/**
|
|
2187
|
+
* @generated from field: int32 tick_spacing = 3;
|
|
2188
|
+
*/
|
|
2189
|
+
tickSpacing: number;
|
|
2190
|
+
/**
|
|
2191
|
+
* @generated from field: string hooks = 4;
|
|
2192
|
+
*/
|
|
2193
|
+
hooks: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* @generated from field: string hook_data = 5;
|
|
2196
|
+
*/
|
|
2197
|
+
hookData: string;
|
|
2198
|
+
constructor(data?: PartialMessage<SwapPathKey>);
|
|
2199
|
+
static readonly runtime: typeof proto3;
|
|
2200
|
+
static readonly typeName = "trading.v1.SwapPathKey";
|
|
2201
|
+
static readonly fields: FieldList;
|
|
2202
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SwapPathKey;
|
|
2203
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SwapPathKey;
|
|
2204
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapPathKey;
|
|
2205
|
+
static equals(a: SwapPathKey | PlainMessage<SwapPathKey> | undefined, b: SwapPathKey | PlainMessage<SwapPathKey> | undefined): boolean;
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* @generated from message trading.v1.V4SwapExactIn
|
|
2209
|
+
*/
|
|
2210
|
+
export declare class V4SwapExactIn extends Message<V4SwapExactIn> {
|
|
2211
|
+
/**
|
|
2212
|
+
* @generated from field: string currency_in = 1;
|
|
2213
|
+
*/
|
|
2214
|
+
currencyIn: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* @generated from field: repeated trading.v1.SwapPathKey path = 2;
|
|
2217
|
+
*/
|
|
2218
|
+
path: SwapPathKey[];
|
|
2219
|
+
/**
|
|
2220
|
+
* @generated from field: string amount_in = 3;
|
|
2221
|
+
*/
|
|
2222
|
+
amountIn: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* @generated from field: string amount_out_minimum = 4;
|
|
2225
|
+
*/
|
|
2226
|
+
amountOutMinimum: string;
|
|
2227
|
+
/**
|
|
2228
|
+
* @generated from field: repeated string min_hop_price_x36 = 5;
|
|
2229
|
+
*/
|
|
2230
|
+
minHopPriceX36: string[];
|
|
2231
|
+
constructor(data?: PartialMessage<V4SwapExactIn>);
|
|
2232
|
+
static readonly runtime: typeof proto3;
|
|
2233
|
+
static readonly typeName = "trading.v1.V4SwapExactIn";
|
|
2234
|
+
static readonly fields: FieldList;
|
|
2235
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapExactIn;
|
|
2236
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapExactIn;
|
|
2237
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapExactIn;
|
|
2238
|
+
static equals(a: V4SwapExactIn | PlainMessage<V4SwapExactIn> | undefined, b: V4SwapExactIn | PlainMessage<V4SwapExactIn> | undefined): boolean;
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
* @generated from message trading.v1.V4SwapExactInSingle
|
|
2242
|
+
*/
|
|
2243
|
+
export declare class V4SwapExactInSingle extends Message<V4SwapExactInSingle> {
|
|
2244
|
+
/**
|
|
2245
|
+
* @generated from field: trading.v1.SwapPoolKey pool_key = 1;
|
|
2246
|
+
*/
|
|
2247
|
+
poolKey?: SwapPoolKey;
|
|
2248
|
+
/**
|
|
2249
|
+
* @generated from field: bool zero_for_one = 2;
|
|
2250
|
+
*/
|
|
2251
|
+
zeroForOne: boolean;
|
|
2252
|
+
/**
|
|
2253
|
+
* @generated from field: string amount_in = 3;
|
|
2254
|
+
*/
|
|
2255
|
+
amountIn: string;
|
|
2256
|
+
/**
|
|
2257
|
+
* @generated from field: string amount_out_minimum = 4;
|
|
2258
|
+
*/
|
|
2259
|
+
amountOutMinimum: string;
|
|
2260
|
+
/**
|
|
2261
|
+
* @generated from field: string hook_data = 5;
|
|
2262
|
+
*/
|
|
2263
|
+
hookData: string;
|
|
2264
|
+
/**
|
|
2265
|
+
* @generated from field: optional string min_hop_price_x36 = 6;
|
|
2266
|
+
*/
|
|
2267
|
+
minHopPriceX36?: string;
|
|
2268
|
+
constructor(data?: PartialMessage<V4SwapExactInSingle>);
|
|
2269
|
+
static readonly runtime: typeof proto3;
|
|
2270
|
+
static readonly typeName = "trading.v1.V4SwapExactInSingle";
|
|
2271
|
+
static readonly fields: FieldList;
|
|
2272
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapExactInSingle;
|
|
2273
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapExactInSingle;
|
|
2274
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapExactInSingle;
|
|
2275
|
+
static equals(a: V4SwapExactInSingle | PlainMessage<V4SwapExactInSingle> | undefined, b: V4SwapExactInSingle | PlainMessage<V4SwapExactInSingle> | undefined): boolean;
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* @generated from message trading.v1.V4SwapExactOut
|
|
2279
|
+
*/
|
|
2280
|
+
export declare class V4SwapExactOut extends Message<V4SwapExactOut> {
|
|
2281
|
+
/**
|
|
2282
|
+
* @generated from field: string currency_out = 1;
|
|
2283
|
+
*/
|
|
2284
|
+
currencyOut: string;
|
|
2285
|
+
/**
|
|
2286
|
+
* @generated from field: repeated trading.v1.SwapPathKey path = 2;
|
|
2287
|
+
*/
|
|
2288
|
+
path: SwapPathKey[];
|
|
2289
|
+
/**
|
|
2290
|
+
* @generated from field: string amount_out = 3;
|
|
2291
|
+
*/
|
|
2292
|
+
amountOut: string;
|
|
2293
|
+
/**
|
|
2294
|
+
* @generated from field: string amount_in_maximum = 4;
|
|
2295
|
+
*/
|
|
2296
|
+
amountInMaximum: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* @generated from field: repeated string min_hop_price_x36 = 5;
|
|
2299
|
+
*/
|
|
2300
|
+
minHopPriceX36: string[];
|
|
2301
|
+
constructor(data?: PartialMessage<V4SwapExactOut>);
|
|
2302
|
+
static readonly runtime: typeof proto3;
|
|
2303
|
+
static readonly typeName = "trading.v1.V4SwapExactOut";
|
|
2304
|
+
static readonly fields: FieldList;
|
|
2305
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapExactOut;
|
|
2306
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapExactOut;
|
|
2307
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapExactOut;
|
|
2308
|
+
static equals(a: V4SwapExactOut | PlainMessage<V4SwapExactOut> | undefined, b: V4SwapExactOut | PlainMessage<V4SwapExactOut> | undefined): boolean;
|
|
2309
|
+
}
|
|
2310
|
+
/**
|
|
2311
|
+
* @generated from message trading.v1.V4SwapExactOutSingle
|
|
2312
|
+
*/
|
|
2313
|
+
export declare class V4SwapExactOutSingle extends Message<V4SwapExactOutSingle> {
|
|
2314
|
+
/**
|
|
2315
|
+
* @generated from field: trading.v1.SwapPoolKey pool_key = 1;
|
|
2316
|
+
*/
|
|
2317
|
+
poolKey?: SwapPoolKey;
|
|
2318
|
+
/**
|
|
2319
|
+
* @generated from field: bool zero_for_one = 2;
|
|
2320
|
+
*/
|
|
2321
|
+
zeroForOne: boolean;
|
|
2322
|
+
/**
|
|
2323
|
+
* @generated from field: string amount_out = 3;
|
|
2324
|
+
*/
|
|
2325
|
+
amountOut: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* @generated from field: string amount_in_maximum = 4;
|
|
2328
|
+
*/
|
|
2329
|
+
amountInMaximum: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* @generated from field: string hook_data = 5;
|
|
2332
|
+
*/
|
|
2333
|
+
hookData: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* @generated from field: optional string min_hop_price_x36 = 6;
|
|
2336
|
+
*/
|
|
2337
|
+
minHopPriceX36?: string;
|
|
2338
|
+
constructor(data?: PartialMessage<V4SwapExactOutSingle>);
|
|
2339
|
+
static readonly runtime: typeof proto3;
|
|
2340
|
+
static readonly typeName = "trading.v1.V4SwapExactOutSingle";
|
|
2341
|
+
static readonly fields: FieldList;
|
|
2342
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapExactOutSingle;
|
|
2343
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapExactOutSingle;
|
|
2344
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapExactOutSingle;
|
|
2345
|
+
static equals(a: V4SwapExactOutSingle | PlainMessage<V4SwapExactOutSingle> | undefined, b: V4SwapExactOutSingle | PlainMessage<V4SwapExactOutSingle> | undefined): boolean;
|
|
2346
|
+
}
|
|
2347
|
+
/**
|
|
2348
|
+
* @generated from message trading.v1.V4Settle
|
|
2349
|
+
*/
|
|
2350
|
+
export declare class V4Settle extends Message<V4Settle> {
|
|
2351
|
+
/**
|
|
2352
|
+
* @generated from field: string currency = 1;
|
|
2353
|
+
*/
|
|
2354
|
+
currency: string;
|
|
2355
|
+
/**
|
|
2356
|
+
* @generated from field: string amount = 2;
|
|
2357
|
+
*/
|
|
2358
|
+
amount: string;
|
|
2359
|
+
constructor(data?: PartialMessage<V4Settle>);
|
|
2360
|
+
static readonly runtime: typeof proto3;
|
|
2361
|
+
static readonly typeName = "trading.v1.V4Settle";
|
|
2362
|
+
static readonly fields: FieldList;
|
|
2363
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4Settle;
|
|
2364
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4Settle;
|
|
2365
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4Settle;
|
|
2366
|
+
static equals(a: V4Settle | PlainMessage<V4Settle> | undefined, b: V4Settle | PlainMessage<V4Settle> | undefined): boolean;
|
|
2367
|
+
}
|
|
2368
|
+
/**
|
|
2369
|
+
* @generated from message trading.v1.V4SettleAll
|
|
2370
|
+
*/
|
|
2371
|
+
export declare class V4SettleAll extends Message<V4SettleAll> {
|
|
2372
|
+
/**
|
|
2373
|
+
* @generated from field: string currency = 1;
|
|
2374
|
+
*/
|
|
2375
|
+
currency: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* @generated from field: string max_amount = 2;
|
|
2378
|
+
*/
|
|
2379
|
+
maxAmount: string;
|
|
2380
|
+
constructor(data?: PartialMessage<V4SettleAll>);
|
|
2381
|
+
static readonly runtime: typeof proto3;
|
|
2382
|
+
static readonly typeName = "trading.v1.V4SettleAll";
|
|
2383
|
+
static readonly fields: FieldList;
|
|
2384
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SettleAll;
|
|
2385
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SettleAll;
|
|
2386
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SettleAll;
|
|
2387
|
+
static equals(a: V4SettleAll | PlainMessage<V4SettleAll> | undefined, b: V4SettleAll | PlainMessage<V4SettleAll> | undefined): boolean;
|
|
2388
|
+
}
|
|
2389
|
+
/**
|
|
2390
|
+
* @generated from message trading.v1.V4Take
|
|
2391
|
+
*/
|
|
2392
|
+
export declare class V4Take extends Message<V4Take> {
|
|
2393
|
+
/**
|
|
2394
|
+
* @generated from field: string currency = 1;
|
|
2395
|
+
*/
|
|
2396
|
+
currency: string;
|
|
2397
|
+
/**
|
|
2398
|
+
* @generated from field: string recipient = 2;
|
|
2399
|
+
*/
|
|
2400
|
+
recipient: string;
|
|
2401
|
+
/**
|
|
2402
|
+
* @generated from field: string amount = 3;
|
|
2403
|
+
*/
|
|
2404
|
+
amount: string;
|
|
2405
|
+
constructor(data?: PartialMessage<V4Take>);
|
|
2406
|
+
static readonly runtime: typeof proto3;
|
|
2407
|
+
static readonly typeName = "trading.v1.V4Take";
|
|
2408
|
+
static readonly fields: FieldList;
|
|
2409
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4Take;
|
|
2410
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4Take;
|
|
2411
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4Take;
|
|
2412
|
+
static equals(a: V4Take | PlainMessage<V4Take> | undefined, b: V4Take | PlainMessage<V4Take> | undefined): boolean;
|
|
2413
|
+
}
|
|
2414
|
+
/**
|
|
2415
|
+
* @generated from message trading.v1.V4TakeAll
|
|
2416
|
+
*/
|
|
2417
|
+
export declare class V4TakeAll extends Message<V4TakeAll> {
|
|
2418
|
+
/**
|
|
2419
|
+
* @generated from field: string currency = 1;
|
|
2420
|
+
*/
|
|
2421
|
+
currency: string;
|
|
2422
|
+
/**
|
|
2423
|
+
* @generated from field: string min_amount = 2;
|
|
2424
|
+
*/
|
|
2425
|
+
minAmount: string;
|
|
2426
|
+
constructor(data?: PartialMessage<V4TakeAll>);
|
|
2427
|
+
static readonly runtime: typeof proto3;
|
|
2428
|
+
static readonly typeName = "trading.v1.V4TakeAll";
|
|
2429
|
+
static readonly fields: FieldList;
|
|
2430
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4TakeAll;
|
|
2431
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4TakeAll;
|
|
2432
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4TakeAll;
|
|
2433
|
+
static equals(a: V4TakeAll | PlainMessage<V4TakeAll> | undefined, b: V4TakeAll | PlainMessage<V4TakeAll> | undefined): boolean;
|
|
2434
|
+
}
|
|
2435
|
+
/**
|
|
2436
|
+
* @generated from message trading.v1.V4TakePortion
|
|
2437
|
+
*/
|
|
2438
|
+
export declare class V4TakePortion extends Message<V4TakePortion> {
|
|
2439
|
+
/**
|
|
2440
|
+
* @generated from field: string currency = 1;
|
|
2441
|
+
*/
|
|
2442
|
+
currency: string;
|
|
2443
|
+
/**
|
|
2444
|
+
* @generated from field: string recipient = 2;
|
|
2445
|
+
*/
|
|
2446
|
+
recipient: string;
|
|
2447
|
+
/**
|
|
2448
|
+
* @generated from field: string bips = 3;
|
|
2449
|
+
*/
|
|
2450
|
+
bips: string;
|
|
2451
|
+
constructor(data?: PartialMessage<V4TakePortion>);
|
|
2452
|
+
static readonly runtime: typeof proto3;
|
|
2453
|
+
static readonly typeName = "trading.v1.V4TakePortion";
|
|
2454
|
+
static readonly fields: FieldList;
|
|
2455
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4TakePortion;
|
|
2456
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4TakePortion;
|
|
2457
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4TakePortion;
|
|
2458
|
+
static equals(a: V4TakePortion | PlainMessage<V4TakePortion> | undefined, b: V4TakePortion | PlainMessage<V4TakePortion> | undefined): boolean;
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* @generated from message trading.v1.V4SwapAction
|
|
2462
|
+
*/
|
|
2463
|
+
export declare class V4SwapAction extends Message<V4SwapAction> {
|
|
2464
|
+
/**
|
|
2465
|
+
* @generated from oneof trading.v1.V4SwapAction.action
|
|
2466
|
+
*/
|
|
2467
|
+
action: {
|
|
2468
|
+
/**
|
|
2469
|
+
* @generated from field: trading.v1.V4SwapExactIn swap_exact_in = 1;
|
|
2470
|
+
*/
|
|
2471
|
+
value: V4SwapExactIn;
|
|
2472
|
+
case: "swapExactIn";
|
|
2473
|
+
} | {
|
|
2474
|
+
/**
|
|
2475
|
+
* @generated from field: trading.v1.V4SwapExactInSingle swap_exact_in_single = 2;
|
|
2476
|
+
*/
|
|
2477
|
+
value: V4SwapExactInSingle;
|
|
2478
|
+
case: "swapExactInSingle";
|
|
2479
|
+
} | {
|
|
2480
|
+
/**
|
|
2481
|
+
* @generated from field: trading.v1.V4SwapExactOut swap_exact_out = 3;
|
|
2482
|
+
*/
|
|
2483
|
+
value: V4SwapExactOut;
|
|
2484
|
+
case: "swapExactOut";
|
|
2485
|
+
} | {
|
|
2486
|
+
/**
|
|
2487
|
+
* @generated from field: trading.v1.V4SwapExactOutSingle swap_exact_out_single = 4;
|
|
2488
|
+
*/
|
|
2489
|
+
value: V4SwapExactOutSingle;
|
|
2490
|
+
case: "swapExactOutSingle";
|
|
2491
|
+
} | {
|
|
2492
|
+
/**
|
|
2493
|
+
* @generated from field: trading.v1.V4Settle settle = 5;
|
|
2494
|
+
*/
|
|
2495
|
+
value: V4Settle;
|
|
2496
|
+
case: "settle";
|
|
2497
|
+
} | {
|
|
2498
|
+
/**
|
|
2499
|
+
* @generated from field: trading.v1.V4SettleAll settle_all = 6;
|
|
2500
|
+
*/
|
|
2501
|
+
value: V4SettleAll;
|
|
2502
|
+
case: "settleAll";
|
|
2503
|
+
} | {
|
|
2504
|
+
/**
|
|
2505
|
+
* @generated from field: trading.v1.V4Take take = 7;
|
|
2506
|
+
*/
|
|
2507
|
+
value: V4Take;
|
|
2508
|
+
case: "take";
|
|
2509
|
+
} | {
|
|
2510
|
+
/**
|
|
2511
|
+
* @generated from field: trading.v1.V4TakeAll take_all = 8;
|
|
2512
|
+
*/
|
|
2513
|
+
value: V4TakeAll;
|
|
2514
|
+
case: "takeAll";
|
|
2515
|
+
} | {
|
|
2516
|
+
/**
|
|
2517
|
+
* @generated from field: trading.v1.V4TakePortion take_portion = 9;
|
|
2518
|
+
*/
|
|
2519
|
+
value: V4TakePortion;
|
|
2520
|
+
case: "takePortion";
|
|
2521
|
+
} | {
|
|
2522
|
+
case: undefined;
|
|
2523
|
+
value?: undefined;
|
|
2524
|
+
};
|
|
2525
|
+
constructor(data?: PartialMessage<V4SwapAction>);
|
|
2526
|
+
static readonly runtime: typeof proto3;
|
|
2527
|
+
static readonly typeName = "trading.v1.V4SwapAction";
|
|
2528
|
+
static readonly fields: FieldList;
|
|
2529
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapAction;
|
|
2530
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapAction;
|
|
2531
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapAction;
|
|
2532
|
+
static equals(a: V4SwapAction | PlainMessage<V4SwapAction> | undefined, b: V4SwapAction | PlainMessage<V4SwapAction> | undefined): boolean;
|
|
2533
|
+
}
|
|
2534
|
+
/**
|
|
2535
|
+
* @generated from message trading.v1.V2SwapExactInStep
|
|
2536
|
+
*/
|
|
2537
|
+
export declare class V2SwapExactInStep extends Message<V2SwapExactInStep> {
|
|
2538
|
+
/**
|
|
2539
|
+
* @generated from field: string recipient = 1;
|
|
2540
|
+
*/
|
|
2541
|
+
recipient: string;
|
|
2542
|
+
/**
|
|
2543
|
+
* @generated from field: string amount_in = 2;
|
|
2544
|
+
*/
|
|
2545
|
+
amountIn: string;
|
|
2546
|
+
/**
|
|
2547
|
+
* @generated from field: string amount_out_min = 3;
|
|
2548
|
+
*/
|
|
2549
|
+
amountOutMin: string;
|
|
2550
|
+
/**
|
|
2551
|
+
* @generated from field: repeated string path = 4;
|
|
2552
|
+
*/
|
|
2553
|
+
path: string[];
|
|
2554
|
+
/**
|
|
2555
|
+
* @generated from field: repeated string min_hop_price_x36 = 5;
|
|
2556
|
+
*/
|
|
2557
|
+
minHopPriceX36: string[];
|
|
2558
|
+
constructor(data?: PartialMessage<V2SwapExactInStep>);
|
|
2559
|
+
static readonly runtime: typeof proto3;
|
|
2560
|
+
static readonly typeName = "trading.v1.V2SwapExactInStep";
|
|
2561
|
+
static readonly fields: FieldList;
|
|
2562
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2SwapExactInStep;
|
|
2563
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2SwapExactInStep;
|
|
2564
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2SwapExactInStep;
|
|
2565
|
+
static equals(a: V2SwapExactInStep | PlainMessage<V2SwapExactInStep> | undefined, b: V2SwapExactInStep | PlainMessage<V2SwapExactInStep> | undefined): boolean;
|
|
2566
|
+
}
|
|
2567
|
+
/**
|
|
2568
|
+
* @generated from message trading.v1.V2SwapExactOutStep
|
|
2569
|
+
*/
|
|
2570
|
+
export declare class V2SwapExactOutStep extends Message<V2SwapExactOutStep> {
|
|
2571
|
+
/**
|
|
2572
|
+
* @generated from field: string recipient = 1;
|
|
2573
|
+
*/
|
|
2574
|
+
recipient: string;
|
|
2575
|
+
/**
|
|
2576
|
+
* @generated from field: string amount_out = 2;
|
|
2577
|
+
*/
|
|
2578
|
+
amountOut: string;
|
|
2579
|
+
/**
|
|
2580
|
+
* @generated from field: string amount_in_max = 3;
|
|
2581
|
+
*/
|
|
2582
|
+
amountInMax: string;
|
|
2583
|
+
/**
|
|
2584
|
+
* @generated from field: repeated string path = 4;
|
|
2585
|
+
*/
|
|
2586
|
+
path: string[];
|
|
2587
|
+
/**
|
|
2588
|
+
* @generated from field: repeated string min_hop_price_x36 = 5;
|
|
2589
|
+
*/
|
|
2590
|
+
minHopPriceX36: string[];
|
|
2591
|
+
constructor(data?: PartialMessage<V2SwapExactOutStep>);
|
|
2592
|
+
static readonly runtime: typeof proto3;
|
|
2593
|
+
static readonly typeName = "trading.v1.V2SwapExactOutStep";
|
|
2594
|
+
static readonly fields: FieldList;
|
|
2595
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2SwapExactOutStep;
|
|
2596
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2SwapExactOutStep;
|
|
2597
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2SwapExactOutStep;
|
|
2598
|
+
static equals(a: V2SwapExactOutStep | PlainMessage<V2SwapExactOutStep> | undefined, b: V2SwapExactOutStep | PlainMessage<V2SwapExactOutStep> | undefined): boolean;
|
|
2599
|
+
}
|
|
2600
|
+
/**
|
|
2601
|
+
* @generated from message trading.v1.V3SwapExactInStep
|
|
2602
|
+
*/
|
|
2603
|
+
export declare class V3SwapExactInStep extends Message<V3SwapExactInStep> {
|
|
2604
|
+
/**
|
|
2605
|
+
* @generated from field: string recipient = 1;
|
|
2606
|
+
*/
|
|
2607
|
+
recipient: string;
|
|
2608
|
+
/**
|
|
2609
|
+
* @generated from field: string amount_in = 2;
|
|
2610
|
+
*/
|
|
2611
|
+
amountIn: string;
|
|
2612
|
+
/**
|
|
2613
|
+
* @generated from field: string amount_out_min = 3;
|
|
2614
|
+
*/
|
|
2615
|
+
amountOutMin: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* @generated from field: string path = 4;
|
|
2618
|
+
*/
|
|
2619
|
+
path: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* @generated from field: repeated string min_hop_price_x36 = 5;
|
|
2622
|
+
*/
|
|
2623
|
+
minHopPriceX36: string[];
|
|
2624
|
+
constructor(data?: PartialMessage<V3SwapExactInStep>);
|
|
2625
|
+
static readonly runtime: typeof proto3;
|
|
2626
|
+
static readonly typeName = "trading.v1.V3SwapExactInStep";
|
|
2627
|
+
static readonly fields: FieldList;
|
|
2628
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3SwapExactInStep;
|
|
2629
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3SwapExactInStep;
|
|
2630
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3SwapExactInStep;
|
|
2631
|
+
static equals(a: V3SwapExactInStep | PlainMessage<V3SwapExactInStep> | undefined, b: V3SwapExactInStep | PlainMessage<V3SwapExactInStep> | undefined): boolean;
|
|
2632
|
+
}
|
|
2633
|
+
/**
|
|
2634
|
+
* @generated from message trading.v1.V3SwapExactOutStep
|
|
2635
|
+
*/
|
|
2636
|
+
export declare class V3SwapExactOutStep extends Message<V3SwapExactOutStep> {
|
|
2637
|
+
/**
|
|
2638
|
+
* @generated from field: string recipient = 1;
|
|
2639
|
+
*/
|
|
2640
|
+
recipient: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* @generated from field: string amount_out = 2;
|
|
2643
|
+
*/
|
|
2644
|
+
amountOut: string;
|
|
2645
|
+
/**
|
|
2646
|
+
* @generated from field: string amount_in_max = 3;
|
|
2647
|
+
*/
|
|
2648
|
+
amountInMax: string;
|
|
2649
|
+
/**
|
|
2650
|
+
* @generated from field: string path = 4;
|
|
2651
|
+
*/
|
|
2652
|
+
path: string;
|
|
2653
|
+
/**
|
|
2654
|
+
* @generated from field: repeated string min_hop_price_x36 = 5;
|
|
2655
|
+
*/
|
|
2656
|
+
minHopPriceX36: string[];
|
|
2657
|
+
constructor(data?: PartialMessage<V3SwapExactOutStep>);
|
|
2658
|
+
static readonly runtime: typeof proto3;
|
|
2659
|
+
static readonly typeName = "trading.v1.V3SwapExactOutStep";
|
|
2660
|
+
static readonly fields: FieldList;
|
|
2661
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3SwapExactOutStep;
|
|
2662
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3SwapExactOutStep;
|
|
2663
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3SwapExactOutStep;
|
|
2664
|
+
static equals(a: V3SwapExactOutStep | PlainMessage<V3SwapExactOutStep> | undefined, b: V3SwapExactOutStep | PlainMessage<V3SwapExactOutStep> | undefined): boolean;
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
* @generated from message trading.v1.V4SwapStepInner
|
|
2668
|
+
*/
|
|
2669
|
+
export declare class V4SwapStepInner extends Message<V4SwapStepInner> {
|
|
2670
|
+
/**
|
|
2671
|
+
* @generated from field: repeated trading.v1.V4SwapAction v4_actions = 1;
|
|
2672
|
+
*/
|
|
2673
|
+
v4Actions: V4SwapAction[];
|
|
2674
|
+
constructor(data?: PartialMessage<V4SwapStepInner>);
|
|
2675
|
+
static readonly runtime: typeof proto3;
|
|
2676
|
+
static readonly typeName = "trading.v1.V4SwapStepInner";
|
|
2677
|
+
static readonly fields: FieldList;
|
|
2678
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4SwapStepInner;
|
|
2679
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4SwapStepInner;
|
|
2680
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4SwapStepInner;
|
|
2681
|
+
static equals(a: V4SwapStepInner | PlainMessage<V4SwapStepInner> | undefined, b: V4SwapStepInner | PlainMessage<V4SwapStepInner> | undefined): boolean;
|
|
2682
|
+
}
|
|
2683
|
+
/**
|
|
2684
|
+
* @generated from message trading.v1.WrapEthStep
|
|
2685
|
+
*/
|
|
2686
|
+
export declare class WrapEthStep extends Message<WrapEthStep> {
|
|
2687
|
+
/**
|
|
2688
|
+
* @generated from field: string recipient = 1;
|
|
2689
|
+
*/
|
|
2690
|
+
recipient: string;
|
|
2691
|
+
/**
|
|
2692
|
+
* @generated from field: string amount = 2;
|
|
2693
|
+
*/
|
|
2694
|
+
amount: string;
|
|
2695
|
+
constructor(data?: PartialMessage<WrapEthStep>);
|
|
2696
|
+
static readonly runtime: typeof proto3;
|
|
2697
|
+
static readonly typeName = "trading.v1.WrapEthStep";
|
|
2698
|
+
static readonly fields: FieldList;
|
|
2699
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WrapEthStep;
|
|
2700
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WrapEthStep;
|
|
2701
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WrapEthStep;
|
|
2702
|
+
static equals(a: WrapEthStep | PlainMessage<WrapEthStep> | undefined, b: WrapEthStep | PlainMessage<WrapEthStep> | undefined): boolean;
|
|
2703
|
+
}
|
|
2704
|
+
/**
|
|
2705
|
+
* @generated from message trading.v1.UnwrapWethStep
|
|
2706
|
+
*/
|
|
2707
|
+
export declare class UnwrapWethStep extends Message<UnwrapWethStep> {
|
|
2708
|
+
/**
|
|
2709
|
+
* @generated from field: string recipient = 1;
|
|
2710
|
+
*/
|
|
2711
|
+
recipient: string;
|
|
2712
|
+
/**
|
|
2713
|
+
* @generated from field: string amount_min = 2;
|
|
2714
|
+
*/
|
|
2715
|
+
amountMin: string;
|
|
2716
|
+
constructor(data?: PartialMessage<UnwrapWethStep>);
|
|
2717
|
+
static readonly runtime: typeof proto3;
|
|
2718
|
+
static readonly typeName = "trading.v1.UnwrapWethStep";
|
|
2719
|
+
static readonly fields: FieldList;
|
|
2720
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnwrapWethStep;
|
|
2721
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnwrapWethStep;
|
|
2722
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnwrapWethStep;
|
|
2723
|
+
static equals(a: UnwrapWethStep | PlainMessage<UnwrapWethStep> | undefined, b: UnwrapWethStep | PlainMessage<UnwrapWethStep> | undefined): boolean;
|
|
2724
|
+
}
|
|
2725
|
+
/**
|
|
2726
|
+
* @generated from message trading.v1.SwapStep
|
|
2727
|
+
*/
|
|
2728
|
+
export declare class SwapStep extends Message<SwapStep> {
|
|
2729
|
+
/**
|
|
2730
|
+
* @generated from oneof trading.v1.SwapStep.step
|
|
2731
|
+
*/
|
|
2732
|
+
step: {
|
|
2733
|
+
/**
|
|
2734
|
+
* @generated from field: trading.v1.V2SwapExactInStep v2_swap_exact_in = 1;
|
|
2735
|
+
*/
|
|
2736
|
+
value: V2SwapExactInStep;
|
|
2737
|
+
case: "v2SwapExactIn";
|
|
2738
|
+
} | {
|
|
2739
|
+
/**
|
|
2740
|
+
* @generated from field: trading.v1.V2SwapExactOutStep v2_swap_exact_out = 2;
|
|
2741
|
+
*/
|
|
2742
|
+
value: V2SwapExactOutStep;
|
|
2743
|
+
case: "v2SwapExactOut";
|
|
2744
|
+
} | {
|
|
2745
|
+
/**
|
|
2746
|
+
* @generated from field: trading.v1.V3SwapExactInStep v3_swap_exact_in = 3;
|
|
2747
|
+
*/
|
|
2748
|
+
value: V3SwapExactInStep;
|
|
2749
|
+
case: "v3SwapExactIn";
|
|
2750
|
+
} | {
|
|
2751
|
+
/**
|
|
2752
|
+
* @generated from field: trading.v1.V3SwapExactOutStep v3_swap_exact_out = 4;
|
|
2753
|
+
*/
|
|
2754
|
+
value: V3SwapExactOutStep;
|
|
2755
|
+
case: "v3SwapExactOut";
|
|
2756
|
+
} | {
|
|
2757
|
+
/**
|
|
2758
|
+
* @generated from field: trading.v1.V4SwapStepInner v4_swap = 5;
|
|
2759
|
+
*/
|
|
2760
|
+
value: V4SwapStepInner;
|
|
2761
|
+
case: "v4Swap";
|
|
2762
|
+
} | {
|
|
2763
|
+
/**
|
|
2764
|
+
* @generated from field: trading.v1.WrapEthStep wrap_eth = 6;
|
|
2765
|
+
*/
|
|
2766
|
+
value: WrapEthStep;
|
|
2767
|
+
case: "wrapEth";
|
|
2768
|
+
} | {
|
|
2769
|
+
/**
|
|
2770
|
+
* @generated from field: trading.v1.UnwrapWethStep unwrap_weth = 7;
|
|
2771
|
+
*/
|
|
2772
|
+
value: UnwrapWethStep;
|
|
2773
|
+
case: "unwrapWeth";
|
|
2774
|
+
} | {
|
|
2775
|
+
case: undefined;
|
|
2776
|
+
value?: undefined;
|
|
2777
|
+
};
|
|
2778
|
+
constructor(data?: PartialMessage<SwapStep>);
|
|
2779
|
+
static readonly runtime: typeof proto3;
|
|
2780
|
+
static readonly typeName = "trading.v1.SwapStep";
|
|
2781
|
+
static readonly fields: FieldList;
|
|
2782
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SwapStep;
|
|
2783
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SwapStep;
|
|
2784
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapStep;
|
|
2785
|
+
static equals(a: SwapStep | PlainMessage<SwapStep> | undefined, b: SwapStep | PlainMessage<SwapStep> | undefined): boolean;
|
|
2786
|
+
}
|
|
2134
2787
|
/**
|
|
2135
2788
|
* @generated from message trading.v1.GasEstimate
|
|
2136
2789
|
*/
|