@uniswap/client-trading 0.1.1 → 0.1.3

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.
@@ -1,5 +1,5 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
2
+ import { Message, proto3, Struct } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from enum trading.v1.OnChainStatus
5
5
  */
@@ -17,15 +17,6 @@ export declare enum OnChainStatus {
17
17
  */
18
18
  FAILED = 2
19
19
  }
20
- /**
21
- * @generated from enum trading.v1.Distributor
22
- */
23
- export declare enum Distributor {
24
- /**
25
- * @generated from enum value: MERKLE = 0;
26
- */
27
- MERKLE = 0
28
- }
29
20
  /**
30
21
  * @generated from enum trading.v1.IndependentToken
31
22
  */
@@ -145,6 +136,10 @@ export declare enum ChainId {
145
136
  * @generated from enum value: MONAD_TESTNET = 10143;
146
137
  */
147
138
  MONAD_TESTNET = 10143,
139
+ /**
140
+ * @generated from enum value: MONAD = 143;
141
+ */
142
+ MONAD = 143,
148
143
  /**
149
144
  * @generated from enum value: BASE_SEPOLIA = 84532;
150
145
  */
@@ -156,7 +151,11 @@ export declare enum ChainId {
156
151
  /**
157
152
  * @generated from enum value: SONEIUM = 1868;
158
153
  */
159
- SONEIUM = 1868
154
+ SONEIUM = 1868,
155
+ /**
156
+ * @generated from enum value: XLAYER = 196;
157
+ */
158
+ XLAYER = 196
160
159
  }
161
160
  /**
162
161
  * @generated from enum trading.v1.Protocols
@@ -334,6 +333,67 @@ export declare enum SwapType {
334
333
  */
335
334
  CHAINED = 10
336
335
  }
336
+ /**
337
+ * @generated from enum trading.v1.PlanStepType
338
+ */
339
+ export declare enum PlanStepType {
340
+ /**
341
+ * @generated from enum value: PLAN_STEP_TYPE_CLASSIC = 0;
342
+ */
343
+ CLASSIC = 0,
344
+ /**
345
+ * @generated from enum value: PLAN_STEP_TYPE_DUTCH_LIMIT = 1;
346
+ */
347
+ DUTCH_LIMIT = 1,
348
+ /**
349
+ * @generated from enum value: PLAN_STEP_TYPE_DUTCH_V2 = 2;
350
+ */
351
+ DUTCH_V2 = 2,
352
+ /**
353
+ * @generated from enum value: PLAN_STEP_TYPE_LIMIT_ORDER = 3;
354
+ */
355
+ LIMIT_ORDER = 3,
356
+ /**
357
+ * @generated from enum value: PLAN_STEP_TYPE_WRAP = 4;
358
+ */
359
+ WRAP = 4,
360
+ /**
361
+ * @generated from enum value: PLAN_STEP_TYPE_UNWRAP = 5;
362
+ */
363
+ UNWRAP = 5,
364
+ /**
365
+ * @generated from enum value: PLAN_STEP_TYPE_BRIDGE = 6;
366
+ */
367
+ BRIDGE = 6,
368
+ /**
369
+ * @generated from enum value: PLAN_STEP_TYPE_PRIORITY = 7;
370
+ */
371
+ PRIORITY = 7,
372
+ /**
373
+ * @generated from enum value: PLAN_STEP_TYPE_DUTCH_V3 = 8;
374
+ */
375
+ DUTCH_V3 = 8,
376
+ /**
377
+ * @generated from enum value: PLAN_STEP_TYPE_QUICKROUTE = 9;
378
+ */
379
+ QUICKROUTE = 9,
380
+ /**
381
+ * @generated from enum value: PLAN_STEP_TYPE_CHAINED = 10;
382
+ */
383
+ CHAINED = 10,
384
+ /**
385
+ * @generated from enum value: PLAN_STEP_TYPE_APPROVAL_TXN = 11;
386
+ */
387
+ APPROVAL_TXN = 11,
388
+ /**
389
+ * @generated from enum value: PLAN_STEP_TYPE_APPROVAL_PERMIT = 12;
390
+ */
391
+ APPROVAL_PERMIT = 12,
392
+ /**
393
+ * @generated from enum value: PLAN_STEP_TYPE_RESET_APPROVAL_TXN = 13;
394
+ */
395
+ RESET_APPROVAL_TXN = 13
396
+ }
337
397
  /**
338
398
  * @generated from enum trading.v1.PoolType
339
399
  */
@@ -496,72 +556,6 @@ export declare enum OrderType {
496
556
  */
497
557
  OrderType_DUTCH_V3 = 4
498
558
  }
499
- /**
500
- * @generated from message trading.v1.MigrateV2ToV3LPPositionRequest
501
- */
502
- export declare class MigrateV2ToV3LPPositionRequest extends Message<MigrateV2ToV3LPPositionRequest> {
503
- /**
504
- * @generated from field: string wallet_address = 1;
505
- */
506
- walletAddress: string;
507
- /**
508
- * @generated from field: trading.v1.ChainId chain_id = 2;
509
- */
510
- chainId: ChainId;
511
- /**
512
- * @generated from field: trading.v1.V3Position v3_params = 3;
513
- */
514
- v3Params?: V3Position;
515
- /**
516
- * @generated from field: optional int32 slippage_bps = 4;
517
- */
518
- slippageBps?: number;
519
- /**
520
- * @generated from field: optional string deadline = 5;
521
- */
522
- deadline?: string;
523
- /**
524
- * @generated from field: optional bool refund_as_eth = 6;
525
- */
526
- refundAsEth?: boolean;
527
- /**
528
- * @generated from field: optional bool simulate_transaction = 7;
529
- */
530
- simulateTransaction?: boolean;
531
- constructor(data?: PartialMessage<MigrateV2ToV3LPPositionRequest>);
532
- static readonly runtime: typeof proto3;
533
- static readonly typeName = "trading.v1.MigrateV2ToV3LPPositionRequest";
534
- static readonly fields: FieldList;
535
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateV2ToV3LPPositionRequest;
536
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionRequest;
537
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionRequest;
538
- static equals(a: MigrateV2ToV3LPPositionRequest | PlainMessage<MigrateV2ToV3LPPositionRequest> | undefined, b: MigrateV2ToV3LPPositionRequest | PlainMessage<MigrateV2ToV3LPPositionRequest> | undefined): boolean;
539
- }
540
- /**
541
- * @generated from message trading.v1.MigrateV2ToV3LPPositionResponse
542
- */
543
- export declare class MigrateV2ToV3LPPositionResponse extends Message<MigrateV2ToV3LPPositionResponse> {
544
- /**
545
- * @generated from field: string request_id = 1;
546
- */
547
- requestId: string;
548
- /**
549
- * @generated from field: trading.v1.TransactionRequest migrate = 2;
550
- */
551
- migrate?: TransactionRequest;
552
- /**
553
- * @generated from field: optional string gasFee = 3;
554
- */
555
- gasFee?: string;
556
- constructor(data?: PartialMessage<MigrateV2ToV3LPPositionResponse>);
557
- static readonly runtime: typeof proto3;
558
- static readonly typeName = "trading.v1.MigrateV2ToV3LPPositionResponse";
559
- static readonly fields: FieldList;
560
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateV2ToV3LPPositionResponse;
561
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionResponse;
562
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionResponse;
563
- static equals(a: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined, b: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined): boolean;
564
- }
565
559
  /**
566
560
  * @generated from message trading.v1.GetLPPriceDiscrepancyRequest
567
561
  */
@@ -776,6 +770,14 @@ export declare class Swap5792Response extends Message<Swap5792Response> {
776
770
  * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
777
771
  */
778
772
  gasEstimates: GasEstimate[];
773
+ /**
774
+ * @generated from field: optional string signature = 7;
775
+ */
776
+ signature?: string;
777
+ /**
778
+ * @generated from field: optional string public_key_id = 8;
779
+ */
780
+ publicKeyId?: string;
779
781
  constructor(data?: PartialMessage<Swap5792Response>);
780
782
  static readonly runtime: typeof proto3;
781
783
  static readonly typeName = "trading.v1.Swap5792Response";
@@ -916,13 +918,13 @@ export declare class PoolInformation extends Message<PoolInformation> {
916
918
  */
917
919
  currentTick?: number;
918
920
  /**
919
- * @generated from field: optional string token_A_reserves = 16;
921
+ * @generated from field: optional string token_0_reserves = 16;
920
922
  */
921
- tokenAReserves?: string;
923
+ token0Reserves?: string;
922
924
  /**
923
- * @generated from field: optional string token_B_reserves = 17;
925
+ * @generated from field: optional string token_1_reserves = 17;
924
926
  */
925
- tokenBReserves?: string;
927
+ token1Reserves?: string;
926
928
  constructor(data?: PartialMessage<PoolInformation>);
927
929
  static readonly runtime: typeof proto3;
928
930
  static readonly typeName = "trading.v1.PoolInformation";
@@ -1064,64 +1066,6 @@ export declare class SendResponse extends Message<SendResponse> {
1064
1066
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendResponse;
1065
1067
  static equals(a: SendResponse | PlainMessage<SendResponse> | undefined, b: SendResponse | PlainMessage<SendResponse> | undefined): boolean;
1066
1068
  }
1067
- /**
1068
- * @generated from message trading.v1.ClaimLPRewardsRequest
1069
- */
1070
- export declare class ClaimLPRewardsRequest extends Message<ClaimLPRewardsRequest> {
1071
- /**
1072
- * @generated from field: string wallet_address = 1;
1073
- */
1074
- walletAddress: string;
1075
- /**
1076
- * @generated from field: trading.v1.ChainId chain_id = 2;
1077
- */
1078
- chainId: ChainId;
1079
- /**
1080
- * @generated from field: repeated string tokens = 3;
1081
- */
1082
- tokens: string[];
1083
- /**
1084
- * @generated from field: trading.v1.Distributor distributor = 4;
1085
- */
1086
- distributor: Distributor;
1087
- /**
1088
- * @generated from field: bool simulate_transaction = 5;
1089
- */
1090
- simulateTransaction: boolean;
1091
- constructor(data?: PartialMessage<ClaimLPRewardsRequest>);
1092
- static readonly runtime: typeof proto3;
1093
- static readonly typeName = "trading.v1.ClaimLPRewardsRequest";
1094
- static readonly fields: FieldList;
1095
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimLPRewardsRequest;
1096
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimLPRewardsRequest;
1097
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimLPRewardsRequest;
1098
- static equals(a: ClaimLPRewardsRequest | PlainMessage<ClaimLPRewardsRequest> | undefined, b: ClaimLPRewardsRequest | PlainMessage<ClaimLPRewardsRequest> | undefined): boolean;
1099
- }
1100
- /**
1101
- * @generated from message trading.v1.ClaimLPRewardsResponse
1102
- */
1103
- export declare class ClaimLPRewardsResponse extends Message<ClaimLPRewardsResponse> {
1104
- /**
1105
- * @generated from field: string request_id = 1;
1106
- */
1107
- requestId: string;
1108
- /**
1109
- * @generated from field: optional trading.v1.TransactionRequest claim = 2;
1110
- */
1111
- claim?: TransactionRequest;
1112
- /**
1113
- * @generated from field: optional string gas_fee = 3;
1114
- */
1115
- gasFee?: string;
1116
- constructor(data?: PartialMessage<ClaimLPRewardsResponse>);
1117
- static readonly runtime: typeof proto3;
1118
- static readonly typeName = "trading.v1.ClaimLPRewardsResponse";
1119
- static readonly fields: FieldList;
1120
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimLPRewardsResponse;
1121
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimLPRewardsResponse;
1122
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimLPRewardsResponse;
1123
- static equals(a: ClaimLPRewardsResponse | PlainMessage<ClaimLPRewardsResponse> | undefined, b: ClaimLPRewardsResponse | PlainMessage<ClaimLPRewardsResponse> | undefined): boolean;
1124
- }
1125
1069
  /**
1126
1070
  * @generated from message trading.v1.CheckApprovalLPRequest
1127
1071
  */
@@ -2908,6 +2852,18 @@ export declare class SwappableTokensRequest extends Message<SwappableTokensReque
2908
2852
  * @generated from field: trading.v1.ChainId token_in_chain_id = 2;
2909
2853
  */
2910
2854
  tokenInChainId: ChainId;
2855
+ /**
2856
+ * @generated from field: optional string client_version = 3;
2857
+ */
2858
+ clientVersion?: string;
2859
+ /**
2860
+ * @generated from field: optional string client_name = 4;
2861
+ */
2862
+ clientName?: string;
2863
+ /**
2864
+ * @generated from field: repeated trading.v1.ChainId chain_blocklist = 5;
2865
+ */
2866
+ chainBlocklist: ChainId[];
2911
2867
  constructor(data?: PartialMessage<SwappableTokensRequest>);
2912
2868
  static readonly runtime: typeof proto3;
2913
2869
  static readonly typeName = "trading.v1.SwappableTokensRequest";
@@ -3057,6 +3013,10 @@ export declare class GasStrategy extends Message<GasStrategy> {
3057
3013
  * @generated from field: optional double threshold_to_inflate_last_block_base_fee = 9;
3058
3014
  */
3059
3015
  thresholdToInflateLastBlockBaseFee?: number;
3016
+ /**
3017
+ * @generated from field: optional double display_limit_inflation_factor = 10;
3018
+ */
3019
+ displayLimitInflationFactor?: number;
3060
3020
  constructor(data?: PartialMessage<GasStrategy>);
3061
3021
  static readonly runtime: typeof proto3;
3062
3022
  static readonly typeName = "trading.v1.GasStrategy";
@@ -3212,6 +3172,12 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
3212
3172
  */
3213
3173
  value: PriorityQuote;
3214
3174
  case: "priorityQuote";
3175
+ } | {
3176
+ /**
3177
+ * @generated from field: trading.v1.ChainedQuote chained_quote = 12;
3178
+ */
3179
+ value: ChainedQuote;
3180
+ case: "chainedQuote";
3215
3181
  } | {
3216
3182
  case: undefined;
3217
3183
  value?: undefined;
@@ -3221,37 +3187,37 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
3221
3187
  */
3222
3188
  permitData: {
3223
3189
  /**
3224
- * @generated from field: trading.v1.PermitSingleData permit_single_data = 12;
3190
+ * @generated from field: trading.v1.PermitSingleData permit_single_data = 13;
3225
3191
  */
3226
3192
  value: PermitSingleData;
3227
3193
  case: "permitSingleData";
3228
3194
  } | {
3229
3195
  /**
3230
- * @generated from field: trading.v1.PermitTransferFromData permit_transfer_from_data = 13;
3196
+ * @generated from field: trading.v1.PermitTransferFromData permit_transfer_from_data = 14;
3231
3197
  */
3232
3198
  value: PermitTransferFromData;
3233
3199
  case: "permitTransferFromData";
3234
3200
  } | {
3235
3201
  /**
3236
- * @generated from field: trading.v1.DutchLimitPermitData dutch_limit_permit_data = 14;
3202
+ * @generated from field: trading.v1.DutchLimitPermitData dutch_limit_permit_data = 15;
3237
3203
  */
3238
3204
  value: DutchLimitPermitData;
3239
3205
  case: "dutchLimitPermitData";
3240
3206
  } | {
3241
3207
  /**
3242
- * @generated from field: trading.v1.DutchLimitV2PermitData dutch_limit_v2_permit_data = 15;
3208
+ * @generated from field: trading.v1.DutchLimitV2PermitData dutch_limit_v2_permit_data = 16;
3243
3209
  */
3244
3210
  value: DutchLimitV2PermitData;
3245
3211
  case: "dutchLimitV2PermitData";
3246
3212
  } | {
3247
3213
  /**
3248
- * @generated from field: trading.v1.DutchLimitV3PermitData dutch_limit_v3_permit_data = 16;
3214
+ * @generated from field: trading.v1.DutchLimitV3PermitData dutch_limit_v3_permit_data = 17;
3249
3215
  */
3250
3216
  value: DutchLimitV3PermitData;
3251
3217
  case: "dutchLimitV3PermitData";
3252
3218
  } | {
3253
3219
  /**
3254
- * @generated from field: trading.v1.PriorityPermitData priority_permit_data = 17;
3220
+ * @generated from field: trading.v1.PriorityPermitData priority_permit_data = 18;
3255
3221
  */
3256
3222
  value: PriorityPermitData;
3257
3223
  case: "priorityPermitData";
@@ -3260,11 +3226,11 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
3260
3226
  value?: undefined;
3261
3227
  };
3262
3228
  /**
3263
- * @generated from field: optional trading.v1.TransactionRequest permit_transaction = 18;
3229
+ * @generated from field: optional trading.v1.TransactionRequest permit_transaction = 19;
3264
3230
  */
3265
3231
  permitTransaction?: TransactionRequest;
3266
3232
  /**
3267
- * @generated from field: optional string permit_gas_fee = 19;
3233
+ * @generated from field: optional string permit_gas_fee = 20;
3268
3234
  */
3269
3235
  permitGasFee?: string;
3270
3236
  constructor(data?: PartialMessage<QuoteResponse>);
@@ -4181,6 +4147,101 @@ export declare class SwapResponse extends Message<SwapResponse> {
4181
4147
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapResponse;
4182
4148
  static equals(a: SwapResponse | PlainMessage<SwapResponse> | undefined, b: SwapResponse | PlainMessage<SwapResponse> | undefined): boolean;
4183
4149
  }
4150
+ /**
4151
+ * @generated from message trading.v1.Swap7702Request
4152
+ */
4153
+ export declare class Swap7702Request extends Message<Swap7702Request> {
4154
+ /**
4155
+ * @generated from oneof trading.v1.Swap7702Request.quote
4156
+ */
4157
+ quote: {
4158
+ /**
4159
+ * @generated from field: trading.v1.ClassicQuote classic_quote = 1;
4160
+ */
4161
+ value: ClassicQuote;
4162
+ case: "classicQuote";
4163
+ } | {
4164
+ /**
4165
+ * @generated from field: trading.v1.WrapUnwrapQuote wrap_unwrap_quote = 2;
4166
+ */
4167
+ value: WrapUnwrapQuote;
4168
+ case: "wrapUnwrapQuote";
4169
+ } | {
4170
+ /**
4171
+ * @generated from field: trading.v1.BridgeQuote bridge_quote = 3;
4172
+ */
4173
+ value: BridgeQuote;
4174
+ case: "bridgeQuote";
4175
+ } | {
4176
+ case: undefined;
4177
+ value?: undefined;
4178
+ };
4179
+ /**
4180
+ * @generated from field: optional trading.v1.PermitSingleData permit_data = 4;
4181
+ */
4182
+ permitData?: PermitSingleData;
4183
+ /**
4184
+ * @generated from field: string smart_contract_delegation_address = 5;
4185
+ */
4186
+ smartContractDelegationAddress: string;
4187
+ /**
4188
+ * @generated from field: bool include_gas_info = 6;
4189
+ */
4190
+ includeGasInfo: boolean;
4191
+ /**
4192
+ * @generated from field: bool simulate_transaction = 7;
4193
+ */
4194
+ simulateTransaction: boolean;
4195
+ /**
4196
+ * @generated from field: int64 deadline = 8;
4197
+ */
4198
+ deadline: bigint;
4199
+ /**
4200
+ * @generated from field: optional trading.v1.Urgency urgency = 9;
4201
+ */
4202
+ urgency?: Urgency;
4203
+ /**
4204
+ * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 10;
4205
+ */
4206
+ gasStrategies: GasStrategy[];
4207
+ constructor(data?: PartialMessage<Swap7702Request>);
4208
+ static readonly runtime: typeof proto3;
4209
+ static readonly typeName = "trading.v1.Swap7702Request";
4210
+ static readonly fields: FieldList;
4211
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Swap7702Request;
4212
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Swap7702Request;
4213
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap7702Request;
4214
+ static equals(a: Swap7702Request | PlainMessage<Swap7702Request> | undefined, b: Swap7702Request | PlainMessage<Swap7702Request> | undefined): boolean;
4215
+ }
4216
+ /**
4217
+ * @generated from message trading.v1.Swap7702Response
4218
+ */
4219
+ export declare class Swap7702Response extends Message<Swap7702Response> {
4220
+ /**
4221
+ * @generated from field: string request_id = 1;
4222
+ */
4223
+ requestId: string;
4224
+ /**
4225
+ * @generated from field: trading.v1.TransactionRequest swap = 2;
4226
+ */
4227
+ swap?: TransactionRequest;
4228
+ /**
4229
+ * @generated from field: optional string gas_fee = 3;
4230
+ */
4231
+ gasFee?: string;
4232
+ /**
4233
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 4;
4234
+ */
4235
+ gasEstimates: GasEstimate[];
4236
+ constructor(data?: PartialMessage<Swap7702Response>);
4237
+ static readonly runtime: typeof proto3;
4238
+ static readonly typeName = "trading.v1.Swap7702Response";
4239
+ static readonly fields: FieldList;
4240
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Swap7702Response;
4241
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Swap7702Response;
4242
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap7702Response;
4243
+ static equals(a: Swap7702Response | PlainMessage<Swap7702Response> | undefined, b: Swap7702Response | PlainMessage<Swap7702Response> | undefined): boolean;
4244
+ }
4184
4245
  /**
4185
4246
  * @generated from message trading.v1.GetSwapsRequest
4186
4247
  */
@@ -5785,6 +5846,10 @@ export declare class CheckApprovalResponse extends Message<CheckApprovalResponse
5785
5846
  * @generated from field: optional string cancel_gas_fee = 5;
5786
5847
  */
5787
5848
  cancelGasFee?: string;
5849
+ /**
5850
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
5851
+ */
5852
+ gasEstimates: GasEstimate[];
5788
5853
  constructor(data?: PartialMessage<CheckApprovalResponse>);
5789
5854
  static readonly runtime: typeof proto3;
5790
5855
  static readonly typeName = "trading.v1.CheckApprovalResponse";
@@ -5921,57 +5986,167 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
5921
5986
  static equals(a: PriorityQuote | PlainMessage<PriorityQuote> | undefined, b: PriorityQuote | PlainMessage<PriorityQuote> | undefined): boolean;
5922
5987
  }
5923
5988
  /**
5924
- * @generated from message trading.v1.PermitTransferFromData
5989
+ * @generated from message trading.v1.TruncatedPlanStep
5925
5990
  */
5926
- export declare class PermitTransferFromData extends Message<PermitTransferFromData> {
5991
+ export declare class TruncatedPlanStep extends Message<TruncatedPlanStep> {
5927
5992
  /**
5928
- * @generated from field: trading.v1.Domain domain = 1;
5993
+ * @generated from field: trading.v1.PlanStepType step_type = 1;
5929
5994
  */
5930
- domain?: Domain;
5995
+ stepType: PlanStepType;
5931
5996
  /**
5932
- * @generated from field: map<string, trading.v1.TypeFieldArray> types = 2;
5997
+ * @generated from field: optional string token_in = 2;
5933
5998
  */
5934
- types: {
5935
- [key: string]: TypeFieldArray;
5936
- };
5999
+ tokenIn?: string;
5937
6000
  /**
5938
- * @generated from field: trading.v1.PermitTransferFrom values = 3;
6001
+ * @generated from field: optional int32 token_in_chain_id = 3;
5939
6002
  */
5940
- values?: PermitTransferFrom;
5941
- constructor(data?: PartialMessage<PermitTransferFromData>);
5942
- static readonly runtime: typeof proto3;
5943
- static readonly typeName = "trading.v1.PermitTransferFromData";
5944
- static readonly fields: FieldList;
5945
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PermitTransferFromData;
5946
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PermitTransferFromData;
5947
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PermitTransferFromData;
5948
- static equals(a: PermitTransferFromData | PlainMessage<PermitTransferFromData> | undefined, b: PermitTransferFromData | PlainMessage<PermitTransferFromData> | undefined): boolean;
5949
- }
5950
- /**
5951
- * @generated from message trading.v1.TypeFieldArray
5952
- */
5953
- export declare class TypeFieldArray extends Message<TypeFieldArray> {
6003
+ tokenInChainId?: number;
5954
6004
  /**
5955
- * @generated from field: repeated trading.v1.TypeField fields = 1;
6005
+ * @generated from field: optional string token_out = 4;
5956
6006
  */
5957
- fields: TypeField[];
5958
- constructor(data?: PartialMessage<TypeFieldArray>);
6007
+ tokenOut?: string;
6008
+ /**
6009
+ * @generated from field: optional int32 token_out_chain_id = 5;
6010
+ */
6011
+ tokenOutChainId?: number;
6012
+ constructor(data?: PartialMessage<TruncatedPlanStep>);
5959
6013
  static readonly runtime: typeof proto3;
5960
- static readonly typeName = "trading.v1.TypeFieldArray";
6014
+ static readonly typeName = "trading.v1.TruncatedPlanStep";
5961
6015
  static readonly fields: FieldList;
5962
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TypeFieldArray;
5963
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TypeFieldArray;
5964
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TypeFieldArray;
5965
- static equals(a: TypeFieldArray | PlainMessage<TypeFieldArray> | undefined, b: TypeFieldArray | PlainMessage<TypeFieldArray> | undefined): boolean;
6016
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TruncatedPlanStep;
6017
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TruncatedPlanStep;
6018
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TruncatedPlanStep;
6019
+ static equals(a: TruncatedPlanStep | PlainMessage<TruncatedPlanStep> | undefined, b: TruncatedPlanStep | PlainMessage<TruncatedPlanStep> | undefined): boolean;
5966
6020
  }
5967
6021
  /**
5968
- * @generated from message trading.v1.PermitTransferFrom
6022
+ * @generated from message trading.v1.ChainedQuote
5969
6023
  */
5970
- export declare class PermitTransferFrom extends Message<PermitTransferFrom> {
6024
+ export declare class ChainedQuote extends Message<ChainedQuote> {
5971
6025
  /**
5972
- * @generated from field: trading.v1.TokenPermissions permitted = 1;
6026
+ * @generated from field: trading.v1.ChainId token_in_chain_id = 1;
5973
6027
  */
5974
- permitted?: TokenPermissions;
6028
+ tokenInChainId: ChainId;
6029
+ /**
6030
+ * @generated from field: trading.v1.ChainId token_out_chain_id = 2;
6031
+ */
6032
+ tokenOutChainId: ChainId;
6033
+ /**
6034
+ * @generated from field: string swapper = 3;
6035
+ */
6036
+ swapper: string;
6037
+ /**
6038
+ * @generated from field: trading.v1.ClassicInput input = 4;
6039
+ */
6040
+ input?: ClassicInput;
6041
+ /**
6042
+ * @generated from field: trading.v1.ClassicOutput output = 5;
6043
+ */
6044
+ output?: ClassicOutput;
6045
+ /**
6046
+ * @generated from field: trading.v1.TradeType trade_type = 6;
6047
+ */
6048
+ tradeType: TradeType;
6049
+ /**
6050
+ * @generated from field: string quote_id = 7;
6051
+ */
6052
+ quoteId: string;
6053
+ /**
6054
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 8;
6055
+ */
6056
+ gasEstimates: GasEstimate[];
6057
+ /**
6058
+ * @generated from field: optional string gas_use_estimate = 9;
6059
+ */
6060
+ gasUseEstimate?: string;
6061
+ /**
6062
+ * @generated from field: optional string gas_fee_usd = 10;
6063
+ */
6064
+ gasFeeUsd?: string;
6065
+ /**
6066
+ * @generated from field: optional string gas_fee_quote = 11;
6067
+ */
6068
+ gasFeeQuote?: string;
6069
+ /**
6070
+ * @generated from field: optional string gas_fee = 12;
6071
+ */
6072
+ gasFee?: string;
6073
+ /**
6074
+ * @generated from field: optional int32 time_estimate_ms = 13;
6075
+ */
6076
+ timeEstimateMs?: number;
6077
+ /**
6078
+ * @generated from field: repeated trading.v1.Protocols protocols = 14;
6079
+ */
6080
+ protocols: Protocols[];
6081
+ /**
6082
+ * @generated from field: optional trading.v1.HooksOptions hooks_options = 15;
6083
+ */
6084
+ hooksOptions?: HooksOptions;
6085
+ /**
6086
+ * @generated from field: repeated trading.v1.TruncatedPlanStep steps = 16;
6087
+ */
6088
+ steps: TruncatedPlanStep[];
6089
+ constructor(data?: PartialMessage<ChainedQuote>);
6090
+ static readonly runtime: typeof proto3;
6091
+ static readonly typeName = "trading.v1.ChainedQuote";
6092
+ static readonly fields: FieldList;
6093
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainedQuote;
6094
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainedQuote;
6095
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainedQuote;
6096
+ static equals(a: ChainedQuote | PlainMessage<ChainedQuote> | undefined, b: ChainedQuote | PlainMessage<ChainedQuote> | undefined): boolean;
6097
+ }
6098
+ /**
6099
+ * @generated from message trading.v1.PermitTransferFromData
6100
+ */
6101
+ export declare class PermitTransferFromData extends Message<PermitTransferFromData> {
6102
+ /**
6103
+ * @generated from field: trading.v1.Domain domain = 1;
6104
+ */
6105
+ domain?: Domain;
6106
+ /**
6107
+ * @generated from field: map<string, trading.v1.TypeFieldArray> types = 2;
6108
+ */
6109
+ types: {
6110
+ [key: string]: TypeFieldArray;
6111
+ };
6112
+ /**
6113
+ * @generated from field: trading.v1.PermitTransferFrom values = 3;
6114
+ */
6115
+ values?: PermitTransferFrom;
6116
+ constructor(data?: PartialMessage<PermitTransferFromData>);
6117
+ static readonly runtime: typeof proto3;
6118
+ static readonly typeName = "trading.v1.PermitTransferFromData";
6119
+ static readonly fields: FieldList;
6120
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PermitTransferFromData;
6121
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PermitTransferFromData;
6122
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PermitTransferFromData;
6123
+ static equals(a: PermitTransferFromData | PlainMessage<PermitTransferFromData> | undefined, b: PermitTransferFromData | PlainMessage<PermitTransferFromData> | undefined): boolean;
6124
+ }
6125
+ /**
6126
+ * @generated from message trading.v1.TypeFieldArray
6127
+ */
6128
+ export declare class TypeFieldArray extends Message<TypeFieldArray> {
6129
+ /**
6130
+ * @generated from field: repeated trading.v1.TypeField fields = 1;
6131
+ */
6132
+ fields: TypeField[];
6133
+ constructor(data?: PartialMessage<TypeFieldArray>);
6134
+ static readonly runtime: typeof proto3;
6135
+ static readonly typeName = "trading.v1.TypeFieldArray";
6136
+ static readonly fields: FieldList;
6137
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TypeFieldArray;
6138
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TypeFieldArray;
6139
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TypeFieldArray;
6140
+ static equals(a: TypeFieldArray | PlainMessage<TypeFieldArray> | undefined, b: TypeFieldArray | PlainMessage<TypeFieldArray> | undefined): boolean;
6141
+ }
6142
+ /**
6143
+ * @generated from message trading.v1.PermitTransferFrom
6144
+ */
6145
+ export declare class PermitTransferFrom extends Message<PermitTransferFrom> {
6146
+ /**
6147
+ * @generated from field: trading.v1.TokenPermissions permitted = 1;
6148
+ */
6149
+ permitted?: TokenPermissions;
5975
6150
  /**
5976
6151
  * @generated from field: string spender = 2;
5977
6152
  */
@@ -6589,3 +6764,611 @@ export declare class DelegationDetails extends Message<DelegationDetails> {
6589
6764
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DelegationDetails;
6590
6765
  static equals(a: DelegationDetails | PlainMessage<DelegationDetails> | undefined, b: DelegationDetails | PlainMessage<DelegationDetails> | undefined): boolean;
6591
6766
  }
6767
+ /**
6768
+ * @generated from message trading.v1.PlanStep
6769
+ */
6770
+ export declare class PlanStep extends Message<PlanStep> {
6771
+ /**
6772
+ * @generated from field: string step_index = 1;
6773
+ */
6774
+ stepIndex: string;
6775
+ /**
6776
+ * @generated from field: trading.v1.PlanStep.Method method = 2;
6777
+ */
6778
+ method: PlanStep_Method;
6779
+ /**
6780
+ * @generated from field: trading.v1.PlanStep.PayloadType payload_type = 3;
6781
+ */
6782
+ payloadType: PlanStep_PayloadType;
6783
+ /**
6784
+ * JSON serialized payload
6785
+ *
6786
+ * @generated from field: string payload = 4;
6787
+ */
6788
+ payload: string;
6789
+ /**
6790
+ * @generated from field: trading.v1.PlanStep.StepStatus status = 5;
6791
+ */
6792
+ status: PlanStep_StepStatus;
6793
+ /**
6794
+ * @generated from field: optional trading.v1.PlanStep.StepProof proof = 6;
6795
+ */
6796
+ proof?: PlanStep_StepProof;
6797
+ /**
6798
+ * @generated from field: optional string token_in = 7;
6799
+ */
6800
+ tokenIn?: string;
6801
+ /**
6802
+ * @generated from field: optional string token_out = 8;
6803
+ */
6804
+ tokenOut?: string;
6805
+ /**
6806
+ * @generated from field: optional int32 token_in_chain_id = 9;
6807
+ */
6808
+ tokenInChainId?: number;
6809
+ /**
6810
+ * @generated from field: optional int32 token_out_chain_id = 10;
6811
+ */
6812
+ tokenOutChainId?: number;
6813
+ /**
6814
+ * @generated from field: optional string token_in_amount = 11;
6815
+ */
6816
+ tokenInAmount?: string;
6817
+ /**
6818
+ * @generated from field: optional string token_out_amount = 12;
6819
+ */
6820
+ tokenOutAmount?: string;
6821
+ /**
6822
+ * @generated from field: optional string swapper = 13;
6823
+ */
6824
+ swapper?: string;
6825
+ /**
6826
+ * @generated from field: optional string recipient = 14;
6827
+ */
6828
+ recipient?: string;
6829
+ /**
6830
+ * @generated from field: trading.v1.PlanStepType step_type = 15;
6831
+ */
6832
+ stepType: PlanStepType;
6833
+ /**
6834
+ * @generated from field: optional string gas_use_estimate = 16;
6835
+ */
6836
+ gasUseEstimate?: string;
6837
+ /**
6838
+ * @generated from field: optional string gas_fee_usd = 17;
6839
+ */
6840
+ gasFeeUsd?: string;
6841
+ /**
6842
+ * @generated from field: optional string gas_fee_quote = 18;
6843
+ */
6844
+ gasFeeQuote?: string;
6845
+ /**
6846
+ * @generated from field: optional string gas_price = 19;
6847
+ */
6848
+ gasPrice?: string;
6849
+ /**
6850
+ * @generated from field: optional string max_fee_per_gas = 20;
6851
+ */
6852
+ maxFeePerGas?: string;
6853
+ /**
6854
+ * @generated from field: optional string max_priority_fee_per_gas = 21;
6855
+ */
6856
+ maxPriorityFeePerGas?: string;
6857
+ /**
6858
+ * @generated from field: optional string gas_fee = 22;
6859
+ */
6860
+ gasFee?: string;
6861
+ /**
6862
+ * @generated from field: optional string routing_step_key = 23;
6863
+ */
6864
+ routingStepKey?: string;
6865
+ constructor(data?: PartialMessage<PlanStep>);
6866
+ static readonly runtime: typeof proto3;
6867
+ static readonly typeName = "trading.v1.PlanStep";
6868
+ static readonly fields: FieldList;
6869
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanStep;
6870
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanStep;
6871
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanStep;
6872
+ static equals(a: PlanStep | PlainMessage<PlanStep> | undefined, b: PlanStep | PlainMessage<PlanStep> | undefined): boolean;
6873
+ }
6874
+ /**
6875
+ * @generated from enum trading.v1.PlanStep.StepStatus
6876
+ */
6877
+ export declare enum PlanStep_StepStatus {
6878
+ /**
6879
+ * @generated from enum value: NOT_READY = 0;
6880
+ */
6881
+ NOT_READY = 0,
6882
+ /**
6883
+ * @generated from enum value: AWAITING_ACTION = 1;
6884
+ */
6885
+ AWAITING_ACTION = 1,
6886
+ /**
6887
+ * @generated from enum value: IN_PROGRESS = 2;
6888
+ */
6889
+ IN_PROGRESS = 2,
6890
+ /**
6891
+ * @generated from enum value: COMPLETE = 3;
6892
+ */
6893
+ COMPLETE = 3,
6894
+ /**
6895
+ * @generated from enum value: STEP_ERROR = 4;
6896
+ */
6897
+ STEP_ERROR = 4
6898
+ }
6899
+ /**
6900
+ * @generated from enum trading.v1.PlanStep.Method
6901
+ */
6902
+ export declare enum PlanStep_Method {
6903
+ /**
6904
+ * @generated from enum value: SEND_TX = 0;
6905
+ */
6906
+ SEND_TX = 0,
6907
+ /**
6908
+ * @generated from enum value: SIGN_MSG = 1;
6909
+ */
6910
+ SIGN_MSG = 1,
6911
+ /**
6912
+ * @generated from enum value: SEND_CALLS = 2;
6913
+ */
6914
+ SEND_CALLS = 2
6915
+ }
6916
+ /**
6917
+ * @generated from enum trading.v1.PlanStep.PayloadType
6918
+ */
6919
+ export declare enum PlanStep_PayloadType {
6920
+ /**
6921
+ * @generated from enum value: TX = 0;
6922
+ */
6923
+ TX = 0,
6924
+ /**
6925
+ * @generated from enum value: EIP_712 = 1;
6926
+ */
6927
+ EIP_712 = 1,
6928
+ /**
6929
+ * @generated from enum value: EIP_5792 = 2;
6930
+ */
6931
+ EIP_5792 = 2
6932
+ }
6933
+ /**
6934
+ * @generated from message trading.v1.PlanStep.StepProof
6935
+ */
6936
+ export declare class PlanStep_StepProof extends Message<PlanStep_StepProof> {
6937
+ /**
6938
+ * @generated from field: optional string tx_hash = 1;
6939
+ */
6940
+ txHash?: string;
6941
+ /**
6942
+ * @generated from field: optional string signature = 2;
6943
+ */
6944
+ signature?: string;
6945
+ /**
6946
+ * @generated from field: optional string order_id = 3;
6947
+ */
6948
+ orderId?: string;
6949
+ constructor(data?: PartialMessage<PlanStep_StepProof>);
6950
+ static readonly runtime: typeof proto3;
6951
+ static readonly typeName = "trading.v1.PlanStep.StepProof";
6952
+ static readonly fields: FieldList;
6953
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanStep_StepProof;
6954
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanStep_StepProof;
6955
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanStep_StepProof;
6956
+ static equals(a: PlanStep_StepProof | PlainMessage<PlanStep_StepProof> | undefined, b: PlanStep_StepProof | PlainMessage<PlanStep_StepProof> | undefined): boolean;
6957
+ }
6958
+ /**
6959
+ * @generated from message trading.v1.CreatePlanRequest
6960
+ */
6961
+ export declare class CreatePlanRequest extends Message<CreatePlanRequest> {
6962
+ /**
6963
+ * @generated from field: trading.v1.SwapType routing = 1;
6964
+ */
6965
+ routing: SwapType;
6966
+ /**
6967
+ * @generated from field: trading.v1.ChainedQuote quote = 2;
6968
+ */
6969
+ quote?: ChainedQuote;
6970
+ /**
6971
+ * @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 3;
6972
+ */
6973
+ walletExecutionContext?: WalletExecutionContext;
6974
+ constructor(data?: PartialMessage<CreatePlanRequest>);
6975
+ static readonly runtime: typeof proto3;
6976
+ static readonly typeName = "trading.v1.CreatePlanRequest";
6977
+ static readonly fields: FieldList;
6978
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePlanRequest;
6979
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePlanRequest;
6980
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePlanRequest;
6981
+ static equals(a: CreatePlanRequest | PlainMessage<CreatePlanRequest> | undefined, b: CreatePlanRequest | PlainMessage<CreatePlanRequest> | undefined): boolean;
6982
+ }
6983
+ /**
6984
+ * @generated from message trading.v1.GetPlanRequest
6985
+ */
6986
+ export declare class GetPlanRequest extends Message<GetPlanRequest> {
6987
+ /**
6988
+ * @generated from field: string plan_id = 1;
6989
+ */
6990
+ planId: string;
6991
+ /**
6992
+ * @generated from field: bool force_refresh = 2;
6993
+ */
6994
+ forceRefresh: boolean;
6995
+ constructor(data?: PartialMessage<GetPlanRequest>);
6996
+ static readonly runtime: typeof proto3;
6997
+ static readonly typeName = "trading.v1.GetPlanRequest";
6998
+ static readonly fields: FieldList;
6999
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPlanRequest;
7000
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPlanRequest;
7001
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPlanRequest;
7002
+ static equals(a: GetPlanRequest | PlainMessage<GetPlanRequest> | undefined, b: GetPlanRequest | PlainMessage<GetPlanRequest> | undefined): boolean;
7003
+ }
7004
+ /**
7005
+ * @generated from message trading.v1.PlanResponse
7006
+ */
7007
+ export declare class PlanResponse extends Message<PlanResponse> {
7008
+ /**
7009
+ * @generated from field: string request_id = 1;
7010
+ */
7011
+ requestId: string;
7012
+ /**
7013
+ * @generated from field: string plan_id = 2;
7014
+ */
7015
+ planId: string;
7016
+ /**
7017
+ * @generated from field: string swapper = 3;
7018
+ */
7019
+ swapper: string;
7020
+ /**
7021
+ * @generated from field: string recipient = 4;
7022
+ */
7023
+ recipient: string;
7024
+ /**
7025
+ * @generated from field: string quote_id = 5;
7026
+ */
7027
+ quoteId: string;
7028
+ /**
7029
+ * @generated from field: trading.v1.PlanResponse.PlanStatus status = 6;
7030
+ */
7031
+ status: PlanResponse_PlanStatus;
7032
+ /**
7033
+ * @generated from field: repeated trading.v1.PlanStep steps = 7;
7034
+ */
7035
+ steps: PlanStep[];
7036
+ /**
7037
+ * @generated from field: int32 current_step_index = 8;
7038
+ */
7039
+ currentStepIndex: number;
7040
+ /**
7041
+ * @generated from field: string expected_output = 9;
7042
+ */
7043
+ expectedOutput: string;
7044
+ /**
7045
+ * @generated from field: optional string gas_fee = 10;
7046
+ */
7047
+ gasFee?: string;
7048
+ /**
7049
+ * @generated from field: optional int32 time_estimate_ms = 11;
7050
+ */
7051
+ timeEstimateMs?: number;
7052
+ /**
7053
+ * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
7054
+ */
7055
+ gasStrategies: GasStrategy[];
7056
+ /**
7057
+ * @generated from field: repeated trading.v1.Protocols protocols = 13;
7058
+ */
7059
+ protocols: Protocols[];
7060
+ /**
7061
+ * @generated from field: optional trading.v1.HooksOptions hooks_options = 14;
7062
+ */
7063
+ hooksOptions?: HooksOptions;
7064
+ /**
7065
+ * @generated from field: optional string created_at = 15;
7066
+ */
7067
+ createdAt?: string;
7068
+ /**
7069
+ * @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 16;
7070
+ */
7071
+ walletExecutionContext?: WalletExecutionContext;
7072
+ constructor(data?: PartialMessage<PlanResponse>);
7073
+ static readonly runtime: typeof proto3;
7074
+ static readonly typeName = "trading.v1.PlanResponse";
7075
+ static readonly fields: FieldList;
7076
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanResponse;
7077
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanResponse;
7078
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanResponse;
7079
+ static equals(a: PlanResponse | PlainMessage<PlanResponse> | undefined, b: PlanResponse | PlainMessage<PlanResponse> | undefined): boolean;
7080
+ }
7081
+ /**
7082
+ * @generated from enum trading.v1.PlanResponse.PlanStatus
7083
+ */
7084
+ export declare enum PlanResponse_PlanStatus {
7085
+ /**
7086
+ * @generated from enum value: ACTIVE = 0;
7087
+ */
7088
+ ACTIVE = 0,
7089
+ /**
7090
+ * @generated from enum value: IN_PROGRESS = 1;
7091
+ */
7092
+ IN_PROGRESS = 1,
7093
+ /**
7094
+ * @generated from enum value: COMPLETED = 2;
7095
+ */
7096
+ COMPLETED = 2,
7097
+ /**
7098
+ * @generated from enum value: FAILED = 3;
7099
+ */
7100
+ FAILED = 3
7101
+ }
7102
+ /**
7103
+ * @generated from message trading.v1.DocsRequest
7104
+ */
7105
+ export declare class DocsRequest extends Message<DocsRequest> {
7106
+ constructor(data?: PartialMessage<DocsRequest>);
7107
+ static readonly runtime: typeof proto3;
7108
+ static readonly typeName = "trading.v1.DocsRequest";
7109
+ static readonly fields: FieldList;
7110
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocsRequest;
7111
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocsRequest;
7112
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocsRequest;
7113
+ static equals(a: DocsRequest | PlainMessage<DocsRequest> | undefined, b: DocsRequest | PlainMessage<DocsRequest> | undefined): boolean;
7114
+ }
7115
+ /**
7116
+ * @generated from message trading.v1.DocsResponse
7117
+ */
7118
+ export declare class DocsResponse extends Message<DocsResponse> {
7119
+ /**
7120
+ * @generated from field: string openapi = 1;
7121
+ */
7122
+ openapi: string;
7123
+ /**
7124
+ * @generated from field: repeated google.protobuf.Struct servers = 2;
7125
+ */
7126
+ servers: Struct[];
7127
+ /**
7128
+ * @generated from field: google.protobuf.Struct info = 3;
7129
+ */
7130
+ info?: Struct;
7131
+ /**
7132
+ * @generated from field: google.protobuf.Struct paths = 4;
7133
+ */
7134
+ paths?: Struct;
7135
+ /**
7136
+ * @generated from field: google.protobuf.Struct components = 5;
7137
+ */
7138
+ components?: Struct;
7139
+ /**
7140
+ * @generated from field: repeated google.protobuf.Struct security = 6;
7141
+ */
7142
+ security: Struct[];
7143
+ constructor(data?: PartialMessage<DocsResponse>);
7144
+ static readonly runtime: typeof proto3;
7145
+ static readonly typeName = "trading.v1.DocsResponse";
7146
+ static readonly fields: FieldList;
7147
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocsResponse;
7148
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocsResponse;
7149
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocsResponse;
7150
+ static equals(a: DocsResponse | PlainMessage<DocsResponse> | undefined, b: DocsResponse | PlainMessage<DocsResponse> | undefined): boolean;
7151
+ }
7152
+ /**
7153
+ * @generated from message trading.v1.UpdatePlanRequest
7154
+ */
7155
+ export declare class UpdatePlanRequest extends Message<UpdatePlanRequest> {
7156
+ /**
7157
+ * @generated from field: string plan_id = 1;
7158
+ */
7159
+ planId: string;
7160
+ /**
7161
+ * @generated from field: repeated trading.v1.PlanStepUpdate steps = 2;
7162
+ */
7163
+ steps: PlanStepUpdate[];
7164
+ constructor(data?: PartialMessage<UpdatePlanRequest>);
7165
+ static readonly runtime: typeof proto3;
7166
+ static readonly typeName = "trading.v1.UpdatePlanRequest";
7167
+ static readonly fields: FieldList;
7168
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdatePlanRequest;
7169
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdatePlanRequest;
7170
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdatePlanRequest;
7171
+ static equals(a: UpdatePlanRequest | PlainMessage<UpdatePlanRequest> | undefined, b: UpdatePlanRequest | PlainMessage<UpdatePlanRequest> | undefined): boolean;
7172
+ }
7173
+ /**
7174
+ * @generated from message trading.v1.PlanStepUpdate
7175
+ */
7176
+ export declare class PlanStepUpdate extends Message<PlanStepUpdate> {
7177
+ /**
7178
+ * @generated from field: int32 step_index = 1;
7179
+ */
7180
+ stepIndex: number;
7181
+ /**
7182
+ * @generated from field: trading.v1.PlanStep.StepProof proof = 2;
7183
+ */
7184
+ proof?: PlanStep_StepProof;
7185
+ constructor(data?: PartialMessage<PlanStepUpdate>);
7186
+ static readonly runtime: typeof proto3;
7187
+ static readonly typeName = "trading.v1.PlanStepUpdate";
7188
+ static readonly fields: FieldList;
7189
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanStepUpdate;
7190
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanStepUpdate;
7191
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanStepUpdate;
7192
+ static equals(a: PlanStepUpdate | PlainMessage<PlanStepUpdate> | undefined, b: PlanStepUpdate | PlainMessage<PlanStepUpdate> | undefined): boolean;
7193
+ }
7194
+ /**
7195
+ * @generated from message trading.v1.GetPlansRequest
7196
+ */
7197
+ export declare class GetPlansRequest extends Message<GetPlansRequest> {
7198
+ /**
7199
+ * @generated from field: string swapper = 1;
7200
+ */
7201
+ swapper: string;
7202
+ /**
7203
+ * @generated from field: optional int32 limit = 2;
7204
+ */
7205
+ limit?: number;
7206
+ /**
7207
+ * @generated from field: optional string cursor = 3;
7208
+ */
7209
+ cursor?: string;
7210
+ /**
7211
+ * @generated from field: optional string min_timestamp = 4;
7212
+ */
7213
+ minTimestamp?: string;
7214
+ /**
7215
+ * @generated from field: optional string max_timestamp = 5;
7216
+ */
7217
+ maxTimestamp?: string;
7218
+ constructor(data?: PartialMessage<GetPlansRequest>);
7219
+ static readonly runtime: typeof proto3;
7220
+ static readonly typeName = "trading.v1.GetPlansRequest";
7221
+ static readonly fields: FieldList;
7222
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPlansRequest;
7223
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPlansRequest;
7224
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPlansRequest;
7225
+ static equals(a: GetPlansRequest | PlainMessage<GetPlansRequest> | undefined, b: GetPlansRequest | PlainMessage<GetPlansRequest> | undefined): boolean;
7226
+ }
7227
+ /**
7228
+ * @generated from message trading.v1.GetPlansResponse
7229
+ */
7230
+ export declare class GetPlansResponse extends Message<GetPlansResponse> {
7231
+ /**
7232
+ * @generated from field: string request_id = 1;
7233
+ */
7234
+ requestId: string;
7235
+ /**
7236
+ * @generated from field: repeated trading.v1.PlanResponse plans = 2;
7237
+ */
7238
+ plans: PlanResponse[];
7239
+ /**
7240
+ * @generated from field: optional string next_cursor = 3;
7241
+ */
7242
+ nextCursor?: string;
7243
+ constructor(data?: PartialMessage<GetPlansResponse>);
7244
+ static readonly runtime: typeof proto3;
7245
+ static readonly typeName = "trading.v1.GetPlansResponse";
7246
+ static readonly fields: FieldList;
7247
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPlansResponse;
7248
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPlansResponse;
7249
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPlansResponse;
7250
+ static equals(a: GetPlansResponse | PlainMessage<GetPlansResponse> | undefined, b: GetPlansResponse | PlainMessage<GetPlansResponse> | undefined): boolean;
7251
+ }
7252
+ /**
7253
+ * WalletExecutionContext based on CAIP-25 Standard
7254
+ *
7255
+ * @generated from message trading.v1.WalletExecutionContext
7256
+ */
7257
+ export declare class WalletExecutionContext extends Message<WalletExecutionContext> {
7258
+ /**
7259
+ * @generated from field: map<string, trading.v1.ScopeData> scopes = 1;
7260
+ */
7261
+ scopes: {
7262
+ [key: string]: ScopeData;
7263
+ };
7264
+ /**
7265
+ * @generated from field: optional trading.v1.WalletProperties properties = 2;
7266
+ */
7267
+ properties?: WalletProperties;
7268
+ constructor(data?: PartialMessage<WalletExecutionContext>);
7269
+ static readonly runtime: typeof proto3;
7270
+ static readonly typeName = "trading.v1.WalletExecutionContext";
7271
+ static readonly fields: FieldList;
7272
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WalletExecutionContext;
7273
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WalletExecutionContext;
7274
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletExecutionContext;
7275
+ static equals(a: WalletExecutionContext | PlainMessage<WalletExecutionContext> | undefined, b: WalletExecutionContext | PlainMessage<WalletExecutionContext> | undefined): boolean;
7276
+ }
7277
+ /**
7278
+ * @generated from message trading.v1.ScopeData
7279
+ */
7280
+ export declare class ScopeData extends Message<ScopeData> {
7281
+ /**
7282
+ * @generated from field: repeated string accounts = 1;
7283
+ */
7284
+ accounts: string[];
7285
+ /**
7286
+ * @generated from field: repeated string methods = 2;
7287
+ */
7288
+ methods: string[];
7289
+ /**
7290
+ * @generated from field: optional google.protobuf.Struct capabilities = 3;
7291
+ */
7292
+ capabilities?: Struct;
7293
+ /**
7294
+ * @generated from field: repeated string chains = 4;
7295
+ */
7296
+ chains: string[];
7297
+ /**
7298
+ * Uni client-specific context describing how this wallet integrates with the application
7299
+ *
7300
+ * @generated from field: optional trading.v1.ClientContext client_context = 5;
7301
+ */
7302
+ clientContext?: ClientContext;
7303
+ constructor(data?: PartialMessage<ScopeData>);
7304
+ static readonly runtime: typeof proto3;
7305
+ static readonly typeName = "trading.v1.ScopeData";
7306
+ static readonly fields: FieldList;
7307
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScopeData;
7308
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScopeData;
7309
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScopeData;
7310
+ static equals(a: ScopeData | PlainMessage<ScopeData> | undefined, b: ScopeData | PlainMessage<ScopeData> | undefined): boolean;
7311
+ }
7312
+ /**
7313
+ * @generated from message trading.v1.ClientContext
7314
+ */
7315
+ export declare class ClientContext extends Message<ClientContext> {
7316
+ /**
7317
+ * @generated from field: optional bool direct_private_key_access = 1;
7318
+ */
7319
+ directPrivateKeyAccess?: boolean;
7320
+ /**
7321
+ * @generated from field: optional string next_evm_upgrade_address = 2;
7322
+ */
7323
+ nextEvmUpgradeAddress?: string;
7324
+ constructor(data?: PartialMessage<ClientContext>);
7325
+ static readonly runtime: typeof proto3;
7326
+ static readonly typeName = "trading.v1.ClientContext";
7327
+ static readonly fields: FieldList;
7328
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientContext;
7329
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientContext;
7330
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientContext;
7331
+ static equals(a: ClientContext | PlainMessage<ClientContext> | undefined, b: ClientContext | PlainMessage<ClientContext> | undefined): boolean;
7332
+ }
7333
+ /**
7334
+ * @generated from message trading.v1.WalletProperties
7335
+ */
7336
+ export declare class WalletProperties extends Message<WalletProperties> {
7337
+ /**
7338
+ * @generated from field: optional trading.v1.WalletInfo wallet_info = 1;
7339
+ */
7340
+ walletInfo?: WalletInfo;
7341
+ constructor(data?: PartialMessage<WalletProperties>);
7342
+ static readonly runtime: typeof proto3;
7343
+ static readonly typeName = "trading.v1.WalletProperties";
7344
+ static readonly fields: FieldList;
7345
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WalletProperties;
7346
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WalletProperties;
7347
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletProperties;
7348
+ static equals(a: WalletProperties | PlainMessage<WalletProperties> | undefined, b: WalletProperties | PlainMessage<WalletProperties> | undefined): boolean;
7349
+ }
7350
+ /**
7351
+ * @generated from message trading.v1.WalletInfo
7352
+ */
7353
+ export declare class WalletInfo extends Message<WalletInfo> {
7354
+ /**
7355
+ * @generated from field: optional string uuid = 1;
7356
+ */
7357
+ uuid?: string;
7358
+ /**
7359
+ * @generated from field: optional string name = 2;
7360
+ */
7361
+ name?: string;
7362
+ /**
7363
+ * @generated from field: optional string rdns = 3;
7364
+ */
7365
+ rdns?: string;
7366
+ constructor(data?: PartialMessage<WalletInfo>);
7367
+ static readonly runtime: typeof proto3;
7368
+ static readonly typeName = "trading.v1.WalletInfo";
7369
+ static readonly fields: FieldList;
7370
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WalletInfo;
7371
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WalletInfo;
7372
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletInfo;
7373
+ static equals(a: WalletInfo | PlainMessage<WalletInfo> | undefined, b: WalletInfo | PlainMessage<WalletInfo> | undefined): boolean;
7374
+ }