@uniswap/client-trading 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  */
@@ -776,6 +776,14 @@ export declare class Swap5792Response extends Message<Swap5792Response> {
776
776
  * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
777
777
  */
778
778
  gasEstimates: GasEstimate[];
779
+ /**
780
+ * @generated from field: optional string signature = 7;
781
+ */
782
+ signature?: string;
783
+ /**
784
+ * @generated from field: optional string public_key_id = 8;
785
+ */
786
+ publicKeyId?: string;
779
787
  constructor(data?: PartialMessage<Swap5792Response>);
780
788
  static readonly runtime: typeof proto3;
781
789
  static readonly typeName = "trading.v1.Swap5792Response";
@@ -916,13 +924,13 @@ export declare class PoolInformation extends Message<PoolInformation> {
916
924
  */
917
925
  currentTick?: number;
918
926
  /**
919
- * @generated from field: optional string token_A_reserves = 16;
927
+ * @generated from field: optional string token_0_reserves = 16;
920
928
  */
921
- tokenAReserves?: string;
929
+ token0Reserves?: string;
922
930
  /**
923
- * @generated from field: optional string token_B_reserves = 17;
931
+ * @generated from field: optional string token_1_reserves = 17;
924
932
  */
925
- tokenBReserves?: string;
933
+ token1Reserves?: string;
926
934
  constructor(data?: PartialMessage<PoolInformation>);
927
935
  static readonly runtime: typeof proto3;
928
936
  static readonly typeName = "trading.v1.PoolInformation";
@@ -3057,6 +3065,10 @@ export declare class GasStrategy extends Message<GasStrategy> {
3057
3065
  * @generated from field: optional double threshold_to_inflate_last_block_base_fee = 9;
3058
3066
  */
3059
3067
  thresholdToInflateLastBlockBaseFee?: number;
3068
+ /**
3069
+ * @generated from field: optional double display_limit_inflation_factor = 10;
3070
+ */
3071
+ displayLimitInflationFactor?: number;
3060
3072
  constructor(data?: PartialMessage<GasStrategy>);
3061
3073
  static readonly runtime: typeof proto3;
3062
3074
  static readonly typeName = "trading.v1.GasStrategy";
@@ -3212,6 +3224,12 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
3212
3224
  */
3213
3225
  value: PriorityQuote;
3214
3226
  case: "priorityQuote";
3227
+ } | {
3228
+ /**
3229
+ * @generated from field: trading.v1.ChainedQuote chained_quote = 12;
3230
+ */
3231
+ value: ChainedQuote;
3232
+ case: "chainedQuote";
3215
3233
  } | {
3216
3234
  case: undefined;
3217
3235
  value?: undefined;
@@ -3221,37 +3239,37 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
3221
3239
  */
3222
3240
  permitData: {
3223
3241
  /**
3224
- * @generated from field: trading.v1.PermitSingleData permit_single_data = 12;
3242
+ * @generated from field: trading.v1.PermitSingleData permit_single_data = 13;
3225
3243
  */
3226
3244
  value: PermitSingleData;
3227
3245
  case: "permitSingleData";
3228
3246
  } | {
3229
3247
  /**
3230
- * @generated from field: trading.v1.PermitTransferFromData permit_transfer_from_data = 13;
3248
+ * @generated from field: trading.v1.PermitTransferFromData permit_transfer_from_data = 14;
3231
3249
  */
3232
3250
  value: PermitTransferFromData;
3233
3251
  case: "permitTransferFromData";
3234
3252
  } | {
3235
3253
  /**
3236
- * @generated from field: trading.v1.DutchLimitPermitData dutch_limit_permit_data = 14;
3254
+ * @generated from field: trading.v1.DutchLimitPermitData dutch_limit_permit_data = 15;
3237
3255
  */
3238
3256
  value: DutchLimitPermitData;
3239
3257
  case: "dutchLimitPermitData";
3240
3258
  } | {
3241
3259
  /**
3242
- * @generated from field: trading.v1.DutchLimitV2PermitData dutch_limit_v2_permit_data = 15;
3260
+ * @generated from field: trading.v1.DutchLimitV2PermitData dutch_limit_v2_permit_data = 16;
3243
3261
  */
3244
3262
  value: DutchLimitV2PermitData;
3245
3263
  case: "dutchLimitV2PermitData";
3246
3264
  } | {
3247
3265
  /**
3248
- * @generated from field: trading.v1.DutchLimitV3PermitData dutch_limit_v3_permit_data = 16;
3266
+ * @generated from field: trading.v1.DutchLimitV3PermitData dutch_limit_v3_permit_data = 17;
3249
3267
  */
3250
3268
  value: DutchLimitV3PermitData;
3251
3269
  case: "dutchLimitV3PermitData";
3252
3270
  } | {
3253
3271
  /**
3254
- * @generated from field: trading.v1.PriorityPermitData priority_permit_data = 17;
3272
+ * @generated from field: trading.v1.PriorityPermitData priority_permit_data = 18;
3255
3273
  */
3256
3274
  value: PriorityPermitData;
3257
3275
  case: "priorityPermitData";
@@ -3260,11 +3278,11 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
3260
3278
  value?: undefined;
3261
3279
  };
3262
3280
  /**
3263
- * @generated from field: optional trading.v1.TransactionRequest permit_transaction = 18;
3281
+ * @generated from field: optional trading.v1.TransactionRequest permit_transaction = 19;
3264
3282
  */
3265
3283
  permitTransaction?: TransactionRequest;
3266
3284
  /**
3267
- * @generated from field: optional string permit_gas_fee = 19;
3285
+ * @generated from field: optional string permit_gas_fee = 20;
3268
3286
  */
3269
3287
  permitGasFee?: string;
3270
3288
  constructor(data?: PartialMessage<QuoteResponse>);
@@ -4181,6 +4199,101 @@ export declare class SwapResponse extends Message<SwapResponse> {
4181
4199
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapResponse;
4182
4200
  static equals(a: SwapResponse | PlainMessage<SwapResponse> | undefined, b: SwapResponse | PlainMessage<SwapResponse> | undefined): boolean;
4183
4201
  }
4202
+ /**
4203
+ * @generated from message trading.v1.Swap7702Request
4204
+ */
4205
+ export declare class Swap7702Request extends Message<Swap7702Request> {
4206
+ /**
4207
+ * @generated from oneof trading.v1.Swap7702Request.quote
4208
+ */
4209
+ quote: {
4210
+ /**
4211
+ * @generated from field: trading.v1.ClassicQuote classic_quote = 1;
4212
+ */
4213
+ value: ClassicQuote;
4214
+ case: "classicQuote";
4215
+ } | {
4216
+ /**
4217
+ * @generated from field: trading.v1.WrapUnwrapQuote wrap_unwrap_quote = 2;
4218
+ */
4219
+ value: WrapUnwrapQuote;
4220
+ case: "wrapUnwrapQuote";
4221
+ } | {
4222
+ /**
4223
+ * @generated from field: trading.v1.BridgeQuote bridge_quote = 3;
4224
+ */
4225
+ value: BridgeQuote;
4226
+ case: "bridgeQuote";
4227
+ } | {
4228
+ case: undefined;
4229
+ value?: undefined;
4230
+ };
4231
+ /**
4232
+ * @generated from field: optional trading.v1.PermitSingleData permit_data = 4;
4233
+ */
4234
+ permitData?: PermitSingleData;
4235
+ /**
4236
+ * @generated from field: string smart_contract_delegation_address = 5;
4237
+ */
4238
+ smartContractDelegationAddress: string;
4239
+ /**
4240
+ * @generated from field: bool include_gas_info = 6;
4241
+ */
4242
+ includeGasInfo: boolean;
4243
+ /**
4244
+ * @generated from field: bool simulate_transaction = 7;
4245
+ */
4246
+ simulateTransaction: boolean;
4247
+ /**
4248
+ * @generated from field: int64 deadline = 8;
4249
+ */
4250
+ deadline: bigint;
4251
+ /**
4252
+ * @generated from field: optional trading.v1.Urgency urgency = 9;
4253
+ */
4254
+ urgency?: Urgency;
4255
+ /**
4256
+ * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 10;
4257
+ */
4258
+ gasStrategies: GasStrategy[];
4259
+ constructor(data?: PartialMessage<Swap7702Request>);
4260
+ static readonly runtime: typeof proto3;
4261
+ static readonly typeName = "trading.v1.Swap7702Request";
4262
+ static readonly fields: FieldList;
4263
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Swap7702Request;
4264
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Swap7702Request;
4265
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap7702Request;
4266
+ static equals(a: Swap7702Request | PlainMessage<Swap7702Request> | undefined, b: Swap7702Request | PlainMessage<Swap7702Request> | undefined): boolean;
4267
+ }
4268
+ /**
4269
+ * @generated from message trading.v1.Swap7702Response
4270
+ */
4271
+ export declare class Swap7702Response extends Message<Swap7702Response> {
4272
+ /**
4273
+ * @generated from field: string request_id = 1;
4274
+ */
4275
+ requestId: string;
4276
+ /**
4277
+ * @generated from field: trading.v1.TransactionRequest swap = 2;
4278
+ */
4279
+ swap?: TransactionRequest;
4280
+ /**
4281
+ * @generated from field: optional string gas_fee = 3;
4282
+ */
4283
+ gasFee?: string;
4284
+ /**
4285
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 4;
4286
+ */
4287
+ gasEstimates: GasEstimate[];
4288
+ constructor(data?: PartialMessage<Swap7702Response>);
4289
+ static readonly runtime: typeof proto3;
4290
+ static readonly typeName = "trading.v1.Swap7702Response";
4291
+ static readonly fields: FieldList;
4292
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Swap7702Response;
4293
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Swap7702Response;
4294
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap7702Response;
4295
+ static equals(a: Swap7702Response | PlainMessage<Swap7702Response> | undefined, b: Swap7702Response | PlainMessage<Swap7702Response> | undefined): boolean;
4296
+ }
4184
4297
  /**
4185
4298
  * @generated from message trading.v1.GetSwapsRequest
4186
4299
  */
@@ -5920,6 +6033,71 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
5920
6033
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PriorityQuote;
5921
6034
  static equals(a: PriorityQuote | PlainMessage<PriorityQuote> | undefined, b: PriorityQuote | PlainMessage<PriorityQuote> | undefined): boolean;
5922
6035
  }
6036
+ /**
6037
+ * @generated from message trading.v1.ChainedQuote
6038
+ */
6039
+ export declare class ChainedQuote extends Message<ChainedQuote> {
6040
+ /**
6041
+ * @generated from field: trading.v1.ChainId token_in_chain_id = 1;
6042
+ */
6043
+ tokenInChainId: ChainId;
6044
+ /**
6045
+ * @generated from field: trading.v1.ChainId token_out_chain_id = 2;
6046
+ */
6047
+ tokenOutChainId: ChainId;
6048
+ /**
6049
+ * @generated from field: string swapper = 3;
6050
+ */
6051
+ swapper: string;
6052
+ /**
6053
+ * @generated from field: trading.v1.ClassicInput input = 4;
6054
+ */
6055
+ input?: ClassicInput;
6056
+ /**
6057
+ * @generated from field: trading.v1.ClassicOutput output = 5;
6058
+ */
6059
+ output?: ClassicOutput;
6060
+ /**
6061
+ * @generated from field: trading.v1.TradeType trade_type = 6;
6062
+ */
6063
+ tradeType: TradeType;
6064
+ /**
6065
+ * @generated from field: string quote_id = 7;
6066
+ */
6067
+ quoteId: string;
6068
+ /**
6069
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 8;
6070
+ */
6071
+ gasEstimates: GasEstimate[];
6072
+ /**
6073
+ * @generated from field: optional string gas_use_estimate = 9;
6074
+ */
6075
+ gasUseEstimate?: string;
6076
+ /**
6077
+ * @generated from field: optional string gas_fee_usd = 10;
6078
+ */
6079
+ gasFeeUsd?: string;
6080
+ /**
6081
+ * @generated from field: optional string gas_fee_quote = 11;
6082
+ */
6083
+ gasFeeQuote?: string;
6084
+ /**
6085
+ * @generated from field: optional string gas_fee = 12;
6086
+ */
6087
+ gasFee?: string;
6088
+ /**
6089
+ * @generated from field: optional int32 time_estimate_ms = 13;
6090
+ */
6091
+ timeEstimateMs?: number;
6092
+ constructor(data?: PartialMessage<ChainedQuote>);
6093
+ static readonly runtime: typeof proto3;
6094
+ static readonly typeName = "trading.v1.ChainedQuote";
6095
+ static readonly fields: FieldList;
6096
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainedQuote;
6097
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainedQuote;
6098
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainedQuote;
6099
+ static equals(a: ChainedQuote | PlainMessage<ChainedQuote> | undefined, b: ChainedQuote | PlainMessage<ChainedQuote> | undefined): boolean;
6100
+ }
5923
6101
  /**
5924
6102
  * @generated from message trading.v1.PermitTransferFromData
5925
6103
  */
@@ -6589,3 +6767,347 @@ export declare class DelegationDetails extends Message<DelegationDetails> {
6589
6767
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DelegationDetails;
6590
6768
  static equals(a: DelegationDetails | PlainMessage<DelegationDetails> | undefined, b: DelegationDetails | PlainMessage<DelegationDetails> | undefined): boolean;
6591
6769
  }
6770
+ /**
6771
+ * @generated from message trading.v1.PlanStep
6772
+ */
6773
+ export declare class PlanStep extends Message<PlanStep> {
6774
+ /**
6775
+ * @generated from field: string step_id = 1;
6776
+ */
6777
+ stepId: string;
6778
+ /**
6779
+ * @generated from field: trading.v1.PlanStep.Method method = 2;
6780
+ */
6781
+ method: PlanStep_Method;
6782
+ /**
6783
+ * @generated from field: trading.v1.PlanStep.PayloadType payload_type = 3;
6784
+ */
6785
+ payloadType: PlanStep_PayloadType;
6786
+ /**
6787
+ * JSON serialized payload
6788
+ *
6789
+ * @generated from field: string payload = 4;
6790
+ */
6791
+ payload: string;
6792
+ /**
6793
+ * @generated from field: trading.v1.PlanStep.StepStatus status = 5;
6794
+ */
6795
+ status: PlanStep_StepStatus;
6796
+ /**
6797
+ * @generated from field: optional trading.v1.PlanStep.StepProof proof = 6;
6798
+ */
6799
+ proof?: PlanStep_StepProof;
6800
+ /**
6801
+ * @generated from field: optional string token_in = 7;
6802
+ */
6803
+ tokenIn?: string;
6804
+ /**
6805
+ * @generated from field: optional string token_out = 8;
6806
+ */
6807
+ tokenOut?: string;
6808
+ /**
6809
+ * @generated from field: optional int32 token_in_chain_id = 9;
6810
+ */
6811
+ tokenInChainId?: number;
6812
+ /**
6813
+ * @generated from field: optional int32 token_out_chain_id = 10;
6814
+ */
6815
+ tokenOutChainId?: number;
6816
+ /**
6817
+ * @generated from field: optional string token_in_amount = 11;
6818
+ */
6819
+ tokenInAmount?: string;
6820
+ /**
6821
+ * @generated from field: optional string token_out_amount = 12;
6822
+ */
6823
+ tokenOutAmount?: string;
6824
+ /**
6825
+ * @generated from field: optional string swapper = 13;
6826
+ */
6827
+ swapper?: string;
6828
+ /**
6829
+ * @generated from field: optional string recipient = 14;
6830
+ */
6831
+ recipient?: string;
6832
+ /**
6833
+ * @generated from field: optional trading.v1.SwapType step_swap_type = 15;
6834
+ */
6835
+ stepSwapType?: SwapType;
6836
+ /**
6837
+ * @generated from field: optional string gas_use_estimate = 16;
6838
+ */
6839
+ gasUseEstimate?: string;
6840
+ /**
6841
+ * @generated from field: optional string gas_fee_usd = 17;
6842
+ */
6843
+ gasFeeUsd?: string;
6844
+ /**
6845
+ * @generated from field: optional string gas_fee_quote = 18;
6846
+ */
6847
+ gasFeeQuote?: string;
6848
+ /**
6849
+ * @generated from field: optional string gas_price = 19;
6850
+ */
6851
+ gasPrice?: string;
6852
+ /**
6853
+ * @generated from field: optional string max_fee_per_gas = 20;
6854
+ */
6855
+ maxFeePerGas?: string;
6856
+ /**
6857
+ * @generated from field: optional string max_priority_fee_per_gas = 21;
6858
+ */
6859
+ maxPriorityFeePerGas?: string;
6860
+ /**
6861
+ * @generated from field: optional string gas_fee = 22;
6862
+ */
6863
+ gasFee?: string;
6864
+ /**
6865
+ * @generated from field: optional string routing_step_key = 23;
6866
+ */
6867
+ routingStepKey?: string;
6868
+ constructor(data?: PartialMessage<PlanStep>);
6869
+ static readonly runtime: typeof proto3;
6870
+ static readonly typeName = "trading.v1.PlanStep";
6871
+ static readonly fields: FieldList;
6872
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanStep;
6873
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanStep;
6874
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanStep;
6875
+ static equals(a: PlanStep | PlainMessage<PlanStep> | undefined, b: PlanStep | PlainMessage<PlanStep> | undefined): boolean;
6876
+ }
6877
+ /**
6878
+ * @generated from enum trading.v1.PlanStep.StepStatus
6879
+ */
6880
+ export declare enum PlanStep_StepStatus {
6881
+ /**
6882
+ * @generated from enum value: NOT_READY = 0;
6883
+ */
6884
+ NOT_READY = 0,
6885
+ /**
6886
+ * @generated from enum value: AWAITING_ACTION = 1;
6887
+ */
6888
+ AWAITING_ACTION = 1,
6889
+ /**
6890
+ * @generated from enum value: IN_PROGRESS = 2;
6891
+ */
6892
+ IN_PROGRESS = 2,
6893
+ /**
6894
+ * @generated from enum value: COMPLETE = 3;
6895
+ */
6896
+ COMPLETE = 3,
6897
+ /**
6898
+ * @generated from enum value: STEP_ERROR = 4;
6899
+ */
6900
+ STEP_ERROR = 4
6901
+ }
6902
+ /**
6903
+ * @generated from enum trading.v1.PlanStep.Method
6904
+ */
6905
+ export declare enum PlanStep_Method {
6906
+ /**
6907
+ * @generated from enum value: SEND_TX = 0;
6908
+ */
6909
+ SEND_TX = 0,
6910
+ /**
6911
+ * @generated from enum value: SIGN_MSG = 1;
6912
+ */
6913
+ SIGN_MSG = 1,
6914
+ /**
6915
+ * @generated from enum value: SEND_CALLS = 2;
6916
+ */
6917
+ SEND_CALLS = 2
6918
+ }
6919
+ /**
6920
+ * @generated from enum trading.v1.PlanStep.PayloadType
6921
+ */
6922
+ export declare enum PlanStep_PayloadType {
6923
+ /**
6924
+ * @generated from enum value: TX = 0;
6925
+ */
6926
+ TX = 0,
6927
+ /**
6928
+ * @generated from enum value: EIP_712 = 1;
6929
+ */
6930
+ EIP_712 = 1,
6931
+ /**
6932
+ * @generated from enum value: EIP_5792 = 2;
6933
+ */
6934
+ EIP_5792 = 2
6935
+ }
6936
+ /**
6937
+ * @generated from message trading.v1.PlanStep.StepProof
6938
+ */
6939
+ export declare class PlanStep_StepProof extends Message<PlanStep_StepProof> {
6940
+ /**
6941
+ * @generated from field: optional string tx_hash = 1;
6942
+ */
6943
+ txHash?: string;
6944
+ /**
6945
+ * @generated from field: optional string signature = 2;
6946
+ */
6947
+ signature?: string;
6948
+ /**
6949
+ * @generated from field: optional string order_id = 3;
6950
+ */
6951
+ orderId?: string;
6952
+ constructor(data?: PartialMessage<PlanStep_StepProof>);
6953
+ static readonly runtime: typeof proto3;
6954
+ static readonly typeName = "trading.v1.PlanStep.StepProof";
6955
+ static readonly fields: FieldList;
6956
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanStep_StepProof;
6957
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanStep_StepProof;
6958
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanStep_StepProof;
6959
+ static equals(a: PlanStep_StepProof | PlainMessage<PlanStep_StepProof> | undefined, b: PlanStep_StepProof | PlainMessage<PlanStep_StepProof> | undefined): boolean;
6960
+ }
6961
+ /**
6962
+ * @generated from message trading.v1.CreatePlanRequest
6963
+ */
6964
+ export declare class CreatePlanRequest extends Message<CreatePlanRequest> {
6965
+ /**
6966
+ * @generated from field: trading.v1.SwapType routing = 1;
6967
+ */
6968
+ routing: SwapType;
6969
+ /**
6970
+ * @generated from field: trading.v1.ChainedQuote quote = 2;
6971
+ */
6972
+ quote?: ChainedQuote;
6973
+ constructor(data?: PartialMessage<CreatePlanRequest>);
6974
+ static readonly runtime: typeof proto3;
6975
+ static readonly typeName = "trading.v1.CreatePlanRequest";
6976
+ static readonly fields: FieldList;
6977
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePlanRequest;
6978
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePlanRequest;
6979
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePlanRequest;
6980
+ static equals(a: CreatePlanRequest | PlainMessage<CreatePlanRequest> | undefined, b: CreatePlanRequest | PlainMessage<CreatePlanRequest> | undefined): boolean;
6981
+ }
6982
+ /**
6983
+ * @generated from message trading.v1.CreatePlanResponse
6984
+ */
6985
+ export declare class CreatePlanResponse extends Message<CreatePlanResponse> {
6986
+ /**
6987
+ * @generated from field: string request_id = 1;
6988
+ */
6989
+ requestId: string;
6990
+ /**
6991
+ * @generated from field: string plan_id = 2;
6992
+ */
6993
+ planId: string;
6994
+ /**
6995
+ * @generated from field: string swapper = 3;
6996
+ */
6997
+ swapper: string;
6998
+ /**
6999
+ * @generated from field: string recipient = 4;
7000
+ */
7001
+ recipient: string;
7002
+ /**
7003
+ * @generated from field: string quote_id = 5;
7004
+ */
7005
+ quoteId: string;
7006
+ /**
7007
+ * @generated from field: trading.v1.CreatePlanResponse.PlanStatus status = 6;
7008
+ */
7009
+ status: CreatePlanResponse_PlanStatus;
7010
+ /**
7011
+ * @generated from field: repeated trading.v1.PlanStep steps = 7;
7012
+ */
7013
+ steps: PlanStep[];
7014
+ /**
7015
+ * @generated from field: int32 current_step_index = 8;
7016
+ */
7017
+ currentStepIndex: number;
7018
+ /**
7019
+ * @generated from field: string expected_output = 9;
7020
+ */
7021
+ expectedOutput: string;
7022
+ /**
7023
+ * @generated from field: optional string gas_fee = 10;
7024
+ */
7025
+ gasFee?: string;
7026
+ /**
7027
+ * @generated from field: optional int32 time_estimate_ms = 11;
7028
+ */
7029
+ timeEstimateMs?: number;
7030
+ /**
7031
+ * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
7032
+ */
7033
+ gasStrategies: GasStrategy[];
7034
+ constructor(data?: PartialMessage<CreatePlanResponse>);
7035
+ static readonly runtime: typeof proto3;
7036
+ static readonly typeName = "trading.v1.CreatePlanResponse";
7037
+ static readonly fields: FieldList;
7038
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePlanResponse;
7039
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePlanResponse;
7040
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePlanResponse;
7041
+ static equals(a: CreatePlanResponse | PlainMessage<CreatePlanResponse> | undefined, b: CreatePlanResponse | PlainMessage<CreatePlanResponse> | undefined): boolean;
7042
+ }
7043
+ /**
7044
+ * @generated from enum trading.v1.CreatePlanResponse.PlanStatus
7045
+ */
7046
+ export declare enum CreatePlanResponse_PlanStatus {
7047
+ /**
7048
+ * @generated from enum value: ACTIVE = 0;
7049
+ */
7050
+ ACTIVE = 0,
7051
+ /**
7052
+ * @generated from enum value: IN_PROGRESS = 1;
7053
+ */
7054
+ IN_PROGRESS = 1,
7055
+ /**
7056
+ * @generated from enum value: COMPLETED = 2;
7057
+ */
7058
+ COMPLETED = 2,
7059
+ /**
7060
+ * @generated from enum value: FAILED = 3;
7061
+ */
7062
+ FAILED = 3
7063
+ }
7064
+ /**
7065
+ * @generated from message trading.v1.DocsRequest
7066
+ */
7067
+ export declare class DocsRequest extends Message<DocsRequest> {
7068
+ constructor(data?: PartialMessage<DocsRequest>);
7069
+ static readonly runtime: typeof proto3;
7070
+ static readonly typeName = "trading.v1.DocsRequest";
7071
+ static readonly fields: FieldList;
7072
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocsRequest;
7073
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocsRequest;
7074
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocsRequest;
7075
+ static equals(a: DocsRequest | PlainMessage<DocsRequest> | undefined, b: DocsRequest | PlainMessage<DocsRequest> | undefined): boolean;
7076
+ }
7077
+ /**
7078
+ * @generated from message trading.v1.DocsResponse
7079
+ */
7080
+ export declare class DocsResponse extends Message<DocsResponse> {
7081
+ /**
7082
+ * @generated from field: string openapi = 1;
7083
+ */
7084
+ openapi: string;
7085
+ /**
7086
+ * @generated from field: repeated google.protobuf.Struct servers = 2;
7087
+ */
7088
+ servers: Struct[];
7089
+ /**
7090
+ * @generated from field: google.protobuf.Struct info = 3;
7091
+ */
7092
+ info?: Struct;
7093
+ /**
7094
+ * @generated from field: google.protobuf.Struct paths = 4;
7095
+ */
7096
+ paths?: Struct;
7097
+ /**
7098
+ * @generated from field: google.protobuf.Struct components = 5;
7099
+ */
7100
+ components?: Struct;
7101
+ /**
7102
+ * @generated from field: repeated google.protobuf.Struct security = 6;
7103
+ */
7104
+ security: Struct[];
7105
+ constructor(data?: PartialMessage<DocsResponse>);
7106
+ static readonly runtime: typeof proto3;
7107
+ static readonly typeName = "trading.v1.DocsResponse";
7108
+ static readonly fields: FieldList;
7109
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DocsResponse;
7110
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DocsResponse;
7111
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocsResponse;
7112
+ static equals(a: DocsResponse | PlainMessage<DocsResponse> | undefined, b: DocsResponse | PlainMessage<DocsResponse> | undefined): boolean;
7113
+ }