@uniswap/client-liquidity 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,6 +111,10 @@ export declare enum ChainId {
111
111
  * @generated from enum value: LINEA = 59144;
112
112
  */
113
113
  LINEA = 59144,
114
+ /**
115
+ * @generated from enum value: MEGAETH = 4326;
116
+ */
117
+ MEGAETH = 4326,
114
118
  /**
115
119
  * @generated from enum value: TEMPO = 4217;
116
120
  */
@@ -122,6 +122,10 @@ export var ChainId;
122
122
  * @generated from enum value: LINEA = 59144;
123
123
  */
124
124
  ChainId[ChainId["LINEA"] = 59144] = "LINEA";
125
+ /**
126
+ * @generated from enum value: MEGAETH = 4326;
127
+ */
128
+ ChainId[ChainId["MEGAETH"] = 4326] = "MEGAETH";
125
129
  /**
126
130
  * @generated from enum value: TEMPO = 4217;
127
131
  */
@@ -151,6 +155,7 @@ proto3.util.setEnumType(ChainId, "uniswap.liquidity.v1.ChainId", [
151
155
  { no: 143, name: "MONAD" },
152
156
  { no: 196, name: "XLAYER" },
153
157
  { no: 59144, name: "LINEA" },
158
+ { no: 4326, name: "MEGAETH" },
154
159
  { no: 4217, name: "TEMPO" },
155
160
  ]);
156
161
  /**
@@ -1,5 +1,5 @@
1
1
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
2
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
5
5
  */
@@ -98,3 +98,31 @@ export declare const createPosition: {
98
98
  readonly typeName: "uniswap.liquidity.v2.LiquidityService";
99
99
  };
100
100
  };
101
+ /**
102
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.HookList
103
+ */
104
+ export declare const hookList: {
105
+ readonly localName: "hookList";
106
+ readonly name: "HookList";
107
+ readonly kind: MethodKind.Unary;
108
+ readonly I: typeof HookListRequest;
109
+ readonly O: typeof HookListResponse;
110
+ readonly idempotency: MethodIdempotency.NoSideEffects;
111
+ readonly service: {
112
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
113
+ };
114
+ };
115
+ /**
116
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.ListPools
117
+ */
118
+ export declare const listPools: {
119
+ readonly localName: "listPools";
120
+ readonly name: "ListPools";
121
+ readonly kind: MethodKind.Unary;
122
+ readonly I: typeof ListPoolsRequest;
123
+ readonly O: typeof ListPoolsResponse;
124
+ readonly idempotency: MethodIdempotency.NoSideEffects;
125
+ readonly service: {
126
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
127
+ };
128
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
6
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
9
9
  */
@@ -102,3 +102,31 @@ export const createPosition = {
102
102
  typeName: "uniswap.liquidity.v2.LiquidityService"
103
103
  }
104
104
  };
105
+ /**
106
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.HookList
107
+ */
108
+ export const hookList = {
109
+ localName: "hookList",
110
+ name: "HookList",
111
+ kind: MethodKind.Unary,
112
+ I: HookListRequest,
113
+ O: HookListResponse,
114
+ idempotency: MethodIdempotency.NoSideEffects,
115
+ service: {
116
+ typeName: "uniswap.liquidity.v2.LiquidityService"
117
+ }
118
+ };
119
+ /**
120
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.ListPools
121
+ */
122
+ export const listPools = {
123
+ localName: "listPools",
124
+ name: "ListPools",
125
+ kind: MethodKind.Unary,
126
+ I: ListPoolsRequest,
127
+ O: ListPoolsResponse,
128
+ idempotency: MethodIdempotency.NoSideEffects,
129
+ service: {
130
+ typeName: "uniswap.liquidity.v2.LiquidityService"
131
+ }
132
+ };
@@ -1,4 +1,4 @@
1
- import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
1
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
2
2
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.liquidity.v2.LiquidityService
@@ -86,5 +86,15 @@ export declare const LiquidityService: {
86
86
  readonly kind: MethodKind.Unary;
87
87
  readonly idempotency: MethodIdempotency.NoSideEffects;
88
88
  };
