@uniswap/client-trading 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/trading/v1/api_pb.d.ts +176 -47
- package/dist/trading/v1/api_pb.js +137 -44
- package/package.json +1 -1
|
@@ -130,6 +130,10 @@ export declare enum ChainId {
|
|
|
130
130
|
* @generated from enum value: LINEA = 59144;
|
|
131
131
|
*/
|
|
132
132
|
LINEA = 59144,
|
|
133
|
+
/**
|
|
134
|
+
* @generated from enum value: MEGAETH = 4326;
|
|
135
|
+
*/
|
|
136
|
+
MEGAETH = 4326,
|
|
133
137
|
/**
|
|
134
138
|
* @generated from enum value: TEMPO = 4217;
|
|
135
139
|
*/
|
|
@@ -889,6 +893,10 @@ export declare class Swap5792Request extends Message<Swap5792Request> {
|
|
|
889
893
|
* @generated from field: optional trading.v1.Urgency urgency = 6;
|
|
890
894
|
*/
|
|
891
895
|
urgency?: Urgency;
|
|
896
|
+
/**
|
|
897
|
+
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 7;
|
|
898
|
+
*/
|
|
899
|
+
urgencyOverrides?: UrgencyWithOverrides;
|
|
892
900
|
constructor(data?: PartialMessage<Swap5792Request>);
|
|
893
901
|
static readonly runtime: typeof proto3;
|
|
894
902
|
static readonly typeName = "trading.v1.Swap5792Request";
|
|
@@ -1353,6 +1361,72 @@ export declare class Token extends Message<Token> {
|
|
|
1353
1361
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
|
|
1354
1362
|
static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
|
|
1355
1363
|
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Caller-supplied caps applied on top of the gas service's computed quote.
|
|
1366
|
+
* All fields are absolute wei (decimal string). The gas service applies
|
|
1367
|
+
* max_priority_fee_per_gas / max_fee_per_gas as caps only — they lower the
|
|
1368
|
+
* quote, never raise it. gas_limit, if set, replaces the limit calculation
|
|
1369
|
+
* entirely.
|
|
1370
|
+
*
|
|
1371
|
+
* TAPI deliberately bundles gas_limit into UrgencyOverrides for a
|
|
1372
|
+
* REST-friendly client API. Trading's translation layer extracts gas_limit
|
|
1373
|
+
* out to the top-level gas_limit field on the unirpc-v2 request before
|
|
1374
|
+
* forwarding; unirpc-v2's `GasOverrides` proto carries only the fee-market
|
|
1375
|
+
* fields.
|
|
1376
|
+
*
|
|
1377
|
+
* @generated from message trading.v1.UrgencyOverrides
|
|
1378
|
+
*/
|
|
1379
|
+
export declare class UrgencyOverrides extends Message<UrgencyOverrides> {
|
|
1380
|
+
/**
|
|
1381
|
+
* wei
|
|
1382
|
+
*
|
|
1383
|
+
* @generated from field: optional string max_priority_fee_per_gas = 1;
|
|
1384
|
+
*/
|
|
1385
|
+
maxPriorityFeePerGas?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
* wei
|
|
1388
|
+
*
|
|
1389
|
+
* @generated from field: optional string max_fee_per_gas = 2;
|
|
1390
|
+
*/
|
|
1391
|
+
maxFeePerGas?: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* @generated from field: optional string gas_limit = 3;
|
|
1394
|
+
*/
|
|
1395
|
+
gasLimit?: string;
|
|
1396
|
+
constructor(data?: PartialMessage<UrgencyOverrides>);
|
|
1397
|
+
static readonly runtime: typeof proto3;
|
|
1398
|
+
static readonly typeName = "trading.v1.UrgencyOverrides";
|
|
1399
|
+
static readonly fields: FieldList;
|
|
1400
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UrgencyOverrides;
|
|
1401
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UrgencyOverrides;
|
|
1402
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UrgencyOverrides;
|
|
1403
|
+
static equals(a: UrgencyOverrides | PlainMessage<UrgencyOverrides> | undefined, b: UrgencyOverrides | PlainMessage<UrgencyOverrides> | undefined): boolean;
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* High-level fee tier selection with optional caps. Mutually exclusive
|
|
1407
|
+
* with the legacy `urgency` enum field and `gas_strategies` on each
|
|
1408
|
+
* request — only one form of gas selection should be set.
|
|
1409
|
+
*
|
|
1410
|
+
* @generated from message trading.v1.UrgencyWithOverrides
|
|
1411
|
+
*/
|
|
1412
|
+
export declare class UrgencyWithOverrides extends Message<UrgencyWithOverrides> {
|
|
1413
|
+
/**
|
|
1414
|
+
* @generated from field: trading.v1.Urgency level = 1;
|
|
1415
|
+
*/
|
|
1416
|
+
level: Urgency;
|
|
1417
|
+
/**
|
|
1418
|
+
* @generated from field: optional trading.v1.UrgencyOverrides overrides = 2;
|
|
1419
|
+
*/
|
|
1420
|
+
overrides?: UrgencyOverrides;
|
|
1421
|
+
constructor(data?: PartialMessage<UrgencyWithOverrides>);
|
|
1422
|
+
static readonly runtime: typeof proto3;
|
|
1423
|
+
static readonly typeName = "trading.v1.UrgencyWithOverrides";
|
|
1424
|
+
static readonly fields: FieldList;
|
|
1425
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UrgencyWithOverrides;
|
|
1426
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UrgencyWithOverrides;
|
|
1427
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UrgencyWithOverrides;
|
|
1428
|
+
static equals(a: UrgencyWithOverrides | PlainMessage<UrgencyWithOverrides> | undefined, b: UrgencyWithOverrides | PlainMessage<UrgencyWithOverrides> | undefined): boolean;
|
|
1429
|
+
}
|
|
1356
1430
|
/**
|
|
1357
1431
|
* @generated from message trading.v1.GasStrategy
|
|
1358
1432
|
*/
|
|
@@ -1463,7 +1537,8 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1463
1537
|
*/
|
|
1464
1538
|
urgency?: Urgency;
|
|
1465
1539
|
/**
|
|
1466
|
-
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 14;
|
|
1540
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 14 [deprecated = true];
|
|
1541
|
+
* @deprecated
|
|
1467
1542
|
*/
|
|
1468
1543
|
gasStrategies: GasStrategy[];
|
|
1469
1544
|
/**
|
|
@@ -1490,6 +1565,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1490
1565
|
* @generated from field: optional string recipient = 22;
|
|
1491
1566
|
*/
|
|
1492
1567
|
recipient?: string;
|
|
1568
|
+
/**
|
|
1569
|
+
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 23;
|
|
1570
|
+
*/
|
|
1571
|
+
urgencyOverrides?: UrgencyWithOverrides;
|
|
1493
1572
|
constructor(data?: PartialMessage<QuoteRequest>);
|
|
1494
1573
|
static readonly runtime: typeof proto3;
|
|
1495
1574
|
static readonly typeName = "trading.v1.QuoteRequest";
|
|
@@ -1652,9 +1731,9 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
|
|
|
1652
1731
|
static equals(a: QuoteResponse | PlainMessage<QuoteResponse> | undefined, b: QuoteResponse | PlainMessage<QuoteResponse> | undefined): boolean;
|
|
1653
1732
|
}
|
|
1654
1733
|
/**
|
|
1655
|
-
* @generated from message trading.v1.
|
|
1734
|
+
* @generated from message trading.v1.QuoteInput
|
|
1656
1735
|
*/
|
|
1657
|
-
export declare class
|
|
1736
|
+
export declare class QuoteInput extends Message<QuoteInput> {
|
|
1658
1737
|
/**
|
|
1659
1738
|
* @generated from field: string amount = 1;
|
|
1660
1739
|
*/
|
|
@@ -1663,19 +1742,23 @@ export declare class ClassicInput extends Message<ClassicInput> {
|
|
|
1663
1742
|
* @generated from field: string token = 2;
|
|
1664
1743
|
*/
|
|
1665
1744
|
token: string;
|
|
1666
|
-
|
|
1745
|
+
/**
|
|
1746
|
+
* @generated from field: string maximum_amount = 3;
|
|
1747
|
+
*/
|
|
1748
|
+
maximumAmount: string;
|
|
1749
|
+
constructor(data?: PartialMessage<QuoteInput>);
|
|
1667
1750
|
static readonly runtime: typeof proto3;
|
|
1668
|
-
static readonly typeName = "trading.v1.
|
|
1751
|
+
static readonly typeName = "trading.v1.QuoteInput";
|
|
1669
1752
|
static readonly fields: FieldList;
|
|
1670
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
1671
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
1672
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
1673
|
-
static equals(a:
|
|
1753
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuoteInput;
|
|
1754
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuoteInput;
|
|
1755
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuoteInput;
|
|
1756
|
+
static equals(a: QuoteInput | PlainMessage<QuoteInput> | undefined, b: QuoteInput | PlainMessage<QuoteInput> | undefined): boolean;
|
|
1674
1757
|
}
|
|
1675
1758
|
/**
|
|
1676
|
-
* @generated from message trading.v1.
|
|
1759
|
+
* @generated from message trading.v1.QuoteOutput
|
|
1677
1760
|
*/
|
|
1678
|
-
export declare class
|
|
1761
|
+
export declare class QuoteOutput extends Message<QuoteOutput> {
|
|
1679
1762
|
/**
|
|
1680
1763
|
* @generated from field: string amount = 1;
|
|
1681
1764
|
*/
|
|
@@ -1688,14 +1771,18 @@ export declare class ClassicOutput extends Message<ClassicOutput> {
|
|
|
1688
1771
|
* @generated from field: string recipient = 3;
|
|
1689
1772
|
*/
|
|
1690
1773
|
recipient: string;
|
|
1691
|
-
|
|
1774
|
+
/**
|
|
1775
|
+
* @generated from field: string minimum_amount = 4;
|
|
1776
|
+
*/
|
|
1777
|
+
minimumAmount: string;
|
|
1778
|
+
constructor(data?: PartialMessage<QuoteOutput>);
|
|
1692
1779
|
static readonly runtime: typeof proto3;
|
|
1693
|
-
static readonly typeName = "trading.v1.
|
|
1780
|
+
static readonly typeName = "trading.v1.QuoteOutput";
|
|
1694
1781
|
static readonly fields: FieldList;
|
|
1695
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
1696
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
1697
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
1698
|
-
static equals(a:
|
|
1782
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): QuoteOutput;
|
|
1783
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): QuoteOutput;
|
|
1784
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuoteOutput;
|
|
1785
|
+
static equals(a: QuoteOutput | PlainMessage<QuoteOutput> | undefined, b: QuoteOutput | PlainMessage<QuoteOutput> | undefined): boolean;
|
|
1699
1786
|
}
|
|
1700
1787
|
/**
|
|
1701
1788
|
* @generated from message trading.v1.CandidatePoolInRoute
|
|
@@ -2031,13 +2118,13 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2031
2118
|
*/
|
|
2032
2119
|
swapper: string;
|
|
2033
2120
|
/**
|
|
2034
|
-
* @generated from field: trading.v1.
|
|
2121
|
+
* @generated from field: trading.v1.QuoteInput input = 3;
|
|
2035
2122
|
*/
|
|
2036
|
-
input?:
|
|
2123
|
+
input?: QuoteInput;
|
|
2037
2124
|
/**
|
|
2038
|
-
* @generated from field: trading.v1.
|
|
2125
|
+
* @generated from field: trading.v1.QuoteOutput output = 4;
|
|
2039
2126
|
*/
|
|
2040
|
-
output?:
|
|
2127
|
+
output?: QuoteOutput;
|
|
2041
2128
|
/**
|
|
2042
2129
|
* @generated from field: double slippage = 5;
|
|
2043
2130
|
*/
|
|
@@ -3058,13 +3145,13 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
|
|
|
3058
3145
|
*/
|
|
3059
3146
|
swapper: string;
|
|
3060
3147
|
/**
|
|
3061
|
-
* @generated from field: trading.v1.
|
|
3148
|
+
* @generated from field: trading.v1.QuoteInput input = 4;
|
|
3062
3149
|
*/
|
|
3063
|
-
input?:
|
|
3150
|
+
input?: QuoteInput;
|
|
3064
3151
|
/**
|
|
3065
|
-
* @generated from field: trading.v1.
|
|
3152
|
+
* @generated from field: trading.v1.QuoteOutput output = 5;
|
|
3066
3153
|
*/
|
|
3067
|
-
output?:
|
|
3154
|
+
output?: QuoteOutput;
|
|
3068
3155
|
/**
|
|
3069
3156
|
* @generated from field: trading.v1.TradeType trade_type = 6;
|
|
3070
3157
|
*/
|
|
@@ -3172,13 +3259,18 @@ export declare class SwapRequest extends Message<SwapRequest> {
|
|
|
3172
3259
|
*/
|
|
3173
3260
|
urgency?: Urgency;
|
|
3174
3261
|
/**
|
|
3175
|
-
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
|
|
3262
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12 [deprecated = true];
|
|
3263
|
+
* @deprecated
|
|
3176
3264
|
*/
|
|
3177
3265
|
gasStrategies: GasStrategy[];
|
|
3178
3266
|
/**
|
|
3179
3267
|
* @generated from field: optional bool include_gas_info = 13;
|
|
3180
3268
|
*/
|
|
3181
3269
|
includeGasInfo?: boolean;
|
|
3270
|
+
/**
|
|
3271
|
+
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 14;
|
|
3272
|
+
*/
|
|
3273
|
+
urgencyOverrides?: UrgencyWithOverrides;
|
|
3182
3274
|
constructor(data?: PartialMessage<SwapRequest>);
|
|
3183
3275
|
static readonly runtime: typeof proto3;
|
|
3184
3276
|
static readonly typeName = "trading.v1.SwapRequest";
|
|
@@ -3283,9 +3375,14 @@ export declare class Swap7702Request extends Message<Swap7702Request> {
|
|
|
3283
3375
|
*/
|
|
3284
3376
|
urgency?: Urgency;
|
|
3285
3377
|
/**
|
|
3286
|
-
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 10;
|
|
3378
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 10 [deprecated = true];
|
|
3379
|
+
* @deprecated
|
|
3287
3380
|
*/
|
|
3288
3381
|
gasStrategies: GasStrategy[];
|
|
3382
|
+
/**
|
|
3383
|
+
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 11;
|
|
3384
|
+
*/
|
|
3385
|
+
urgencyOverrides?: UrgencyWithOverrides;
|
|
3289
3386
|
constructor(data?: PartialMessage<Swap7702Request>);
|
|
3290
3387
|
static readonly runtime: typeof proto3;
|
|
3291
3388
|
static readonly typeName = "trading.v1.Swap7702Request";
|
|
@@ -3465,10 +3562,6 @@ export declare class Customer extends Message<Customer> {
|
|
|
3465
3562
|
* @generated from field: string name = 2;
|
|
3466
3563
|
*/
|
|
3467
3564
|
name: string;
|
|
3468
|
-
/**
|
|
3469
|
-
* @generated from field: bool isInternal = 3;
|
|
3470
|
-
*/
|
|
3471
|
-
isInternal: boolean;
|
|
3472
3565
|
/**
|
|
3473
3566
|
* @generated from field: string createdAt = 4;
|
|
3474
3567
|
*/
|
|
@@ -3510,10 +3603,6 @@ export declare class CreateCustomerRequest extends Message<CreateCustomerRequest
|
|
|
3510
3603
|
* @generated from field: string name = 1;
|
|
3511
3604
|
*/
|
|
3512
3605
|
name: string;
|
|
3513
|
-
/**
|
|
3514
|
-
* @generated from field: bool isInternal = 2;
|
|
3515
|
-
*/
|
|
3516
|
-
isInternal: boolean;
|
|
3517
3606
|
/**
|
|
3518
3607
|
* @generated from field: string createdBy = 3;
|
|
3519
3608
|
*/
|
|
@@ -3632,10 +3721,6 @@ export declare class UpdateCustomerRequest extends Message<UpdateCustomerRequest
|
|
|
3632
3721
|
* @generated from field: string name = 2;
|
|
3633
3722
|
*/
|
|
3634
3723
|
name: string;
|
|
3635
|
-
/**
|
|
3636
|
-
* @generated from field: bool isInternal = 3;
|
|
3637
|
-
*/
|
|
3638
|
-
isInternal: boolean;
|
|
3639
3724
|
constructor(data?: PartialMessage<UpdateCustomerRequest>);
|
|
3640
3725
|
static readonly runtime: typeof proto3;
|
|
3641
3726
|
static readonly typeName = "trading.v1.UpdateCustomerRequest";
|
|
@@ -4470,13 +4555,13 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
4470
4555
|
*/
|
|
4471
4556
|
quoteId: string;
|
|
4472
4557
|
/**
|
|
4473
|
-
* @generated from field: trading.v1.
|
|
4558
|
+
* @generated from field: trading.v1.QuoteInput input = 5;
|
|
4474
4559
|
*/
|
|
4475
|
-
input?:
|
|
4560
|
+
input?: QuoteInput;
|
|
4476
4561
|
/**
|
|
4477
|
-
* @generated from field: trading.v1.
|
|
4562
|
+
* @generated from field: trading.v1.QuoteOutput output = 6;
|
|
4478
4563
|
*/
|
|
4479
|
-
output?:
|
|
4564
|
+
output?: QuoteOutput;
|
|
4480
4565
|
/**
|
|
4481
4566
|
* @generated from field: trading.v1.TradeType trade_type = 7;
|
|
4482
4567
|
*/
|
|
@@ -4651,6 +4736,14 @@ export declare class DutchLimitQuote extends Message<DutchLimitQuote> {
|
|
|
4651
4736
|
* @generated from field: optional string portion_recipient = 10;
|
|
4652
4737
|
*/
|
|
4653
4738
|
portionRecipient?: string;
|
|
4739
|
+
/**
|
|
4740
|
+
* @generated from field: trading.v1.QuoteInput input = 11;
|
|
4741
|
+
*/
|
|
4742
|
+
input?: QuoteInput;
|
|
4743
|
+
/**
|
|
4744
|
+
* @generated from field: trading.v1.QuoteOutput output = 12;
|
|
4745
|
+
*/
|
|
4746
|
+
output?: QuoteOutput;
|
|
4654
4747
|
constructor(data?: PartialMessage<DutchLimitQuote>);
|
|
4655
4748
|
static readonly runtime: typeof proto3;
|
|
4656
4749
|
static readonly typeName = "trading.v1.DutchLimitQuote";
|
|
@@ -4761,6 +4854,14 @@ export declare class DutchLimitV2Quote extends Message<DutchLimitV2Quote> {
|
|
|
4761
4854
|
* @generated from field: optional string portion_recipient = 11;
|
|
4762
4855
|
*/
|
|
4763
4856
|
portionRecipient?: string;
|
|
4857
|
+
/**
|
|
4858
|
+
* @generated from field: trading.v1.QuoteInput input = 12;
|
|
4859
|
+
*/
|
|
4860
|
+
input?: QuoteInput;
|
|
4861
|
+
/**
|
|
4862
|
+
* @generated from field: trading.v1.QuoteOutput output = 13;
|
|
4863
|
+
*/
|
|
4864
|
+
output?: QuoteOutput;
|
|
4764
4865
|
constructor(data?: PartialMessage<DutchLimitV2Quote>);
|
|
4765
4866
|
static readonly runtime: typeof proto3;
|
|
4766
4867
|
static readonly typeName = "trading.v1.DutchLimitV2Quote";
|
|
@@ -4883,6 +4984,14 @@ export declare class DutchLimitV3Quote extends Message<DutchLimitV3Quote> {
|
|
|
4883
4984
|
* @generated from field: optional string portion_recipient = 13;
|
|
4884
4985
|
*/
|
|
4885
4986
|
portionRecipient?: string;
|
|
4987
|
+
/**
|
|
4988
|
+
* @generated from field: trading.v1.QuoteInput input = 14;
|
|
4989
|
+
*/
|
|
4990
|
+
input?: QuoteInput;
|
|
4991
|
+
/**
|
|
4992
|
+
* @generated from field: trading.v1.QuoteOutput output = 15;
|
|
4993
|
+
*/
|
|
4994
|
+
output?: QuoteOutput;
|
|
4886
4995
|
constructor(data?: PartialMessage<DutchLimitV3Quote>);
|
|
4887
4996
|
static readonly runtime: typeof proto3;
|
|
4888
4997
|
static readonly typeName = "trading.v1.DutchLimitV3Quote";
|
|
@@ -4928,6 +5037,10 @@ export declare class CheckApprovalRequest extends Message<CheckApprovalRequest>
|
|
|
4928
5037
|
* @generated from field: optional trading.v1.ChainId token_out_chain_id = 8;
|
|
4929
5038
|
*/
|
|
4930
5039
|
tokenOutChainId?: ChainId;
|
|
5040
|
+
/**
|
|
5041
|
+
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 9;
|
|
5042
|
+
*/
|
|
5043
|
+
urgencyOverrides?: UrgencyWithOverrides;
|
|
4931
5044
|
constructor(data?: PartialMessage<CheckApprovalRequest>);
|
|
4932
5045
|
static readonly runtime: typeof proto3;
|
|
4933
5046
|
static readonly typeName = "trading.v1.CheckApprovalRequest";
|
|
@@ -5091,6 +5204,14 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
|
|
|
5091
5204
|
* @generated from field: optional string portion_recipient = 13;
|
|
5092
5205
|
*/
|
|
5093
5206
|
portionRecipient?: string;
|
|
5207
|
+
/**
|
|
5208
|
+
* @generated from field: trading.v1.QuoteInput input = 14;
|
|
5209
|
+
*/
|
|
5210
|
+
input?: QuoteInput;
|
|
5211
|
+
/**
|
|
5212
|
+
* @generated from field: trading.v1.QuoteOutput output = 15;
|
|
5213
|
+
*/
|
|
5214
|
+
output?: QuoteOutput;
|
|
5094
5215
|
constructor(data?: PartialMessage<PriorityQuote>);
|
|
5095
5216
|
static readonly runtime: typeof proto3;
|
|
5096
5217
|
static readonly typeName = "trading.v1.PriorityQuote";
|
|
@@ -5154,13 +5275,13 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
|
|
|
5154
5275
|
*/
|
|
5155
5276
|
swapper: string;
|
|
5156
5277
|
/**
|
|
5157
|
-
* @generated from field: trading.v1.
|
|
5278
|
+
* @generated from field: trading.v1.QuoteInput input = 4;
|
|
5158
5279
|
*/
|
|
5159
|
-
input?:
|
|
5280
|
+
input?: QuoteInput;
|
|
5160
5281
|
/**
|
|
5161
|
-
* @generated from field: trading.v1.
|
|
5282
|
+
* @generated from field: trading.v1.QuoteOutput output = 5;
|
|
5162
5283
|
*/
|
|
5163
|
-
output?:
|
|
5284
|
+
output?: QuoteOutput;
|
|
5164
5285
|
/**
|
|
5165
5286
|
* @generated from field: trading.v1.TradeType trade_type = 6;
|
|
5166
5287
|
*/
|
|
@@ -5213,6 +5334,10 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
|
|
|
5213
5334
|
* @generated from field: optional trading.v1.AutoSlippage auto_slippage = 18;
|
|
5214
5335
|
*/
|
|
5215
5336
|
autoSlippage?: AutoSlippage;
|
|
5337
|
+
/**
|
|
5338
|
+
* @generated from field: optional double compound_slippage = 19;
|
|
5339
|
+
*/
|
|
5340
|
+
compoundSlippage?: number;
|
|
5216
5341
|
constructor(data?: PartialMessage<ChainedQuote>);
|
|
5217
5342
|
static readonly runtime: typeof proto3;
|
|
5218
5343
|
static readonly typeName = "trading.v1.ChainedQuote";
|
|
@@ -6102,6 +6227,10 @@ export declare class CreatePlanRequest extends Message<CreatePlanRequest> {
|
|
|
6102
6227
|
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 3;
|
|
6103
6228
|
*/
|
|
6104
6229
|
walletExecutionContext?: WalletExecutionContext;
|
|
6230
|
+
/**
|
|
6231
|
+
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 4;
|
|
6232
|
+
*/
|
|
6233
|
+
urgencyOverrides?: UrgencyWithOverrides;
|
|
6105
6234
|
constructor(data?: PartialMessage<CreatePlanRequest>);
|
|
6106
6235
|
static readonly runtime: typeof proto3;
|
|
6107
6236
|
static readonly typeName = "trading.v1.CreatePlanRequest";
|
|
@@ -149,6 +149,10 @@ export var ChainId;
|
|
|
149
149
|
* @generated from enum value: LINEA = 59144;
|
|
150
150
|
*/
|
|
151
151
|
ChainId[ChainId["LINEA"] = 59144] = "LINEA";
|
|
152
|
+
/**
|
|
153
|
+
* @generated from enum value: MEGAETH = 4326;
|
|
154
|
+
*/
|
|
155
|
+
ChainId[ChainId["MEGAETH"] = 4326] = "MEGAETH";
|
|
152
156
|
/**
|
|
153
157
|
* @generated from enum value: TEMPO = 4217;
|
|
154
158
|
*/
|
|
@@ -178,6 +182,7 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
|
178
182
|
{ no: 1868, name: "SONEIUM" },
|
|
179
183
|
{ no: 196, name: "XLAYER" },
|
|
180
184
|
{ no: 59144, name: "LINEA" },
|
|
185
|
+
{ no: 4326, name: "MEGAETH" },
|
|
181
186
|
{ no: 4217, name: "TEMPO" },
|
|
182
187
|
]);
|
|
183
188
|
/**
|
|
@@ -1138,6 +1143,7 @@ Swap5792Request.fields = proto3.util.newFieldList(() => [
|
|
|
1138
1143
|
{ no: 4, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
|
|
1139
1144
|
{ no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1140
1145
|
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
1146
|
+
{ no: 7, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
1141
1147
|
]);
|
|
1142
1148
|
/**
|
|
1143
1149
|
* @generated from message trading.v1.Swap5792Response
|
|
@@ -1770,6 +1776,81 @@ Token.fields = proto3.util.newFieldList(() => [
|
|
|
1770
1776
|
{ no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1771
1777
|
{ no: 6, name: "project", kind: "message", T: TokenProject },
|
|
1772
1778
|
]);
|
|
1779
|
+
/**
|
|
1780
|
+
* Caller-supplied caps applied on top of the gas service's computed quote.
|
|
1781
|
+
* All fields are absolute wei (decimal string). The gas service applies
|
|
1782
|
+
* max_priority_fee_per_gas / max_fee_per_gas as caps only — they lower the
|
|
1783
|
+
* quote, never raise it. gas_limit, if set, replaces the limit calculation
|
|
1784
|
+
* entirely.
|
|
1785
|
+
*
|
|
1786
|
+
* TAPI deliberately bundles gas_limit into UrgencyOverrides for a
|
|
1787
|
+
* REST-friendly client API. Trading's translation layer extracts gas_limit
|
|
1788
|
+
* out to the top-level gas_limit field on the unirpc-v2 request before
|
|
1789
|
+
* forwarding; unirpc-v2's `GasOverrides` proto carries only the fee-market
|
|
1790
|
+
* fields.
|
|
1791
|
+
*
|
|
1792
|
+
* @generated from message trading.v1.UrgencyOverrides
|
|
1793
|
+
*/
|
|
1794
|
+
export class UrgencyOverrides extends Message {
|
|
1795
|
+
constructor(data) {
|
|
1796
|
+
super();
|
|
1797
|
+
proto3.util.initPartial(data, this);
|
|
1798
|
+
}
|
|
1799
|
+
static fromBinary(bytes, options) {
|
|
1800
|
+
return new UrgencyOverrides().fromBinary(bytes, options);
|
|
1801
|
+
}
|
|
1802
|
+
static fromJson(jsonValue, options) {
|
|
1803
|
+
return new UrgencyOverrides().fromJson(jsonValue, options);
|
|
1804
|
+
}
|
|
1805
|
+
static fromJsonString(jsonString, options) {
|
|
1806
|
+
return new UrgencyOverrides().fromJsonString(jsonString, options);
|
|
1807
|
+
}
|
|
1808
|
+
static equals(a, b) {
|
|
1809
|
+
return proto3.util.equals(UrgencyOverrides, a, b);
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
UrgencyOverrides.runtime = proto3;
|
|
1813
|
+
UrgencyOverrides.typeName = "trading.v1.UrgencyOverrides";
|
|
1814
|
+
UrgencyOverrides.fields = proto3.util.newFieldList(() => [
|
|
1815
|
+
{ no: 1, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1816
|
+
{ no: 2, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1817
|
+
{ no: 3, name: "gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1818
|
+
]);
|
|
1819
|
+
/**
|
|
1820
|
+
* High-level fee tier selection with optional caps. Mutually exclusive
|
|
1821
|
+
* with the legacy `urgency` enum field and `gas_strategies` on each
|
|
1822
|
+
* request — only one form of gas selection should be set.
|
|
1823
|
+
*
|
|
1824
|
+
* @generated from message trading.v1.UrgencyWithOverrides
|
|
1825
|
+
*/
|
|
1826
|
+
export class UrgencyWithOverrides extends Message {
|
|
1827
|
+
constructor(data) {
|
|
1828
|
+
super();
|
|
1829
|
+
/**
|
|
1830
|
+
* @generated from field: trading.v1.Urgency level = 1;
|
|
1831
|
+
*/
|
|
1832
|
+
this.level = Urgency.NORMAL;
|
|
1833
|
+
proto3.util.initPartial(data, this);
|
|
1834
|
+
}
|
|
1835
|
+
static fromBinary(bytes, options) {
|
|
1836
|
+
return new UrgencyWithOverrides().fromBinary(bytes, options);
|
|
1837
|
+
}
|
|
1838
|
+
static fromJson(jsonValue, options) {
|
|
1839
|
+
return new UrgencyWithOverrides().fromJson(jsonValue, options);
|
|
1840
|
+
}
|
|
1841
|
+
static fromJsonString(jsonString, options) {
|
|
1842
|
+
return new UrgencyWithOverrides().fromJsonString(jsonString, options);
|
|
1843
|
+
}
|
|
1844
|
+
static equals(a, b) {
|
|
1845
|
+
return proto3.util.equals(UrgencyWithOverrides, a, b);
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
UrgencyWithOverrides.runtime = proto3;
|
|
1849
|
+
UrgencyWithOverrides.typeName = "trading.v1.UrgencyWithOverrides";
|
|
1850
|
+
UrgencyWithOverrides.fields = proto3.util.newFieldList(() => [
|
|
1851
|
+
{ no: 1, name: "level", kind: "enum", T: proto3.getEnumType(Urgency) },
|
|
1852
|
+
{ no: 2, name: "overrides", kind: "message", T: UrgencyOverrides, opt: true },
|
|
1853
|
+
]);
|
|
1773
1854
|
/**
|
|
1774
1855
|
* @generated from message trading.v1.GasStrategy
|
|
1775
1856
|
*/
|
|
@@ -1864,7 +1945,8 @@ export class QuoteRequest extends Message {
|
|
|
1864
1945
|
*/
|
|
1865
1946
|
this.spreadOptimization = SpreadOptimization.EXECUTION;
|
|
1866
1947
|
/**
|
|
1867
|
-
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 14;
|
|
1948
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 14 [deprecated = true];
|
|
1949
|
+
* @deprecated
|
|
1868
1950
|
*/
|
|
1869
1951
|
this.gasStrategies = [];
|
|
1870
1952
|
/**
|
|
@@ -1913,6 +1995,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1913
1995
|
{ no: 20, name: "integrator_fees", kind: "message", T: IntegratorFee, repeated: true },
|
|
1914
1996
|
{ no: 21, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
1915
1997
|
{ no: 22, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1998
|
+
{ no: 23, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
1916
1999
|
]);
|
|
1917
2000
|
/**
|
|
1918
2001
|
* @generated from message trading.v1.IntegratorFee
|
|
@@ -2010,9 +2093,9 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
|
|
|
2010
2093
|
{ no: 21, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
2011
2094
|
]);
|
|
2012
2095
|
/**
|
|
2013
|
-
* @generated from message trading.v1.
|
|
2096
|
+
* @generated from message trading.v1.QuoteInput
|
|
2014
2097
|
*/
|
|
2015
|
-
export class
|
|
2098
|
+
export class QuoteInput extends Message {
|
|
2016
2099
|
constructor(data) {
|
|
2017
2100
|
super();
|
|
2018
2101
|
/**
|
|
@@ -2023,31 +2106,36 @@ export class ClassicInput extends Message {
|
|
|
2023
2106
|
* @generated from field: string token = 2;
|
|
2024
2107
|
*/
|
|
2025
2108
|
this.token = "";
|
|
2109
|
+
/**
|
|
2110
|
+
* @generated from field: string maximum_amount = 3;
|
|
2111
|
+
*/
|
|
2112
|
+
this.maximumAmount = "";
|
|
2026
2113
|
proto3.util.initPartial(data, this);
|
|
2027
2114
|
}
|
|
2028
2115
|
static fromBinary(bytes, options) {
|
|
2029
|
-
return new
|
|
2116
|
+
return new QuoteInput().fromBinary(bytes, options);
|
|
2030
2117
|
}
|
|
2031
2118
|
static fromJson(jsonValue, options) {
|
|
2032
|
-
return new
|
|
2119
|
+
return new QuoteInput().fromJson(jsonValue, options);
|
|
2033
2120
|
}
|
|
2034
2121
|
static fromJsonString(jsonString, options) {
|
|
2035
|
-
return new
|
|
2122
|
+
return new QuoteInput().fromJsonString(jsonString, options);
|
|
2036
2123
|
}
|
|
2037
2124
|
static equals(a, b) {
|
|
2038
|
-
return proto3.util.equals(
|
|
2125
|
+
return proto3.util.equals(QuoteInput, a, b);
|
|
2039
2126
|
}
|
|
2040
2127
|
}
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2128
|
+
QuoteInput.runtime = proto3;
|
|
2129
|
+
QuoteInput.typeName = "trading.v1.QuoteInput";
|
|
2130
|
+
QuoteInput.fields = proto3.util.newFieldList(() => [
|
|
2044
2131
|
{ no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2045
2132
|
{ no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2133
|
+
{ no: 3, name: "maximum_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2046
2134
|
]);
|
|
2047
2135
|
/**
|
|
2048
|
-
* @generated from message trading.v1.
|
|
2136
|
+
* @generated from message trading.v1.QuoteOutput
|
|
2049
2137
|
*/
|
|
2050
|
-
export class
|
|
2138
|
+
export class QuoteOutput extends Message {
|
|
2051
2139
|
constructor(data) {
|
|
2052
2140
|
super();
|
|
2053
2141
|
/**
|
|
@@ -2062,27 +2150,32 @@ export class ClassicOutput extends Message {
|
|
|
2062
2150
|
* @generated from field: string recipient = 3;
|
|
2063
2151
|
*/
|
|
2064
2152
|
this.recipient = "";
|
|
2153
|
+
/**
|
|
2154
|
+
* @generated from field: string minimum_amount = 4;
|
|
2155
|
+
*/
|
|
2156
|
+
this.minimumAmount = "";
|
|
2065
2157
|
proto3.util.initPartial(data, this);
|
|
2066
2158
|
}
|
|
2067
2159
|
static fromBinary(bytes, options) {
|
|
2068
|
-
return new
|
|
2160
|
+
return new QuoteOutput().fromBinary(bytes, options);
|
|
2069
2161
|
}
|
|
2070
2162
|
static fromJson(jsonValue, options) {
|
|
2071
|
-
return new
|
|
2163
|
+
return new QuoteOutput().fromJson(jsonValue, options);
|
|
2072
2164
|
}
|
|
2073
2165
|
static fromJsonString(jsonString, options) {
|
|
2074
|
-
return new
|
|
2166
|
+
return new QuoteOutput().fromJsonString(jsonString, options);
|
|
2075
2167
|
}
|
|
2076
2168
|
static equals(a, b) {
|
|
2077
|
-
return proto3.util.equals(
|
|
2169
|
+
return proto3.util.equals(QuoteOutput, a, b);
|
|
2078
2170
|
}
|
|
2079
2171
|
}
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2172
|
+
QuoteOutput.runtime = proto3;
|
|
2173
|
+
QuoteOutput.typeName = "trading.v1.QuoteOutput";
|
|
2174
|
+
QuoteOutput.fields = proto3.util.newFieldList(() => [
|
|
2083
2175
|
{ no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2084
2176
|
{ no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2085
2177
|
{ no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2178
|
+
{ no: 4, name: "minimum_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2086
2179
|
]);
|
|
2087
2180
|
/**
|
|
2088
2181
|
* @generated from message trading.v1.CandidatePoolInRoute
|
|
@@ -2505,8 +2598,8 @@ ClassicQuote.typeName = "trading.v1.ClassicQuote";
|
|
|
2505
2598
|
ClassicQuote.fields = proto3.util.newFieldList(() => [
|
|
2506
2599
|
{ no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
2507
2600
|
{ no: 2, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2508
|
-
{ no: 3, name: "input", kind: "message", T:
|
|
2509
|
-
{ no: 4, name: "output", kind: "message", T:
|
|
2601
|
+
{ no: 3, name: "input", kind: "message", T: QuoteInput },
|
|
2602
|
+
{ no: 4, name: "output", kind: "message", T: QuoteOutput },
|
|
2510
2603
|
{ no: 5, name: "slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
2511
2604
|
{ no: 6, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
|
|
2512
2605
|
{ no: 7, name: "route", kind: "message", T: RouteList, repeated: true },
|
|
@@ -3764,8 +3857,8 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
|
|
|
3764
3857
|
{ no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
3765
3858
|
{ no: 2, name: "destination_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
3766
3859
|
{ no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3767
|
-
{ no: 4, name: "input", kind: "message", T:
|
|
3768
|
-
{ no: 5, name: "output", kind: "message", T:
|
|
3860
|
+
{ no: 4, name: "input", kind: "message", T: QuoteInput },
|
|
3861
|
+
{ no: 5, name: "output", kind: "message", T: QuoteOutput },
|
|
3769
3862
|
{ no: 6, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
|
|
3770
3863
|
{ no: 7, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3771
3864
|
{ no: 8, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -3787,7 +3880,8 @@ export class SwapRequest extends Message {
|
|
|
3787
3880
|
*/
|
|
3788
3881
|
this.quote = { case: undefined };
|
|
3789
3882
|
/**
|
|
3790
|
-
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
|
|
3883
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12 [deprecated = true];
|
|
3884
|
+
* @deprecated
|
|
3791
3885
|
*/
|
|
3792
3886
|
this.gasStrategies = [];
|
|
3793
3887
|
proto3.util.initPartial(data, this);
|
|
@@ -3821,6 +3915,7 @@ SwapRequest.fields = proto3.util.newFieldList(() => [
|
|
|
3821
3915
|
{ no: 11, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
3822
3916
|
{ no: 12, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
3823
3917
|
{ no: 13, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
3918
|
+
{ no: 14, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
3824
3919
|
]);
|
|
3825
3920
|
/**
|
|
3826
3921
|
* @generated from message trading.v1.SwapResponse
|
|
@@ -3893,7 +3988,8 @@ export class Swap7702Request extends Message {
|
|
|
3893
3988
|
*/
|
|
3894
3989
|
this.deadline = protoInt64.zero;
|
|
3895
3990
|
/**
|
|
3896
|
-
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 10;
|
|
3991
|
+
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 10 [deprecated = true];
|
|
3992
|
+
* @deprecated
|
|
3897
3993
|
*/
|
|
3898
3994
|
this.gasStrategies = [];
|
|
3899
3995
|
proto3.util.initPartial(data, this);
|
|
@@ -3924,6 +4020,7 @@ Swap7702Request.fields = proto3.util.newFieldList(() => [
|
|
|
3924
4020
|
{ no: 8, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
3925
4021
|
{ no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
3926
4022
|
{ no: 10, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
4023
|
+
{ no: 11, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
3927
4024
|
]);
|
|
3928
4025
|
/**
|
|
3929
4026
|
* @generated from message trading.v1.Swap7702Response
|
|
@@ -4161,10 +4258,6 @@ export class Customer extends Message {
|
|
|
4161
4258
|
* @generated from field: string name = 2;
|
|
4162
4259
|
*/
|
|
4163
4260
|
this.name = "";
|
|
4164
|
-
/**
|
|
4165
|
-
* @generated from field: bool isInternal = 3;
|
|
4166
|
-
*/
|
|
4167
|
-
this.isInternal = false;
|
|
4168
4261
|
/**
|
|
4169
4262
|
* @generated from field: string createdAt = 4;
|
|
4170
4263
|
*/
|
|
@@ -4205,7 +4298,6 @@ Customer.typeName = "trading.v1.Customer";
|
|
|
4205
4298
|
Customer.fields = proto3.util.newFieldList(() => [
|
|
4206
4299
|
{ no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4207
4300
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4208
|
-
{ no: 3, name: "isInternal", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
4209
4301
|
{ no: 4, name: "createdAt", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4210
4302
|
{ no: 5, name: "modifiedAt", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4211
4303
|
{ no: 6, name: "usagePlanId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
@@ -4223,10 +4315,6 @@ export class CreateCustomerRequest extends Message {
|
|
|
4223
4315
|
* @generated from field: string name = 1;
|
|
4224
4316
|
*/
|
|
4225
4317
|
this.name = "";
|
|
4226
|
-
/**
|
|
4227
|
-
* @generated from field: bool isInternal = 2;
|
|
4228
|
-
*/
|
|
4229
|
-
this.isInternal = false;
|
|
4230
4318
|
/**
|
|
4231
4319
|
* @generated from field: string createdBy = 3;
|
|
4232
4320
|
*/
|
|
@@ -4250,7 +4338,6 @@ CreateCustomerRequest.runtime = proto3;
|
|
|
4250
4338
|
CreateCustomerRequest.typeName = "trading.v1.CreateCustomerRequest";
|
|
4251
4339
|
CreateCustomerRequest.fields = proto3.util.newFieldList(() => [
|
|
4252
4340
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4253
|
-
{ no: 2, name: "isInternal", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
4254
4341
|
{ no: 3, name: "createdBy", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4255
4342
|
]);
|
|
4256
4343
|
/**
|
|
@@ -4420,10 +4507,6 @@ export class UpdateCustomerRequest extends Message {
|
|
|
4420
4507
|
* @generated from field: string name = 2;
|
|
4421
4508
|
*/
|
|
4422
4509
|
this.name = "";
|
|
4423
|
-
/**
|
|
4424
|
-
* @generated from field: bool isInternal = 3;
|
|
4425
|
-
*/
|
|
4426
|
-
this.isInternal = false;
|
|
4427
4510
|
proto3.util.initPartial(data, this);
|
|
4428
4511
|
}
|
|
4429
4512
|
static fromBinary(bytes, options) {
|
|
@@ -4443,7 +4526,6 @@ UpdateCustomerRequest.runtime = proto3;
|
|
|
4443
4526
|
UpdateCustomerRequest.typeName = "trading.v1.UpdateCustomerRequest";
|
|
4444
4527
|
UpdateCustomerRequest.fields = proto3.util.newFieldList(() => [
|
|
4445
4528
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
4446
|
-
{ no: 3, name: "isInternal", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
4447
4529
|
]);
|
|
4448
4530
|
/**
|
|
4449
4531
|
* @generated from message trading.v1.UpdateCustomerResponse
|
|
@@ -5393,8 +5475,8 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
5393
5475
|
{ no: 2, name: "destination_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
5394
5476
|
{ no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
5395
5477
|
{ no: 4, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
5396
|
-
{ no: 5, name: "input", kind: "message", T:
|
|
5397
|
-
{ no: 6, name: "output", kind: "message", T:
|
|
5478
|
+
{ no: 5, name: "input", kind: "message", T: QuoteInput },
|
|
5479
|
+
{ no: 6, name: "output", kind: "message", T: QuoteOutput },
|
|
5398
5480
|
{ no: 7, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
|
|
5399
5481
|
{ no: 8, name: "quote_timestamp", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
5400
5482
|
{ no: 9, name: "estimated_fill_time_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
@@ -5542,6 +5624,8 @@ DutchLimitQuote.fields = proto3.util.newFieldList(() => [
|
|
|
5542
5624
|
{ no: 8, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
5543
5625
|
{ no: 9, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5544
5626
|
{ no: 10, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5627
|
+
{ no: 11, name: "input", kind: "message", T: QuoteInput },
|
|
5628
|
+
{ no: 12, name: "output", kind: "message", T: QuoteOutput },
|
|
5545
5629
|
]);
|
|
5546
5630
|
/**
|
|
5547
5631
|
* @generated from message trading.v1.DutchLimitV2OrderInfo
|
|
@@ -5669,6 +5753,8 @@ DutchLimitV2Quote.fields = proto3.util.newFieldList(() => [
|
|
|
5669
5753
|
{ no: 9, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
5670
5754
|
{ no: 10, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5671
5755
|
{ no: 11, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5756
|
+
{ no: 12, name: "input", kind: "message", T: QuoteInput },
|
|
5757
|
+
{ no: 13, name: "output", kind: "message", T: QuoteOutput },
|
|
5672
5758
|
]);
|
|
5673
5759
|
/**
|
|
5674
5760
|
* @generated from message trading.v1.DutchLimitV3OrderInfo
|
|
@@ -5803,6 +5889,8 @@ DutchLimitV3Quote.fields = proto3.util.newFieldList(() => [
|
|
|
5803
5889
|
{ no: 11, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
5804
5890
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5805
5891
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5892
|
+
{ no: 14, name: "input", kind: "message", T: QuoteInput },
|
|
5893
|
+
{ no: 15, name: "output", kind: "message", T: QuoteOutput },
|
|
5806
5894
|
]);
|
|
5807
5895
|
/**
|
|
5808
5896
|
* @generated from message trading.v1.CheckApprovalRequest
|
|
@@ -5852,6 +5940,7 @@ CheckApprovalRequest.fields = proto3.util.newFieldList(() => [
|
|
|
5852
5940
|
{ no: 6, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
5853
5941
|
{ no: 7, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5854
5942
|
{ no: 8, name: "token_out_chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
|
|
5943
|
+
{ no: 9, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
5855
5944
|
]);
|
|
5856
5945
|
/**
|
|
5857
5946
|
* @generated from message trading.v1.CheckApprovalResponse
|
|
@@ -6026,6 +6115,8 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6026
6115
|
{ no: 11, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
6027
6116
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6028
6117
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6118
|
+
{ no: 14, name: "input", kind: "message", T: QuoteInput },
|
|
6119
|
+
{ no: 15, name: "output", kind: "message", T: QuoteOutput },
|
|
6029
6120
|
]);
|
|
6030
6121
|
/**
|
|
6031
6122
|
* @generated from message trading.v1.TruncatedPlanStep
|
|
@@ -6121,8 +6212,8 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6121
6212
|
{ no: 1, name: "token_in_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
6122
6213
|
{ no: 2, name: "token_out_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
6123
6214
|
{ no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6124
|
-
{ no: 4, name: "input", kind: "message", T:
|
|
6125
|
-
{ no: 5, name: "output", kind: "message", T:
|
|
6215
|
+
{ no: 4, name: "input", kind: "message", T: QuoteInput },
|
|
6216
|
+
{ no: 5, name: "output", kind: "message", T: QuoteOutput },
|
|
6126
6217
|
{ no: 6, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
|
|
6127
6218
|
{ no: 7, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6128
6219
|
{ no: 8, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
@@ -6136,6 +6227,7 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6136
6227
|
{ no: 16, name: "steps", kind: "message", T: TruncatedPlanStep, repeated: true },
|
|
6137
6228
|
{ no: 17, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6138
6229
|
{ no: 18, name: "auto_slippage", kind: "enum", T: proto3.getEnumType(AutoSlippage), opt: true },
|
|
6230
|
+
{ no: 19, name: "compound_slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6139
6231
|
]);
|
|
6140
6232
|
/**
|
|
6141
6233
|
* @generated from message trading.v1.PermitTransferFromData
|
|
@@ -7245,6 +7337,7 @@ CreatePlanRequest.fields = proto3.util.newFieldList(() => [
|
|
|
7245
7337
|
{ no: 1, name: "routing", kind: "enum", T: proto3.getEnumType(SwapType) },
|
|
7246
7338
|
{ no: 2, name: "quote", kind: "message", T: ChainedQuote },
|
|
7247
7339
|
{ no: 3, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
7340
|
+
{ no: 4, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
7248
7341
|
]);
|
|
7249
7342
|
/**
|
|
7250
7343
|
* @generated from message trading.v1.GetPlanRequest
|