@uniswap/client-trading 0.1.0 → 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.
- package/dist/trading/v1/api-tradingService_connectquery.d.ts +57 -1
- package/dist/trading/v1/api-tradingService_connectquery.js +57 -1
- package/dist/trading/v1/api_connect.d.ts +41 -1
- package/dist/trading/v1/api_connect.js +41 -1
- package/dist/trading/v1/api_pb.d.ts +613 -13
- package/dist/trading/v1/api_pb.js +636 -11
- package/package.json +1 -1
|
@@ -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
|
*/
|
|
@@ -496,6 +496,72 @@ export declare enum OrderType {
|
|
|
496
496
|
*/
|
|
497
497
|
OrderType_DUTCH_V3 = 4
|
|
498
498
|
}
|
|
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
|
+
}
|
|
499
565
|
/**
|
|
500
566
|
* @generated from message trading.v1.GetLPPriceDiscrepancyRequest
|
|
501
567
|
*/
|
|
@@ -710,6 +776,14 @@ export declare class Swap5792Response extends Message<Swap5792Response> {
|
|
|
710
776
|
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
|
|
711
777
|
*/
|
|
712
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;
|
|
713
787
|
constructor(data?: PartialMessage<Swap5792Response>);
|
|
714
788
|
static readonly runtime: typeof proto3;
|
|
715
789
|
static readonly typeName = "trading.v1.Swap5792Response";
|
|
@@ -850,13 +924,13 @@ export declare class PoolInformation extends Message<PoolInformation> {
|
|
|
850
924
|
*/
|
|
851
925
|
currentTick?: number;
|
|
852
926
|
/**
|
|
853
|
-
* @generated from field: optional string
|
|
927
|
+
* @generated from field: optional string token_0_reserves = 16;
|
|
854
928
|
*/
|
|
855
|
-
|
|
929
|
+
token0Reserves?: string;
|
|
856
930
|
/**
|
|
857
|
-
* @generated from field: optional string
|
|
931
|
+
* @generated from field: optional string token_1_reserves = 17;
|
|
858
932
|
*/
|
|
859
|
-
|
|
933
|
+
token1Reserves?: string;
|
|
860
934
|
constructor(data?: PartialMessage<PoolInformation>);
|
|
861
935
|
static readonly runtime: typeof proto3;
|
|
862
936
|
static readonly typeName = "trading.v1.PoolInformation";
|
|
@@ -2991,6 +3065,10 @@ export declare class GasStrategy extends Message<GasStrategy> {
|
|
|
2991
3065
|
* @generated from field: optional double threshold_to_inflate_last_block_base_fee = 9;
|
|
2992
3066
|
*/
|
|
2993
3067
|
thresholdToInflateLastBlockBaseFee?: number;
|
|
3068
|
+
/**
|
|
3069
|
+
* @generated from field: optional double display_limit_inflation_factor = 10;
|
|
3070
|
+
*/
|
|
3071
|
+
displayLimitInflationFactor?: number;
|
|
2994
3072
|
constructor(data?: PartialMessage<GasStrategy>);
|
|
2995
3073
|
static readonly runtime: typeof proto3;
|
|
2996
3074
|
static readonly typeName = "trading.v1.GasStrategy";
|
|
@@ -3146,6 +3224,12 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
|
|
|
3146
3224
|
*/
|
|
3147
3225
|
value: PriorityQuote;
|
|
3148
3226
|
case: "priorityQuote";
|
|
3227
|
+
} | {
|
|
3228
|
+
/**
|
|
3229
|
+
* @generated from field: trading.v1.ChainedQuote chained_quote = 12;
|
|
3230
|
+
*/
|
|
3231
|
+
value: ChainedQuote;
|
|
3232
|
+
case: "chainedQuote";
|
|
3149
3233
|
} | {
|
|
3150
3234
|
case: undefined;
|
|
3151
3235
|
value?: undefined;
|
|
@@ -3155,37 +3239,37 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
|
|
|
3155
3239
|
*/
|
|
3156
3240
|
permitData: {
|
|
3157
3241
|
/**
|
|
3158
|
-
* @generated from field: trading.v1.PermitSingleData permit_single_data =
|
|
3242
|
+
* @generated from field: trading.v1.PermitSingleData permit_single_data = 13;
|
|
3159
3243
|
*/
|
|
3160
3244
|
value: PermitSingleData;
|
|
3161
3245
|
case: "permitSingleData";
|
|
3162
3246
|
} | {
|
|
3163
3247
|
/**
|
|
3164
|
-
* @generated from field: trading.v1.PermitTransferFromData permit_transfer_from_data =
|
|
3248
|
+
* @generated from field: trading.v1.PermitTransferFromData permit_transfer_from_data = 14;
|
|
3165
3249
|
*/
|
|
3166
3250
|
value: PermitTransferFromData;
|
|
3167
3251
|
case: "permitTransferFromData";
|
|
3168
3252
|
} | {
|
|
3169
3253
|
/**
|
|
3170
|
-
* @generated from field: trading.v1.DutchLimitPermitData dutch_limit_permit_data =
|
|
3254
|
+
* @generated from field: trading.v1.DutchLimitPermitData dutch_limit_permit_data = 15;
|
|
3171
3255
|
*/
|
|
3172
3256
|
value: DutchLimitPermitData;
|
|
3173
3257
|
case: "dutchLimitPermitData";
|
|
3174
3258
|
} | {
|
|
3175
3259
|
/**
|
|
3176
|
-
* @generated from field: trading.v1.DutchLimitV2PermitData dutch_limit_v2_permit_data =
|
|
3260
|
+
* @generated from field: trading.v1.DutchLimitV2PermitData dutch_limit_v2_permit_data = 16;
|
|
3177
3261
|
*/
|
|
3178
3262
|
value: DutchLimitV2PermitData;
|
|
3179
3263
|
case: "dutchLimitV2PermitData";
|
|
3180
3264
|
} | {
|
|
3181
3265
|
/**
|
|
3182
|
-
* @generated from field: trading.v1.DutchLimitV3PermitData dutch_limit_v3_permit_data =
|
|
3266
|
+
* @generated from field: trading.v1.DutchLimitV3PermitData dutch_limit_v3_permit_data = 17;
|
|
3183
3267
|
*/
|
|
3184
3268
|
value: DutchLimitV3PermitData;
|
|
3185
3269
|
case: "dutchLimitV3PermitData";
|
|
3186
3270
|
} | {
|
|
3187
3271
|
/**
|
|
3188
|
-
* @generated from field: trading.v1.PriorityPermitData priority_permit_data =
|
|
3272
|
+
* @generated from field: trading.v1.PriorityPermitData priority_permit_data = 18;
|
|
3189
3273
|
*/
|
|
3190
3274
|
value: PriorityPermitData;
|
|
3191
3275
|
case: "priorityPermitData";
|
|
@@ -3194,11 +3278,11 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
|
|
|
3194
3278
|
value?: undefined;
|
|
3195
3279
|
};
|
|
3196
3280
|
/**
|
|
3197
|
-
* @generated from field: optional trading.v1.TransactionRequest permit_transaction =
|
|
3281
|
+
* @generated from field: optional trading.v1.TransactionRequest permit_transaction = 19;
|
|
3198
3282
|
*/
|
|
3199
3283
|
permitTransaction?: TransactionRequest;
|
|
3200
3284
|
/**
|
|
3201
|
-
* @generated from field: optional string permit_gas_fee =
|
|
3285
|
+
* @generated from field: optional string permit_gas_fee = 20;
|
|
3202
3286
|
*/
|
|
3203
3287
|
permitGasFee?: string;
|
|
3204
3288
|
constructor(data?: PartialMessage<QuoteResponse>);
|
|
@@ -4098,6 +4182,14 @@ export declare class SwapResponse extends Message<SwapResponse> {
|
|
|
4098
4182
|
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
|
|
4099
4183
|
*/
|
|
4100
4184
|
gasEstimates: GasEstimate[];
|
|
4185
|
+
/**
|
|
4186
|
+
* @generated from field: optional string signature = 6;
|
|
4187
|
+
*/
|
|
4188
|
+
signature?: string;
|
|
4189
|
+
/**
|
|
4190
|
+
* @generated from field: optional string public_key_id = 7;
|
|
4191
|
+
*/
|
|
4192
|
+
publicKeyId?: string;
|
|
4101
4193
|
constructor(data?: PartialMessage<SwapResponse>);
|
|
4102
4194
|
static readonly runtime: typeof proto3;
|
|
4103
4195
|
static readonly typeName = "trading.v1.SwapResponse";
|
|
@@ -4107,6 +4199,101 @@ export declare class SwapResponse extends Message<SwapResponse> {
|
|
|
4107
4199
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwapResponse;
|
|
4108
4200
|
static equals(a: SwapResponse | PlainMessage<SwapResponse> | undefined, b: SwapResponse | PlainMessage<SwapResponse> | undefined): boolean;
|
|
4109
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
|
+
}
|
|
4110
4297
|
/**
|
|
4111
4298
|
* @generated from message trading.v1.GetSwapsRequest
|
|
4112
4299
|
*/
|
|
@@ -5279,6 +5466,10 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
5279
5466
|
* @generated from field: optional string gas_fee_usd = 18;
|
|
5280
5467
|
*/
|
|
5281
5468
|
gasFeeUsd?: string;
|
|
5469
|
+
/**
|
|
5470
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
|
|
5471
|
+
*/
|
|
5472
|
+
gasEstimates: GasEstimate[];
|
|
5282
5473
|
constructor(data?: PartialMessage<BridgeQuote>);
|
|
5283
5474
|
static readonly runtime: typeof proto3;
|
|
5284
5475
|
static readonly typeName = "trading.v1.BridgeQuote";
|
|
@@ -5842,6 +6033,71 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
|
|
|
5842
6033
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PriorityQuote;
|
|
5843
6034
|
static equals(a: PriorityQuote | PlainMessage<PriorityQuote> | undefined, b: PriorityQuote | PlainMessage<PriorityQuote> | undefined): boolean;
|
|
5844
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
|
+
}
|
|
5845
6101
|
/**
|
|
5846
6102
|
* @generated from message trading.v1.PermitTransferFromData
|
|
5847
6103
|
*/
|
|
@@ -6511,3 +6767,347 @@ export declare class DelegationDetails extends Message<DelegationDetails> {
|
|
|
6511
6767
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DelegationDetails;
|
|
6512
6768
|
static equals(a: DelegationDetails | PlainMessage<DelegationDetails> | undefined, b: DelegationDetails | PlainMessage<DelegationDetails> | undefined): boolean;
|
|
6513
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
|
+
}
|