@uniswap/client-data-api 0.0.114 → 0.0.116
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 +146 -1
- package/dist/data/v2/api_pb.js +177 -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, 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, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, 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
|
*/
|
|
@@ -117,6 +117,19 @@ export declare const getTokenHistoryPrice: {
|
|
|
117
117
|
readonly typeName: "data.v2.DataApiService";
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryTVL
|
|
122
|
+
*/
|
|
123
|
+
export declare const getTokenHistoryTVL: {
|
|
124
|
+
readonly localName: "getTokenHistoryTVL";
|
|
125
|
+
readonly name: "GetTokenHistoryTVL";
|
|
126
|
+
readonly kind: MethodKind.Unary;
|
|
127
|
+
readonly I: typeof GetTokenHistoryTVLRequest;
|
|
128
|
+
readonly O: typeof GetTokenHistoryTVLResponse;
|
|
129
|
+
readonly service: {
|
|
130
|
+
readonly typeName: "data.v2.DataApiService";
|
|
131
|
+
};
|
|
132
|
+
};
|
|
120
133
|
/**
|
|
121
134
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
122
135
|
*/
|
|
@@ -169,3 +182,16 @@ export declare const getEarnPosition: {
|
|
|
169
182
|
readonly typeName: "data.v2.DataApiService";
|
|
170
183
|
};
|
|
171
184
|
};
|
|
185
|
+
/**
|
|
186
|
+
* @generated from rpc data.v2.DataApiService.GetWalletNfts
|
|
187
|
+
*/
|
|
188
|
+
export declare const getWalletNfts: {
|
|
189
|
+
readonly localName: "getWalletNfts";
|
|
190
|
+
readonly name: "GetWalletNfts";
|
|
191
|
+
readonly kind: MethodKind.Unary;
|
|
192
|
+
readonly I: typeof GetWalletNftsRequest;
|
|
193
|
+
readonly O: typeof GetWalletNftsResponse;
|
|
194
|
+
readonly service: {
|
|
195
|
+
readonly typeName: "data.v2.DataApiService";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
@@ -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, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, 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
|
*/
|
|
@@ -121,6 +121,19 @@ export const getTokenHistoryPrice = {
|
|
|
121
121
|
typeName: "data.v2.DataApiService"
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryTVL
|
|
126
|
+
*/
|
|
127
|
+
export const getTokenHistoryTVL = {
|
|
128
|
+
localName: "getTokenHistoryTVL",
|
|
129
|
+
name: "GetTokenHistoryTVL",
|
|
130
|
+
kind: MethodKind.Unary,
|
|
131
|
+
I: GetTokenHistoryTVLRequest,
|
|
132
|
+
O: GetTokenHistoryTVLResponse,
|
|
133
|
+
service: {
|
|
134
|
+
typeName: "data.v2.DataApiService"
|
|
135
|
+
}
|
|
136
|
+
};
|
|
124
137
|
/**
|
|
125
138
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
126
139
|
*/
|
|
@@ -173,3 +186,16 @@ export const getEarnPosition = {
|
|
|
173
186
|
typeName: "data.v2.DataApiService"
|
|
174
187
|
}
|
|
175
188
|
};
|
|
189
|
+
/**
|
|
190
|
+
* @generated from rpc data.v2.DataApiService.GetWalletNfts
|
|
191
|
+
*/
|
|
192
|
+
export const getWalletNfts = {
|
|
193
|
+
localName: "getWalletNfts",
|
|
194
|
+
name: "GetWalletNfts",
|
|
195
|
+
kind: MethodKind.Unary,
|
|
196
|
+
I: GetWalletNftsRequest,
|
|
197
|
+
O: GetWalletNftsResponse,
|
|
198
|
+
service: {
|
|
199
|
+
typeName: "data.v2.DataApiService"
|
|
200
|
+
}
|
|
201
|
+
};
|
|
@@ -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, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, 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
|
|
@@ -87,6 +87,15 @@ export declare const DataApiService: {
|
|
|
87
87
|
readonly O: typeof GetTokenHistoryPriceResponse;
|
|
88
88
|
readonly kind: MethodKind.Unary;
|
|
89
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryTVL
|
|
92
|
+
*/
|
|
93
|
+
readonly getTokenHistoryTVL: {
|
|
94
|
+
readonly name: "GetTokenHistoryTVL";
|
|
95
|
+
readonly I: typeof GetTokenHistoryTVLRequest;
|
|
96
|
+
readonly O: typeof GetTokenHistoryTVLResponse;
|
|
97
|
+
readonly kind: MethodKind.Unary;
|
|
98
|
+
};
|
|
90
99
|
/**
|
|
91
100
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
92
101
|
*/
|
|
@@ -123,5 +132,14 @@ export declare const DataApiService: {
|
|
|
123
132
|
readonly O: typeof GetEarnPositionResponse;
|
|
124
133
|
readonly kind: MethodKind.Unary;
|
|
125
134
|
};
|
|
135
|
+
/**
|
|
136
|
+
* @generated from rpc data.v2.DataApiService.GetWalletNfts
|
|
137
|
+
*/
|
|
138
|
+
readonly getWalletNfts: {
|
|
139
|
+
readonly name: "GetWalletNfts";
|
|
140
|
+
readonly I: typeof GetWalletNftsRequest;
|
|
141
|
+
readonly O: typeof GetWalletNftsResponse;
|
|
142
|
+
readonly kind: MethodKind.Unary;
|
|
143
|
+
};
|
|
126
144
|
};
|
|
127
145
|
};
|
|
@@ -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, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, 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
|
|
@@ -91,6 +91,15 @@ export const DataApiService = {
|
|
|
91
91
|
O: GetTokenHistoryPriceResponse,
|
|
92
92
|
kind: MethodKind.Unary,
|
|
93
93
|
},
|
|
94
|
+
/**
|
|
95
|
+
* @generated from rpc data.v2.DataApiService.GetTokenHistoryTVL
|
|
96
|
+
*/
|
|
97
|
+
getTokenHistoryTVL: {
|
|
98
|
+
name: "GetTokenHistoryTVL",
|
|
99
|
+
I: GetTokenHistoryTVLRequest,
|
|
100
|
+
O: GetTokenHistoryTVLResponse,
|
|
101
|
+
kind: MethodKind.Unary,
|
|
102
|
+
},
|
|
94
103
|
/**
|
|
95
104
|
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
96
105
|
*/
|
|
@@ -127,5 +136,14 @@ export const DataApiService = {
|
|
|
127
136
|
O: GetEarnPositionResponse,
|
|
128
137
|
kind: MethodKind.Unary,
|
|
129
138
|
},
|
|
139
|
+
/**
|
|
140
|
+
* @generated from rpc data.v2.DataApiService.GetWalletNfts
|
|
141
|
+
*/
|
|
142
|
+
getWalletNfts: {
|
|
143
|
+
name: "GetWalletNfts",
|
|
144
|
+
I: GetWalletNftsRequest,
|
|
145
|
+
O: GetWalletNftsResponse,
|
|
146
|
+
kind: MethodKind.Unary,
|
|
147
|
+
},
|
|
130
148
|
}
|
|
131
149
|
};
|
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
|
/**
|
|
@@ -392,6 +392,88 @@ export declare class PricePoint extends Message<PricePoint> {
|
|
|
392
392
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PricePoint;
|
|
393
393
|
static equals(a: PricePoint | PlainMessage<PricePoint> | undefined, b: PricePoint | PlainMessage<PricePoint> | undefined): boolean;
|
|
394
394
|
}
|
|
395
|
+
/**
|
|
396
|
+
* @generated from message data.v2.GetTokenHistoryTVLRequest
|
|
397
|
+
*/
|
|
398
|
+
export declare class GetTokenHistoryTVLRequest extends Message<GetTokenHistoryTVLRequest> {
|
|
399
|
+
/**
|
|
400
|
+
* @generated from oneof data.v2.GetTokenHistoryTVLRequest.target
|
|
401
|
+
*/
|
|
402
|
+
target: {
|
|
403
|
+
/**
|
|
404
|
+
* @generated from field: data.v2.TokenIdentifier single_chain = 1;
|
|
405
|
+
*/
|
|
406
|
+
value: TokenIdentifier;
|
|
407
|
+
case: "singleChain";
|
|
408
|
+
} | {
|
|
409
|
+
/**
|
|
410
|
+
* SUMs TVL across the asset's chains
|
|
411
|
+
*
|
|
412
|
+
* @generated from field: data.v2.MultichainTarget multichain = 2;
|
|
413
|
+
*/
|
|
414
|
+
value: MultichainTarget;
|
|
415
|
+
case: "multichain";
|
|
416
|
+
} | {
|
|
417
|
+
case: undefined;
|
|
418
|
+
value?: undefined;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* UNSPECIFIED -> DAY
|
|
422
|
+
*
|
|
423
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
424
|
+
*/
|
|
425
|
+
duration: HistoryDuration;
|
|
426
|
+
constructor(data?: PartialMessage<GetTokenHistoryTVLRequest>);
|
|
427
|
+
static readonly runtime: typeof proto3;
|
|
428
|
+
static readonly typeName = "data.v2.GetTokenHistoryTVLRequest";
|
|
429
|
+
static readonly fields: FieldList;
|
|
430
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryTVLRequest;
|
|
431
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLRequest;
|
|
432
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLRequest;
|
|
433
|
+
static equals(a: GetTokenHistoryTVLRequest | PlainMessage<GetTokenHistoryTVLRequest> | undefined, b: GetTokenHistoryTVLRequest | PlainMessage<GetTokenHistoryTVLRequest> | undefined): boolean;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* @generated from message data.v2.GetTokenHistoryTVLResponse
|
|
437
|
+
*/
|
|
438
|
+
export declare class GetTokenHistoryTVLResponse extends Message<GetTokenHistoryTVLResponse> {
|
|
439
|
+
/**
|
|
440
|
+
* @generated from field: repeated data.v2.TvlPoint points = 1;
|
|
441
|
+
*/
|
|
442
|
+
points: TvlPoint[];
|
|
443
|
+
constructor(data?: PartialMessage<GetTokenHistoryTVLResponse>);
|
|
444
|
+
static readonly runtime: typeof proto3;
|
|
445
|
+
static readonly typeName = "data.v2.GetTokenHistoryTVLResponse";
|
|
446
|
+
static readonly fields: FieldList;
|
|
447
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenHistoryTVLResponse;
|
|
448
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
|
|
449
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenHistoryTVLResponse;
|
|
450
|
+
static equals(a: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined, b: GetTokenHistoryTVLResponse | PlainMessage<GetTokenHistoryTVLResponse> | undefined): boolean;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* @generated from message data.v2.TvlPoint
|
|
454
|
+
*/
|
|
455
|
+
export declare class TvlPoint extends Message<TvlPoint> {
|
|
456
|
+
/**
|
|
457
|
+
* unix seconds, bucket start
|
|
458
|
+
*
|
|
459
|
+
* @generated from field: int64 timestamp = 1;
|
|
460
|
+
*/
|
|
461
|
+
timestamp: bigint;
|
|
462
|
+
/**
|
|
463
|
+
* unset when no constituent had a known USD price
|
|
464
|
+
*
|
|
465
|
+
* @generated from field: optional double tvl_usd = 2;
|
|
466
|
+
*/
|
|
467
|
+
tvlUsd?: number;
|
|
468
|
+
constructor(data?: PartialMessage<TvlPoint>);
|
|
469
|
+
static readonly runtime: typeof proto3;
|
|
470
|
+
static readonly typeName = "data.v2.TvlPoint";
|
|
471
|
+
static readonly fields: FieldList;
|
|
472
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TvlPoint;
|
|
473
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TvlPoint;
|
|
474
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TvlPoint;
|
|
475
|
+
static equals(a: TvlPoint | PlainMessage<TvlPoint> | undefined, b: TvlPoint | PlainMessage<TvlPoint> | undefined): boolean;
|
|
476
|
+
}
|
|
395
477
|
/**
|
|
396
478
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
397
479
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
|
@@ -822,3 +904,66 @@ export declare class ListTokensResponse extends Message<ListTokensResponse> {
|
|
|
822
904
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensResponse;
|
|
823
905
|
static equals(a: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined, b: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined): boolean;
|
|
824
906
|
}
|
|
907
|
+
/**
|
|
908
|
+
* Wallet NFT balances. EVM-only: a single owner_address covers all supported
|
|
909
|
+
* EVM chains. Spam is returned and flagged by default; malicious is always dropped.
|
|
910
|
+
*
|
|
911
|
+
* @generated from message data.v2.GetWalletNftsRequest
|
|
912
|
+
*/
|
|
913
|
+
export declare class GetWalletNftsRequest extends Message<GetWalletNftsRequest> {
|
|
914
|
+
/**
|
|
915
|
+
* required, EVM address
|
|
916
|
+
*
|
|
917
|
+
* @generated from field: string owner_address = 1;
|
|
918
|
+
*/
|
|
919
|
+
ownerAddress: string;
|
|
920
|
+
/**
|
|
921
|
+
* required; empty/missing returns 400
|
|
922
|
+
*
|
|
923
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
924
|
+
*/
|
|
925
|
+
chainIds: number[];
|
|
926
|
+
/**
|
|
927
|
+
* default true (spam returned, flagged); false drops spam
|
|
928
|
+
*
|
|
929
|
+
* @generated from field: optional bool include_spam = 3;
|
|
930
|
+
*/
|
|
931
|
+
includeSpam?: boolean;
|
|
932
|
+
/**
|
|
933
|
+
* page_size (default 100) + page_token
|
|
934
|
+
*
|
|
935
|
+
* @generated from field: optional data.v2.PageRequest page = 4;
|
|
936
|
+
*/
|
|
937
|
+
page?: PageRequest;
|
|
938
|
+
constructor(data?: PartialMessage<GetWalletNftsRequest>);
|
|
939
|
+
static readonly runtime: typeof proto3;
|
|
940
|
+
static readonly typeName = "data.v2.GetWalletNftsRequest";
|
|
941
|
+
static readonly fields: FieldList;
|
|
942
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletNftsRequest;
|
|
943
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletNftsRequest;
|
|
944
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletNftsRequest;
|
|
945
|
+
static equals(a: GetWalletNftsRequest | PlainMessage<GetWalletNftsRequest> | undefined, b: GetWalletNftsRequest | PlainMessage<GetWalletNftsRequest> | undefined): boolean;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* @generated from message data.v2.GetWalletNftsResponse
|
|
949
|
+
*/
|
|
950
|
+
export declare class GetWalletNftsResponse extends Message<GetWalletNftsResponse> {
|
|
951
|
+
/**
|
|
952
|
+
* @generated from field: repeated data.v2.Nft nfts = 1;
|
|
953
|
+
*/
|
|
954
|
+
nfts: Nft[];
|
|
955
|
+
/**
|
|
956
|
+
* next_page_token absent on last page
|
|
957
|
+
*
|
|
958
|
+
* @generated from field: data.v2.PageResponse page = 2;
|
|
959
|
+
*/
|
|
960
|
+
page?: PageResponse;
|
|
961
|
+
constructor(data?: PartialMessage<GetWalletNftsResponse>);
|
|
962
|
+
static readonly runtime: typeof proto3;
|
|
963
|
+
static readonly typeName = "data.v2.GetWalletNftsResponse";
|
|
964
|
+
static readonly fields: FieldList;
|
|
965
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletNftsResponse;
|
|
966
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletNftsResponse;
|
|
967
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletNftsResponse;
|
|
968
|
+
static equals(a: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined, b: GetWalletNftsResponse | PlainMessage<GetWalletNftsResponse> | undefined): boolean;
|
|
969
|
+
}
|
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
|
/**
|
|
@@ -508,6 +508,107 @@ PricePoint.fields = proto3.util.newFieldList(() => [
|
|
|
508
508
|
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
509
509
|
{ no: 2, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
510
510
|
]);
|
|
511
|
+
/**
|
|
512
|
+
* @generated from message data.v2.GetTokenHistoryTVLRequest
|
|
513
|
+
*/
|
|
514
|
+
export class GetTokenHistoryTVLRequest extends Message {
|
|
515
|
+
constructor(data) {
|
|
516
|
+
super();
|
|
517
|
+
/**
|
|
518
|
+
* @generated from oneof data.v2.GetTokenHistoryTVLRequest.target
|
|
519
|
+
*/
|
|
520
|
+
this.target = { case: undefined };
|
|
521
|
+
/**
|
|
522
|
+
* UNSPECIFIED -> DAY
|
|
523
|
+
*
|
|
524
|
+
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
525
|
+
*/
|
|
526
|
+
this.duration = HistoryDuration.UNSPECIFIED;
|
|
527
|
+
proto3.util.initPartial(data, this);
|
|
528
|
+
}
|
|
529
|
+
static fromBinary(bytes, options) {
|
|
530
|
+
return new GetTokenHistoryTVLRequest().fromBinary(bytes, options);
|
|
531
|
+
}
|
|
532
|
+
static fromJson(jsonValue, options) {
|
|
533
|
+
return new GetTokenHistoryTVLRequest().fromJson(jsonValue, options);
|
|
534
|
+
}
|
|
535
|
+
static fromJsonString(jsonString, options) {
|
|
536
|
+
return new GetTokenHistoryTVLRequest().fromJsonString(jsonString, options);
|
|
537
|
+
}
|
|
538
|
+
static equals(a, b) {
|
|
539
|
+
return proto3.util.equals(GetTokenHistoryTVLRequest, a, b);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
GetTokenHistoryTVLRequest.runtime = proto3;
|
|
543
|
+
GetTokenHistoryTVLRequest.typeName = "data.v2.GetTokenHistoryTVLRequest";
|
|
544
|
+
GetTokenHistoryTVLRequest.fields = proto3.util.newFieldList(() => [
|
|
545
|
+
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
546
|
+
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
547
|
+
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
548
|
+
]);
|
|
549
|
+
/**
|
|
550
|
+
* @generated from message data.v2.GetTokenHistoryTVLResponse
|
|
551
|
+
*/
|
|
552
|
+
export class GetTokenHistoryTVLResponse extends Message {
|
|
553
|
+
constructor(data) {
|
|
554
|
+
super();
|
|
555
|
+
/**
|
|
556
|
+
* @generated from field: repeated data.v2.TvlPoint points = 1;
|
|
557
|
+
*/
|
|
558
|
+
this.points = [];
|
|
559
|
+
proto3.util.initPartial(data, this);
|
|
560
|
+
}
|
|
561
|
+
static fromBinary(bytes, options) {
|
|
562
|
+
return new GetTokenHistoryTVLResponse().fromBinary(bytes, options);
|
|
563
|
+
}
|
|
564
|
+
static fromJson(jsonValue, options) {
|
|
565
|
+
return new GetTokenHistoryTVLResponse().fromJson(jsonValue, options);
|
|
566
|
+
}
|
|
567
|
+
static fromJsonString(jsonString, options) {
|
|
568
|
+
return new GetTokenHistoryTVLResponse().fromJsonString(jsonString, options);
|
|
569
|
+
}
|
|
570
|
+
static equals(a, b) {
|
|
571
|
+
return proto3.util.equals(GetTokenHistoryTVLResponse, a, b);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
GetTokenHistoryTVLResponse.runtime = proto3;
|
|
575
|
+
GetTokenHistoryTVLResponse.typeName = "data.v2.GetTokenHistoryTVLResponse";
|
|
576
|
+
GetTokenHistoryTVLResponse.fields = proto3.util.newFieldList(() => [
|
|
577
|
+
{ no: 1, name: "points", kind: "message", T: TvlPoint, repeated: true },
|
|
578
|
+
]);
|
|
579
|
+
/**
|
|
580
|
+
* @generated from message data.v2.TvlPoint
|
|
581
|
+
*/
|
|
582
|
+
export class TvlPoint extends Message {
|
|
583
|
+
constructor(data) {
|
|
584
|
+
super();
|
|
585
|
+
/**
|
|
586
|
+
* unix seconds, bucket start
|
|
587
|
+
*
|
|
588
|
+
* @generated from field: int64 timestamp = 1;
|
|
589
|
+
*/
|
|
590
|
+
this.timestamp = protoInt64.zero;
|
|
591
|
+
proto3.util.initPartial(data, this);
|
|
592
|
+
}
|
|
593
|
+
static fromBinary(bytes, options) {
|
|
594
|
+
return new TvlPoint().fromBinary(bytes, options);
|
|
595
|
+
}
|
|
596
|
+
static fromJson(jsonValue, options) {
|
|
597
|
+
return new TvlPoint().fromJson(jsonValue, options);
|
|
598
|
+
}
|
|
599
|
+
static fromJsonString(jsonString, options) {
|
|
600
|
+
return new TvlPoint().fromJsonString(jsonString, options);
|
|
601
|
+
}
|
|
602
|
+
static equals(a, b) {
|
|
603
|
+
return proto3.util.equals(TvlPoint, a, b);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
TvlPoint.runtime = proto3;
|
|
607
|
+
TvlPoint.typeName = "data.v2.TvlPoint";
|
|
608
|
+
TvlPoint.fields = proto3.util.newFieldList(() => [
|
|
609
|
+
{ no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
610
|
+
{ no: 2, name: "tvl_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
611
|
+
]);
|
|
511
612
|
/**
|
|
512
613
|
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
513
614
|
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
|
@@ -1124,3 +1225,78 @@ ListTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1124
1225
|
{ no: 1, name: "multichain_tokens", kind: "message", T: RankedMultichainToken, repeated: true },
|
|
1125
1226
|
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
1126
1227
|
]);
|
|
1228
|
+
/**
|
|
1229
|
+
* Wallet NFT balances. EVM-only: a single owner_address covers all supported
|
|
1230
|
+
* EVM chains. Spam is returned and flagged by default; malicious is always dropped.
|
|
1231
|
+
*
|
|
1232
|
+
* @generated from message data.v2.GetWalletNftsRequest
|
|
1233
|
+
*/
|
|
1234
|
+
export class GetWalletNftsRequest extends Message {
|
|
1235
|
+
constructor(data) {
|
|
1236
|
+
super();
|
|
1237
|
+
/**
|
|
1238
|
+
* required, EVM address
|
|
1239
|
+
*
|
|
1240
|
+
* @generated from field: string owner_address = 1;
|
|
1241
|
+
*/
|
|
1242
|
+
this.ownerAddress = "";
|
|
1243
|
+
/**
|
|
1244
|
+
* required; empty/missing returns 400
|
|
1245
|
+
*
|
|
1246
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
1247
|
+
*/
|
|
1248
|
+
this.chainIds = [];
|
|
1249
|
+
proto3.util.initPartial(data, this);
|
|
1250
|
+
}
|
|
1251
|
+
static fromBinary(bytes, options) {
|
|
1252
|
+
return new GetWalletNftsRequest().fromBinary(bytes, options);
|
|
1253
|
+
}
|
|
1254
|
+
static fromJson(jsonValue, options) {
|
|
1255
|
+
return new GetWalletNftsRequest().fromJson(jsonValue, options);
|
|
1256
|
+
}
|
|
1257
|
+
static fromJsonString(jsonString, options) {
|
|
1258
|
+
return new GetWalletNftsRequest().fromJsonString(jsonString, options);
|
|
1259
|
+
}
|
|
1260
|
+
static equals(a, b) {
|
|
1261
|
+
return proto3.util.equals(GetWalletNftsRequest, a, b);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
GetWalletNftsRequest.runtime = proto3;
|
|
1265
|
+
GetWalletNftsRequest.typeName = "data.v2.GetWalletNftsRequest";
|
|
1266
|
+
GetWalletNftsRequest.fields = proto3.util.newFieldList(() => [
|
|
1267
|
+
{ no: 1, name: "owner_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1268
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1269
|
+
{ no: 3, name: "include_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1270
|
+
{ no: 4, name: "page", kind: "message", T: PageRequest, opt: true },
|
|
1271
|
+
]);
|
|
1272
|
+
/**
|
|
1273
|
+
* @generated from message data.v2.GetWalletNftsResponse
|
|
1274
|
+
*/
|
|
1275
|
+
export class GetWalletNftsResponse extends Message {
|
|
1276
|
+
constructor(data) {
|
|
1277
|
+
super();
|
|
1278
|
+
/**
|
|
1279
|
+
* @generated from field: repeated data.v2.Nft nfts = 1;
|
|
1280
|
+
*/
|
|
1281
|
+
this.nfts = [];
|
|
1282
|
+
proto3.util.initPartial(data, this);
|
|
1283
|
+
}
|
|
1284
|
+
static fromBinary(bytes, options) {
|
|
1285
|
+
return new GetWalletNftsResponse().fromBinary(bytes, options);
|
|
1286
|
+
}
|
|
1287
|
+
static fromJson(jsonValue, options) {
|
|
1288
|
+
return new GetWalletNftsResponse().fromJson(jsonValue, options);
|
|
1289
|
+
}
|
|
1290
|
+
static fromJsonString(jsonString, options) {
|
|
1291
|
+
return new GetWalletNftsResponse().fromJsonString(jsonString, options);
|
|
1292
|
+
}
|
|
1293
|
+
static equals(a, b) {
|
|
1294
|
+
return proto3.util.equals(GetWalletNftsResponse, a, b);
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
GetWalletNftsResponse.runtime = proto3;
|
|
1298
|
+
GetWalletNftsResponse.typeName = "data.v2.GetWalletNftsResponse";
|
|
1299
|
+
GetWalletNftsResponse.fields = proto3.util.newFieldList(() => [
|
|
1300
|
+
{ no: 1, name: "nfts", kind: "message", T: Nft, repeated: true },
|
|
1301
|
+
{ no: 2, name: "page", kind: "message", T: PageResponse },
|
|
1302
|
+
]);
|
|
@@ -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
|
+
]);
|