89
+ /**
90
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.ListPools
91
+ */
92
+ readonly listPools: {
93
+ readonly name: "ListPools";
94
+ readonly I: typeof ListPoolsRequest;
95
+ readonly O: typeof ListPoolsResponse;
96
+ readonly kind: MethodKind.Unary;
97
+ readonly idempotency: MethodIdempotency.NoSideEffects;
98
+ };
89
99
  };
90
100
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
5
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
6
6
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.liquidity.v2.LiquidityService
@@ -90,5 +90,15 @@ export const LiquidityService = {
90
90
  kind: MethodKind.Unary,
91
91
  idempotency: MethodIdempotency.NoSideEffects,
92
92
  },
93
+ /**
94
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.ListPools
95
+ */
96
+ listPools: {
97
+ name: "ListPools",
98
+ I: ListPoolsRequest,
99
+ O: ListPoolsResponse,
100
+ kind: MethodKind.Unary,
101
+ idempotency: MethodIdempotency.NoSideEffects,
102
+ },
93
103
  }
94
104
  };
@@ -1,7 +1,7 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
4
- import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HookEntry, LPAction, LPToken, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
4
+ import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HookEntry, LPAction, LPToken, PoolListCursor, PoolSortBy, PoolSummary, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
5
5
  /**
6
6
  * MigrateV2ToV3LPPosition
7
7
  *
@@ -734,3 +734,71 @@ export declare class HookListResponse extends Message<HookListResponse> {
734
734
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookListResponse;
735
735
  static equals(a: HookListResponse | PlainMessage<HookListResponse> | undefined, b: HookListResponse | PlainMessage<HookListResponse> | undefined): boolean;
736
736
  }
737
+ /**
738
+ * ListPools
739
+ *
740
+ * @generated from message uniswap.liquidity.v2.ListPoolsRequest
741
+ */
742
+ export declare class ListPoolsRequest extends Message<ListPoolsRequest> {
743
+ /**
744
+ * @generated from field: repeated uniswap.liquidity.v1.ChainId chain_ids = 1;
745
+ */
746
+ chainIds: ChainId[];
747
+ /**
748
+ * @generated from field: optional string token_address = 2;
749
+ */
750
+ tokenAddress?: string;
751
+ /**
752
+ * @generated from field: optional string token0_address = 3;
753
+ */
754
+ token0Address?: string;
755
+ /**
756
+ * @generated from field: optional string token1_address = 4;
757
+ */
758
+ token1Address?: string;
759
+ /**
760
+ * @generated from field: optional uniswap.liquidity.v2.PoolSortBy sort_by = 5;
761
+ */
762
+ sortBy?: PoolSortBy;
763
+ /**
764
+ * @generated from field: optional bool ascending = 6;
765
+ */
766
+ ascending?: boolean;
767
+ /**
768
+ * @generated from field: optional int32 limit = 7;
769
+ */
770
+ limit?: number;
771
+ /**
772
+ * @generated from field: optional uniswap.liquidity.v2.PoolListCursor cursor = 8;
773
+ */
774
+ cursor?: PoolListCursor;
775
+ constructor(data?: PartialMessage<ListPoolsRequest>);
776
+ static readonly runtime: typeof proto3;
777
+ static readonly typeName = "uniswap.liquidity.v2.ListPoolsRequest";
778
+ static readonly fields: FieldList;
779
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsRequest;
780
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsRequest;
781
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsRequest;
782
+ static equals(a: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined, b: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined): boolean;
783
+ }
784
+ /**
785
+ * @generated from message uniswap.liquidity.v2.ListPoolsResponse
786
+ */
787
+ export declare class ListPoolsResponse extends Message<ListPoolsResponse> {
788
+ /**
789
+ * @generated from field: repeated uniswap.liquidity.v2.PoolSummary pools = 1;
790
+ */
791
+ pools: PoolSummary[];
792
+ /**
793
+ * @generated from field: optional uniswap.liquidity.v2.PoolListCursor next_cursor = 2;
794
+ */
795
+ nextCursor?: PoolListCursor;
796
+ constructor(data?: PartialMessage<ListPoolsResponse>);
797
+ static readonly runtime: typeof proto3;
798
+ static readonly typeName = "uniswap.liquidity.v2.ListPoolsResponse";
799
+ static readonly fields: FieldList;
800
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsResponse;
801
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsResponse;
802
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsResponse;
803
+ static equals(a: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined, b: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined): boolean;
804
+ }
@@ -4,7 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
7
- import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HookEntry, LPAction, LPToken, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
7
+ import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HookEntry, LPAction, LPToken, PoolListCursor, PoolSortBy, PoolSummary, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
8
8
  /**
9
9
  * MigrateV2ToV3LPPosition
10
10
  *
@@ -707,3 +707,73 @@ HookListResponse.fields = proto3.util.newFieldList(() => [
707
707
  { no: 1, name: "hooks", kind: "message", T: HookEntry, repeated: true },
708
708
  { no: 2, name: "total", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
709
709
  ]);
710
+ /**
711
+ * ListPools
712
+ *
713
+ * @generated from message uniswap.liquidity.v2.ListPoolsRequest
714
+ */
715
+ export class ListPoolsRequest extends Message {
716
+ constructor(data) {
717
+ super();
718
+ /**
719
+ * @generated from field: repeated uniswap.liquidity.v1.ChainId chain_ids = 1;
720
+ */
721
+ this.chainIds = [];
722
+ proto3.util.initPartial(data, this);
723
+ }
724
+ static fromBinary(bytes, options) {
725
+ return new ListPoolsRequest().fromBinary(bytes, options);
726
+ }
727
+ static fromJson(jsonValue, options) {
728
+ return new ListPoolsRequest().fromJson(jsonValue, options);
729
+ }
730
+ static fromJsonString(jsonString, options) {
731
+ return new ListPoolsRequest().fromJsonString(jsonString, options);
732
+ }
733
+ static equals(a, b) {
734
+ return proto3.util.equals(ListPoolsRequest, a, b);
735
+ }
736
+ }
737
+ ListPoolsRequest.runtime = proto3;
738
+ ListPoolsRequest.typeName = "uniswap.liquidity.v2.ListPoolsRequest";
739
+ ListPoolsRequest.fields = proto3.util.newFieldList(() => [
740
+ { no: 1, name: "chain_ids", kind: "enum", T: proto3.getEnumType(ChainId), repeated: true },
741
+ { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
742
+ { no: 3, name: "token0_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
743
+ { no: 4, name: "token1_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
744
+ { no: 5, name: "sort_by", kind: "enum", T: proto3.getEnumType(PoolSortBy), opt: true },
745
+ { no: 6, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
746
+ { no: 7, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
747
+ { no: 8, name: "cursor", kind: "message", T: PoolListCursor, opt: true },
748
+ ]);
749
+ /**
750
+ * @generated from message uniswap.liquidity.v2.ListPoolsResponse
751
+ */
752
+ export class ListPoolsResponse extends Message {
753
+ constructor(data) {
754
+ super();
755
+ /**
756
+ * @generated from field: repeated uniswap.liquidity.v2.PoolSummary pools = 1;
757
+ */
758
+ this.pools = [];
759
+ proto3.util.initPartial(data, this);
760
+ }
761
+ static fromBinary(bytes, options) {
762
+ return new ListPoolsResponse().fromBinary(bytes, options);
763
+ }
764
+ static fromJson(jsonValue, options) {
765
+ return new ListPoolsResponse().fromJson(jsonValue, options);
766
+ }
767
+ static fromJsonString(jsonString, options) {
768
+ return new ListPoolsResponse().fromJsonString(jsonString, options);
769
+ }
770
+ static equals(a, b) {
771
+ return proto3.util.equals(ListPoolsResponse, a, b);
772
+ }
773
+ }
774
+ ListPoolsResponse.runtime = proto3;
775
+ ListPoolsResponse.typeName = "uniswap.liquidity.v2.ListPoolsResponse";
776
+ ListPoolsResponse.fields = proto3.util.newFieldList(() => [
777
+ { no: 1, name: "pools", kind: "message", T: PoolSummary, repeated: true },
778
+ { no: 2, name: "next_cursor", kind: "message", T: PoolListCursor, opt: true },
779
+ ]);
@@ -1,6 +1,6 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { ChainId, TransactionRequest } from "../v1/types_pb.js";
3
+ import { ChainId, Protocols, TransactionRequest } from "../v1/types_pb.js";
4
4
  /**
5
5
  * @generated from enum uniswap.liquidity.v2.LPAction
6
6
  */
@@ -43,6 +43,23 @@ export declare enum GasUrgency {
43
43
  */
44
44
  URGENT = 3
45
45
  }
46
+ /**
47
+ * @generated from enum uniswap.liquidity.v2.PoolSortBy
48
+ */
49
+ export declare enum PoolSortBy {
50
+ /**
51
+ * @generated from enum value: POOL_SORT_BY_TVL_USD = 0;
52
+ */
53
+ TVL_USD = 0,
54
+ /**
55
+ * @generated from enum value: POOL_SORT_BY_VOLUME_USD = 1;
56
+ */
57
+ VOLUME_USD = 1,
58
+ /**
59
+ * @generated from enum value: POOL_SORT_BY_APR = 2;
60
+ */
61
+ APR = 2
62
+ }
46
63
  /**
47
64
  * @generated from message uniswap.liquidity.v2.LPToken
48
65
  */
@@ -423,3 +440,93 @@ export declare class HookEntry extends Message<HookEntry> {
423
440
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookEntry;
424
441
  static equals(a: HookEntry | PlainMessage<HookEntry> | undefined, b: HookEntry | PlainMessage<HookEntry> | undefined): boolean;
425
442
  }
443
+ /**
444
+ * @generated from message uniswap.liquidity.v2.PoolSummary
445
+ */
446
+ export declare class PoolSummary extends Message<PoolSummary> {
447
+ /**
448
+ * @generated from field: string pool_identifier = 1;
449
+ */
450
+ poolIdentifier: string;
451
+ /**
452
+ * @generated from field: int32 chain_id = 2;
453
+ */
454
+ chainId: number;
455
+ /**
456
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol_version = 3;
457
+ */
458
+ protocolVersion: Protocols;
459
+ /**
460
+ * @generated from field: string token0_address = 4;
461
+ */
462
+ token0Address: string;
463
+ /**
464
+ * @generated from field: string token1_address = 5;
465
+ */
466
+ token1Address: string;
467
+ /**
468
+ * @generated from field: int32 fee_tier = 6;
469
+ */
470
+ feeTier: number;
471
+ /**
472
+ * @generated from field: double tvl_usd = 7;
473
+ */
474
+ tvlUsd: number;
475
+ /**
476
+ * @generated from field: double volume_usd_1d = 8;
477
+ */
478
+ volumeUsd1d: number;
479
+ /**
480
+ * @generated from field: optional double apr = 9;
481
+ */
482
+ apr?: number;
483
+ /**
484
+ * @generated from field: optional int32 current_tick = 10;
485
+ */
486
+ currentTick?: number;
487
+ /**
488
+ * @generated from field: optional string sqrt_price_x96 = 11;
489
+ */
490
+ sqrtPriceX96?: string;
491
+ /**
492
+ * @generated from field: optional string liquidity = 12;
493
+ */
494
+ liquidity?: string;
495
+ /**
496
+ * @generated from field: optional string hook_address = 13;
497
+ */
498
+ hookAddress?: string;
499
+ constructor(data?: PartialMessage<PoolSummary>);
500
+ static readonly runtime: typeof proto3;
501
+ static readonly typeName = "uniswap.liquidity.v2.PoolSummary";
502
+ static readonly fields: FieldList;
503
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolSummary;
504
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolSummary;
505
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolSummary;
506
+ static equals(a: PoolSummary | PlainMessage<PoolSummary> | undefined, b: PoolSummary | PlainMessage<PoolSummary> | undefined): boolean;
507
+ }
508
+ /**
509
+ * @generated from message uniswap.liquidity.v2.PoolListCursor
510
+ */
511
+ export declare class PoolListCursor extends Message<PoolListCursor> {
512
+ /**
513
+ * @generated from field: string sort_value = 1;
514
+ */
515
+ sortValue: string;
516
+ /**
517
+ * @generated from field: string pool_identifier = 2;
518
+ */
519
+ poolIdentifier: string;
520
+ /**
521
+ * @generated from field: int32 chain_id = 3;
522
+ */
523
+ chainId: number;
524
+ constructor(data?: PartialMessage<PoolListCursor>);
525
+ static readonly runtime: typeof proto3;
526
+ static readonly typeName = "uniswap.liquidity.v2.PoolListCursor";
527
+ static readonly fields: FieldList;
528
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolListCursor;
529
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolListCursor;
530
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolListCursor;
531
+ static equals(a: PoolListCursor | PlainMessage<PoolListCursor> | undefined, b: PoolListCursor | PlainMessage<PoolListCursor> | undefined): boolean;
532
+ }
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { ChainId, TransactionRequest } from "../v1/types_pb.js";
6
+ import { ChainId, Protocols, TransactionRequest } from "../v1/types_pb.js";
7
7
  /**
8
8
  * @generated from enum uniswap.liquidity.v2.LPAction
9
9
  */
@@ -62,6 +62,30 @@ proto3.util.setEnumType(GasUrgency, "uniswap.liquidity.v2.GasUrgency", [
62
62
  { no: 2, name: "FAST" },
63
63
  { no: 3, name: "URGENT" },
64
64
  ]);
65
+ /**
66
+ * @generated from enum uniswap.liquidity.v2.PoolSortBy
67
+ */
68
+ export var PoolSortBy;
69
+ (function (PoolSortBy) {
70
+ /**
71
+ * @generated from enum value: POOL_SORT_BY_TVL_USD = 0;
72
+ */
73
+ PoolSortBy[PoolSortBy["TVL_USD"] = 0] = "TVL_USD";
74
+ /**
75
+ * @generated from enum value: POOL_SORT_BY_VOLUME_USD = 1;
76
+ */
77
+ PoolSortBy[PoolSortBy["VOLUME_USD"] = 1] = "VOLUME_USD";
78
+ /**
79
+ * @generated from enum value: POOL_SORT_BY_APR = 2;
80
+ */
81
+ PoolSortBy[PoolSortBy["APR"] = 2] = "APR";
82
+ })(PoolSortBy || (PoolSortBy = {}));
83
+ // Retrieve enum metadata with: proto3.getEnumType(PoolSortBy)
84
+ proto3.util.setEnumType(PoolSortBy, "uniswap.liquidity.v2.PoolSortBy", [
85
+ { no: 0, name: "POOL_SORT_BY_TVL_USD" },
86
+ { no: 1, name: "POOL_SORT_BY_VOLUME_USD" },
87
+ { no: 2, name: "POOL_SORT_BY_APR" },
88
+ ]);
65
89
  /**
66
90
  * @generated from message uniswap.liquidity.v2.LPToken
67
91
  */
@@ -622,3 +646,113 @@ HookEntry.fields = proto3.util.newFieldList(() => [
622
646
  { no: 9, name: "flags", kind: "message", T: HookFlags },
623
647
  { no: 10, name: "properties", kind: "message", T: HookProperties },
624
648
  ]);
649
+ /**
650
+ * @generated from message uniswap.liquidity.v2.PoolSummary
651
+ */
652
+ export class PoolSummary extends Message {
653
+ constructor(data) {
654
+ super();
655
+ /**
656
+ * @generated from field: string pool_identifier = 1;
657
+ */
658
+ this.poolIdentifier = "";
659
+ /**
660
+ * @generated from field: int32 chain_id = 2;
661
+ */
662
+ this.chainId = 0;
663
+ /**
664
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol_version = 3;
665
+ */
666
+ this.protocolVersion = Protocols.V2;
667
+ /**
668
+ * @generated from field: string token0_address = 4;
669
+ */
670
+ this.token0Address = "";
671
+ /**
672
+ * @generated from field: string token1_address = 5;
673
+ */
674
+ this.token1Address = "";
675
+ /**
676
+ * @generated from field: int32 fee_tier = 6;
677
+ */
678
+ this.feeTier = 0;
679
+ /**
680
+ * @generated from field: double tvl_usd = 7;
681
+ */
682
+ this.tvlUsd = 0;
683
+ /**
684
+ * @generated from field: double volume_usd_1d = 8;
685
+ */
686
+ this.volumeUsd1d = 0;
687
+ proto3.util.initPartial(data, this);
688
+ }
689
+ static fromBinary(bytes, options) {
690
+ return new PoolSummary().fromBinary(bytes, options);
691
+ }
692
+ static fromJson(jsonValue, options) {
693
+ return new PoolSummary().fromJson(jsonValue, options);
694
+ }
695
+ static fromJsonString(jsonString, options) {
696
+ return new PoolSummary().fromJsonString(jsonString, options);
697
+ }
698
+ static equals(a, b) {
699
+ return proto3.util.equals(PoolSummary, a, b);
700
+ }
701
+ }
702
+ PoolSummary.runtime = proto3;
703
+ PoolSummary.typeName = "uniswap.liquidity.v2.PoolSummary";
704
+ PoolSummary.fields = proto3.util.newFieldList(() => [
705
+ { no: 1, name: "pool_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
706
+ { no: 2, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
707
+ { no: 3, name: "protocol_version", kind: "enum", T: proto3.getEnumType(Protocols) },
708
+ { no: 4, name: "token0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
709
+ { no: 5, name: "token1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
710
+ { no: 6, name: "fee_tier", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
711
+ { no: 7, name: "tvl_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
712
+ { no: 8, name: "volume_usd_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
713
+ { no: 9, name: "apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
714
+ { no: 10, name: "current_tick", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
715
+ { no: 11, name: "sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
716
+ { no: 12, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
717
+ { no: 13, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
718
+ ]);
719
+ /**
720
+ * @generated from message uniswap.liquidity.v2.PoolListCursor
721
+ */
722
+ export class PoolListCursor extends Message {
723
+ constructor(data) {
724
+ super();
725
+ /**
726
+ * @generated from field: string sort_value = 1;
727
+ */
728
+ this.sortValue = "";
729
+ /**
730
+ * @generated from field: string pool_identifier = 2;
731
+ */
732
+ this.poolIdentifier = "";
733
+ /**
734
+ * @generated from field: int32 chain_id = 3;
735
+ */
736
+ this.chainId = 0;
737
+ proto3.util.initPartial(data, this);
738
+ }
739
+ static fromBinary(bytes, options) {
740
+ return new PoolListCursor().fromBinary(bytes, options);
741
+ }
742
+ static fromJson(jsonValue, options) {
743
+ return new PoolListCursor().fromJson(jsonValue, options);
744
+ }
745
+ static fromJsonString(jsonString, options) {
746
+ return new PoolListCursor().fromJsonString(jsonString, options);
747
+ }
748
+ static equals(a, b) {
749
+ return proto3.util.equals(PoolListCursor, a, b);
750
+ }
751
+ }
752
+ PoolListCursor.runtime = proto3;
753
+ PoolListCursor.typeName = "uniswap.liquidity.v2.PoolListCursor";
754
+ PoolListCursor.fields = proto3.util.newFieldList(() => [
755
+ { no: 1, name: "sort_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
756
+ { no: 2, name: "pool_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
757
+ { no: 3, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
758
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },