@centurion_project/client-liquidity 0.3.0-ctn.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.d.ts +142 -0
- package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.js +146 -0
- package/dist/uniswap/liquidity/v1/api_connect.d.ts +110 -0
- package/dist/uniswap/liquidity/v1/api_connect.js +114 -0
- package/dist/uniswap/liquidity/v1/api_pb.d.ts +833 -0
- package/dist/uniswap/liquidity/v1/api_pb.js +827 -0
- package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.d.ts +86 -0
- package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.js +90 -0
- package/dist/uniswap/liquidity/v1/auction_connect.d.ts +70 -0
- package/dist/uniswap/liquidity/v1/auction_connect.js +74 -0
- package/dist/uniswap/liquidity/v1/auction_pb.d.ts +337 -0
- package/dist/uniswap/liquidity/v1/auction_pb.js +468 -0
- package/dist/uniswap/liquidity/v1/types_pb.d.ts +1963 -0
- package/dist/uniswap/liquidity/v1/types_pb.js +2223 -0
- package/dist/uniswap/liquidity/v1/x_verification-XVerificationService_connectquery.d.ts +34 -0
- package/dist/uniswap/liquidity/v1/x_verification-XVerificationService_connectquery.js +38 -0
- package/dist/uniswap/liquidity/v1/x_verification_connect.d.ts +34 -0
- package/dist/uniswap/liquidity/v1/x_verification_connect.js +38 -0
- package/dist/uniswap/liquidity/v1/x_verification_pb.d.ts +96 -0
- package/dist/uniswap/liquidity/v1/x_verification_pb.js +154 -0
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.d.ts +100 -0
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.js +104 -0
- package/dist/uniswap/liquidity/v2/api_connect.d.ts +80 -0
- package/dist/uniswap/liquidity/v2/api_connect.js +84 -0
- package/dist/uniswap/liquidity/v2/api_pb.d.ts +660 -0
- package/dist/uniswap/liquidity/v2/api_pb.js +637 -0
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +266 -0
- package/dist/uniswap/liquidity/v2/types_pb.js +407 -0
- package/package.json +11 -0
|
@@ -0,0 +1,827 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/liquidity/v1/api.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { ChainId, Distributor, NFTPermitData, OnChainStatus, PermitBatchData, PoolInformation, PoolParameters, PoolReferenceByProtocol, Protocols, TransactionRequest, V2CheckApprovalLPRequest, V2ClaimLPFeesRequest, V2CreateLPPosition, V2DecreaseLPPosition, V2IncreaseLPPosition, V3CheckApprovalLPRequest, V3ClaimLPFeesRequest, V3CreateLPPosition, V3DecreaseLPPosition, V3IncreaseLPPosition, V3Position, V4CheckApprovalLPRequest, V4ClaimLPFeesRequest, V4CreateLPPosition, V4DecreaseLPPosition, V4IncreaseLPPosition, V4Position } from "./types_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* REQUESTS & RESPONSES
|
|
9
|
+
*
|
|
10
|
+
* @generated from message uniswap.liquidity.v1.MigrateV2ToV3LPPositionRequest
|
|
11
|
+
*/
|
|
12
|
+
export class MigrateV2ToV3LPPositionRequest extends Message {
|
|
13
|
+
constructor(data) {
|
|
14
|
+
super();
|
|
15
|
+
/**
|
|
16
|
+
* @generated from field: string wallet_address = 1;
|
|
17
|
+
*/
|
|
18
|
+
this.walletAddress = "";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
21
|
+
*/
|
|
22
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
23
|
+
proto3.util.initPartial(data, this);
|
|
24
|
+
}
|
|
25
|
+
static fromBinary(bytes, options) {
|
|
26
|
+
return new MigrateV2ToV3LPPositionRequest().fromBinary(bytes, options);
|
|
27
|
+
}
|
|
28
|
+
static fromJson(jsonValue, options) {
|
|
29
|
+
return new MigrateV2ToV3LPPositionRequest().fromJson(jsonValue, options);
|
|
30
|
+
}
|
|
31
|
+
static fromJsonString(jsonString, options) {
|
|
32
|
+
return new MigrateV2ToV3LPPositionRequest().fromJsonString(jsonString, options);
|
|
33
|
+
}
|
|
34
|
+
static equals(a, b) {
|
|
35
|
+
return proto3.util.equals(MigrateV2ToV3LPPositionRequest, a, b);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
MigrateV2ToV3LPPositionRequest.runtime = proto3;
|
|
39
|
+
MigrateV2ToV3LPPositionRequest.typeName = "uniswap.liquidity.v1.MigrateV2ToV3LPPositionRequest";
|
|
40
|
+
MigrateV2ToV3LPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
41
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
42
|
+
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
43
|
+
{ no: 3, name: "v3_params", kind: "message", T: V3Position },
|
|
44
|
+
{ no: 4, name: "slippage_bps", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
45
|
+
{ no: 5, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
46
|
+
{ no: 6, name: "refund_as_eth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
47
|
+
{ no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
48
|
+
]);
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message uniswap.liquidity.v1.MigrateV2ToV3LPPositionResponse
|
|
51
|
+
*/
|
|
52
|
+
export class MigrateV2ToV3LPPositionResponse extends Message {
|
|
53
|
+
constructor(data) {
|
|
54
|
+
super();
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: string request_id = 1;
|
|
57
|
+
*/
|
|
58
|
+
this.requestId = "";
|
|
59
|
+
proto3.util.initPartial(data, this);
|
|
60
|
+
}
|
|
61
|
+
static fromBinary(bytes, options) {
|
|
62
|
+
return new MigrateV2ToV3LPPositionResponse().fromBinary(bytes, options);
|
|
63
|
+
}
|
|
64
|
+
static fromJson(jsonValue, options) {
|
|
65
|
+
return new MigrateV2ToV3LPPositionResponse().fromJson(jsonValue, options);
|
|
66
|
+
}
|
|
67
|
+
static fromJsonString(jsonString, options) {
|
|
68
|
+
return new MigrateV2ToV3LPPositionResponse().fromJsonString(jsonString, options);
|
|
69
|
+
}
|
|
70
|
+
static equals(a, b) {
|
|
71
|
+
return proto3.util.equals(MigrateV2ToV3LPPositionResponse, a, b);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
MigrateV2ToV3LPPositionResponse.runtime = proto3;
|
|
75
|
+
MigrateV2ToV3LPPositionResponse.typeName = "uniswap.liquidity.v1.MigrateV2ToV3LPPositionResponse";
|
|
76
|
+
MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
77
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
78
|
+
{ no: 2, name: "migrate", kind: "message", T: TransactionRequest },
|
|
79
|
+
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
80
|
+
{ no: 4, name: "estimated_refund_token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
81
|
+
{ no: 5, name: "estimated_refund_token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
82
|
+
]);
|
|
83
|
+
/**
|
|
84
|
+
* @generated from message uniswap.liquidity.v1.MigrateV3ToV4LPPositionRequest
|
|
85
|
+
*/
|
|
86
|
+
export class MigrateV3ToV4LPPositionRequest extends Message {
|
|
87
|
+
constructor(data) {
|
|
88
|
+
super();
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: int32 tokenId = 1;
|
|
91
|
+
*/
|
|
92
|
+
this.tokenId = 0;
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: string wallet_address = 2;
|
|
95
|
+
*/
|
|
96
|
+
this.walletAddress = "";
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
99
|
+
*/
|
|
100
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: string input_position_liquidity = 5;
|
|
103
|
+
*/
|
|
104
|
+
this.inputPositionLiquidity = "";
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: string amount0 = 7;
|
|
107
|
+
*/
|
|
108
|
+
this.amount0 = "";
|
|
109
|
+
/**
|
|
110
|
+
* @generated from field: string amount1 = 8;
|
|
111
|
+
*/
|
|
112
|
+
this.amount1 = "";
|
|
113
|
+
/**
|
|
114
|
+
* @generated from field: string expectedTokenOwed0RawAmount = 11;
|
|
115
|
+
*/
|
|
116
|
+
this.expectedTokenOwed0RawAmount = "";
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: string expectedTokenOwed1RawAmount = 12;
|
|
119
|
+
*/
|
|
120
|
+
this.expectedTokenOwed1RawAmount = "";
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: bool simulate_transaction = 13;
|
|
123
|
+
*/
|
|
124
|
+
this.simulateTransaction = false;
|
|
125
|
+
proto3.util.initPartial(data, this);
|
|
126
|
+
}
|
|
127
|
+
static fromBinary(bytes, options) {
|
|
128
|
+
return new MigrateV3ToV4LPPositionRequest().fromBinary(bytes, options);
|
|
129
|
+
}
|
|
130
|
+
static fromJson(jsonValue, options) {
|
|
131
|
+
return new MigrateV3ToV4LPPositionRequest().fromJson(jsonValue, options);
|
|
132
|
+
}
|
|
133
|
+
static fromJsonString(jsonString, options) {
|
|
134
|
+
return new MigrateV3ToV4LPPositionRequest().fromJsonString(jsonString, options);
|
|
135
|
+
}
|
|
136
|
+
static equals(a, b) {
|
|
137
|
+
return proto3.util.equals(MigrateV3ToV4LPPositionRequest, a, b);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
MigrateV3ToV4LPPositionRequest.runtime = proto3;
|
|
141
|
+
MigrateV3ToV4LPPositionRequest.typeName = "uniswap.liquidity.v1.MigrateV3ToV4LPPositionRequest";
|
|
142
|
+
MigrateV3ToV4LPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
143
|
+
{ no: 1, name: "tokenId", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
144
|
+
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
145
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
146
|
+
{ no: 4, name: "input_position", kind: "message", T: V3Position },
|
|
147
|
+
{ no: 5, name: "input_position_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
148
|
+
{ no: 6, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
149
|
+
{ no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
150
|
+
{ no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
151
|
+
{ no: 9, name: "output_position", kind: "message", T: V4Position },
|
|
152
|
+
{ no: 10, name: "initial_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
153
|
+
{ no: 11, name: "expectedTokenOwed0RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
154
|
+
{ no: 12, name: "expectedTokenOwed1RawAmount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
155
|
+
{ no: 13, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
156
|
+
{ no: 14, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
157
|
+
{ no: 15, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
158
|
+
{ no: 16, name: "signature_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
159
|
+
]);
|
|
160
|
+
/**
|
|
161
|
+
* @generated from message uniswap.liquidity.v1.MigrateV3ToV4LPPositionResponse
|
|
162
|
+
*/
|
|
163
|
+
export class MigrateV3ToV4LPPositionResponse extends Message {
|
|
164
|
+
constructor(data) {
|
|
165
|
+
super();
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: string request_id = 1;
|
|
168
|
+
*/
|
|
169
|
+
this.requestId = "";
|
|
170
|
+
proto3.util.initPartial(data, this);
|
|
171
|
+
}
|
|
172
|
+
static fromBinary(bytes, options) {
|
|
173
|
+
return new MigrateV3ToV4LPPositionResponse().fromBinary(bytes, options);
|
|
174
|
+
}
|
|
175
|
+
static fromJson(jsonValue, options) {
|
|
176
|
+
return new MigrateV3ToV4LPPositionResponse().fromJson(jsonValue, options);
|
|
177
|
+
}
|
|
178
|
+
static fromJsonString(jsonString, options) {
|
|
179
|
+
return new MigrateV3ToV4LPPositionResponse().fromJsonString(jsonString, options);
|
|
180
|
+
}
|
|
181
|
+
static equals(a, b) {
|
|
182
|
+
return proto3.util.equals(MigrateV3ToV4LPPositionResponse, a, b);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
MigrateV3ToV4LPPositionResponse.runtime = proto3;
|
|
186
|
+
MigrateV3ToV4LPPositionResponse.typeName = "uniswap.liquidity.v1.MigrateV3ToV4LPPositionResponse";
|
|
187
|
+
MigrateV3ToV4LPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
188
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
189
|
+
{ no: 2, name: "migrate", kind: "message", T: TransactionRequest },
|
|
190
|
+
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
191
|
+
{ no: 4, name: "estimated_refund_token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
192
|
+
{ no: 5, name: "estimated_refund_token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
193
|
+
]);
|
|
194
|
+
/**
|
|
195
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPRewardsRequest
|
|
196
|
+
*/
|
|
197
|
+
export class ClaimLPRewardsRequest extends Message {
|
|
198
|
+
constructor(data) {
|
|
199
|
+
super();
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: string wallet_address = 1;
|
|
202
|
+
*/
|
|
203
|
+
this.walletAddress = "";
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
206
|
+
*/
|
|
207
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: repeated string tokens = 3;
|
|
210
|
+
*/
|
|
211
|
+
this.tokens = [];
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: uniswap.liquidity.v1.Distributor distributor = 4;
|
|
214
|
+
*/
|
|
215
|
+
this.distributor = Distributor.MERKLE;
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: bool simulate_transaction = 5;
|
|
218
|
+
*/
|
|
219
|
+
this.simulateTransaction = false;
|
|
220
|
+
proto3.util.initPartial(data, this);
|
|
221
|
+
}
|
|
222
|
+
static fromBinary(bytes, options) {
|
|
223
|
+
return new ClaimLPRewardsRequest().fromBinary(bytes, options);
|
|
224
|
+
}
|
|
225
|
+
static fromJson(jsonValue, options) {
|
|
226
|
+
return new ClaimLPRewardsRequest().fromJson(jsonValue, options);
|
|
227
|
+
}
|
|
228
|
+
static fromJsonString(jsonString, options) {
|
|
229
|
+
return new ClaimLPRewardsRequest().fromJsonString(jsonString, options);
|
|
230
|
+
}
|
|
231
|
+
static equals(a, b) {
|
|
232
|
+
return proto3.util.equals(ClaimLPRewardsRequest, a, b);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
ClaimLPRewardsRequest.runtime = proto3;
|
|
236
|
+
ClaimLPRewardsRequest.typeName = "uniswap.liquidity.v1.ClaimLPRewardsRequest";
|
|
237
|
+
ClaimLPRewardsRequest.fields = proto3.util.newFieldList(() => [
|
|
238
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
239
|
+
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
240
|
+
{ no: 3, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
241
|
+
{ no: 4, name: "distributor", kind: "enum", T: proto3.getEnumType(Distributor) },
|
|
242
|
+
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
243
|
+
]);
|
|
244
|
+
/**
|
|
245
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPRewardsResponse
|
|
246
|
+
*/
|
|
247
|
+
export class ClaimLPRewardsResponse extends Message {
|
|
248
|
+
constructor(data) {
|
|
249
|
+
super();
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: string request_id = 1;
|
|
252
|
+
*/
|
|
253
|
+
this.requestId = "";
|
|
254
|
+
proto3.util.initPartial(data, this);
|
|
255
|
+
}
|
|
256
|
+
static fromBinary(bytes, options) {
|
|
257
|
+
return new ClaimLPRewardsResponse().fromBinary(bytes, options);
|
|
258
|
+
}
|
|
259
|
+
static fromJson(jsonValue, options) {
|
|
260
|
+
return new ClaimLPRewardsResponse().fromJson(jsonValue, options);
|
|
261
|
+
}
|
|
262
|
+
static fromJsonString(jsonString, options) {
|
|
263
|
+
return new ClaimLPRewardsResponse().fromJsonString(jsonString, options);
|
|
264
|
+
}
|
|
265
|
+
static equals(a, b) {
|
|
266
|
+
return proto3.util.equals(ClaimLPRewardsResponse, a, b);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
ClaimLPRewardsResponse.runtime = proto3;
|
|
270
|
+
ClaimLPRewardsResponse.typeName = "uniswap.liquidity.v1.ClaimLPRewardsResponse";
|
|
271
|
+
ClaimLPRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
272
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
273
|
+
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
274
|
+
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
275
|
+
]);
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message uniswap.liquidity.v1.CreateLPPositionRequest
|
|
278
|
+
*/
|
|
279
|
+
export class CreateLPPositionRequest extends Message {
|
|
280
|
+
constructor(data) {
|
|
281
|
+
super();
|
|
282
|
+
/**
|
|
283
|
+
* @generated from oneof uniswap.liquidity.v1.CreateLPPositionRequest.createLpPosition
|
|
284
|
+
*/
|
|
285
|
+
this.createLpPosition = { case: undefined };
|
|
286
|
+
proto3.util.initPartial(data, this);
|
|
287
|
+
}
|
|
288
|
+
static fromBinary(bytes, options) {
|
|
289
|
+
return new CreateLPPositionRequest().fromBinary(bytes, options);
|
|
290
|
+
}
|
|
291
|
+
static fromJson(jsonValue, options) {
|
|
292
|
+
return new CreateLPPositionRequest().fromJson(jsonValue, options);
|
|
293
|
+
}
|
|
294
|
+
static fromJsonString(jsonString, options) {
|
|
295
|
+
return new CreateLPPositionRequest().fromJsonString(jsonString, options);
|
|
296
|
+
}
|
|
297
|
+
static equals(a, b) {
|
|
298
|
+
return proto3.util.equals(CreateLPPositionRequest, a, b);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
CreateLPPositionRequest.runtime = proto3;
|
|
302
|
+
CreateLPPositionRequest.typeName = "uniswap.liquidity.v1.CreateLPPositionRequest";
|
|
303
|
+
CreateLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
304
|
+
{ no: 1, name: "v2_create_lp_position", kind: "message", T: V2CreateLPPosition, oneof: "createLpPosition" },
|
|
305
|
+
{ no: 2, name: "v3_create_lp_position", kind: "message", T: V3CreateLPPosition, oneof: "createLpPosition" },
|
|
306
|
+
{ no: 3, name: "v4_create_lp_position", kind: "message", T: V4CreateLPPosition, oneof: "createLpPosition" },
|
|
307
|
+
]);
|
|
308
|
+
/**
|
|
309
|
+
* @generated from message uniswap.liquidity.v1.CreateLPPositionResponse
|
|
310
|
+
*/
|
|
311
|
+
export class CreateLPPositionResponse extends Message {
|
|
312
|
+
constructor(data) {
|
|
313
|
+
super();
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: string request_id = 1;
|
|
316
|
+
*/
|
|
317
|
+
this.requestId = "";
|
|
318
|
+
proto3.util.initPartial(data, this);
|
|
319
|
+
}
|
|
320
|
+
static fromBinary(bytes, options) {
|
|
321
|
+
return new CreateLPPositionResponse().fromBinary(bytes, options);
|
|
322
|
+
}
|
|
323
|
+
static fromJson(jsonValue, options) {
|
|
324
|
+
return new CreateLPPositionResponse().fromJson(jsonValue, options);
|
|
325
|
+
}
|
|
326
|
+
static fromJsonString(jsonString, options) {
|
|
327
|
+
return new CreateLPPositionResponse().fromJsonString(jsonString, options);
|
|
328
|
+
}
|
|
329
|
+
static equals(a, b) {
|
|
330
|
+
return proto3.util.equals(CreateLPPositionResponse, a, b);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
CreateLPPositionResponse.runtime = proto3;
|
|
334
|
+
CreateLPPositionResponse.typeName = "uniswap.liquidity.v1.CreateLPPositionResponse";
|
|
335
|
+
CreateLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
336
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
337
|
+
{ no: 2, name: "create", kind: "message", T: TransactionRequest, opt: true },
|
|
338
|
+
{ no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
339
|
+
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
340
|
+
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
341
|
+
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
342
|
+
{ no: 7, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
343
|
+
{ no: 8, name: "slippage", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
344
|
+
]);
|
|
345
|
+
/**
|
|
346
|
+
* @generated from message uniswap.liquidity.v1.PoolInfoRequest
|
|
347
|
+
*/
|
|
348
|
+
export class PoolInfoRequest extends Message {
|
|
349
|
+
constructor(data) {
|
|
350
|
+
super();
|
|
351
|
+
/**
|
|
352
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
353
|
+
*/
|
|
354
|
+
this.protocol = Protocols.V2;
|
|
355
|
+
/**
|
|
356
|
+
* @generated from field: repeated uniswap.liquidity.v1.PoolReferenceByProtocol pool_references = 2;
|
|
357
|
+
*/
|
|
358
|
+
this.poolReferences = [];
|
|
359
|
+
proto3.util.initPartial(data, this);
|
|
360
|
+
}
|
|
361
|
+
static fromBinary(bytes, options) {
|
|
362
|
+
return new PoolInfoRequest().fromBinary(bytes, options);
|
|
363
|
+
}
|
|
364
|
+
static fromJson(jsonValue, options) {
|
|
365
|
+
return new PoolInfoRequest().fromJson(jsonValue, options);
|
|
366
|
+
}
|
|
367
|
+
static fromJsonString(jsonString, options) {
|
|
368
|
+
return new PoolInfoRequest().fromJsonString(jsonString, options);
|
|
369
|
+
}
|
|
370
|
+
static equals(a, b) {
|
|
371
|
+
return proto3.util.equals(PoolInfoRequest, a, b);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
PoolInfoRequest.runtime = proto3;
|
|
375
|
+
PoolInfoRequest.typeName = "uniswap.liquidity.v1.PoolInfoRequest";
|
|
376
|
+
PoolInfoRequest.fields = proto3.util.newFieldList(() => [
|
|
377
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
378
|
+
{ no: 2, name: "pool_references", kind: "message", T: PoolReferenceByProtocol, repeated: true },
|
|
379
|
+
{ no: 3, name: "pool_parameters", kind: "message", T: PoolParameters, opt: true },
|
|
380
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
|
|
381
|
+
{ no: 5, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
382
|
+
{ no: 6, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
383
|
+
]);
|
|
384
|
+
/**
|
|
385
|
+
* @generated from message uniswap.liquidity.v1.PoolInfoResponse
|
|
386
|
+
*/
|
|
387
|
+
export class PoolInfoResponse extends Message {
|
|
388
|
+
constructor(data) {
|
|
389
|
+
super();
|
|
390
|
+
/**
|
|
391
|
+
* @generated from field: string request_id = 1;
|
|
392
|
+
*/
|
|
393
|
+
this.requestId = "";
|
|
394
|
+
/**
|
|
395
|
+
* @generated from field: repeated uniswap.liquidity.v1.PoolInformation pools = 2;
|
|
396
|
+
*/
|
|
397
|
+
this.pools = [];
|
|
398
|
+
/**
|
|
399
|
+
* @generated from field: int32 current_page = 3;
|
|
400
|
+
*/
|
|
401
|
+
this.currentPage = 0;
|
|
402
|
+
/**
|
|
403
|
+
* @generated from field: int32 page_size = 4;
|
|
404
|
+
*/
|
|
405
|
+
this.pageSize = 0;
|
|
406
|
+
proto3.util.initPartial(data, this);
|
|
407
|
+
}
|
|
408
|
+
static fromBinary(bytes, options) {
|
|
409
|
+
return new PoolInfoResponse().fromBinary(bytes, options);
|
|
410
|
+
}
|
|
411
|
+
static fromJson(jsonValue, options) {
|
|
412
|
+
return new PoolInfoResponse().fromJson(jsonValue, options);
|
|
413
|
+
}
|
|
414
|
+
static fromJsonString(jsonString, options) {
|
|
415
|
+
return new PoolInfoResponse().fromJsonString(jsonString, options);
|
|
416
|
+
}
|
|
417
|
+
static equals(a, b) {
|
|
418
|
+
return proto3.util.equals(PoolInfoResponse, a, b);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
PoolInfoResponse.runtime = proto3;
|
|
422
|
+
PoolInfoResponse.typeName = "uniswap.liquidity.v1.PoolInfoResponse";
|
|
423
|
+
PoolInfoResponse.fields = proto3.util.newFieldList(() => [
|
|
424
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
425
|
+
{ no: 2, name: "pools", kind: "message", T: PoolInformation, repeated: true },
|
|
426
|
+
{ no: 3, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
427
|
+
{ no: 4, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
428
|
+
]);
|
|
429
|
+
/**
|
|
430
|
+
* @generated from message uniswap.liquidity.v1.IncreaseLPPositionRequest
|
|
431
|
+
*/
|
|
432
|
+
export class IncreaseLPPositionRequest extends Message {
|
|
433
|
+
constructor(data) {
|
|
434
|
+
super();
|
|
435
|
+
/**
|
|
436
|
+
* @generated from oneof uniswap.liquidity.v1.IncreaseLPPositionRequest.increaseLpPosition
|
|
437
|
+
*/
|
|
438
|
+
this.increaseLpPosition = { case: undefined };
|
|
439
|
+
proto3.util.initPartial(data, this);
|
|
440
|
+
}
|
|
441
|
+
static fromBinary(bytes, options) {
|
|
442
|
+
return new IncreaseLPPositionRequest().fromBinary(bytes, options);
|
|
443
|
+
}
|
|
444
|
+
static fromJson(jsonValue, options) {
|
|
445
|
+
return new IncreaseLPPositionRequest().fromJson(jsonValue, options);
|
|
446
|
+
}
|
|
447
|
+
static fromJsonString(jsonString, options) {
|
|
448
|
+
return new IncreaseLPPositionRequest().fromJsonString(jsonString, options);
|
|
449
|
+
}
|
|
450
|
+
static equals(a, b) {
|
|
451
|
+
return proto3.util.equals(IncreaseLPPositionRequest, a, b);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
IncreaseLPPositionRequest.runtime = proto3;
|
|
455
|
+
IncreaseLPPositionRequest.typeName = "uniswap.liquidity.v1.IncreaseLPPositionRequest";
|
|
456
|
+
IncreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
457
|
+
{ no: 1, name: "v2_increase_lp_position", kind: "message", T: V2IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
458
|
+
{ no: 2, name: "v3_increase_lp_position", kind: "message", T: V3IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
459
|
+
{ no: 3, name: "v4_increase_lp_position", kind: "message", T: V4IncreaseLPPosition, oneof: "increaseLpPosition" },
|
|
460
|
+
]);
|
|
461
|
+
/**
|
|
462
|
+
* @generated from message uniswap.liquidity.v1.IncreaseLPPositionResponse
|
|
463
|
+
*/
|
|
464
|
+
export class IncreaseLPPositionResponse extends Message {
|
|
465
|
+
constructor(data) {
|
|
466
|
+
super();
|
|
467
|
+
/**
|
|
468
|
+
* @generated from field: string request_id = 1;
|
|
469
|
+
*/
|
|
470
|
+
this.requestId = "";
|
|
471
|
+
proto3.util.initPartial(data, this);
|
|
472
|
+
}
|
|
473
|
+
static fromBinary(bytes, options) {
|
|
474
|
+
return new IncreaseLPPositionResponse().fromBinary(bytes, options);
|
|
475
|
+
}
|
|
476
|
+
static fromJson(jsonValue, options) {
|
|
477
|
+
return new IncreaseLPPositionResponse().fromJson(jsonValue, options);
|
|
478
|
+
}
|
|
479
|
+
static fromJsonString(jsonString, options) {
|
|
480
|
+
return new IncreaseLPPositionResponse().fromJsonString(jsonString, options);
|
|
481
|
+
}
|
|
482
|
+
static equals(a, b) {
|
|
483
|
+
return proto3.util.equals(IncreaseLPPositionResponse, a, b);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
IncreaseLPPositionResponse.runtime = proto3;
|
|
487
|
+
IncreaseLPPositionResponse.typeName = "uniswap.liquidity.v1.IncreaseLPPositionResponse";
|
|
488
|
+
IncreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
489
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
490
|
+
{ no: 2, name: "increase", kind: "message", T: TransactionRequest, opt: true },
|
|
491
|
+
{ no: 3, name: "dependent_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
492
|
+
{ no: 4, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
493
|
+
{ no: 5, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
494
|
+
{ no: 6, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
495
|
+
{ no: 7, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
496
|
+
]);
|
|
497
|
+
/**
|
|
498
|
+
* @generated from message uniswap.liquidity.v1.DecreaseLPPositionRequest
|
|
499
|
+
*/
|
|
500
|
+
export class DecreaseLPPositionRequest extends Message {
|
|
501
|
+
constructor(data) {
|
|
502
|
+
super();
|
|
503
|
+
/**
|
|
504
|
+
* @generated from oneof uniswap.liquidity.v1.DecreaseLPPositionRequest.decreaseLpPosition
|
|
505
|
+
*/
|
|
506
|
+
this.decreaseLpPosition = { case: undefined };
|
|
507
|
+
proto3.util.initPartial(data, this);
|
|
508
|
+
}
|
|
509
|
+
static fromBinary(bytes, options) {
|
|
510
|
+
return new DecreaseLPPositionRequest().fromBinary(bytes, options);
|
|
511
|
+
}
|
|
512
|
+
static fromJson(jsonValue, options) {
|
|
513
|
+
return new DecreaseLPPositionRequest().fromJson(jsonValue, options);
|
|
514
|
+
}
|
|
515
|
+
static fromJsonString(jsonString, options) {
|
|
516
|
+
return new DecreaseLPPositionRequest().fromJsonString(jsonString, options);
|
|
517
|
+
}
|
|
518
|
+
static equals(a, b) {
|
|
519
|
+
return proto3.util.equals(DecreaseLPPositionRequest, a, b);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
DecreaseLPPositionRequest.runtime = proto3;
|
|
523
|
+
DecreaseLPPositionRequest.typeName = "uniswap.liquidity.v1.DecreaseLPPositionRequest";
|
|
524
|
+
DecreaseLPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
525
|
+
{ no: 1, name: "v2_decrease_lp_position", kind: "message", T: V2DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
526
|
+
{ no: 2, name: "v3_decrease_lp_position", kind: "message", T: V3DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
527
|
+
{ no: 3, name: "v4_decrease_lp_position", kind: "message", T: V4DecreaseLPPosition, oneof: "decreaseLpPosition" },
|
|
528
|
+
]);
|
|
529
|
+
/**
|
|
530
|
+
* @generated from message uniswap.liquidity.v1.DecreaseLPPositionResponse
|
|
531
|
+
*/
|
|
532
|
+
export class DecreaseLPPositionResponse extends Message {
|
|
533
|
+
constructor(data) {
|
|
534
|
+
super();
|
|
535
|
+
/**
|
|
536
|
+
* @generated from field: string request_id = 1;
|
|
537
|
+
*/
|
|
538
|
+
this.requestId = "";
|
|
539
|
+
proto3.util.initPartial(data, this);
|
|
540
|
+
}
|
|
541
|
+
static fromBinary(bytes, options) {
|
|
542
|
+
return new DecreaseLPPositionResponse().fromBinary(bytes, options);
|
|
543
|
+
}
|
|
544
|
+
static fromJson(jsonValue, options) {
|
|
545
|
+
return new DecreaseLPPositionResponse().fromJson(jsonValue, options);
|
|
546
|
+
}
|
|
547
|
+
static fromJsonString(jsonString, options) {
|
|
548
|
+
return new DecreaseLPPositionResponse().fromJsonString(jsonString, options);
|
|
549
|
+
}
|
|
550
|
+
static equals(a, b) {
|
|
551
|
+
return proto3.util.equals(DecreaseLPPositionResponse, a, b);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
DecreaseLPPositionResponse.runtime = proto3;
|
|
555
|
+
DecreaseLPPositionResponse.typeName = "uniswap.liquidity.v1.DecreaseLPPositionResponse";
|
|
556
|
+
DecreaseLPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
557
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
558
|
+
{ no: 2, name: "decrease", kind: "message", T: TransactionRequest, opt: true },
|
|
559
|
+
{ no: 3, name: "pool_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
560
|
+
{ no: 4, name: "current_tick", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
|
|
561
|
+
{ no: 5, name: "sqrtRatioX96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
562
|
+
{ no: 6, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
563
|
+
]);
|
|
564
|
+
/**
|
|
565
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPFeesRequest
|
|
566
|
+
*/
|
|
567
|
+
export class ClaimLPFeesRequest extends Message {
|
|
568
|
+
constructor(data) {
|
|
569
|
+
super();
|
|
570
|
+
/**
|
|
571
|
+
* @generated from oneof uniswap.liquidity.v1.ClaimLPFeesRequest.claimLPFeesRequest
|
|
572
|
+
*/
|
|
573
|
+
this.claimLPFeesRequest = { case: undefined };
|
|
574
|
+
proto3.util.initPartial(data, this);
|
|
575
|
+
}
|
|
576
|
+
static fromBinary(bytes, options) {
|
|
577
|
+
return new ClaimLPFeesRequest().fromBinary(bytes, options);
|
|
578
|
+
}
|
|
579
|
+
static fromJson(jsonValue, options) {
|
|
580
|
+
return new ClaimLPFeesRequest().fromJson(jsonValue, options);
|
|
581
|
+
}
|
|
582
|
+
static fromJsonString(jsonString, options) {
|
|
583
|
+
return new ClaimLPFeesRequest().fromJsonString(jsonString, options);
|
|
584
|
+
}
|
|
585
|
+
static equals(a, b) {
|
|
586
|
+
return proto3.util.equals(ClaimLPFeesRequest, a, b);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
ClaimLPFeesRequest.runtime = proto3;
|
|
590
|
+
ClaimLPFeesRequest.typeName = "uniswap.liquidity.v1.ClaimLPFeesRequest";
|
|
591
|
+
ClaimLPFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
592
|
+
{ no: 1, name: "v2_claim_lp_fees_request", kind: "message", T: V2ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
593
|
+
{ no: 2, name: "v3_claim_lp_fees_request", kind: "message", T: V3ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
594
|
+
{ no: 3, name: "v4_claim_lp_fees_request", kind: "message", T: V4ClaimLPFeesRequest, oneof: "claimLPFeesRequest" },
|
|
595
|
+
]);
|
|
596
|
+
/**
|
|
597
|
+
* @generated from message uniswap.liquidity.v1.ClaimLPFeesResponse
|
|
598
|
+
*/
|
|
599
|
+
export class ClaimLPFeesResponse extends Message {
|
|
600
|
+
constructor(data) {
|
|
601
|
+
super();
|
|
602
|
+
/**
|
|
603
|
+
* @generated from field: string request_id = 1;
|
|
604
|
+
*/
|
|
605
|
+
this.requestId = "";
|
|
606
|
+
proto3.util.initPartial(data, this);
|
|
607
|
+
}
|
|
608
|
+
static fromBinary(bytes, options) {
|
|
609
|
+
return new ClaimLPFeesResponse().fromBinary(bytes, options);
|
|
610
|
+
}
|
|
611
|
+
static fromJson(jsonValue, options) {
|
|
612
|
+
return new ClaimLPFeesResponse().fromJson(jsonValue, options);
|
|
613
|
+
}
|
|
614
|
+
static fromJsonString(jsonString, options) {
|
|
615
|
+
return new ClaimLPFeesResponse().fromJsonString(jsonString, options);
|
|
616
|
+
}
|
|
617
|
+
static equals(a, b) {
|
|
618
|
+
return proto3.util.equals(ClaimLPFeesResponse, a, b);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
ClaimLPFeesResponse.runtime = proto3;
|
|
622
|
+
ClaimLPFeesResponse.typeName = "uniswap.liquidity.v1.ClaimLPFeesResponse";
|
|
623
|
+
ClaimLPFeesResponse.fields = proto3.util.newFieldList(() => [
|
|
624
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
625
|
+
{ no: 2, name: "claim", kind: "message", T: TransactionRequest, opt: true },
|
|
626
|
+
{ no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
627
|
+
]);
|
|
628
|
+
/**
|
|
629
|
+
* @generated from message uniswap.liquidity.v1.CheckApprovalLPRequest
|
|
630
|
+
*/
|
|
631
|
+
export class CheckApprovalLPRequest extends Message {
|
|
632
|
+
constructor(data) {
|
|
633
|
+
super();
|
|
634
|
+
/**
|
|
635
|
+
* @generated from oneof uniswap.liquidity.v1.CheckApprovalLPRequest.checkApprovalLPRequest
|
|
636
|
+
*/
|
|
637
|
+
this.checkApprovalLPRequest = { case: undefined };
|
|
638
|
+
proto3.util.initPartial(data, this);
|
|
639
|
+
}
|
|
640
|
+
static fromBinary(bytes, options) {
|
|
641
|
+
return new CheckApprovalLPRequest().fromBinary(bytes, options);
|
|
642
|
+
}
|
|
643
|
+
static fromJson(jsonValue, options) {
|
|
644
|
+
return new CheckApprovalLPRequest().fromJson(jsonValue, options);
|
|
645
|
+
}
|
|
646
|
+
static fromJsonString(jsonString, options) {
|
|
647
|
+
return new CheckApprovalLPRequest().fromJsonString(jsonString, options);
|
|
648
|
+
}
|
|
649
|
+
static equals(a, b) {
|
|
650
|
+
return proto3.util.equals(CheckApprovalLPRequest, a, b);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
CheckApprovalLPRequest.runtime = proto3;
|
|
654
|
+
CheckApprovalLPRequest.typeName = "uniswap.liquidity.v1.CheckApprovalLPRequest";
|
|
655
|
+
CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
|
|
656
|
+
{ no: 1, name: "v2_check_approval_lp_request", kind: "message", T: V2CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
657
|
+
{ no: 2, name: "v3_check_approval_lp_request", kind: "message", T: V3CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
658
|
+
{ no: 3, name: "v4_check_approval_lp_request", kind: "message", T: V4CheckApprovalLPRequest, oneof: "checkApprovalLPRequest" },
|
|
659
|
+
]);
|
|
660
|
+
/**
|
|
661
|
+
* @generated from message uniswap.liquidity.v1.CheckApprovalLPResponse
|
|
662
|
+
*/
|
|
663
|
+
export class CheckApprovalLPResponse extends Message {
|
|
664
|
+
constructor(data) {
|
|
665
|
+
super();
|
|
666
|
+
/**
|
|
667
|
+
* @generated from field: string request_id = 1;
|
|
668
|
+
*/
|
|
669
|
+
this.requestId = "";
|
|
670
|
+
/**
|
|
671
|
+
* @generated from oneof uniswap.liquidity.v1.CheckApprovalLPResponse.permitData
|
|
672
|
+
*/
|
|
673
|
+
this.permitData = { case: undefined };
|
|
674
|
+
proto3.util.initPartial(data, this);
|
|
675
|
+
}
|
|
676
|
+
static fromBinary(bytes, options) {
|
|
677
|
+
return new CheckApprovalLPResponse().fromBinary(bytes, options);
|
|
678
|
+
}
|
|
679
|
+
static fromJson(jsonValue, options) {
|
|
680
|
+
return new CheckApprovalLPResponse().fromJson(jsonValue, options);
|
|
681
|
+
}
|
|
682
|
+
static fromJsonString(jsonString, options) {
|
|
683
|
+
return new CheckApprovalLPResponse().fromJsonString(jsonString, options);
|
|
684
|
+
}
|
|
685
|
+
static equals(a, b) {
|
|
686
|
+
return proto3.util.equals(CheckApprovalLPResponse, a, b);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
CheckApprovalLPResponse.runtime = proto3;
|
|
690
|
+
CheckApprovalLPResponse.typeName = "uniswap.liquidity.v1.CheckApprovalLPResponse";
|
|
691
|
+
CheckApprovalLPResponse.fields = proto3.util.newFieldList(() => [
|
|
692
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
693
|
+
{ no: 2, name: "token_0_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
694
|
+
{ no: 3, name: "token_1_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
695
|
+
{ no: 4, name: "token_0_Cancel", kind: "message", T: TransactionRequest, opt: true },
|
|
696
|
+
{ no: 5, name: "token_1_Cancel", kind: "message", T: TransactionRequest, opt: true },
|
|
697
|
+
{ no: 6, name: "position_token_approval", kind: "message", T: TransactionRequest, opt: true },
|
|
698
|
+
{ no: 7, name: "permit_batch_data", kind: "message", T: PermitBatchData, oneof: "permitData" },
|
|
699
|
+
{ no: 8, name: "nft_permit_data", kind: "message", T: NFTPermitData, oneof: "permitData" },
|
|
700
|
+
{ no: 9, name: "token_0_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
701
|
+
{ no: 10, name: "token_1_permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
702
|
+
{ no: 11, name: "gas_fee_token_0_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
703
|
+
{ no: 12, name: "gas_fee_token_1_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
704
|
+
{ no: 13, name: "gas_fee_position_token_approval", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
705
|
+
{ no: 14, name: "gas_fee_token_0_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
706
|
+
{ no: 15, name: "gas_fee_token_1_cancel", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
707
|
+
{ no: 16, name: "gas_fee_token_0_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
708
|
+
{ no: 17, name: "gas_fee_token_1_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
709
|
+
]);
|
|
710
|
+
/**
|
|
711
|
+
* @generated from message uniswap.liquidity.v1.GetLPPriceDiscrepancyRequest
|
|
712
|
+
*/
|
|
713
|
+
export class GetLPPriceDiscrepancyRequest extends Message {
|
|
714
|
+
constructor(data) {
|
|
715
|
+
super();
|
|
716
|
+
/**
|
|
717
|
+
* @generated from field: string txn_hash = 1;
|
|
718
|
+
*/
|
|
719
|
+
this.txnHash = "";
|
|
720
|
+
/**
|
|
721
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
722
|
+
*/
|
|
723
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
724
|
+
/**
|
|
725
|
+
* @generated from field: string token0 = 3;
|
|
726
|
+
*/
|
|
727
|
+
this.token0 = "";
|
|
728
|
+
/**
|
|
729
|
+
* @generated from field: string token1 = 4;
|
|
730
|
+
*/
|
|
731
|
+
this.token1 = "";
|
|
732
|
+
/**
|
|
733
|
+
* @generated from field: string sqrt_ratio_x96 = 8;
|
|
734
|
+
*/
|
|
735
|
+
this.sqrtRatioX96 = "";
|
|
736
|
+
/**
|
|
737
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 9;
|
|
738
|
+
*/
|
|
739
|
+
this.protocol = Protocols.V2;
|
|
740
|
+
proto3.util.initPartial(data, this);
|
|
741
|
+
}
|
|
742
|
+
static fromBinary(bytes, options) {
|
|
743
|
+
return new GetLPPriceDiscrepancyRequest().fromBinary(bytes, options);
|
|
744
|
+
}
|
|
745
|
+
static fromJson(jsonValue, options) {
|
|
746
|
+
return new GetLPPriceDiscrepancyRequest().fromJson(jsonValue, options);
|
|
747
|
+
}
|
|
748
|
+
static fromJsonString(jsonString, options) {
|
|
749
|
+
return new GetLPPriceDiscrepancyRequest().fromJsonString(jsonString, options);
|
|
750
|
+
}
|
|
751
|
+
static equals(a, b) {
|
|
752
|
+
return proto3.util.equals(GetLPPriceDiscrepancyRequest, a, b);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
GetLPPriceDiscrepancyRequest.runtime = proto3;
|
|
756
|
+
GetLPPriceDiscrepancyRequest.typeName = "uniswap.liquidity.v1.GetLPPriceDiscrepancyRequest";
|
|
757
|
+
GetLPPriceDiscrepancyRequest.fields = proto3.util.newFieldList(() => [
|
|
758
|
+
{ no: 1, name: "txn_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
759
|
+
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
760
|
+
{ no: 3, name: "token0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
761
|
+
{ no: 4, name: "token1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
762
|
+
{ no: 5, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
763
|
+
{ no: 6, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
764
|
+
{ no: 7, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
765
|
+
{ no: 8, name: "sqrt_ratio_x96", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
766
|
+
{ no: 9, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
767
|
+
]);
|
|
768
|
+
/**
|
|
769
|
+
* @generated from message uniswap.liquidity.v1.GetLPPriceDiscrepancyResponse
|
|
770
|
+
*/
|
|
771
|
+
export class GetLPPriceDiscrepancyResponse extends Message {
|
|
772
|
+
constructor(data) {
|
|
773
|
+
super();
|
|
774
|
+
/**
|
|
775
|
+
* @generated from field: string request_id = 1;
|
|
776
|
+
*/
|
|
777
|
+
this.requestId = "";
|
|
778
|
+
/**
|
|
779
|
+
* @generated from field: string percent_price_difference = 2;
|
|
780
|
+
*/
|
|
781
|
+
this.percentPriceDifference = "";
|
|
782
|
+
/**
|
|
783
|
+
* @generated from field: uniswap.liquidity.v1.OnChainStatus status = 3;
|
|
784
|
+
*/
|
|
785
|
+
this.status = OnChainStatus.ON_CHAIN_STATUS_UNSPECIFIED;
|
|
786
|
+
/**
|
|
787
|
+
* @generated from field: string sqrt_ratio_x96_before = 4;
|
|
788
|
+
*/
|
|
789
|
+
this.sqrtRatioX96Before = "";
|
|
790
|
+
/**
|
|
791
|
+
* @generated from field: string sqrt_ratio_x96_after = 5;
|
|
792
|
+
*/
|
|
793
|
+
this.sqrtRatioX96After = "";
|
|
794
|
+
/**
|
|
795
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 6;
|
|
796
|
+
*/
|
|
797
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
798
|
+
/**
|
|
799
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 7;
|
|
800
|
+
*/
|
|
801
|
+
this.protocol = Protocols.V2;
|
|
802
|
+
proto3.util.initPartial(data, this);
|
|
803
|
+
}
|
|
804
|
+
static fromBinary(bytes, options) {
|
|
805
|
+
return new GetLPPriceDiscrepancyResponse().fromBinary(bytes, options);
|
|
806
|
+
}
|
|
807
|
+
static fromJson(jsonValue, options) {
|
|
808
|
+
return new GetLPPriceDiscrepancyResponse().fromJson(jsonValue, options);
|
|
809
|
+
}
|
|
810
|
+
static fromJsonString(jsonString, options) {
|
|
811
|
+
return new GetLPPriceDiscrepancyResponse().fromJsonString(jsonString, options);
|
|
812
|
+
}
|
|
813
|
+
static equals(a, b) {
|
|
814
|
+
return proto3.util.equals(GetLPPriceDiscrepancyResponse, a, b);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
GetLPPriceDiscrepancyResponse.runtime = proto3;
|
|
818
|
+
GetLPPriceDiscrepancyResponse.typeName = "uniswap.liquidity.v1.GetLPPriceDiscrepancyResponse";
|
|
819
|
+
GetLPPriceDiscrepancyResponse.fields = proto3.util.newFieldList(() => [
|
|
820
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
821
|
+
{ no: 2, name: "percent_price_difference", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
822
|
+
{ no: 3, name: "status", kind: "enum", T: proto3.getEnumType(OnChainStatus) },
|
|
823
|
+
{ no: 4, name: "sqrt_ratio_x96_before", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
824
|
+
{ no: 5, name: "sqrt_ratio_x96_after", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
825
|
+
{ no: 6, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
826
|
+
{ no: 7, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
827
|
+
]);
|