@uniswap/client-liquidity 0.3.5 → 1.0.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.
@@ -1,5 +1,5 @@
1
1
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
2
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.liquidity.v1.LiquidityService.MigrateV2ToV3LPPosition
5
5
  */
@@ -126,17 +126,3 @@ export declare const checkLPApproval: {
126
126
  readonly typeName: "uniswap.liquidity.v1.LiquidityService";
127
127
  };
128
128
  };
129
- /**
130
- * @generated from rpc uniswap.liquidity.v1.LiquidityService.GetLPPriceDiscrepancy
131
- */
132
- export declare const getLPPriceDiscrepancy: {
133
- readonly localName: "getLPPriceDiscrepancy";
134
- readonly name: "GetLPPriceDiscrepancy";
135
- readonly kind: MethodKind.Unary;
136
- readonly I: typeof GetLPPriceDiscrepancyRequest;
137
- readonly O: typeof GetLPPriceDiscrepancyResponse;
138
- readonly idempotency: MethodIdempotency.NoSideEffects;
139
- readonly service: {
140
- readonly typeName: "uniswap.liquidity.v1.LiquidityService";
141
- };
142
- };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
6
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.liquidity.v1.LiquidityService.MigrateV2ToV3LPPosition
9
9
  */
@@ -130,17 +130,3 @@ export const checkLPApproval = {
130
130
  typeName: "uniswap.liquidity.v1.LiquidityService"
131
131
  }
132
132
  };
133
- /**
134
- * @generated from rpc uniswap.liquidity.v1.LiquidityService.GetLPPriceDiscrepancy
135
- */
136
- export const getLPPriceDiscrepancy = {
137
- localName: "getLPPriceDiscrepancy",
138
- name: "GetLPPriceDiscrepancy",
139
- kind: MethodKind.Unary,
140
- I: GetLPPriceDiscrepancyRequest,
141
- O: GetLPPriceDiscrepancyResponse,
142
- idempotency: MethodIdempotency.NoSideEffects,
143
- service: {
144
- typeName: "uniswap.liquidity.v1.LiquidityService"
145
- }
146
- };
@@ -1,4 +1,4 @@
1
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
1
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
2
2
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.liquidity.v1.LiquidityService
@@ -96,15 +96,5 @@ export declare const LiquidityService: {
96
96
  readonly kind: MethodKind.Unary;
97
97
  readonly idempotency: MethodIdempotency.NoSideEffects;
98
98
  };
99
- /**
100
- * @generated from rpc uniswap.liquidity.v1.LiquidityService.GetLPPriceDiscrepancy
101
- */
102
- readonly getLPPriceDiscrepancy: {
103
- readonly name: "GetLPPriceDiscrepancy";
104
- readonly I: typeof GetLPPriceDiscrepancyRequest;
105
- readonly O: typeof GetLPPriceDiscrepancyResponse;
106
- readonly kind: MethodKind.Unary;
107
- readonly idempotency: MethodIdempotency.NoSideEffects;
108
- };
109
99
  };
110
100
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/liquidity/v1/api.proto (package uniswap.liquidity.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
5
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, MigrateV3ToV4LPPositionRequest, MigrateV3ToV4LPPositionResponse, PoolInfoRequest, PoolInfoResponse } from "./api_pb.js";
6
6
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.liquidity.v1.LiquidityService
@@ -100,15 +100,5 @@ export const LiquidityService = {
100
100
  kind: MethodKind.Unary,
101
101
  idempotency: MethodIdempotency.NoSideEffects,
102
102
  },
103
- /**
104
- * @generated from rpc uniswap.liquidity.v1.LiquidityService.GetLPPriceDiscrepancy
105
- */
106
- getLPPriceDiscrepancy: {
107
- name: "GetLPPriceDiscrepancy",
108
- I: GetLPPriceDiscrepancyRequest,
109
- O: GetLPPriceDiscrepancyResponse,
110
- kind: MethodKind.Unary,
111
- idempotency: MethodIdempotency.NoSideEffects,
112
- },
113
103
  }
