@uniswap/client-trading 0.1.2 → 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.
- package/dist/trading/v1/api-tradingService_connectquery.d.ts +41 -27
- package/dist/trading/v1/api-tradingService_connectquery.js +42 -28
- package/dist/trading/v1/api_connect.d.ts +31 -21
- package/dist/trading/v1/api_connect.js +32 -22
- package/dist/trading/v1/api_pb.d.ts +411 -150
- package/dist/trading/v1/api_pb.js +513 -195
- package/package.json +1 -1
|
@@ -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
|
*/
|
|
@@ -1072,64 +1066,6 @@ export declare class SendResponse extends Message<SendResponse> {
|
|
|
1072
1066
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendResponse;
|
|
1073
1067
|
static equals(a: SendResponse | PlainMessage<SendResponse> | undefined, b: SendResponse | PlainMessage<SendResponse> | undefined): boolean;
|
|
1074
1068
|
}
|
|
1075
|
-
/**
|
|
1076
|
-
* @generated from message trading.v1.ClaimLPRewardsRequest
|
|
1077
|
-
*/
|
|
1078
|
-
export declare class ClaimLPRewardsRequest extends Message<ClaimLPRewardsRequest> {
|
|
1079
|
-
/**
|
|
1080
|
-
* @generated from field: string wallet_address = 1;
|
|
1081
|
-
*/
|
|
1082
|
-
walletAddress: string;
|
|
1083
|
-
/**
|
|
1084
|
-
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
1085
|
-
*/
|
|
1086
|
-
chainId: ChainId;
|
|
1087
|
-
/**
|
|
1088
|
-
* @generated from field: repeated string tokens = 3;
|
|
1089
|
-
*/
|
|
1090
|
-
tokens: string[];
|
|
1091
|
-
/**
|
|
1092
|
-
* @generated from field: trading.v1.Distributor distributor = 4;
|
|
1093
|
-
*/
|
|
1094
|
-
distributor: Distributor;
|
|
1095
|
-
/**
|
|
1096
|
-
* @generated from field: bool simulate_transaction = 5;
|
|
1097
|
-
*/
|
|
1098
|
-
simulateTransaction: boolean;
|
|
1099
|
-
constructor(data?: PartialMessage<ClaimLPRewardsRequest>);
|
|
1100
|
-
static readonly runtime: typeof proto3;
|
|
1101
|
-
static readonly typeName = "trading.v1.ClaimLPRewardsRequest";
|
|
1102
|
-
static readonly fields: FieldList;
|
|
1103
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimLPRewardsRequest;
|
|
1104
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimLPRewardsRequest;
|
|
1105
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimLPRewardsRequest;
|
|
1106
|
-
static equals(a: ClaimLPRewardsRequest | PlainMessage<ClaimLPRewardsRequest> | undefined, b: ClaimLPRewardsRequest | PlainMessage<ClaimLPRewardsRequest> | undefined): boolean;
|
|
1107
|
-
}
|
|
1108
|
-
/**
|
|
1109
|
-
* @generated from message trading.v1.ClaimLPRewardsResponse
|
|
1110
|
-
*/
|
|
1111
|
-
export declare class ClaimLPRewardsResponse extends Message<ClaimLPRewardsResponse> {
|
|
1112
|
-
/**
|
|
1113
|
-
* @generated from field: string request_id = 1;
|
|
1114
|
-
*/
|
|
1115
|
-
requestId: string;
|
|
1116
|
-
/**
|
|
1117
|
-
* @generated from field: optional trading.v1.TransactionRequest claim = 2;
|
|
1118
|
-
*/
|
|
1119
|
-
claim?: TransactionRequest;
|
|
1120
|
-
/**
|
|
1121
|
-
* @generated from field: optional string gas_fee = 3;
|
|
1122
|
-
*/
|
|
1123
|
-
gasFee?: string;
|
|
1124
|
-
constructor(data?: PartialMessage<ClaimLPRewardsResponse>);
|
|
1125
|
-
static readonly runtime: typeof proto3;
|
|
1126
|
-
static readonly typeName = "trading.v1.ClaimLPRewardsResponse";
|
|
1127
|
-
static readonly fields: FieldList;
|
|
1128
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimLPRewardsResponse;
|
|
1129
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimLPRewardsResponse;
|
|
1130
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimLPRewardsResponse;
|
|
1131
|
-
static equals(a: ClaimLPRewardsResponse | PlainMessage<ClaimLPRewardsResponse> | undefined, b: ClaimLPRewardsResponse | PlainMessage<ClaimLPRewardsResponse> | undefined): boolean;
|
|
1132
|
-
}
|
|
1133
1069
|
/**
|
|
1134
1070
|
* @generated from message trading.v1.CheckApprovalLPRequest
|
|
1135
1071
|
*/
|
|
@@ -2916,6 +2852,18 @@ export declare class SwappableTokensRequest extends Message<SwappableTokensReque
|
|
|
2916
2852
|
* @generated from field: trading.v1.ChainId token_in_chain_id = 2;
|
|
2917
2853
|
*/
|
|
2918
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[];
|
|
2919
2867
|
constructor(data?: PartialMessage<SwappableTokensRequest>);
|
|
2920
2868
|
static readonly runtime: typeof proto3;
|
|
2921
2869
|
static readonly typeName = "trading.v1.SwappableTokensRequest";
|
|
@@ -5898,6 +5846,10 @@ export declare class CheckApprovalResponse extends Message<CheckApprovalResponse
|
|
|
5898
5846
|
* @generated from field: optional string cancel_gas_fee = 5;
|
|
5899
5847
|
*/
|
|
5900
5848
|
cancelGasFee?: string;
|
|
5849
|
+
/**
|
|
5850
|
+
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 6;
|
|
5851
|
+
*/
|
|
5852
|
+
gasEstimates: GasEstimate[];
|
|
5901
5853
|
constructor(data?: PartialMessage<CheckApprovalResponse>);
|
|
5902
5854
|
static readonly runtime: typeof proto3;
|
|
5903
5855
|
static readonly typeName = "trading.v1.CheckApprovalResponse";
|
|
@@ -6033,6 +5985,39 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
|
|
|
6033
5985
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PriorityQuote;
|
|
6034
5986
|
static equals(a: PriorityQuote | PlainMessage<PriorityQuote> | undefined, b: PriorityQuote | PlainMessage<PriorityQuote> | undefined): boolean;
|
|
6035
5987
|
}
|
|
5988
|
+
/**
|
|
5989
|
+
* @generated from message trading.v1.TruncatedPlanStep
|
|
5990
|
+
*/
|
|
5991
|
+
export declare class TruncatedPlanStep extends Message<TruncatedPlanStep> {
|
|
5992
|
+
/**
|
|
5993
|
+
* @generated from field: trading.v1.PlanStepType step_type = 1;
|
|
5994
|
+
*/
|
|
5995
|
+
stepType: PlanStepType;
|
|
5996
|
+
/**
|
|
5997
|
+
* @generated from field: optional string token_in = 2;
|
|
5998
|
+
*/
|
|
5999
|
+
tokenIn?: string;
|
|
6000
|
+
/**
|
|
6001
|
+
* @generated from field: optional int32 token_in_chain_id = 3;
|
|
6002
|
+
*/
|
|
6003
|
+
tokenInChainId?: number;
|
|
6004
|
+
/**
|
|
6005
|
+
* @generated from field: optional string token_out = 4;
|
|
6006
|
+
*/
|
|
6007
|
+
tokenOut?: string;
|
|
6008
|
+
/**
|
|
6009
|
+
* @generated from field: optional int32 token_out_chain_id = 5;
|
|
6010
|
+
*/
|
|
6011
|
+
tokenOutChainId?: number;
|
|
6012
|
+
constructor(data?: PartialMessage<TruncatedPlanStep>);
|
|
6013
|
+
static readonly runtime: typeof proto3;
|
|
6014
|
+
static readonly typeName = "trading.v1.TruncatedPlanStep";
|
|
6015
|
+
static readonly fields: FieldList;
|
|
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;
|
|
6020
|
+
}
|
|
6036
6021
|
/**
|
|
6037
6022
|
* @generated from message trading.v1.ChainedQuote
|
|
6038
6023
|
*/
|
|
@@ -6089,6 +6074,18 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
|
|
|
6089
6074
|
* @generated from field: optional int32 time_estimate_ms = 13;
|
|
6090
6075
|
*/
|
|
6091
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[];
|
|
6092
6089
|
constructor(data?: PartialMessage<ChainedQuote>);
|
|
6093
6090
|
static readonly runtime: typeof proto3;
|
|
6094
6091
|
static readonly typeName = "trading.v1.ChainedQuote";
|
|
@@ -6772,9 +6769,9 @@ export declare class DelegationDetails extends Message<DelegationDetails> {
|
|
|
6772
6769
|
*/
|
|
6773
6770
|
export declare class PlanStep extends Message<PlanStep> {
|
|
6774
6771
|
/**
|
|
6775
|
-
* @generated from field: string
|
|
6772
|
+
* @generated from field: string step_index = 1;
|
|
6776
6773
|
*/
|
|
6777
|
-
|
|
6774
|
+
stepIndex: string;
|
|
6778
6775
|
/**
|
|
6779
6776
|
* @generated from field: trading.v1.PlanStep.Method method = 2;
|
|
6780
6777
|
*/
|
|
@@ -6830,9 +6827,9 @@ export declare class PlanStep extends Message<PlanStep> {
|
|
|
6830
6827
|
*/
|
|
6831
6828
|
recipient?: string;
|
|
6832
6829
|
/**
|
|
6833
|
-
* @generated from field:
|
|
6830
|
+
* @generated from field: trading.v1.PlanStepType step_type = 15;
|
|
6834
6831
|
*/
|
|
6835
|
-
|
|
6832
|
+
stepType: PlanStepType;
|
|
6836
6833
|
/**
|
|
6837
6834
|
* @generated from field: optional string gas_use_estimate = 16;
|
|
6838
6835
|
*/
|
|
@@ -6970,6 +6967,10 @@ export declare class CreatePlanRequest extends Message<CreatePlanRequest> {
|
|
|
6970
6967
|
* @generated from field: trading.v1.ChainedQuote quote = 2;
|
|
6971
6968
|
*/
|
|
6972
6969
|
quote?: ChainedQuote;
|
|
6970
|
+
/**
|
|
6971
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 3;
|
|
6972
|
+
*/
|
|
6973
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
6973
6974
|
constructor(data?: PartialMessage<CreatePlanRequest>);
|
|
6974
6975
|
static readonly runtime: typeof proto3;
|
|
6975
6976
|
static readonly typeName = "trading.v1.CreatePlanRequest";
|
|
@@ -6980,9 +6981,30 @@ export declare class CreatePlanRequest extends Message<CreatePlanRequest> {
|
|
|
6980
6981
|
static equals(a: CreatePlanRequest | PlainMessage<CreatePlanRequest> | undefined, b: CreatePlanRequest | PlainMessage<CreatePlanRequest> | undefined): boolean;
|
|
6981
6982
|
}
|
|
6982
6983
|
/**
|
|
6983
|
-
* @generated from message trading.v1.
|
|
6984
|
+
* @generated from message trading.v1.GetPlanRequest
|
|
6984
6985
|
*/
|
|
6985
|
-
export declare class
|
|
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> {
|
|
6986
7008
|
/**
|
|
6987
7009
|
* @generated from field: string request_id = 1;
|
|
6988
7010
|
*/
|
|
@@ -7004,9 +7026,9 @@ export declare class CreatePlanResponse extends Message<CreatePlanResponse> {
|
|
|
7004
7026
|
*/
|
|
7005
7027
|
quoteId: string;
|
|
7006
7028
|
/**
|
|
7007
|
-
* @generated from field: trading.v1.
|
|
7029
|
+
* @generated from field: trading.v1.PlanResponse.PlanStatus status = 6;
|
|
7008
7030
|
*/
|
|
7009
|
-
status:
|
|
7031
|
+
status: PlanResponse_PlanStatus;
|
|
7010
7032
|
/**
|
|
7011
7033
|
* @generated from field: repeated trading.v1.PlanStep steps = 7;
|
|
7012
7034
|
*/
|
|
@@ -7031,19 +7053,35 @@ export declare class CreatePlanResponse extends Message<CreatePlanResponse> {
|
|
|
7031
7053
|
* @generated from field: repeated trading.v1.GasStrategy gas_strategies = 12;
|
|
7032
7054
|
*/
|
|
7033
7055
|
gasStrategies: GasStrategy[];
|
|
7034
|
-
|
|
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>);
|
|
7035
7073
|
static readonly runtime: typeof proto3;
|
|
7036
|
-
static readonly typeName = "trading.v1.
|
|
7074
|
+
static readonly typeName = "trading.v1.PlanResponse";
|
|
7037
7075
|
static readonly fields: FieldList;
|
|
7038
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
7039
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
7040
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
7041
|
-
static equals(a:
|
|
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;
|
|
7042
7080
|
}
|
|
7043
7081
|
/**
|
|
7044
|
-
* @generated from enum trading.v1.
|
|
7082
|
+
* @generated from enum trading.v1.PlanResponse.PlanStatus
|
|
7045
7083
|
*/
|
|
7046
|
-
export declare enum
|
|
7084
|
+
export declare enum PlanResponse_PlanStatus {
|
|
7047
7085
|
/**
|
|
7048
7086
|
* @generated from enum value: ACTIVE = 0;
|
|
7049
7087
|
*/
|
|
@@ -7111,3 +7149,226 @@ export declare class DocsResponse extends Message<DocsResponse> {
|
|
|
7111
7149
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DocsResponse;
|
|
7112
7150
|
static equals(a: DocsResponse | PlainMessage<DocsResponse> | undefined, b: DocsResponse | PlainMessage<DocsResponse> | undefined): boolean;
|
|
7113
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
|
+
}
|