@uniswap/client-data-api 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +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 { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
4
+ import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
4
5
  /**
5
6
  * @generated from enum data.v1.Platform
6
7
  */
@@ -14,6 +15,19 @@ export declare enum Platform {
14
15
  */
15
16
  SVM = 1
16
17
  }
18
+ /**
19
+ * @generated from enum data.v1.OrderBy
20
+ */
21
+ export declare enum OrderBy {
22
+ /**
23
+ * @generated from enum value: ORDER_BY_UNSPECIFIED = 0;
24
+ */
25
+ UNSPECIFIED = 0,
26
+ /**
27
+ * @generated from enum value: ORDER_BY_CREATION_DATE = 1;
28
+ */
29
+ CREATION_DATE = 1
30
+ }
17
31
  /**
18
32
  * @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
19
33
  */
@@ -532,3 +546,375 @@ export declare class CreateTokenFactoryPresignedUrlResponse extends Message<Crea
532
546
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateTokenFactoryPresignedUrlResponse;
533
547
  static equals(a: CreateTokenFactoryPresignedUrlResponse | PlainMessage<CreateTokenFactoryPresignedUrlResponse> | undefined, b: CreateTokenFactoryPresignedUrlResponse | PlainMessage<CreateTokenFactoryPresignedUrlResponse> | undefined): boolean;
534
548
  }
549
+ /**
550
+ * @generated from message data.v1.InvokeTokenFactorySubgraphSyncerRequest
551
+ */
552
+ export declare class InvokeTokenFactorySubgraphSyncerRequest extends Message<InvokeTokenFactorySubgraphSyncerRequest> {
553
+ constructor(data?: PartialMessage<InvokeTokenFactorySubgraphSyncerRequest>);
554
+ static readonly runtime: typeof proto3;
555
+ static readonly typeName = "data.v1.InvokeTokenFactorySubgraphSyncerRequest";
556
+ static readonly fields: FieldList;
557
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvokeTokenFactorySubgraphSyncerRequest;
558
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvokeTokenFactorySubgraphSyncerRequest;
559
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvokeTokenFactorySubgraphSyncerRequest;
560
+ static equals(a: InvokeTokenFactorySubgraphSyncerRequest | PlainMessage<InvokeTokenFactorySubgraphSyncerRequest> | undefined, b: InvokeTokenFactorySubgraphSyncerRequest | PlainMessage<InvokeTokenFactorySubgraphSyncerRequest> | undefined): boolean;
561
+ }
562
+ /**
563
+ * @generated from message data.v1.InvokeTokenFactorySubgraphSyncerResponse
564
+ */
565
+ export declare class InvokeTokenFactorySubgraphSyncerResponse extends Message<InvokeTokenFactorySubgraphSyncerResponse> {
566
+ /**
567
+ * @generated from field: bool success = 1;
568
+ */
569
+ success: boolean;
570
+ constructor(data?: PartialMessage<InvokeTokenFactorySubgraphSyncerResponse>);
571
+ static readonly runtime: typeof proto3;
572
+ static readonly typeName = "data.v1.InvokeTokenFactorySubgraphSyncerResponse";
573
+ static readonly fields: FieldList;
574
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InvokeTokenFactorySubgraphSyncerResponse;
575
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InvokeTokenFactorySubgraphSyncerResponse;
576
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InvokeTokenFactorySubgraphSyncerResponse;
577
+ static equals(a: InvokeTokenFactorySubgraphSyncerResponse | PlainMessage<InvokeTokenFactorySubgraphSyncerResponse> | undefined, b: InvokeTokenFactorySubgraphSyncerResponse | PlainMessage<InvokeTokenFactorySubgraphSyncerResponse> | undefined): boolean;
578
+ }
579
+ /**
580
+ * @generated from message data.v1.GetPairRequest
581
+ */
582
+ export declare class GetPairRequest extends Message<GetPairRequest> {
583
+ /**
584
+ * @generated from field: uint32 chain_id = 1;
585
+ */
586
+ chainId: number;
587
+ /**
588
+ * @generated from field: string pair_address = 2;
589
+ */
590
+ pairAddress: string;
591
+ constructor(data?: PartialMessage<GetPairRequest>);
592
+ static readonly runtime: typeof proto3;
593
+ static readonly typeName = "data.v1.GetPairRequest";
594
+ static readonly fields: FieldList;
595
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPairRequest;
596
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPairRequest;
597
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPairRequest;
598
+ static equals(a: GetPairRequest | PlainMessage<GetPairRequest> | undefined, b: GetPairRequest | PlainMessage<GetPairRequest> | undefined): boolean;
599
+ }
600
+ /**
601
+ * @generated from message data.v1.GetPairResponse
602
+ */
603
+ export declare class GetPairResponse extends Message<GetPairResponse> {
604
+ /**
605
+ * @generated from field: pools.v1.Pair pair = 1;
606
+ */
607
+ pair?: Pair;
608
+ constructor(data?: PartialMessage<GetPairResponse>);
609
+ static readonly runtime: typeof proto3;
610
+ static readonly typeName = "data.v1.GetPairResponse";
611
+ static readonly fields: FieldList;
612
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPairResponse;
613
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPairResponse;
614
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPairResponse;
615
+ static equals(a: GetPairResponse | PlainMessage<GetPairResponse> | undefined, b: GetPairResponse | PlainMessage<GetPairResponse> | undefined): boolean;
616
+ }
617
+ /**
618
+ * @generated from message data.v1.GetPoolRequest
619
+ */
620
+ export declare class GetPoolRequest extends Message<GetPoolRequest> {
621
+ /**
622
+ * @generated from field: uint32 chain_id = 1;
623
+ */
624
+ chainId: number;
625
+ /**
626
+ * @generated from field: string pool_id = 2;
627
+ */
628
+ poolId: string;
629
+ /**
630
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 3;
631
+ */
632
+ protocolVersion: ProtocolVersion;
633
+ constructor(data?: PartialMessage<GetPoolRequest>);
634
+ static readonly runtime: typeof proto3;
635
+ static readonly typeName = "data.v1.GetPoolRequest";
636
+ static readonly fields: FieldList;
637
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolRequest;
638
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolRequest;
639
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolRequest;
640
+ static equals(a: GetPoolRequest | PlainMessage<GetPoolRequest> | undefined, b: GetPoolRequest | PlainMessage<GetPoolRequest> | undefined): boolean;
641
+ }
642
+ /**
643
+ * @generated from message data.v1.GetPoolResponse
644
+ */
645
+ export declare class GetPoolResponse extends Message<GetPoolResponse> {
646
+ /**
647
+ * @generated from field: pools.v1.Pool pool = 1;
648
+ */
649
+ pool?: Pool;
650
+ constructor(data?: PartialMessage<GetPoolResponse>);
651
+ static readonly runtime: typeof proto3;
652
+ static readonly typeName = "data.v1.GetPoolResponse";
653
+ static readonly fields: FieldList;
654
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolResponse;
655
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolResponse;
656
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolResponse;
657
+ static equals(a: GetPoolResponse | PlainMessage<GetPoolResponse> | undefined, b: GetPoolResponse | PlainMessage<GetPoolResponse> | undefined): boolean;
658
+ }
659
+ /**
660
+ * @generated from message data.v1.GetPositionRequest
661
+ */
662
+ export declare class GetPositionRequest extends Message<GetPositionRequest> {
663
+ /**
664
+ * @generated from field: uint32 chain_id = 1;
665
+ */
666
+ chainId: number;
667
+ /**
668
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
669
+ */
670
+ protocolVersion: ProtocolVersion;
671
+ /**
672
+ * required for V3/V4
673
+ *
674
+ * @generated from field: string token_id = 3;
675
+ */
676
+ tokenId: string;
677
+ /**
678
+ * required for V2
679
+ *
680
+ * @generated from field: string pair_address = 4;
681
+ */
682
+ pairAddress: string;
683
+ /**
684
+ * required for V2
685
+ *
686
+ * @generated from field: string owner = 5;
687
+ */
688
+ owner: string;
689
+ constructor(data?: PartialMessage<GetPositionRequest>);
690
+ static readonly runtime: typeof proto3;
691
+ static readonly typeName = "data.v1.GetPositionRequest";
692
+ static readonly fields: FieldList;
693
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionRequest;
694
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionRequest;
695
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionRequest;
696
+ static equals(a: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined, b: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined): boolean;
697
+ }
698
+ /**
699
+ * @generated from message data.v1.GetPositionResponse
700
+ */
701
+ export declare class GetPositionResponse extends Message<GetPositionResponse> {
702
+ /**
703
+ * @generated from field: pools.v1.Position position = 1;
704
+ */
705
+ position?: Position;
706
+ constructor(data?: PartialMessage<GetPositionResponse>);
707
+ static readonly runtime: typeof proto3;
708
+ static readonly typeName = "data.v1.GetPositionResponse";
709
+ static readonly fields: FieldList;
710
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionResponse;
711
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionResponse;
712
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionResponse;
713
+ static equals(a: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined, b: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined): boolean;
714
+ }
715
+ /**
716
+ * @generated from message data.v1.ListPoolsRequest
717
+ */
718
+ export declare class ListPoolsRequest extends Message<ListPoolsRequest> {
719
+ /**
720
+ * @generated from field: uint32 chain_id = 1;
721
+ */
722
+ chainId: number;
723
+ /**
724
+ * @generated from field: string token0 = 2;
725
+ */
726
+ token0: string;
727
+ /**
728
+ * @generated from field: string token1 = 3;
729
+ */
730
+ token1: string;
731
+ /**
732
+ * @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 4;
733
+ */
734
+ protocolVersions: ProtocolVersion[];
735
+ /**
736
+ * @generated from field: optional uint32 fee = 5;
737
+ */
738
+ fee?: number;
739
+ /**
740
+ * @generated from field: optional int32 tick_spacing = 6;
741
+ */
742
+ tickSpacing?: number;
743
+ /**
744
+ * @generated from field: optional string hooks = 7;
745
+ */
746
+ hooks?: string;
747
+ /**
748
+ * @generated from field: optional uint32 page_size = 8;
749
+ */
750
+ pageSize?: number;
751
+ /**
752
+ * @generated from field: optional string page_token = 9;
753
+ */
754
+ pageToken?: string;
755
+ constructor(data?: PartialMessage<ListPoolsRequest>);
756
+ static readonly runtime: typeof proto3;
757
+ static readonly typeName = "data.v1.ListPoolsRequest";
758
+ static readonly fields: FieldList;
759
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsRequest;
760
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsRequest;
761
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsRequest;
762
+ static equals(a: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined, b: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined): boolean;
763
+ }
764
+ /**
765
+ * @generated from message data.v1.ListPoolsResponse
766
+ */
767
+ export declare class ListPoolsResponse extends Message<ListPoolsResponse> {
768
+ /**
769
+ * @generated from field: repeated pools.v1.Pool pools = 1;
770
+ */
771
+ pools: Pool[];
772
+ /**
773
+ * @generated from field: optional string next_page_token = 2;
774
+ */
775
+ nextPageToken?: string;
776
+ constructor(data?: PartialMessage<ListPoolsResponse>);
777
+ static readonly runtime: typeof proto3;
778
+ static readonly typeName = "data.v1.ListPoolsResponse";
779
+ static readonly fields: FieldList;
780
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsResponse;
781
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsResponse;
782
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsResponse;
783
+ static equals(a: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined, b: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined): boolean;
784
+ }
785
+ /**
786
+ * @generated from message data.v1.ListPositionsRequest
787
+ */
788
+ export declare class ListPositionsRequest extends Message<ListPositionsRequest> {
789
+ /**
790
+ * @generated from field: string address = 1;
791
+ */
792
+ address: string;
793
+ /**
794
+ * default all chains
795
+ *
796
+ * @generated from field: repeated uint32 chain_ids = 2;
797
+ */
798
+ chainIds: number[];
799
+ /**
800
+ * default all versions
801
+ *
802
+ * @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 3;
803
+ */
804
+ protocolVersions: ProtocolVersion[];
805
+ /**
806
+ * default all position statuses
807
+ *
808
+ * @generated from field: repeated pools.v1.PositionStatus position_statuses = 4;
809
+ */
810
+ positionStatuses: PositionStatus[];
811
+ /**
812
+ * @generated from field: optional uint32 page_size = 5;
813
+ */
814
+ pageSize?: number;
815
+ /**
816
+ * @generated from field: optional string page_token = 6;
817
+ */
818
+ pageToken?: string;
819
+ /**
820
+ * default creation date
821
+ *
822
+ * @generated from field: optional data.v1.OrderBy order_by = 7;
823
+ */
824
+ orderBy?: OrderBy;
825
+ /**
826
+ * default false
827
+ *
828
+ * @generated from field: optional bool ascending = 8;
829
+ */
830
+ ascending?: boolean;
831
+ /**
832
+ * @generated from field: optional string poolId = 9;
833
+ */
834
+ poolId?: string;
835
+ /**
836
+ * @generated from field: optional string token0 = 10;
837
+ */
838
+ token0?: string;
839
+ /**
840
+ * @generated from field: optional string token1 = 11;
841
+ */
842
+ token1?: string;
843
+ /**
844
+ * default false; hides spam
845
+ *
846
+ * @generated from field: optional bool include_hidden = 12;
847
+ */
848
+ includeHidden?: boolean;
849
+ constructor(data?: PartialMessage<ListPositionsRequest>);
850
+ static readonly runtime: typeof proto3;
851
+ static readonly typeName = "data.v1.ListPositionsRequest";
852
+ static readonly fields: FieldList;
853
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPositionsRequest;
854
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPositionsRequest;
855
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPositionsRequest;
856
+ static equals(a: ListPositionsRequest | PlainMessage<ListPositionsRequest> | undefined, b: ListPositionsRequest | PlainMessage<ListPositionsRequest> | undefined): boolean;
857
+ }
858
+ /**
859
+ * @generated from message data.v1.ListPositionsResponse
860
+ */
861
+ export declare class ListPositionsResponse extends Message<ListPositionsResponse> {
862
+ /**
863
+ * @generated from field: repeated pools.v1.Position positions = 1;
864
+ */
865
+ positions: Position[];
866
+ /**
867
+ * @generated from field: optional string next_page_token = 2;
868
+ */
869
+ nextPageToken?: string;
870
+ constructor(data?: PartialMessage<ListPositionsResponse>);
871
+ static readonly runtime: typeof proto3;
872
+ static readonly typeName = "data.v1.ListPositionsResponse";
873
+ static readonly fields: FieldList;
874
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPositionsResponse;
875
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPositionsResponse;
876
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPositionsResponse;
877
+ static equals(a: ListPositionsResponse | PlainMessage<ListPositionsResponse> | undefined, b: ListPositionsResponse | PlainMessage<ListPositionsResponse> | undefined): boolean;
878
+ }
879
+ /**
880
+ * @generated from message data.v1.GetRewardsRequest
881
+ */
882
+ export declare class GetRewardsRequest extends Message<GetRewardsRequest> {
883
+ /**
884
+ * @generated from field: string wallet_address = 1;
885
+ */
886
+ walletAddress: string;
887
+ /**
888
+ * @generated from field: repeated uint32 chain_ids = 2;
889
+ */
890
+ chainIds: number[];
891
+ /**
892
+ * @generated from field: optional bool reload = 3;
893
+ */
894
+ reload?: boolean;
895
+ constructor(data?: PartialMessage<GetRewardsRequest>);
896
+ static readonly runtime: typeof proto3;
897
+ static readonly typeName = "data.v1.GetRewardsRequest";
898
+ static readonly fields: FieldList;
899
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRewardsRequest;
900
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRewardsRequest;
901
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRewardsRequest;
902
+ static equals(a: GetRewardsRequest | PlainMessage<GetRewardsRequest> | undefined, b: GetRewardsRequest | PlainMessage<GetRewardsRequest> | undefined): boolean;
903
+ }
904
+ /**
905
+ * @generated from message data.v1.GetRewardsResponse
906
+ */
907
+ export declare class GetRewardsResponse extends Message<GetRewardsResponse> {
908
+ /**
909
+ * @generated from field: string total_unclaimed_amount_uni = 1;
910
+ */
911
+ totalUnclaimedAmountUni: string;
912
+ constructor(data?: PartialMessage<GetRewardsResponse>);
913
+ static readonly runtime: typeof proto3;
914
+ static readonly typeName = "data.v1.GetRewardsResponse";
915
+ static readonly fields: FieldList;
916
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRewardsResponse;
917
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRewardsResponse;
918
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRewardsResponse;
919
+ static equals(a: GetRewardsResponse | PlainMessage<GetRewardsResponse> | undefined, b: GetRewardsResponse | PlainMessage<GetRewardsResponse> | undefined): boolean;
920
+ }