114
104
  };
@@ -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, 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";
3
+ import { ChainId, Distributor, NFTPermitData, 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";
4
4
  /**
5
5
  * REQUESTS & RESPONSES
6
6
  *
@@ -741,93 +741,3 @@ export declare class CheckApprovalLPResponse extends Message<CheckApprovalLPResp
741
741
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApprovalLPResponse;
742
742
  static equals(a: CheckApprovalLPResponse | PlainMessage<CheckApprovalLPResponse> | undefined, b: CheckApprovalLPResponse | PlainMessage<CheckApprovalLPResponse> | undefined): boolean;
743
743
  }
744
- /**
745
- * @generated from message uniswap.liquidity.v1.GetLPPriceDiscrepancyRequest
746
- */
747
- export declare class GetLPPriceDiscrepancyRequest extends Message<GetLPPriceDiscrepancyRequest> {
748
- /**
749
- * @generated from field: string txn_hash = 1;
750
- */
751
- txnHash: string;
752
- /**
753
- * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
754
- */
755
- chainId: ChainId;
756
- /**
757
- * @generated from field: string token0 = 3;
758
- */
759
- token0: string;
760
- /**
761
- * @generated from field: string token1 = 4;
762
- */
763
- token1: string;
764
- /**
765
- * @generated from field: optional int32 tick_spacing = 5;
766
- */
767
- tickSpacing?: number;
768
- /**
769
- * @generated from field: optional int32 fee = 6;
770
- */
771
- fee?: number;
772
- /**
773
- * @generated from field: optional string hooks = 7;
774
- */
775
- hooks?: string;
776
- /**
777
- * @generated from field: string sqrt_ratio_x96 = 8;
778
- */
779
- sqrtRatioX96: string;
780
- /**
781
- * @generated from field: uniswap.liquidity.v1.Protocols protocol = 9;
782
- */
783
- protocol: Protocols;
784
- constructor(data?: PartialMessage<GetLPPriceDiscrepancyRequest>);
785
- static readonly runtime: typeof proto3;
786
- static readonly typeName = "uniswap.liquidity.v1.GetLPPriceDiscrepancyRequest";
787
- static readonly fields: FieldList;
788
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLPPriceDiscrepancyRequest;
789
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyRequest;
790
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyRequest;
791
- static equals(a: GetLPPriceDiscrepancyRequest | PlainMessage<GetLPPriceDiscrepancyRequest> | undefined, b: GetLPPriceDiscrepancyRequest | PlainMessage<GetLPPriceDiscrepancyRequest> | undefined): boolean;
792
- }
793
- /**
794
- * @generated from message uniswap.liquidity.v1.GetLPPriceDiscrepancyResponse
795
- */
796
- export declare class GetLPPriceDiscrepancyResponse extends Message<GetLPPriceDiscrepancyResponse> {
797
- /**
798
- * @generated from field: string request_id = 1;
799
- */
800
- requestId: string;
801
- /**
802
- * @generated from field: string percent_price_difference = 2;
803
- */
804
- percentPriceDifference: string;
805
- /**
806
- * @generated from field: uniswap.liquidity.v1.OnChainStatus status = 3;
807
- */
808
- status: OnChainStatus;
809
- /**
810
- * @generated from field: string sqrt_ratio_x96_before = 4;
811
- */
812
- sqrtRatioX96Before: string;
813
- /**
814
- * @generated from field: string sqrt_ratio_x96_after = 5;
815
- */
816
- sqrtRatioX96After: string;
817
- /**
818
- * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 6;
819
- */
820
- chainId: ChainId;
821
- /**
822
- * @generated from field: uniswap.liquidity.v1.Protocols protocol = 7;
823
- */
824
- protocol: Protocols;
825
- constructor(data?: PartialMessage<GetLPPriceDiscrepancyResponse>);
826
- static readonly runtime: typeof proto3;
827
- static readonly typeName = "uniswap.liquidity.v1.GetLPPriceDiscrepancyResponse";
828
- static readonly fields: FieldList;
829
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLPPriceDiscrepancyResponse;
830
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyResponse;
831
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyResponse;
832
- static equals(a: GetLPPriceDiscrepancyResponse | PlainMessage<GetLPPriceDiscrepancyResponse> | undefined, b: GetLPPriceDiscrepancyResponse | PlainMessage<GetLPPriceDiscrepancyResponse> | undefined): boolean;
833
- }
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
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";
6
+ import { ChainId, Distributor, NFTPermitData, 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
7
  /**
8
8
  * REQUESTS & RESPONSES
9
9
  *
@@ -707,121 +707,3 @@ CheckApprovalLPResponse.fields = proto3.util.newFieldList(() => [
707
707
  { no: 16, name: "gas_fee_token_0_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
708
708
  { no: 17, name: "gas_fee_token_1_permit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
709
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
- ]);
@@ -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, 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,15 @@ 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
+ };
79
89
  };
80
90
  };
@@ -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, 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,15 @@ 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
+ },
83
93
  }
84
94
  };
@@ -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, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
5
5
  /**
6
6
  * MigrateV2ToV3LPPosition
7
7
  *
@@ -682,3 +682,55 @@ 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
+ }
@@ -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, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
8
8
  /**
9
9
  * MigrateV2ToV3LPPosition
10
10
  *
@@ -641,3 +641,69 @@ 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
+ ]);
@@ -268,3 +268,158 @@ export declare class CreateToken extends Message<CreateToken> {
268
268
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateToken;
269
269
  static equals(a: CreateToken | PlainMessage<CreateToken> | undefined, b: CreateToken | PlainMessage<CreateToken> | undefined): boolean;
270
270
  }
271
+ /**
272
+ * @generated from message uniswap.liquidity.v2.HookFlags
273
+ */
274
+ export declare class HookFlags extends Message<HookFlags> {
275
+ /**
276
+ * @generated from field: bool before_initialize = 1;
277
+ */
278
+ beforeInitialize: boolean;
279
+ /**
280
+ * @generated from field: bool after_initialize = 2;
281
+ */
282
+ afterInitialize: boolean;
283
+ /**
284
+ * @generated from field: bool before_add_liquidity = 3;
285
+ */
286
+ beforeAddLiquidity: boolean;
287
+ /**
288
+ * @generated from field: bool after_add_liquidity = 4;
289
+ */
290
+ afterAddLiquidity: boolean;
291
+ /**
292
+ * @generated from field: bool before_remove_liquidity = 5;
293
+ */
294
+ beforeRemoveLiquidity: boolean;
295
+ /**
296
+ * @generated from field: bool after_remove_liquidity = 6;
297
+ */
298
+ afterRemoveLiquidity: boolean;
299
+ /**
300
+ * @generated from field: bool before_swap = 7;
301
+ */
302
+ beforeSwap: boolean;
303
+ /**
304
+ * @generated from field: bool after_swap = 8;
305
+ */
306
+ afterSwap: boolean;
307
+ /**
308
+ * @generated from field: bool before_donate = 9;
309
+ */
310
+ beforeDonate: boolean;
311
+ /**
312
+ * @generated from field: bool after_donate = 10;
313
+ */
314
+ afterDonate: boolean;
315
+ /**
316
+ * @generated from field: bool before_swap_returns_delta = 11;
317
+ */
318
+ beforeSwapReturnsDelta: boolean;
319
+ /**
320
+ * @generated from field: bool after_swap_returns_delta = 12;
321
+ */
322
+ afterSwapReturnsDelta: boolean;
323
+ /**
324
+ * @generated from field: bool after_add_liquidity_returns_delta = 13;
325
+ */
326
+ afterAddLiquidityReturnsDelta: boolean;
327
+ /**
328
+ * @generated from field: bool after_remove_liquidity_returns_delta = 14;
329
+ */
330
+ afterRemoveLiquidityReturnsDelta: boolean;
331
+ constructor(data?: PartialMessage<HookFlags>);
332
+ static readonly runtime: typeof proto3;
333
+ static readonly typeName = "uniswap.liquidity.v2.HookFlags";
334
+ static readonly fields: FieldList;
335
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookFlags;
336
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookFlags;
337
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookFlags;
338
+ static equals(a: HookFlags | PlainMessage<HookFlags> | undefined, b: HookFlags | PlainMessage<HookFlags> | undefined): boolean;
339
+ }
340
+ /**
341
+ * @generated from message uniswap.liquidity.v2.HookProperties
342
+ */
343
+ export declare class HookProperties extends Message<HookProperties> {
344
+ /**
345
+ * @generated from field: bool dynamic_fee = 1;
346
+ */
347
+ dynamicFee: boolean;
348
+ /**
349
+ * @generated from field: bool upgradeable = 2;
350
+ */
351
+ upgradeable: boolean;
352
+ /**
353
+ * @generated from field: bool requires_custom_swap_data = 3;
354
+ */
355
+ requiresCustomSwapData: boolean;
356
+ /**
357
+ * @generated from field: bool vanilla_swap = 4;
358
+ */
359
+ vanillaSwap: boolean;
360
+ /**
361
+ * @generated from field: string swap_access = 5;
362
+ */
363
+ swapAccess: string;
364
+ constructor(data?: PartialMessage<HookProperties>);
365
+ static readonly runtime: typeof proto3;
366
+ static readonly typeName = "uniswap.liquidity.v2.HookProperties";
367
+ static readonly fields: FieldList;
368
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookProperties;
369
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookProperties;
370
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookProperties;
371
+ static equals(a: HookProperties | PlainMessage<HookProperties> | undefined, b: HookProperties | PlainMessage<HookProperties> | undefined): boolean;
372
+ }
373
+ /**
374
+ * @generated from message uniswap.liquidity.v2.HookEntry
375
+ */
376
+ export declare class HookEntry extends Message<HookEntry> {
377
+ /**
378
+ * @generated from field: string address = 1;
379
+ */
380
+ address: string;
381
+ /**
382
+ * @generated from field: string chain = 2;
383
+ */
384
+ chain: string;
385
+ /**
386
+ * @generated from field: int32 chain_id = 3;
387
+ */
388
+ chainId: number;
389
+ /**
390
+ * @generated from field: string name = 4;
391
+ */
392
+ name: string;
393
+ /**
394
+ * @generated from field: string description = 5;
395
+ */
396
+ description: string;
397
+ /**
398
+ * @generated from field: string deployer = 6;
399
+ */
400
+ deployer: string;
401
+ /**
402
+ * @generated from field: bool verified_source = 7;
403
+ */
404
+ verifiedSource: boolean;
405
+ /**
406
+ * @generated from field: string audit_url = 8;
407
+ */
408
+ auditUrl: string;
409
+ /**
410
+ * @generated from field: uniswap.liquidity.v2.HookFlags flags = 9;
411
+ */
412
+ flags?: HookFlags;
413
+ /**
414
+ * @generated from field: uniswap.liquidity.v2.HookProperties properties = 10;
415
+ */
416
+ properties?: HookProperties;
417
+ constructor(data?: PartialMessage<HookEntry>);
418
+ static readonly runtime: typeof proto3;
419
+ static readonly typeName = "uniswap.liquidity.v2.HookEntry";
420
+ static readonly fields: FieldList;
421
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HookEntry;
422
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HookEntry;
423
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookEntry;
424
+ static equals(a: HookEntry | PlainMessage<HookEntry> | undefined, b: HookEntry | PlainMessage<HookEntry> | undefined): boolean;
425
+ }
@@ -410,3 +410,215 @@ CreateToken.fields = proto3.util.newFieldList(() => [
410
410
  { no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
411
411
  { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
412
412
  ]);
413
+ /**
414
+ * @generated from message uniswap.liquidity.v2.HookFlags
415
+ */
416
+ export class HookFlags extends Message {
417
+ constructor(data) {
418
+ super();
419
+ /**
420
+ * @generated from field: bool before_initialize = 1;
421
+ */
422
+ this.beforeInitialize = false;
423
+ /**
424
+ * @generated from field: bool after_initialize = 2;
425
+ */
426
+ this.afterInitialize = false;
427
+ /**
428
+ * @generated from field: bool before_add_liquidity = 3;
429
+ */
430
+ this.beforeAddLiquidity = false;
431
+ /**
432
+ * @generated from field: bool after_add_liquidity = 4;
433
+ */
434
+ this.afterAddLiquidity = false;
435
+ /**
436
+ * @generated from field: bool before_remove_liquidity = 5;
437
+ */
438
+ this.beforeRemoveLiquidity = false;
439
+ /**
440
+ * @generated from field: bool after_remove_liquidity = 6;
441
+ */
442
+ this.afterRemoveLiquidity = false;
443
+ /**
444
+ * @generated from field: bool before_swap = 7;
445
+ */
446
+ this.beforeSwap = false;
447
+ /**
448
+ * @generated from field: bool after_swap = 8;
449
+ */
450
+ this.afterSwap = false;
451
+ /**
452
+ * @generated from field: bool before_donate = 9;
453
+ */
454
+ this.beforeDonate = false;
455
+ /**
456
+ * @generated from field: bool after_donate = 10;
457
+ */
458
+ this.afterDonate = false;
459
+ /**
460
+ * @generated from field: bool before_swap_returns_delta = 11;
461
+ */
462
+ this.beforeSwapReturnsDelta = false;
463
+ /**
464
+ * @generated from field: bool after_swap_returns_delta = 12;
465
+ */
466
+ this.afterSwapReturnsDelta = false;
467
+ /**
468
+ * @generated from field: bool after_add_liquidity_returns_delta = 13;
469
+ */
470
+ this.afterAddLiquidityReturnsDelta = false;
471
+ /**
472
+ * @generated from field: bool after_remove_liquidity_returns_delta = 14;
473
+ */
474
+ this.afterRemoveLiquidityReturnsDelta = false;
475
+ proto3.util.initPartial(data, this);
476
+ }
477
+ static fromBinary(bytes, options) {
478
+ return new HookFlags().fromBinary(bytes, options);
479
+ }
480
+ static fromJson(jsonValue, options) {
481
+ return new HookFlags().fromJson(jsonValue, options);
482
+ }
483
+ static fromJsonString(jsonString, options) {
484
+ return new HookFlags().fromJsonString(jsonString, options);
485
+ }
486
+ static equals(a, b) {
487
+ return proto3.util.equals(HookFlags, a, b);
488
+ }
489
+ }
490
+ HookFlags.runtime = proto3;
491
+ HookFlags.typeName = "uniswap.liquidity.v2.HookFlags";
492
+ HookFlags.fields = proto3.util.newFieldList(() => [
493
+ { no: 1, name: "before_initialize", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
494
+ { no: 2, name: "after_initialize", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
495
+ { no: 3, name: "before_add_liquidity", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
496
+ { no: 4, name: "after_add_liquidity", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
497
+ { no: 5, name: "before_remove_liquidity", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
498
+ { no: 6, name: "after_remove_liquidity", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
499
+ { no: 7, name: "before_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
500
+ { no: 8, name: "after_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
501
+ { no: 9, name: "before_donate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
502
+ { no: 10, name: "after_donate", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
503
+ { no: 11, name: "before_swap_returns_delta", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
504
+ { no: 12, name: "after_swap_returns_delta", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
505
+ { no: 13, name: "after_add_liquidity_returns_delta", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
506
+ { no: 14, name: "after_remove_liquidity_returns_delta", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
507
+ ]);
508
+ /**
509
+ * @generated from message uniswap.liquidity.v2.HookProperties
510
+ */
511
+ export class HookProperties extends Message {
512
+ constructor(data) {
513
+ super();
514
+ /**
515
+ * @generated from field: bool dynamic_fee = 1;
516
+ */
517
+ this.dynamicFee = false;
518
+ /**
519
+ * @generated from field: bool upgradeable = 2;
520
+ */
521
+ this.upgradeable = false;
522
+ /**
523
+ * @generated from field: bool requires_custom_swap_data = 3;
524
+ */
525
+ this.requiresCustomSwapData = false;
526
+ /**
527
+ * @generated from field: bool vanilla_swap = 4;
528
+ */
529
+ this.vanillaSwap = false;
530
+ /**
531
+ * @generated from field: string swap_access = 5;
532
+ */
533
+ this.swapAccess = "";
534
+ proto3.util.initPartial(data, this);
535
+ }
536
+ static fromBinary(bytes, options) {
537
+ return new HookProperties().fromBinary(bytes, options);
538
+ }
539
+ static fromJson(jsonValue, options) {
540
+ return new HookProperties().fromJson(jsonValue, options);
541
+ }
542
+ static fromJsonString(jsonString, options) {
543
+ return new HookProperties().fromJsonString(jsonString, options);
544
+ }
545
+ static equals(a, b) {
546
+ return proto3.util.equals(HookProperties, a, b);
547
+ }
548
+ }
549
+ HookProperties.runtime = proto3;
550
+ HookProperties.typeName = "uniswap.liquidity.v2.HookProperties";
551
+ HookProperties.fields = proto3.util.newFieldList(() => [
552
+ { no: 1, name: "dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
553
+ { no: 2, name: "upgradeable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
554
+ { no: 3, name: "requires_custom_swap_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
555
+ { no: 4, name: "vanilla_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
556
+ { no: 5, name: "swap_access", kind: "scalar", T: 9 /* ScalarType.STRING */ },
557
+ ]);
558
+ /**
559
+ * @generated from message uniswap.liquidity.v2.HookEntry
560
+ */
561
+ export class HookEntry extends Message {
562
+ constructor(data) {
563
+ super();
564
+ /**
565
+ * @generated from field: string address = 1;
566
+ */
567
+ this.address = "";
568
+ /**
569
+ * @generated from field: string chain = 2;
570
+ */
571
+ this.chain = "";
572
+ /**
573
+ * @generated from field: int32 chain_id = 3;
574
+ */
575
+ this.chainId = 0;
576
+ /**
577
+ * @generated from field: string name = 4;
578
+ */
579
+ this.name = "";
580
+ /**
581
+ * @generated from field: string description = 5;
582
+ */
583
+ this.description = "";
584
+ /**
585
+ * @generated from field: string deployer = 6;
586
+ */
587
+ this.deployer = "";
588
+ /**
589
+ * @generated from field: bool verified_source = 7;
590
+ */
591
+ this.verifiedSource = false;
592
+ /**
593
+ * @generated from field: string audit_url = 8;
594
+ */
595
+ this.auditUrl = "";
596
+ proto3.util.initPartial(data, this);
597
+ }
598
+ static fromBinary(bytes, options) {
599
+ return new HookEntry().fromBinary(bytes, options);
600
+ }
601
+ static fromJson(jsonValue, options) {
602
+ return new HookEntry().fromJson(jsonValue, options);
603
+ }
604
+ static fromJsonString(jsonString, options) {
605
+ return new HookEntry().fromJsonString(jsonString, options);
606
+ }
607
+ static equals(a, b) {
608
+ return proto3.util.equals(HookEntry, a, b);
609
+ }
610
+ }
611
+ HookEntry.runtime = proto3;
612
+ HookEntry.typeName = "uniswap.liquidity.v2.HookEntry";
613
+ HookEntry.fields = proto3.util.newFieldList(() => [
614
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
615
+ { no: 2, name: "chain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
616
+ { no: 3, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
617
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
618
+ { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
619
+ { no: 6, name: "deployer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
620
+ { no: 7, name: "verified_source", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
621
+ { no: 8, name: "audit_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
622
+ { no: 9, name: "flags", kind: "message", T: HookFlags },
623
+ { no: 10, name: "properties", kind: "message", T: HookProperties },
624
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "0.3.5",
3
+ "version": "1.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },