@uniswap/client-liquidity 1.0.0 → 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, 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
@@ -76,5 +76,25 @@ export declare const LiquidityService: {
76
76
  readonly kind: MethodKind.Unary;
77
77
  readonly idempotency: MethodIdempotency.NoSideEffects;
78
78
  };
79
+ /**
80
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.HookList
81
+ */
82
+ readonly hookList: {
83
+ readonly name: "HookList";
84
+ readonly I: typeof HookListRequest;
85
+ readonly O: typeof HookListResponse;
86
+ readonly kind: MethodKind.Unary;
87
+ readonly idempotency: MethodIdempotency.NoSideEffects;
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
+ };
79
99
  };
80
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, 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
@@ -80,5 +80,25 @@ export const LiquidityService = {
80
80
  kind: MethodKind.Unary,
81
81
  idempotency: MethodIdempotency.NoSideEffects,
82
82
  },
83
+ /**
84
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.HookList
85
+ */
86
+ hookList: {
87
+ name: "HookList",
88
+ I: HookListRequest,
89
+ O: HookListResponse,
90
+ kind: MethodKind.Unary,
91
+ idempotency: MethodIdempotency.NoSideEffects,
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
+ },
83
103
  }
84
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, 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
  *
@@ -682,3 +682,123 @@ export declare class ClaimFeesResponse extends Message<ClaimFeesResponse> {
682
682
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClaimFeesResponse;
683
683
  static equals(a: ClaimFeesResponse | PlainMessage<ClaimFeesResponse> | undefined, b: ClaimFeesResponse | PlainMessage<ClaimFeesResponse> | undefined): boolean;
684
684
  }
