@uniswap/client-data-api 0.0.113 → 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.
- package/dist/data/v2/api-DataApiService_connectquery.d.ts +27 -1
- package/dist/data/v2/api-DataApiService_connectquery.js +27 -1
- package/dist/data/v2/api_connect.d.ts +19 -1
- package/dist/data/v2/api_connect.js +19 -1
- package/dist/data/v2/api_pb.d.ts +144 -1
- package/dist/data/v2/api_pb.js +181 -1
- package/dist/data/v2/types_pb.d.ts +81 -0
- package/dist/data/v2/types_pb.js +99 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, 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
|
*/
|
|
@@ -104,6 +104,19 @@ export declare const getTokenHistoryVolume: {
|
|
|
104
104
|
readonly typeName: "data.v2.DataApiService";
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryPrice
|
|
109
|
+
*/
|
|
110
|
+
export declare const getTokenHistoryPrice: {
|
|
111
|
+
readonly localName: "getTokenHistoryPrice";
|
|
112
|
+
readonly name: "GetTokenHistoryPrice";
|
|
113
|
+
readonly kind: MethodKind.Unary;
|
|
114
|
+
readonly I: typeof GetTokenHistoryPriceRequest;
|
|
115
|
+
readonly O: typeof GetTokenHistoryPriceResponse;
|
|
116
|
+
readonly service: {
|
|
117
|
+
readonly typeName: "data.v2.DataApiService";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
107
120
|
/**
|
|
108
121
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
109
122
|
*/
|
|
@@ -156,3 +169,16 @@ export declare const getEarnPosition: {
|
|
|
156
169
|
readonly typeName: "data.v2.DataApiService";
|
|
157
170
|
};
|
|
158
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, 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
|
*/
|
|
@@ -108,6 +108,19 @@ export const getTokenHistoryVolume = {
|
|
|
108
108
|
typeName: "data.v2.DataApiService"
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryPrice
|
|
113
|
+
*/
|
|
114
|
+
export const getTokenHistoryPrice = {
|
|
115
|
+
localName: "getTokenHistoryPrice",
|
|
116
|
+
name: "GetTokenHistoryPrice",
|
|
117
|
+
kind: MethodKind.Unary,
|
|
118
|
+
I: GetTokenHistoryPriceRequest,
|
|
119
|
+
O: GetTokenHistoryPriceResponse,
|
|
120
|
+
service: {
|
|
121
|
+
typeName: "data.v2.DataApiService"
|
|
122
|
+
}
|
|
123
|
+
};
|
|
111
124
|
/**
|
|
112
125
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
113
126
|
*/
|
|
@@ -160,3 +173,16 @@ export const getEarnPosition = {
|
|
|
160
173
|
typeName: "data.v2.DataApiService"
|
|
161
174
|
}
|
|
162
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, 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
|
|
@@ -78,6 +78,15 @@ export declare const DataApiService: {
|
|
|
78
78
|
readonly O: typeof GetTokenHistoryVolumeResponse;
|
|
79
79
|
readonly kind: MethodKind.Unary;
|
|
80
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryPrice
|
|
83
|
+
*/
|
|
84
|
+
readonly getTokenHistoryPrice: {
|
|
85
|
+
readonly name: "GetTokenHistoryPrice";
|
|
86
|
+
readonly I: typeof GetTokenHistoryPriceRequest;
|
|
87
|
+
readonly O: typeof GetTokenHistoryPriceResponse;
|
|
88
|
+
readonly kind: MethodKind.Unary;
|
|
89
|
+
};
|
|
81
90
|
/**
|
|
82
91
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
83
92
|
*/
|
|
@@ -114,5 +123,14 @@ export declare const DataApiService: {
|
|
|
114
123
|
readonly O: typeof GetEarnPositionResponse;
|
|
115
124
|
readonly kind: MethodKind.Unary;
|
|
116
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
|
+
};
|
|
117
135
|
};
|
|
118
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, 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
|
|
@@ -82,6 +82,15 @@ export const DataApiService = {
|
|
|
82
82
|
O: GetTokenHistoryVolumeResponse,
|
|
83
83
|
kind: MethodKind.Unary,
|
|
84
84
|
},
|
|
85
|
+
/**
|
|
86
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryPrice
|
|
87
|
+
*/
|
|
88
|
+
getTokenHistoryPrice: {
|
|
89
|
+
name: "GetTokenHistoryPrice",
|
|
90
|
+
I: GetTokenHistoryPriceRequest,
|
|
91
|
+
O: GetTokenHistoryPriceResponse,
|
|
92
|
+
kind: MethodKind.Unary,
|
|
93
|
+
},
|
|
85
94
|
/**
|
|
86
95
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
87
96
|
*/
|
|
@@ -118,5 +127,14 @@ export const DataApiService = {
|
|
|
118
127
|
O: GetEarnPositionResponse,
|
|
119
128
|
kind: MethodKind.Unary,
|
|
120
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
|
+
},
|
|
121
139
|
}
|
|
122
140
|
};
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -312,6 +312,86 @@ export declare class VolumeBucket extends Message<VolumeBucket> {
|
|
|
312
312
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VolumeBucket;
|
|
313
313
|
static equals(a: VolumeBucket | PlainMessage<VolumeBucket> | undefined, b: VolumeBucket | PlainMessage<VolumeBucket> | undefined): boolean;
|
|
314
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* @generated from message data.v2.GetTokenHistoryPriceRequest
|
|
317
|
+
*/
|
|
318
|
+
export declare class GetTokenHistoryPriceRequest extends Message<GetTokenHistoryPriceRequest> {
|
|
319
|
+
/**
|
|
320
|
+
* @generated from oneof data.v2.GetTokenHistoryPriceRequest.target
|
|
321
|
+
*/
|
|
322
|
+
target: {
|
|
323
|
+
/**
|
|
324
|
+
* @generated from field: data.v2.TokenIdentifier single_chain = 1;
|
|
325
|
+
*/
|
|
326
|
+
value: TokenIdentifier;
|
|
327
|
+
case: "singleChain";
|
|
328
|
+
} | {
|
|
329
|
+
/**
|
|
330
|
+
* canonical chain, not a sum
|
|
331
|
+
*
|
|
332
|
+
* @generated from field: data.v2.MultichainTarget multichain = 2;
|
|
333
|
+
*/
|
|
334
|
+
value: MultichainTarget;
|
|
335
|
+
case: "multichain";
|
|
336
|
+
} | {
|
|
337
|
+
case: undefined;
|
|
338
|
+
value?: undefined;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* UNSPECIFIED -> DAY
|
|
342
|
+
*
|
|
343
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
344
|
+
*/
|
|
345
|
+
duration: HistoryDuration;
|
|
346
|
+
constructor(data?: PartialMessage<GetTokenHistoryPriceRequest>);
|
|
347
|
+
static readonly runtime: typeof proto3;
|
|
348
|
+
static readonly typeName = "data.v2.GetTokenHistoryPriceRequest";
|
|
349
|
+
static readonly fields: FieldList;
|
|
350
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryPriceRequest;
|
|
351
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryPriceRequest;
|
|
352
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryPriceRequest;
|
|
353
|
+
static equals(a: GetTokenHistoryPriceRequest | PlainMessage<GetTokenHistoryPriceRequest> | undefined, b: GetTokenHistoryPriceRequest | PlainMessage<GetTokenHistoryPriceRequest> | undefined): boolean;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* @generated from message data.v2.GetTokenHistoryPriceResponse
|
|
357
|
+
*/
|
|
358
|
+
export declare class GetTokenHistoryPriceResponse extends Message<GetTokenHistoryPriceResponse> {
|
|
359
|
+
/**
|
|
360
|
+
* @generated from field: repeated data.v2.PricePoint points = 1;
|
|
361
|
+
*/
|
|
362
|
+
points: PricePoint[];
|
|
363
|
+
constructor(data?: PartialMessage<GetTokenHistoryPriceResponse>);
|
|
364
|
+
static readonly runtime: typeof proto3;
|
|
365
|
+
static readonly typeName = "data.v2.GetTokenHistoryPriceResponse";
|
|
366
|
+
static readonly fields: FieldList;
|
|
367
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryPriceResponse;
|
|
368
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryPriceResponse;
|
|
369
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryPriceResponse;
|
|
370
|
+
static equals(a: GetTokenHistoryPriceResponse | PlainMessage<GetTokenHistoryPriceResponse> | undefined, b: GetTokenHistoryPriceResponse | PlainMessage<GetTokenHistoryPriceResponse> | undefined): boolean;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* @generated from message data.v2.PricePoint
|
|
374
|
+
*/
|
|
375
|
+
export declare class PricePoint extends Message<PricePoint> {
|
|
376
|
+
/**
|
|
377
|
+
* unix seconds, bucket start
|
|
378
|
+
*
|
|
379
|
+
* @generated from field: int64 timestamp = 1;
|
|
380
|
+
*/
|
|
381
|
+
timestamp: bigint;
|
|
382
|
+
/**
|
|
383
|
+
* @generated from field: double price_usd = 2;
|
|
384
|
+
*/
|
|
385
|
+
priceUsd: number;
|
|
386
|
+
constructor(data?: PartialMessage<PricePoint>);
|
|
387
|
+
static readonly runtime: typeof proto3;
|
|
388
|
+
static readonly typeName = "data.v2.PricePoint";
|
|
389
|
+
static readonly fields: FieldList;
|
|
390
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PricePoint;
|
|
391
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PricePoint;
|
|
392
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PricePoint;
|
|
393
|
+
static equals(a: PricePoint | PlainMessage<PricePoint> | undefined, b: PricePoint | PlainMessage<PricePoint> | undefined): boolean;
|
|
394
|
+
}
|
|
315
395
|
/**
|
|
316
396
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
317
397
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
|
@@ -742,3 +822,66 @@ export declare class ListTokensResponse extends Message<ListTokensResponse> {
|
|
|
742
822
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensResponse;
|
|
743
823
|
static equals(a: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined, b: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined): boolean;
|
|
744
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
|
+
}
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -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
|
/**
|
|
@@ -403,6 +403,111 @@ VolumeBucket.fields = proto3.util.newFieldList(() => [
|
|
|
403
403
|
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
404
404
|
{ no: 2, name: "volume_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
405
405
|
]);
|
|
406
|
+
/**
|
|
407
|
+
* @generated from message data.v2.GetTokenHistoryPriceRequest
|
|
408
|
+
*/
|
|
409
|
+
export class GetTokenHistoryPriceRequest extends Message {
|
|
410
|
+
constructor(data) {
|
|
411
|
+
super();
|
|
412
|
+
/**
|
|
413
|
+
* @generated from oneof data.v2.GetTokenHistoryPriceRequest.target
|
|
414
|
+
*/
|
|
415
|
+
this.target = { case: undefined };
|
|
416
|
+
/**
|
|
417
|
+
* UNSPECIFIED -> DAY
|
|
418
|
+
*
|
|
419
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
420
|
+
*/
|
|
421
|
+
this.duration = HistoryDuration.UNSPECIFIED;
|
|
422
|
+
proto3.util.initPartial(data, this);
|
|
423
|
+
}
|
|
424
|
+
static fromBinary(bytes, options) {
|
|
425
|
+
return new GetTokenHistoryPriceRequest().fromBinary(bytes, options);
|
|
426
|
+
}
|
|
427
|
+
static fromJson(jsonValue, options) {
|
|
428
|
+
return new GetTokenHistoryPriceRequest().fromJson(jsonValue, options);
|
|
429
|
+
}
|
|
430
|
+
static fromJsonString(jsonString, options) {
|
|
431
|
+
return new GetTokenHistoryPriceRequest().fromJsonString(jsonString, options);
|
|
432
|
+
}
|
|
433
|
+
static equals(a, b) {
|
|
434
|
+
return proto3.util.equals(GetTokenHistoryPriceRequest, a, b);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
GetTokenHistoryPriceRequest.runtime = proto3;
|
|
438
|
+
GetTokenHistoryPriceRequest.typeName = "data.v2.GetTokenHistoryPriceRequest";
|
|
439
|
+
GetTokenHistoryPriceRequest.fields = proto3.util.newFieldList(() => [
|
|
440
|
+
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
441
|
+
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
442
|
+
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
443
|
+
]);
|
|
444
|
+
/**
|
|
445
|
+
* @generated from message data.v2.GetTokenHistoryPriceResponse
|
|
446
|
+
*/
|
|
447
|
+
export class GetTokenHistoryPriceResponse extends Message {
|
|
448
|
+
constructor(data) {
|
|
449
|
+
super();
|
|
450
|
+
/**
|
|
451
|
+
* @generated from field: repeated data.v2.PricePoint points = 1;
|
|
452
|
+
*/
|
|
453
|
+
this.points = [];
|
|
454
|
+
proto3.util.initPartial(data, this);
|
|
455
|
+
}
|
|
456
|
+
static fromBinary(bytes, options) {
|
|
457
|
+
return new GetTokenHistoryPriceResponse().fromBinary(bytes, options);
|
|
458
|
+
}
|
|
459
|
+
static fromJson(jsonValue, options) {
|
|
460
|
+
return new GetTokenHistoryPriceResponse().fromJson(jsonValue, options);
|
|
461
|
+
}
|
|
462
|
+
static fromJsonString(jsonString, options) {
|
|
463
|
+
return new GetTokenHistoryPriceResponse().fromJsonString(jsonString, options);
|
|
464
|
+
}
|
|
465
|
+
static equals(a, b) {
|
|
466
|
+
return proto3.util.equals(GetTokenHistoryPriceResponse, a, b);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
GetTokenHistoryPriceResponse.runtime = proto3;
|
|
470
|
+
GetTokenHistoryPriceResponse.typeName = "data.v2.GetTokenHistoryPriceResponse";
|
|
471
|
+
GetTokenHistoryPriceResponse.fields = proto3.util.newFieldList(() => [
|
|
472
|
+
{ no: 1, name: "points", kind: "message", T: PricePoint, repeated: true },
|
|
473
|
+
]);
|
|
474
|
+
/**
|
|
475
|
+
* @generated from message data.v2.PricePoint
|
|
476
|
+
*/
|
|
477
|
+
export class PricePoint extends Message {
|
|
478
|
+
constructor(data) {
|
|
479
|
+
super();
|
|
480
|
+
/**
|
|
481
|
+
* unix seconds, bucket start
|
|
482
|
+
*
|
|
483
|
+
* @generated from field: int64 timestamp = 1;
|
|
484
|
+
*/
|
|
485
|
+
this.timestamp = protoInt64.zero;
|
|
486
|
+
/**
|
|
487
|
+
* @generated from field: double price_usd = 2;
|
|
488
|
+
*/
|
|
489
|
+
this.priceUsd = 0;
|
|
490
|
+
proto3.util.initPartial(data, this);
|
|
491
|
+
}
|
|
492
|
+
static fromBinary(bytes, options) {
|
|
493
|
+
return new PricePoint().fromBinary(bytes, options);
|
|
494
|
+
}
|
|
495
|
+
static fromJson(jsonValue, options) {
|
|
496
|
+
return new PricePoint().fromJson(jsonValue, options);
|
|
497
|
+
}
|
|
498
|
+
static fromJsonString(jsonString, options) {
|
|
499
|
+
return new PricePoint().fromJsonString(jsonString, options);
|
|
500
|
+
}
|
|
501
|
+
static equals(a, b) {
|
|
502
|
+
return proto3.util.equals(PricePoint, a, b);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
PricePoint.runtime = proto3;
|
|
506
|
+
PricePoint.typeName = "data.v2.PricePoint";
|
|
507
|
+
PricePoint.fields = proto3.util.newFieldList(() => [
|
|
508
|
+
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
509
|
+
{ no: 2, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
510
|
+
]);
|
|
406
511
|
/**
|
|
407
512
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
408
513
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
|
@@ -1019,3 +1124,78 @@ ListTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1019
1124
|
{ no: 1, name: "multichain_tokens", kind: "message", T: RankedMultichainToken, repeated: true },
|
|
1020
1125
|
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
1021
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
|
+
}
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -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
|
+
]);
|