@uniswap/client-data-api 0.0.114 → 0.0.115

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 { MethodKind } from "@bufbuild/protobuf";
2
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
2
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v2.DataApiService.GetToken
5
5
  */
@@ -169,3 +169,16 @@ export declare const getEarnPosition: {
169
169
  readonly typeName: "data.v2.DataApiService";
170
170
  };
171
171
  };
172
+ /**
173
+ * @generated from rpc data.v2.DataApiService.GetWalletNfts
174
+ */
175
+ export declare const getWalletNfts: {
176
+ readonly localName: "getWalletNfts";
177
+ readonly name: "GetWalletNfts";
178
+ readonly kind: MethodKind.Unary;
179
+ readonly I: typeof GetWalletNftsRequest;
180
+ readonly O: typeof GetWalletNftsResponse;
181
+ readonly service: {
182
+ readonly typeName: "data.v2.DataApiService";
183
+ };
184
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
6
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v2.DataApiService.GetToken
9
9
  */
@@ -173,3 +173,16 @@ export const getEarnPosition = {
173
173
  typeName: "data.v2.DataApiService"
174
174
  }
175
175
  };
176
+ /**
177
+ * @generated from rpc data.v2.DataApiService.GetWalletNfts
178
+ */
179
+ export const getWalletNfts = {
180
+ localName: "getWalletNfts",
181
+ name: "GetWalletNfts",
182
+ kind: MethodKind.Unary,
183
+ I: GetWalletNftsRequest,
184
+ O: GetWalletNftsResponse,
185
+ service: {
186
+ typeName: "data.v2.DataApiService"
187
+ }
188
+ };
@@ -1,4 +1,4 @@
1
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
1
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v2.DataApiService
@@ -123,5 +123,14 @@ export declare const DataApiService: {
123
123
  readonly O: typeof GetEarnPositionResponse;
124
124
  readonly kind: MethodKind.Unary;
125
125
  };
126
+ /**
127
+ * @generated from rpc data.v2.DataApiService.GetWalletNfts
128
+ */
129
+ readonly getWalletNfts: {
130
+ readonly name: "GetWalletNfts";
131
+ readonly I: typeof GetWalletNftsRequest;
132
+ readonly O: typeof GetWalletNftsResponse;
133
+ readonly kind: MethodKind.Unary;
134
+ };
126
135
  };
127
136
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v2/api.proto (package data.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
5
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v2.DataApiService
@@ -127,5 +127,14 @@ export const DataApiService = {
127
127
  O: GetEarnPositionResponse,
128
128
  kind: MethodKind.Unary,
129
129
  },
130
+ /**
131
+ * @generated from rpc data.v2.DataApiService.GetWalletNfts
132
+ */
133
+ getWalletNfts: {
134
+ name: "GetWalletNfts",
135
+ I: GetWalletNftsRequest,
136
+ O: GetWalletNftsResponse,
137
+ kind: MethodKind.Unary,
138
+ },
130
139
  }
131
140
  };