685
+ /**
686
+ * HookList
687
+ *
688
+ * @generated from message uniswap.liquidity.v2.HookListRequest
689
+ */
690
+ export declare class HookListRequest extends Message<HookListRequest> {
691
+ /**
692
+ * @generated from field: optional int32 chain_id = 1;
693
+ */
694
+ chainId?: number;
695
+ /**
696
+ * @generated from field: optional string search = 2;
697
+ */
698
+ search?: string;
699
+ /**
700
+ * @generated from field: optional int32 limit = 3;
701
+ */
702
+ limit?: number;
703
+ /**
704
+ * @generated from field: optional int32 offset = 4;
705
+ */
706
+ offset?: number;
707
+ constructor(data?: PartialMessage<HookListRequest>);
708
+ static readonly runtime: typeof proto3;
709
+ static readonly typeName = "uniswap.liquidity.v2.HookListRequest";
710
+ static readonly fields: FieldList;
711
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookListRequest;
712
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookListRequest;
713
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookListRequest;
714
+ static equals(a: HookListRequest | PlainMessage<HookListRequest> | undefined, b: HookListRequest | PlainMessage<HookListRequest> | undefined): boolean;
715
+ }
716
+ /**
717
+ * @generated from message uniswap.liquidity.v2.HookListResponse
718
+ */
719
+ export declare class HookListResponse extends Message<HookListResponse> {
720
+ /**
721
+ * @generated from field: repeated uniswap.liquidity.v2.HookEntry hooks = 1;
722
+ */
723
+ hooks: HookEntry[];
724
+ /**
725
+ * @generated from field: int32 total = 2;
726
+ */
727
+ total: number;
728
+ constructor(data?: PartialMessage<HookListResponse>);
729
+ static readonly runtime: typeof proto3;
730
+ static readonly typeName = "uniswap.liquidity.v2.HookListResponse";
731
+ static readonly fields: FieldList;
732
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookListResponse;
733
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookListResponse;
734
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookListResponse;
735
+ static equals(a: HookListResponse | PlainMessage<HookListResponse> | undefined, b: HookListResponse | PlainMessage<HookListResponse> | undefined): boolean;
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, 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
  *
@@ -641,3 +641,139 @@ ClaimFeesResponse.fields = proto3.util.newFieldList(() => [
641
641
  { no: 4, name: "claim", kind: "message", T: TransactionRequest },
642
642
  { no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
643
643
  ]);
644
+ /**
645
+ * HookList
646
+ *
647
+ * @generated from message uniswap.liquidity.v2.HookListRequest
648
+ */
649
+ export class HookListRequest extends Message {
650
+ constructor(data) {
651
+ super();
652
+ proto3.util.initPartial(data, this);
653
+ }
654
+ static fromBinary(bytes, options) {
655
+ return new HookListRequest().fromBinary(bytes, options);
656
+ }
657
+ static fromJson(jsonValue, options) {
658
+ return new HookListRequest().fromJson(jsonValue, options);
659
+ }
660
+ static fromJsonString(jsonString, options) {
661
+ return new HookListRequest().fromJsonString(jsonString, options);
662
+ }
663
+ static equals(a, b) {
664
+ return proto3.util.equals(HookListRequest, a, b);
665
+ }
666
+ }
667
+ HookListRequest.runtime = proto3;
668
+ HookListRequest.typeName = "uniswap.liquidity.v2.HookListRequest";
669
+ HookListRequest.fields = proto3.util.newFieldList(() => [
670
+ { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
671
+ { no: 2, name: "search", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
672
+ { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
673
+ { no: 4, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
674
+ ]);
675
+ /**
676
+ * @generated from message uniswap.liquidity.v2.HookListResponse
677
+ */
678
+ export class HookListResponse extends Message {
679
+ constructor(data) {
680
+ super();
681
+ /**
682
+ * @generated from field: repeated uniswap.liquidity.v2.HookEntry hooks = 1;
683
+ */
684
+ this.hooks = [];
685
+ /**
686
+ * @generated from field: int32 total = 2;
687
+ */
688
+ this.total = 0;
689
+ proto3.util.initPartial(data, this);
690
+ }
691
+ static fromBinary(bytes, options) {
692
+ return new HookListResponse().fromBinary(bytes, options);
693
+ }
694
+ static fromJson(jsonValue, options) {
695
+ return new HookListResponse().fromJson(jsonValue, options);
696
+ }
697
+ static fromJsonString(jsonString, options) {
698
+ return new HookListResponse().fromJsonString(jsonString, options);
699
+ }
700
+ static equals(a, b) {
701
+ return proto3.util.equals(HookListResponse, a, b);
702
+ }
703
+ }
704
+ HookListResponse.runtime = proto3;
705
+ HookListResponse.typeName = "uniswap.liquidity.v2.HookListResponse";
706
+ HookListResponse.fields = proto3.util.newFieldList(() => [
707
+ { no: 1, name: "hooks", kind: "message", T: HookEntry, repeated: true },
708
+ { no: 2, name: "total", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
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
  */
@@ -268,3 +285,248 @@ export declare class CreateToken extends Message<CreateToken> {
268
285
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateToken;
269
286
  static equals(a: CreateToken | PlainMessage<CreateToken> | undefined, b: CreateToken | PlainMessage<CreateToken> | undefined): boolean;
270
287
  }
288
+ /**
289
+ * @generated from message uniswap.liquidity.v2.HookFlags
290
+ */
291
+ export declare class HookFlags extends Message<HookFlags> {
292
+ /**
293
+ * @generated from field: bool before_initialize = 1;
294
+ */
295
+ beforeInitialize: boolean;
296
+ /**
297
+ * @generated from field: bool after_initialize = 2;
298
+ */
299
+ afterInitialize: boolean;
300
+ /**
301
+ * @generated from field: bool before_add_liquidity = 3;
302
+ */
303
+ beforeAddLiquidity: boolean;
304
+ /**
305
+ * @generated from field: bool after_add_liquidity = 4;
306
+ */
307
+ afterAddLiquidity: boolean;
308
+ /**
309
+ * @generated from field: bool before_remove_liquidity = 5;
310
+ */
311
+ beforeRemoveLiquidity: boolean;
312
+ /**
313
+ * @generated from field: bool after_remove_liquidity = 6;
314
+ */
315
+ afterRemoveLiquidity: boolean;
316
+ /**
317
+ * @generated from field: bool before_swap = 7;
318
+ */
319
+ beforeSwap: boolean;
320
+ /**
321
+ * @generated from field: bool after_swap = 8;
322
+ */
323
+ afterSwap: boolean;
324
+ /**
325
+ * @generated from field: bool before_donate = 9;
326
+ */
327
+ beforeDonate: boolean;
328
+ /**
329
+ * @generated from field: bool after_donate = 10;
330
+ */
331
+ afterDonate: boolean;
332
+ /**
333
+ * @generated from field: bool before_swap_returns_delta = 11;
334
+ */
335
+ beforeSwapReturnsDelta: boolean;
336
+ /**
337
+ * @generated from field: bool after_swap_returns_delta = 12;
338
+ */
339
+ afterSwapReturnsDelta: boolean;
340
+ /**
341
+ * @generated from field: bool after_add_liquidity_returns_delta = 13;
342
+ */
343
+ afterAddLiquidityReturnsDelta: boolean;
344
+ /**
345
+ * @generated from field: bool after_remove_liquidity_returns_delta = 14;
346
+ */
347
+ afterRemoveLiquidityReturnsDelta: boolean;
348
+ constructor(data?: PartialMessage<HookFlags>);
349
+ static readonly runtime: typeof proto3;
350
+ static readonly typeName = "uniswap.liquidity.v2.HookFlags";
351
+ static readonly fields: FieldList;
352
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookFlags;
353
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookFlags;
354
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookFlags;
355
+ static equals(a: HookFlags | PlainMessage<HookFlags> | undefined, b: HookFlags | PlainMessage<HookFlags> | undefined): boolean;
356
+ }
357
+ /**
358
+ * @generated from message uniswap.liquidity.v2.HookProperties
359
+ */
360
+ export declare class HookProperties extends Message<HookProperties> {
361
+ /**
362
+ * @generated from field: bool dynamic_fee = 1;
363
+ */
364
+ dynamicFee: boolean;
365
+ /**
366
+ * @generated from field: bool upgradeable = 2;
367
+ */
368
+ upgradeable: boolean;
369
+ /**
370
+ * @generated from field: bool requires_custom_swap_data = 3;
371
+ */
372
+ requiresCustomSwapData: boolean;
373
+ /**
374
+ * @generated from field: bool vanilla_swap = 4;
375
+ */
376
+ vanillaSwap: boolean;
377
+ /**
378
+ * @generated from field: string swap_access = 5;
379
+ */
380
+ swapAccess: string;
381
+ constructor(data?: PartialMessage<HookProperties>);
382
+ static readonly runtime: typeof proto3;
383
+ static readonly typeName = "uniswap.liquidity.v2.HookProperties";
384
+ static readonly fields: FieldList;
385
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookProperties;
386
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookProperties;
387
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookProperties;
388
+ static equals(a: HookProperties | PlainMessage<HookProperties> | undefined, b: HookProperties | PlainMessage<HookProperties> | undefined): boolean;
389
+ }
390
+ /**
391
+ * @generated from message uniswap.liquidity.v2.HookEntry
392
+ */
393
+ export declare class HookEntry extends Message<HookEntry> {
394
+ /**
395
+ * @generated from field: string address = 1;
396
+ */
397
+ address: string;
398
+ /**
399
+ * @generated from field: string chain = 2;
400
+ */
401
+ chain: string;
402
+ /**
403
+ * @generated from field: int32 chain_id = 3;
404
+ */
405
+ chainId: number;
406
+ /**
407
+ * @generated from field: string name = 4;
408
+ */
409
+ name: string;
410
+ /**
411
+ * @generated from field: string description = 5;
412
+ */
413
+ description: string;
414
+ /**
415
+ * @generated from field: string deployer = 6;
416
+ */
417
+ deployer: string;
418
+ /**
419
+ * @generated from field: bool verified_source = 7;
420
+ */
421
+ verifiedSource: boolean;
422
+ /**
423
+ * @generated from field: string audit_url = 8;
424
+ */
425
+ auditUrl: string;
426
+ /**
427
+ * @generated from field: uniswap.liquidity.v2.HookFlags flags = 9;
428
+ */
429
+ flags?: HookFlags;
430
+ /**
431
+ * @generated from field: uniswap.liquidity.v2.HookProperties properties = 10;
432
+ */
433
+ properties?: HookProperties;
434
+ constructor(data?: PartialMessage<HookEntry>);
435
+ static readonly runtime: typeof proto3;
436
+ static readonly typeName = "uniswap.liquidity.v2.HookEntry";
437
+ static readonly fields: FieldList;
438
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookEntry;
439
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookEntry;
440
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookEntry;
441
+ static equals(a: HookEntry | PlainMessage<HookEntry> | undefined, b: HookEntry | PlainMessage<HookEntry> | undefined): boolean;
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
  */
@@ -410,3 +434,325 @@ CreateToken.fields = proto3.util.newFieldList(() => [
410
434
  { no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
411
435
  { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
412
436
  ]);
437
+ /**
438
+ * @generated from message uniswap.liquidity.v2.HookFlags
439
+ */
440
+ export class HookFlags extends Message {
441
+ constructor(data) {
442
+ super();
443
+ /**
444
+ * @generated from field: bool before_initialize = 1;
445
+ */
446
+ this.beforeInitialize = false;
447
+ /**
448
+ * @generated from field: bool after_initialize = 2;
449
+ */
450
+ this.afterInitialize = false;
451
+ /**
452
+ * @generated from field: bool before_add_liquidity = 3;
453
+ */
454
+ this.beforeAddLiquidity = false;
455
+ /**
456
+ * @generated from field: bool after_add_liquidity = 4;
457
+ */
458
+ this.afterAddLiquidity = false;
459
+ /**
460
+ * @generated from field: bool before_remove_liquidity = 5;
461
+ */
462
+ this.beforeRemoveLiquidity = false;
463
+ /**
464
+ * @generated from field: bool after_remove_liquidity = 6;
465
+ */
466
+ this.afterRemoveLiquidity = false;
467
+ /**
468
+ * @generated from field: bool before_swap = 7;
469
+ */
470
+ this.beforeSwap = false;
471
+ /**
472
+ * @generated from field: bool after_swap = 8;
473
+ */
474
+ this.afterSwap = false;
475
+ /**
476
+ * @generated from field: bool before_donate = 9;
477
+ */
478
+ this.beforeDonate = false;
479
+ /**
480
+ * @generated from field: bool after_donate = 10;
481
+ */
482
+ this.afterDonate = false;
483
+ /**
484
+ * @generated from field: bool before_swap_returns_delta = 11;
485
+ */
486
+ this.beforeSwapReturnsDelta = false;
487
+ /**
488
+ * @generated from field: bool after_swap_returns_delta = 12;
489
+ */
490
+ this.afterSwapReturnsDelta = false;
491
+ /**
492
+ * @generated from field: bool after_add_liquidity_returns_delta = 13;
493
+ */
494
+ this.afterAddLiquidityReturnsDelta = false;
495
+ /**
496
+ * @generated from field: bool after_remove_liquidity_returns_delta = 14;
497
+ */
498
+ this.afterRemoveLiquidityReturnsDelta = false;
499
+ proto3.util.initPartial(data, this);
500
+ }
501
+ static fromBinary(bytes, options) {
502
+ return new HookFlags().fromBinary(bytes, options);
503
+ }
504
+ static fromJson(jsonValue, options) {
505
+ return new HookFlags().fromJson(jsonValue, options);
506
+ }
507
+ static fromJsonString(jsonString, options) {
508
+ return new HookFlags().fromJsonString(jsonString, options);
509
+ }
510
+ static equals(a, b) {
511
+ return proto3.util.equals(HookFlags, a, b);
512
+ }
513
+ }
514
+ HookFlags.runtime = proto3;
515
+ HookFlags.typeName = "uniswap.liquidity.v2.HookFlags";
516
+ HookFlags.fields = proto3.util.newFieldList(() => [
517
+ { no: 1, name: "before_initialize", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
518
+ { no: 2, name: "after_initialize", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
519
+ { no: 3, name: "before_add_liquidity", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
520
+ { no: 4, name: "after_add_liquidity", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
521
+ { no: 5, name: "before_remove_liquidity", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
522
+ { no: 6, name: "after_remove_liquidity", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
523
+ { no: 7, name: "before_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
524
+ { no: 8, name: "after_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
525
+ { no: 9, name: "before_donate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
526
+ { no: 10, name: "after_donate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
527
+ { no: 11, name: "before_swap_returns_delta", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
528
+ { no: 12, name: "after_swap_returns_delta", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
529
+ { no: 13, name: "after_add_liquidity_returns_delta", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
530
+ { no: 14, name: "after_remove_liquidity_returns_delta", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
531
+ ]);
532
+ /**
533
+ * @generated from message uniswap.liquidity.v2.HookProperties
534
+ */
535
+ export class HookProperties extends Message {
536
+ constructor(data) {
537
+ super();
538
+ /**
539
+ * @generated from field: bool dynamic_fee = 1;
540
+ */
541
+ this.dynamicFee = false;
542
+ /**
543
+ * @generated from field: bool upgradeable = 2;
544
+ */
545
+ this.upgradeable = false;
546
+ /**
547
+ * @generated from field: bool requires_custom_swap_data = 3;
548
+ */
549
+ this.requiresCustomSwapData = false;
550
+ /**
551
+ * @generated from field: bool vanilla_swap = 4;
552
+ */
553
+ this.vanillaSwap = false;
554
+ /**
555
+ * @generated from field: string swap_access = 5;
556
+ */
557
+ this.swapAccess = "";
558
+ proto3.util.initPartial(data, this);
559
+ }
560
+ static fromBinary(bytes, options) {
561
+ return new HookProperties().fromBinary(bytes, options);
562
+ }
563
+ static fromJson(jsonValue, options) {
564
+ return new HookProperties().fromJson(jsonValue, options);
565
+ }
566
+ static fromJsonString(jsonString, options) {
567
+ return new HookProperties().fromJsonString(jsonString, options);
568
+ }
569
+ static equals(a, b) {
570
+ return proto3.util.equals(HookProperties, a, b);
571
+ }
572
+ }
573
+ HookProperties.runtime = proto3;
574
+ HookProperties.typeName = "uniswap.liquidity.v2.HookProperties";
575
+ HookProperties.fields = proto3.util.newFieldList(() => [
576
+ { no: 1, name: "dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
577
+ { no: 2, name: "upgradeable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
578
+ { no: 3, name: "requires_custom_swap_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
579
+ { no: 4, name: "vanilla_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
580
+ { no: 5, name: "swap_access", kind: "scalar", T: 9 /* ScalarType.STRING */ },
581
+ ]);
582
+ /**
583
+ * @generated from message uniswap.liquidity.v2.HookEntry
584
+ */
585
+ export class HookEntry extends Message {
586
+ constructor(data) {
587
+ super();
588
+ /**
589
+ * @generated from field: string address = 1;
590
+ */
591
+ this.address = "";
592
+ /**
593
+ * @generated from field: string chain = 2;
594
+ */
595
+ this.chain = "";
596
+ /**
597
+ * @generated from field: int32 chain_id = 3;
598
+ */
599
+ this.chainId = 0;
600
+ /**
601
+ * @generated from field: string name = 4;
602
+ */
603
+ this.name = "";
604
+ /**
605
+ * @generated from field: string description = 5;
606
+ */
607
+ this.description = "";
608
+ /**
609
+ * @generated from field: string deployer = 6;
610
+ */
611
+ this.deployer = "";
612
+ /**
613
+ * @generated from field: bool verified_source = 7;
614
+ */
615
+ this.verifiedSource = false;
616
+ /**
617
+ * @generated from field: string audit_url = 8;
618
+ */
619
+ this.auditUrl = "";
620
+ proto3.util.initPartial(data, this);
621
+ }
622
+ static fromBinary(bytes, options) {
623
+ return new HookEntry().fromBinary(bytes, options);
624
+ }
625
+ static fromJson(jsonValue, options) {
626
+ return new HookEntry().fromJson(jsonValue, options);
627
+ }
628
+ static fromJsonString(jsonString, options) {
629
+ return new HookEntry().fromJsonString(jsonString, options);
630
+ }
631
+ static equals(a, b) {
632
+ return proto3.util.equals(HookEntry, a, b);
633
+ }
634
+ }
635
+ HookEntry.runtime = proto3;
636
+ HookEntry.typeName = "uniswap.liquidity.v2.HookEntry";
637
+ HookEntry.fields = proto3.util.newFieldList(() => [
638
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
639
+ { no: 2, name: "chain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
640
+ { no: 3, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
641
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
642
+ { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
643
+ { no: 6, name: "deployer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
644
+ { no: 7, name: "verified_source", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
645
+ { no: 8, name: "audit_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
646
+ { no: 9, name: "flags", kind: "message", T: HookFlags },
647
+ { no: 10, name: "properties", kind: "message", T: HookProperties },
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.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },