@uniswap/client-trading 0.4.2 → 0.5.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 +35 -7
- package/dist/trading/v1/api_pb.js +26 -7
- package/package.json +1 -1
|
@@ -137,7 +137,15 @@ export declare enum ChainId {
|
|
|
137
137
|
/**
|
|
138
138
|
* @generated from enum value: TEMPO = 4217;
|
|
139
139
|
*/
|
|
140
|
-
TEMPO = 4217
|
|
140
|
+
TEMPO = 4217,
|
|
141
|
+
/**
|
|
142
|
+
* @generated from enum value: ROBINHOOD = 4663;
|
|
143
|
+
*/
|
|
144
|
+
ROBINHOOD = 4663,
|
|
145
|
+
/**
|
|
146
|
+
* @generated from enum value: ARC = 5042;
|
|
147
|
+
*/
|
|
148
|
+
ARC = 5042
|
|
141
149
|
}
|
|
142
150
|
/**
|
|
143
151
|
* @generated from enum trading.v1.Protocols
|
|
@@ -633,6 +641,10 @@ export declare class Encode4337Request extends Message<Encode4337Request> {
|
|
|
633
641
|
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 6;
|
|
634
642
|
*/
|
|
635
643
|
eip7702Auth?: Eip7702Authorization;
|
|
644
|
+
/**
|
|
645
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 7;
|
|
646
|
+
*/
|
|
647
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
636
648
|
constructor(data?: PartialMessage<Encode4337Request>);
|
|
637
649
|
static readonly runtime: typeof proto3;
|
|
638
650
|
static readonly typeName = "trading.v1.Encode4337Request";
|
|
@@ -801,6 +813,10 @@ export declare class Swap4337Request extends Message<Swap4337Request> {
|
|
|
801
813
|
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 8;
|
|
802
814
|
*/
|
|
803
815
|
sponsorshipInfo?: SponsorshipInfo;
|
|
816
|
+
/**
|
|
817
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 9;
|
|
818
|
+
*/
|
|
819
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
804
820
|
constructor(data?: PartialMessage<Swap4337Request>);
|
|
805
821
|
static readonly runtime: typeof proto3;
|
|
806
822
|
static readonly typeName = "trading.v1.Swap4337Request";
|
|
@@ -2067,7 +2083,7 @@ export declare class AggregatedOutput extends Message<AggregatedOutput> {
|
|
|
2067
2083
|
*/
|
|
2068
2084
|
recipient: string;
|
|
2069
2085
|
/**
|
|
2070
|
-
* @generated from field:
|
|
2086
|
+
* @generated from field: double bps = 4;
|
|
2071
2087
|
*/
|
|
2072
2088
|
bps: number;
|
|
2073
2089
|
/**
|
|
@@ -2189,7 +2205,7 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2189
2205
|
*/
|
|
2190
2206
|
aggregatedOutputs: AggregatedOutput[];
|
|
2191
2207
|
/**
|
|
2192
|
-
* @generated from field: optional
|
|
2208
|
+
* @generated from field: optional double portion_bips = 22;
|
|
2193
2209
|
*/
|
|
2194
2210
|
portionBips?: number;
|
|
2195
2211
|
/**
|
|
@@ -3258,6 +3274,10 @@ export declare class SwapRequest extends Message<SwapRequest> {
|
|
|
3258
3274
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 14;
|
|
3259
3275
|
*/
|
|
3260
3276
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
3277
|
+
/**
|
|
3278
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 15;
|
|
3279
|
+
*/
|
|
3280
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
3261
3281
|
constructor(data?: PartialMessage<SwapRequest>);
|
|
3262
3282
|
static readonly runtime: typeof proto3;
|
|
3263
3283
|
static readonly typeName = "trading.v1.SwapRequest";
|
|
@@ -3370,6 +3390,10 @@ export declare class Swap7702Request extends Message<Swap7702Request> {
|
|
|
3370
3390
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 11;
|
|
3371
3391
|
*/
|
|
3372
3392
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
3393
|
+
/**
|
|
3394
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 12;
|
|
3395
|
+
*/
|
|
3396
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
3373
3397
|
constructor(data?: PartialMessage<Swap7702Request>);
|
|
3374
3398
|
static readonly runtime: typeof proto3;
|
|
3375
3399
|
static readonly typeName = "trading.v1.Swap7702Request";
|
|
@@ -4720,7 +4744,7 @@ export declare class DutchLimitQuote extends Message<DutchLimitQuote> {
|
|
|
4720
4744
|
*/
|
|
4721
4745
|
aggregatedOutputs: AggregatedOutput[];
|
|
4722
4746
|
/**
|
|
4723
|
-
* @generated from field: optional
|
|
4747
|
+
* @generated from field: optional double portion_bips = 8;
|
|
4724
4748
|
*/
|
|
4725
4749
|
portionBips?: number;
|
|
4726
4750
|
/**
|
|
@@ -4838,7 +4862,7 @@ export declare class DutchLimitV2Quote extends Message<DutchLimitV2Quote> {
|
|
|
4838
4862
|
*/
|
|
4839
4863
|
aggregatedOutputs: AggregatedOutput[];
|
|
4840
4864
|
/**
|
|
4841
|
-
* @generated from field: optional
|
|
4865
|
+
* @generated from field: optional double portion_bips = 9;
|
|
4842
4866
|
*/
|
|
4843
4867
|
portionBips?: number;
|
|
4844
4868
|
/**
|
|
@@ -4968,7 +4992,7 @@ export declare class DutchLimitV3Quote extends Message<DutchLimitV3Quote> {
|
|
|
4968
4992
|
*/
|
|
4969
4993
|
aggregatedOutputs: AggregatedOutput[];
|
|
4970
4994
|
/**
|
|
4971
|
-
* @generated from field: optional
|
|
4995
|
+
* @generated from field: optional double portion_bips = 11;
|
|
4972
4996
|
*/
|
|
4973
4997
|
portionBips?: number;
|
|
4974
4998
|
/**
|
|
@@ -5152,6 +5176,10 @@ export declare class PermissionsResult extends Message<PermissionsResult> {
|
|
|
5152
5176
|
* @generated from field: optional string kyc_url = 5;
|
|
5153
5177
|
*/
|
|
5154
5178
|
kycUrl?: string;
|
|
5179
|
+
/**
|
|
5180
|
+
* @generated from field: string issuer = 6;
|
|
5181
|
+
*/
|
|
5182
|
+
issuer: string;
|
|
5155
5183
|
constructor(data?: PartialMessage<PermissionsResult>);
|
|
5156
5184
|
static readonly runtime: typeof proto3;
|
|
5157
5185
|
static readonly typeName = "trading.v1.PermissionsResult";
|
|
@@ -5267,7 +5295,7 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
|
|
|
5267
5295
|
*/
|
|
5268
5296
|
aggregatedOutputs: AggregatedOutput[];
|
|
5269
5297
|
/**
|
|
5270
|
-
* @generated from field: optional
|
|
5298
|
+
* @generated from field: optional double portion_bips = 11;
|
|
5271
5299
|
*/
|
|
5272
5300
|
portionBips?: number;
|
|
5273
5301
|
/**
|
|
@@ -157,6 +157,14 @@ export var ChainId;
|
|
|
157
157
|
* @generated from enum value: TEMPO = 4217;
|
|
158
158
|
*/
|
|
159
159
|
ChainId[ChainId["TEMPO"] = 4217] = "TEMPO";
|
|
160
|
+
/**
|
|
161
|
+
* @generated from enum value: ROBINHOOD = 4663;
|
|
162
|
+
*/
|
|
163
|
+
ChainId[ChainId["ROBINHOOD"] = 4663] = "ROBINHOOD";
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: ARC = 5042;
|
|
166
|
+
*/
|
|
167
|
+
ChainId[ChainId["ARC"] = 5042] = "ARC";
|
|
160
168
|
})(ChainId || (ChainId = {}));
|
|
161
169
|
// Retrieve enum metadata with: proto3.getEnumType(ChainId)
|
|
162
170
|
proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
@@ -184,6 +192,8 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
|
184
192
|
{ no: 59144, name: "LINEA" },
|
|
185
193
|
{ no: 4326, name: "MEGAETH" },
|
|
186
194
|
{ no: 4217, name: "TEMPO" },
|
|
195
|
+
{ no: 4663, name: "ROBINHOOD" },
|
|
196
|
+
{ no: 5042, name: "ARC" },
|
|
187
197
|
]);
|
|
188
198
|
/**
|
|
189
199
|
* @generated from enum trading.v1.Protocols
|
|
@@ -882,6 +892,7 @@ Encode4337Request.fields = proto3.util.newFieldList(() => [
|
|
|
882
892
|
{ no: 4, name: "paymaster_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
883
893
|
{ no: 5, name: "paymaster_service_context", kind: "message", T: Struct },
|
|
884
894
|
{ no: 6, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
895
|
+
{ no: 7, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
885
896
|
]);
|
|
886
897
|
/**
|
|
887
898
|
* @generated from message trading.v1.UserOperation
|
|
@@ -1042,6 +1053,7 @@ Swap4337Request.fields = proto3.util.newFieldList(() => [
|
|
|
1042
1053
|
{ no: 6, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1043
1054
|
{ no: 7, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
1044
1055
|
{ no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1056
|
+
{ no: 9, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
1045
1057
|
]);
|
|
1046
1058
|
/**
|
|
1047
1059
|
* @generated from message trading.v1.Swap4337Response
|
|
@@ -2456,7 +2468,7 @@ export class AggregatedOutput extends Message {
|
|
|
2456
2468
|
*/
|
|
2457
2469
|
this.recipient = "";
|
|
2458
2470
|
/**
|
|
2459
|
-
* @generated from field:
|
|
2471
|
+
* @generated from field: double bps = 4;
|
|
2460
2472
|
*/
|
|
2461
2473
|
this.bps = 0;
|
|
2462
2474
|
proto3.util.initPartial(data, this);
|
|
@@ -2480,7 +2492,7 @@ AggregatedOutput.fields = proto3.util.newFieldList(() => [
|
|
|
2480
2492
|
{ no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2481
2493
|
{ no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2482
2494
|
{ no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2483
|
-
{ no: 4, name: "bps", kind: "scalar", T:
|
|
2495
|
+
{ no: 4, name: "bps", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
2484
2496
|
{ no: 5, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2485
2497
|
]);
|
|
2486
2498
|
/**
|
|
@@ -2594,7 +2606,7 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
|
|
|
2594
2606
|
{ no: 19, name: "tx_failure_reasons", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2595
2607
|
{ no: 20, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
2596
2608
|
{ no: 21, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
2597
|
-
{ no: 22, name: "portion_bips", kind: "scalar", T:
|
|
2609
|
+
{ no: 22, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
2598
2610
|
{ no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2599
2611
|
{ no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2600
2612
|
{ no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
|
|
@@ -3891,6 +3903,7 @@ SwapRequest.fields = proto3.util.newFieldList(() => [
|
|
|
3891
3903
|
{ no: 12, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
3892
3904
|
{ no: 13, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
3893
3905
|
{ no: 14, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
3906
|
+
{ no: 15, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
3894
3907
|
]);
|
|
3895
3908
|
/**
|
|
3896
3909
|
* @generated from message trading.v1.SwapResponse
|
|
@@ -3996,6 +4009,7 @@ Swap7702Request.fields = proto3.util.newFieldList(() => [
|
|
|
3996
4009
|
{ no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
3997
4010
|
{ no: 10, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
3998
4011
|
{ no: 11, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
4012
|
+
{ no: 12, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
3999
4013
|
]);
|
|
4000
4014
|
/**
|
|
4001
4015
|
* @generated from message trading.v1.Swap7702Response
|
|
@@ -5598,7 +5612,7 @@ DutchLimitQuote.fields = proto3.util.newFieldList(() => [
|
|
|
5598
5612
|
{ no: 5, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5599
5613
|
{ no: 6, name: "classic_gas_use_estimate_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5600
5614
|
{ no: 7, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
5601
|
-
{ no: 8, name: "portion_bips", kind: "scalar", T:
|
|
5615
|
+
{ no: 8, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
5602
5616
|
{ no: 9, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5603
5617
|
{ no: 10, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5604
5618
|
{ no: 11, name: "input", kind: "message", T: QuoteInput },
|
|
@@ -5727,7 +5741,7 @@ DutchLimitV2Quote.fields = proto3.util.newFieldList(() => [
|
|
|
5727
5741
|
{ no: 6, name: "classic_gas_use_estimate_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5728
5742
|
{ no: 7, name: "deadline_buffer_secs", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
5729
5743
|
{ no: 8, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
5730
|
-
{ no: 9, name: "portion_bips", kind: "scalar", T:
|
|
5744
|
+
{ no: 9, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
5731
5745
|
{ no: 10, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5732
5746
|
{ no: 11, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5733
5747
|
{ no: 12, name: "input", kind: "message", T: QuoteInput },
|
|
@@ -5863,7 +5877,7 @@ DutchLimitV3Quote.fields = proto3.util.newFieldList(() => [
|
|
|
5863
5877
|
{ no: 8, name: "expected_amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5864
5878
|
{ no: 9, name: "expected_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5865
5879
|
{ no: 10, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
5866
|
-
{ no: 11, name: "portion_bips", kind: "scalar", T:
|
|
5880
|
+
{ no: 11, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
5867
5881
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5868
5882
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5869
5883
|
{ no: 14, name: "input", kind: "message", T: QuoteInput },
|
|
@@ -6047,6 +6061,10 @@ export class PermissionsResult extends Message {
|
|
|
6047
6061
|
* @generated from field: bool is_permissioned = 2;
|
|
6048
6062
|
*/
|
|
6049
6063
|
this.isPermissioned = false;
|
|
6064
|
+
/**
|
|
6065
|
+
* @generated from field: string issuer = 6;
|
|
6066
|
+
*/
|
|
6067
|
+
this.issuer = "";
|
|
6050
6068
|
proto3.util.initPartial(data, this);
|
|
6051
6069
|
}
|
|
6052
6070
|
static fromBinary(bytes, options) {
|
|
@@ -6070,6 +6088,7 @@ PermissionsResult.fields = proto3.util.newFieldList(() => [
|
|
|
6070
6088
|
{ no: 3, name: "is_allowlisted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
6071
6089
|
{ no: 4, name: "adapter_token_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6072
6090
|
{ no: 5, name: "kyc_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6091
|
+
{ no: 6, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6073
6092
|
]);
|
|
6074
6093
|
/**
|
|
6075
6094
|
* @generated from message trading.v1.PriorityOrderInfo
|
|
@@ -6202,7 +6221,7 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6202
6221
|
{ no: 8, name: "expected_amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6203
6222
|
{ no: 9, name: "classic_gas_use_estimate_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6204
6223
|
{ no: 10, name: "aggregated_outputs", kind: "message", T: AggregatedOutput, repeated: true },
|
|
6205
|
-
{ no: 11, name: "portion_bips", kind: "scalar", T:
|
|
6224
|
+
{ no: 11, name: "portion_bips", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6206
6225
|
{ no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6207
6226
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6208
6227
|
{ no: 14, name: "input", kind: "message", T: QuoteInput },
|