@@ -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 { FiatAmount, FiatCurrency, HistoryDuration, MultichainToken, MultichainTokenMarket, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
3
+ import { FiatAmount, FiatCurrency, HistoryDuration, MultichainToken, MultichainTokenMarket, Nft, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
4
4
  import { EarnPosition, EarnVault } from "./earn_pb.js";
5
5
  import { PageRequest, PageResponse } from "./common_pb.js";
6
6
  /**
@@ -822,3 +822,66 @@ export declare class ListTokensResponse extends Message<ListTokensResponse> {
822
822
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensResponse;
823
823
  static equals(a: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined, b: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined): boolean;
824
824
  }
825
+ /**
826
+ * Wallet NFT balances. EVM-only: a single owner_address covers all supported
827
+ * EVM chains. Spam is returned and flagged by default; malicious is always dropped.
828
+ *
829
+ * @generated from message data.v2.GetWalletNftsRequest
830
+ */
831
+ export declare class GetWalletNftsRequest extends Message<GetWalletNftsRequest> {
832
+ /**
833
+ * required, EVM address
834
+ *
835
+ * @generated from field: string owner_address = 1;
836
+ */
837
+ ownerAddress: string;
838
+ /**
839
+ * required; empty/missing returns 400
840
+ *
841
+ * @generated from field: repeated uint32 chain_ids = 2;
842
+ */
843
+ chainIds: number[];
844
+ /**
845
+ * default true (spam returned, flagged); false drops spam
846
+ *
847
+ * @generated from field: optional bool include_spam = 3;
848
+ */
849
+ includeSpam?: boolean;
850
+ /**
851
+ * page_size (default 100) + page_token
852
+ *
853
+ * @generated from field: optional data.v2.PageRequest page = 4;
854
+ */
855
+ page?: PageRequest;
856
+ constructor(data?: PartialMessage<GetWalletNftsRequest>);
857
+ static readonly runtime: typeof proto3;
858
+ static readonly typeName = "data.v2.GetWalletNftsRequest";
859
+ static readonly fields: FieldList;
860
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletNftsRequest;
861
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletNftsRequest;
862
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletNftsRequest;
863
+ static equals(a: GetWalletNftsRequest | PlainMessage<GetWalletNftsRequest> | undefined, b: GetWalletNftsRequest | PlainMessage<GetWalletNftsRequest> | undefined): boolean;
864
+ }
865
+ /**
866
+ * @generated from message data.v2.GetWalletNftsResponse
867
+ */
868
+ export declare class GetWalletNftsResponse extends Message<GetWalletNftsResponse> {
869
+ /**
870
+ * @generated from field: repeated data.v2.Nft nfts = 1;
871
+ */
872
+ nfts: Nft[];
873
+ /**
874
+ * next_page_token absent on last page
875
+ *
876
+ * @generated from field: data.v2.PageResponse page = 2;
877
+ */
878
+ page?: PageResponse;
879
+ constructor(data?: PartialMessage<GetWalletNftsResponse>);
880
+ static readonly runtime: typeof proto3;
881
+ static readonly typeName = "data.v2.GetWalletNftsResponse";
882
+ static readonly fields: FieldList;
883
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletNftsResponse;
884
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletNftsResponse;
885
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletNftsResponse;
886
+ static equals(a: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined, b: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined): boolean;
887
+ }
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
- import { FiatAmount, FiatCurrency, HistoryDuration, MultichainToken, MultichainTokenMarket, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
6
+ import { FiatAmount, FiatCurrency, HistoryDuration, MultichainToken, MultichainTokenMarket, Nft, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
7
7
  import { EarnPosition, EarnVault } from "./earn_pb.js";
8
8
  import { PageRequest, PageResponse } from "./common_pb.js";
9
9
  /**
@@ -1124,3 +1124,78 @@ ListTokensResponse.fields = proto3.util.newFieldList(() => [
1124
1124
  { no: 1, name: "multichain_tokens", kind: "message", T: RankedMultichainToken, repeated: true },
1125
1125
  { no: 2, name: "page", kind: "message", T: PageResponse },
1126
1126
  ]);
1127
+ /**
1128
+ * Wallet NFT balances. EVM-only: a single owner_address covers all supported
1129
+ * EVM chains. Spam is returned and flagged by default; malicious is always dropped.
1130
+ *
1131
+ * @generated from message data.v2.GetWalletNftsRequest
1132
+ */
1133
+ export class GetWalletNftsRequest extends Message {
1134
+ constructor(data) {
1135
+ super();
1136
+ /**
1137
+ * required, EVM address
1138
+ *
1139
+ * @generated from field: string owner_address = 1;
1140
+ */
1141
+ this.ownerAddress = "";
1142
+ /**
1143
+ * required; empty/missing returns 400
1144
+ *
1145
+ * @generated from field: repeated uint32 chain_ids = 2;
1146
+ */
1147
+ this.chainIds = [];
1148
+ proto3.util.initPartial(data, this);
1149
+ }
1150
+ static fromBinary(bytes, options) {
1151
+ return new GetWalletNftsRequest().fromBinary(bytes, options);
1152
+ }
1153
+ static fromJson(jsonValue, options) {
1154
+ return new GetWalletNftsRequest().fromJson(jsonValue, options);
1155
+ }
1156
+ static fromJsonString(jsonString, options) {
1157
+ return new GetWalletNftsRequest().fromJsonString(jsonString, options);
1158
+ }
1159
+ static equals(a, b) {
1160
+ return proto3.util.equals(GetWalletNftsRequest, a, b);
1161
+ }
1162
+ }
1163
+ GetWalletNftsRequest.runtime = proto3;
1164
+ GetWalletNftsRequest.typeName = "data.v2.GetWalletNftsRequest";
1165
+ GetWalletNftsRequest.fields = proto3.util.newFieldList(() => [
1166
+ { no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1167
+ { no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1168
+ { no: 3, name: "include_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1169
+ { no: 4, name: "page", kind: "message", T: PageRequest, opt: true },
1170
+ ]);
1171
+ /**
1172
+ * @generated from message data.v2.GetWalletNftsResponse
1173
+ */
1174
+ export class GetWalletNftsResponse extends Message {
1175
+ constructor(data) {
1176
+ super();
1177
+ /**
1178
+ * @generated from field: repeated data.v2.Nft nfts = 1;
1179
+ */
1180
+ this.nfts = [];
1181
+ proto3.util.initPartial(data, this);
1182
+ }
1183
+ static fromBinary(bytes, options) {
1184
+ return new GetWalletNftsResponse().fromBinary(bytes, options);
1185
+ }
1186
+ static fromJson(jsonValue, options) {
1187
+ return new GetWalletNftsResponse().fromJson(jsonValue, options);
1188
+ }
1189
+ static fromJsonString(jsonString, options) {
1190
+ return new GetWalletNftsResponse().fromJsonString(jsonString, options);
1191
+ }
1192
+ static equals(a, b) {
1193
+ return proto3.util.equals(GetWalletNftsResponse, a, b);
1194
+ }
1195
+ }
1196
+ GetWalletNftsResponse.runtime = proto3;
1197
+ GetWalletNftsResponse.typeName = "data.v2.GetWalletNftsResponse";
1198
+ GetWalletNftsResponse.fields = proto3.util.newFieldList(() => [
1199
+ { no: 1, name: "nfts", kind: "message", T: Nft, repeated: true },
1200
+ { no: 2, name: "page", kind: "message", T: PageResponse },
1201
+ ]);
@@ -741,3 +741,84 @@ export declare class Token extends Message<Token> {
741
741
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
742
742
  static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
743
743
  }
744
+ /**
745
+ * @generated from message data.v2.NftImage
746
+ */
747
+ export declare class NftImage extends Message<NftImage> {
748
+ /**
749
+ * @generated from field: string url = 1;
750
+ */
751
+ url: string;
752
+ /**
753
+ * FE reads image.dimensions for grid aspect ratio; may be null from Alchemy
754
+ *
755
+ * @generated from field: optional uint32 width = 2;
756
+ */
757
+ width?: number;
758
+ /**
759
+ * @generated from field: optional uint32 height = 3;
760
+ */
761
+ height?: number;
762
+ constructor(data?: PartialMessage<NftImage>);
763
+ static readonly runtime: typeof proto3;
764
+ static readonly typeName = "data.v2.NftImage";
765
+ static readonly fields: FieldList;
766
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NftImage;
767
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NftImage;
768
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NftImage;
769
+ static equals(a: NftImage | PlainMessage<NftImage> | undefined, b: NftImage | PlainMessage<NftImage> | undefined): boolean;
770
+ }
771
+ /**
772
+ * @generated from message data.v2.Nft
773
+ */
774
+ export declare class Nft extends Message<Nft> {
775
+ /**
776
+ * @generated from field: uint32 chain_id = 1;
777
+ */
778
+ chainId: number;
779
+ /**
780
+ * checksummed
781
+ *
782
+ * @generated from field: string contract_address = 2;
783
+ */
784
+ contractAddress: string;
785
+ /**
786
+ * @generated from field: string token_id = 3;
787
+ */
788
+ tokenId: string;
789
+ /**
790
+ * @generated from field: string name = 4;
791
+ */
792
+ name: string;
793
+ /**
794
+ * @generated from field: string description = 5;
795
+ */
796
+ description: string;
797
+ /**
798
+ * @generated from field: data.v2.NftImage image = 6;
799
+ */
800
+ image?: NftImage;
801
+ /**
802
+ * @generated from field: data.v2.NftImage thumbnail = 7;
803
+ */
804
+ thumbnail?: NftImage;
805
+ /**
806
+ * Spam flag: Alchemy spam signals + Blockaid verdict + heuristics. Malicious
807
+ * NFTs are filtered out server-side (not represented here).
808
+ *
809
+ * @generated from field: bool is_spam = 8;
810
+ */
811
+ isSpam: boolean;
812
+ /**
813
+ * @generated from field: string collection_name = 9;
814
+ */
815
+ collectionName: string;
816
+ constructor(data?: PartialMessage<Nft>);
817
+ static readonly runtime: typeof proto3;
818
+ static readonly typeName = "data.v2.Nft";
819
+ static readonly fields: FieldList;
820
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Nft;
821
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Nft;
822
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Nft;
823
+ static equals(a: Nft | PlainMessage<Nft> | undefined, b: Nft | PlainMessage<Nft> | undefined): boolean;
824
+ }
@@ -865,3 +865,102 @@ Token.fields = proto3.util.newFieldList(() => [
865
865
  { no: 10, name: "project", kind: "message", T: TokenProject },
866
866
  { no: 11, name: "multichain", kind: "message", T: TokenMultichain, opt: true },
867
867
  ]);
868
+ /**
869
+ * @generated from message data.v2.NftImage
870
+ */
871
+ export class NftImage extends Message {
872
+ constructor(data) {
873
+ super();
874
+ /**
875
+ * @generated from field: string url = 1;
876
+ */
877
+ this.url = "";
878
+ proto3.util.initPartial(data, this);
879
+ }
880
+ static fromBinary(bytes, options) {
881
+ return new NftImage().fromBinary(bytes, options);
882
+ }
883
+ static fromJson(jsonValue, options) {
884
+ return new NftImage().fromJson(jsonValue, options);
885
+ }
886
+ static fromJsonString(jsonString, options) {
887
+ return new NftImage().fromJsonString(jsonString, options);
888
+ }
889
+ static equals(a, b) {
890
+ return proto3.util.equals(NftImage, a, b);
891
+ }
892
+ }
893
+ NftImage.runtime = proto3;
894
+ NftImage.typeName = "data.v2.NftImage";
895
+ NftImage.fields = proto3.util.newFieldList(() => [
896
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
897
+ { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
898
+ { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
899
+ ]);
900
+ /**
901
+ * @generated from message data.v2.Nft
902
+ */
903
+ export class Nft extends Message {
904
+ constructor(data) {
905
+ super();
906
+ /**
907
+ * @generated from field: uint32 chain_id = 1;
908
+ */
909
+ this.chainId = 0;
910
+ /**
911
+ * checksummed
912
+ *
913
+ * @generated from field: string contract_address = 2;
914
+ */
915
+ this.contractAddress = "";
916
+ /**
917
+ * @generated from field: string token_id = 3;
918
+ */
919
+ this.tokenId = "";
920
+ /**
921
+ * @generated from field: string name = 4;
922
+ */
923
+ this.name = "";
924
+ /**
925
+ * @generated from field: string description = 5;
926
+ */
927
+ this.description = "";
928
+ /**
929
+ * Spam flag: Alchemy spam signals + Blockaid verdict + heuristics. Malicious
930
+ * NFTs are filtered out server-side (not represented here).
931
+ *
932
+ * @generated from field: bool is_spam = 8;
933
+ */
934
+ this.isSpam = false;
935
+ /**
936
+ * @generated from field: string collection_name = 9;
937
+ */
938
+ this.collectionName = "";
939
+ proto3.util.initPartial(data, this);
940
+ }
941
+ static fromBinary(bytes, options) {
942
+ return new Nft().fromBinary(bytes, options);
943
+ }
944
+ static fromJson(jsonValue, options) {
945
+ return new Nft().fromJson(jsonValue, options);
946
+ }
947
+ static fromJsonString(jsonString, options) {
948
+ return new Nft().fromJsonString(jsonString, options);
949
+ }
950
+ static equals(a, b) {
951
+ return proto3.util.equals(Nft, a, b);
952
+ }
953
+ }
954
+ Nft.runtime = proto3;
955
+ Nft.typeName = "data.v2.Nft";
956
+ Nft.fields = proto3.util.newFieldList(() => [
957
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
958
+ { no: 2, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
959
+ { no: 3, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
960
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
961
+ { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
962
+ { no: 6, name: "image", kind: "message", T: NftImage },
963
+ { no: 7, name: "thumbnail", kind: "message", T: NftImage },
964
+ { no: 8, name: "is_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
965
+ { no: 9, name: "collection_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
966
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.114",
3
+ "version": "0.0.115",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },