@uniswap/client-liquidity 1.0.0 → 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,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": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },