@uniswap/client-liquidity 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
2
+ import { ClaimTokensRequest, ClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.liquidity.v1.AuctionService.SubmitBid
5
5
  */
@@ -28,3 +28,17 @@ export declare const exitBidPosition: {
28
28
  readonly typeName: "uniswap.liquidity.v1.AuctionService";
29
29
  };
30
30
  };
31
+ /**
32
+ * @generated from rpc uniswap.liquidity.v1.AuctionService.ClaimTokens
33
+ */
34
+ export declare const claimTokens: {
35
+ readonly localName: "claimTokens";
36
+ readonly name: "ClaimTokens";
37
+ readonly kind: MethodKind.Unary;
38
+ readonly I: typeof ClaimTokensRequest;
39
+ readonly O: typeof ClaimTokensResponse;
40
+ readonly idempotency: MethodIdempotency.NoSideEffects;
41
+ readonly service: {
42
+ readonly typeName: "uniswap.liquidity.v1.AuctionService";
43
+ };
44
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
6
+ import { ClaimTokensRequest, ClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.liquidity.v1.AuctionService.SubmitBid
9
9
  */
@@ -32,3 +32,17 @@ export const exitBidPosition = {
32
32
  typeName: "uniswap.liquidity.v1.AuctionService"
33
33
  }
34
34
  };
35
+ /**
36
+ * @generated from rpc uniswap.liquidity.v1.AuctionService.ClaimTokens
37
+ */
38
+ export const claimTokens = {
39
+ localName: "claimTokens",
40
+ name: "ClaimTokens",
41
+ kind: MethodKind.Unary,
42
+ I: ClaimTokensRequest,
43
+ O: ClaimTokensResponse,
44
+ idempotency: MethodIdempotency.NoSideEffects,
45
+ service: {
46
+ typeName: "uniswap.liquidity.v1.AuctionService"
47
+ }
48
+ };
@@ -1,4 +1,4 @@
1
- import { ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
1
+ import { ClaimTokensRequest, ClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
2
2
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.liquidity.v1.AuctionService
@@ -26,5 +26,15 @@ export declare const AuctionService: {
26
26
  readonly kind: MethodKind.Unary;
27
27
  readonly idempotency: MethodIdempotency.NoSideEffects;
28
28
  };
29
+ /**
30
+ * @generated from rpc uniswap.liquidity.v1.AuctionService.ClaimTokens
31
+ */
32
+ readonly claimTokens: {
33
+ readonly name: "ClaimTokens";
34
+ readonly I: typeof ClaimTokensRequest;
35
+ readonly O: typeof ClaimTokensResponse;
36
+ readonly kind: MethodKind.Unary;
37
+ readonly idempotency: MethodIdempotency.NoSideEffects;
38
+ };
29
39
  };
30
40
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
5
+ import { ClaimTokensRequest, ClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse } from "./auction_pb.js";
6
6
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.liquidity.v1.AuctionService
@@ -30,5 +30,15 @@ export const AuctionService = {
30
30
  kind: MethodKind.Unary,
31
31
  idempotency: MethodIdempotency.NoSideEffects,
32
32
  },
33
+ /**
34
+ * @generated from rpc uniswap.liquidity.v1.AuctionService.ClaimTokens
35
+ */
36
+ claimTokens: {
37
+ name: "ClaimTokens",
38
+ I: ClaimTokensRequest,
39
+ O: ClaimTokensResponse,
40
+ kind: MethodKind.Unary,
41
+ idempotency: MethodIdempotency.NoSideEffects,
42
+ },
33
43
  }
34
44
  };
@@ -131,3 +131,65 @@ export declare class ExitBidPositionResponse extends Message<ExitBidPositionResp
131
131
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExitBidPositionResponse;
132
132
  static equals(a: ExitBidPositionResponse | PlainMessage<ExitBidPositionResponse> | undefined, b: ExitBidPositionResponse | PlainMessage<ExitBidPositionResponse> | undefined): boolean;
133
133
  }
134
+ /**
135
+ * @generated from message uniswap.liquidity.v1.ClaimTokensRequest
136
+ */
137
+ export declare class ClaimTokensRequest extends Message<ClaimTokensRequest> {
138
+ /**
139
+ * @generated from field: repeated string bids = 1;
140
+ */
141
+ bids: string[];
142
+ /**
143
+ * @generated from field: string auction_contract_address = 2;
144
+ */
145
+ auctionContractAddress: string;
146
+ /**
147
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
148
+ */
149
+ chainId: ChainId;
150
+ /**
151
+ * @generated from field: optional bool simulate_transaction = 4;
152
+ */
153
+ simulateTransaction?: boolean;
154
+ /**
155
+ * @generated from field: string wallet_address = 5;
156
+ */
157
+ walletAddress: string;
158
+ /**
159
+ * @generated from field: optional bool should_claim_all = 6;
160
+ */
161
+ shouldClaimAll?: boolean;
162
+ constructor(data?: PartialMessage<ClaimTokensRequest>);
163
+ static readonly runtime: typeof proto3;
164
+ static readonly typeName = "uniswap.liquidity.v1.ClaimTokensRequest";
165
+ static readonly fields: FieldList;
166
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimTokensRequest;
167
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimTokensRequest;
168
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimTokensRequest;
169
+ static equals(a: ClaimTokensRequest | PlainMessage<ClaimTokensRequest> | undefined, b: ClaimTokensRequest | PlainMessage<ClaimTokensRequest> | undefined): boolean;
170
+ }
171
+ /**
172
+ * @generated from message uniswap.liquidity.v1.ClaimTokensResponse
173
+ */
174
+ export declare class ClaimTokensResponse extends Message<ClaimTokensResponse> {
175
+ /**
176
+ * @generated from field: string request_id = 1;
177
+ */
178
+ requestId: string;
179
+ /**
180
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest claim_tokens = 2;
181
+ */
182
+ claimTokens?: TransactionRequest;
183
+ /**
184
+ * @generated from field: optional string gas_fee = 3;
185
+ */
186
+ gasFee?: string;
187
+ constructor(data?: PartialMessage<ClaimTokensResponse>);
188
+ static readonly runtime: typeof proto3;
189
+ static readonly typeName = "uniswap.liquidity.v1.ClaimTokensResponse";
190
+ static readonly fields: FieldList;
191
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClaimTokensResponse;
192
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClaimTokensResponse;
193
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimTokensResponse;
194
+ static equals(a: ClaimTokensResponse | PlainMessage<ClaimTokensResponse> | undefined, b: ClaimTokensResponse | PlainMessage<ClaimTokensResponse> | undefined): boolean;
195
+ }
@@ -169,3 +169,82 @@ ExitBidPositionResponse.fields = proto3.util.newFieldList(() => [
169
169
  { no: 2, name: "exitBid", kind: "message", T: TransactionRequest },
170
170
  { no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
171
171
  ]);
172
+ /**
173
+ * @generated from message uniswap.liquidity.v1.ClaimTokensRequest
174
+ */
175
+ export class ClaimTokensRequest extends Message {
176
+ constructor(data) {
177
+ super();
178
+ /**
179
+ * @generated from field: repeated string bids = 1;
180
+ */
181
+ this.bids = [];
182
+ /**
183
+ * @generated from field: string auction_contract_address = 2;
184
+ */
185
+ this.auctionContractAddress = "";
186
+ /**
187
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
188
+ */
189
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
190
+ /**
191
+ * @generated from field: string wallet_address = 5;
192
+ */
193
+ this.walletAddress = "";
194
+ proto3.util.initPartial(data, this);
195
+ }
196
+ static fromBinary(bytes, options) {
197
+ return new ClaimTokensRequest().fromBinary(bytes, options);
198
+ }
199
+ static fromJson(jsonValue, options) {
200
+ return new ClaimTokensRequest().fromJson(jsonValue, options);
201
+ }
202
+ static fromJsonString(jsonString, options) {
203
+ return new ClaimTokensRequest().fromJsonString(jsonString, options);
204
+ }
205
+ static equals(a, b) {
206
+ return proto3.util.equals(ClaimTokensRequest, a, b);
207
+ }
208
+ }
209
+ ClaimTokensRequest.runtime = proto3;
210
+ ClaimTokensRequest.typeName = "uniswap.liquidity.v1.ClaimTokensRequest";
211
+ ClaimTokensRequest.fields = proto3.util.newFieldList(() => [
212
+ { no: 1, name: "bids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
213
+ { no: 2, name: "auction_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
214
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
215
+ { no: 4, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
216
+ { no: 5, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
217
+ { no: 6, name: "should_claim_all", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
218
+ ]);
219
+ /**
220
+ * @generated from message uniswap.liquidity.v1.ClaimTokensResponse
221
+ */
222
+ export class ClaimTokensResponse extends Message {
223
+ constructor(data) {
224
+ super();
225
+ /**
226
+ * @generated from field: string request_id = 1;
227
+ */
228
+ this.requestId = "";
229
+ proto3.util.initPartial(data, this);
230
+ }
231
+ static fromBinary(bytes, options) {
232
+ return new ClaimTokensResponse().fromBinary(bytes, options);
233
+ }
234
+ static fromJson(jsonValue, options) {
235
+ return new ClaimTokensResponse().fromJson(jsonValue, options);
236
+ }
237
+ static fromJsonString(jsonString, options) {
238
+ return new ClaimTokensResponse().fromJsonString(jsonString, options);
239
+ }
240
+ static equals(a, b) {
241
+ return proto3.util.equals(ClaimTokensResponse, a, b);
242
+ }
243
+ }
244
+ ClaimTokensResponse.runtime = proto3;
245
+ ClaimTokensResponse.typeName = "uniswap.liquidity.v1.ClaimTokensResponse";
246
+ ClaimTokensResponse.fields = proto3.util.newFieldList(() => [
247
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
248
+ { no: 2, name: "claim_tokens", kind: "message", T: TransactionRequest },
249
+ { no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
250
+ ]);
@@ -102,7 +102,11 @@ export declare enum ChainId {
102
102
  /**
103
103
  * @generated from enum value: MONAD = 143;
104
104
  */
105
- MONAD = 143
105
+ MONAD = 143,
106
+ /**
107
+ * @generated from enum value: XLAYER = 196;
108
+ */
109
+ XLAYER = 196
106
110
  }
107
111
  /**
108
112
  * @generated from enum uniswap.liquidity.v1.Distributor
@@ -1661,7 +1665,11 @@ export declare class V2CheckApprovalLPRequest extends Message<V2CheckApprovalLPR
1661
1665
  */
1662
1666
  positionAmount?: string;
1663
1667
  /**
1664
- * @generated from field: bool simulate_transaction = 10;
1668
+ * @generated from field: optional string spender_address = 10;
1669
+ */
1670
+ spenderAddress?: string;
1671
+ /**
1672
+ * @generated from field: bool simulate_transaction = 11;
1665
1673
  */
1666
1674
  simulateTransaction: boolean;
1667
1675
  constructor(data?: PartialMessage<V2CheckApprovalLPRequest>);
@@ -114,6 +114,10 @@ export var ChainId;
114
114
  * @generated from enum value: MONAD = 143;
115
115
  */
116
116
  ChainId[ChainId["MONAD"] = 143] = "MONAD";
117
+ /**
118
+ * @generated from enum value: XLAYER = 196;
119
+ */
120
+ ChainId[ChainId["XLAYER"] = 196] = "XLAYER";
117
121
  })(ChainId || (ChainId = {}));
118
122
  // Retrieve enum metadata with: proto3.getEnumType(ChainId)
119
123
  proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
@@ -137,6 +141,7 @@ proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
137
141
  { no: 130, name: "UNICHAIN" },
138
142
  { no: 1868, name: "SONEIUM" },
139
143
  { no: 143, name: "MONAD" },
144
+ { no: 196, name: "XLAYER" },
140
145
  ]);
141
146
  /**
142
147
  * @generated from enum uniswap.liquidity.v1.Distributor
@@ -1829,7 +1834,7 @@ export class V2CheckApprovalLPRequest extends Message {
1829
1834
  */
1830
1835
  this.walletAddress = "";
1831
1836
  /**
1832
- * @generated from field: bool simulate_transaction = 10;
1837
+ * @generated from field: bool simulate_transaction = 11;
1833
1838
  */
1834
1839
  this.simulateTransaction = false;
1835
1840
  proto3.util.initPartial(data, this);
@@ -1859,7 +1864,8 @@ V2CheckApprovalLPRequest.fields = proto3.util.newFieldList(() => [
1859
1864
  { no: 7, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1860
1865
  { no: 8, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1861
1866
  { no: 9, name: "position_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1862
- { no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1867
+ { no: 10, name: "spender_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1868
+ { no: 11, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1863
1869
  ]);
1864
1870
  /**
1865
1871
  * @generated from message uniswap.liquidity.v1.V3CheckApprovalLPRequest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },