@uniswap/client-data-api 0.0.127 → 0.0.129
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/v1/auction_pb.d.ts +10 -0
- package/dist/data/v1/auction_pb.js +11 -0
- package/dist/data/v2/api-DataApiService_connectquery.d.ts +14 -1
- package/dist/data/v2/api-DataApiService_connectquery.js +14 -1
- package/dist/data/v2/api_connect.d.ts +10 -1
- package/dist/data/v2/api_connect.js +10 -1
- package/dist/data/v2/api_pb.d.ts +67 -0
- package/dist/data/v2/api_pb.js +69 -0
- package/dist/data/v2/types_pb.d.ts +9 -1
- package/dist/data/v2/types_pb.js +10 -1
- package/package.json +1 -1
|
@@ -539,6 +539,16 @@ export declare class Auction extends Message<Auction> {
|
|
|
539
539
|
* @generated from field: optional string pool_owner = 45;
|
|
540
540
|
*/
|
|
541
541
|
poolOwner?: string;
|
|
542
|
+
/**
|
|
543
|
+
* Quick-launch classification, computed server-side from the on-chain CCA
|
|
544
|
+
* params via the SDK's pure isQuickLaunch() matcher (native raise + 1B supply
|
|
545
|
+
* + 4h window). Descriptor for the badge / discovery / create flow ONLY.
|
|
546
|
+
* Reproducible by construction from CCA params, so it MUST NOT gate
|
|
547
|
+
* suppression of Blockaid / token-protection warnings (LP-1076).
|
|
548
|
+
*
|
|
549
|
+
* @generated from field: bool is_quick_launch = 46;
|
|
550
|
+
*/
|
|
551
|
+
isQuickLaunch: boolean;
|
|
542
552
|
constructor(data?: PartialMessage<Auction>);
|
|
543
553
|
static readonly runtime: typeof proto3;
|
|
544
554
|
static readonly typeName = "data.v1.Auction";
|
|
@@ -549,6 +549,16 @@ export class Auction extends Message {
|
|
|
549
549
|
* @generated from field: repeated data.v1.AuctionStep parsed_auction_steps = 25;
|
|
550
550
|
*/
|
|
551
551
|
this.parsedAuctionSteps = [];
|
|
552
|
+
/**
|
|
553
|
+
* Quick-launch classification, computed server-side from the on-chain CCA
|
|
554
|
+
* params via the SDK's pure isQuickLaunch() matcher (native raise + 1B supply
|
|
555
|
+
* + 4h window). Descriptor for the badge / discovery / create flow ONLY.
|
|
556
|
+
* Reproducible by construction from CCA params, so it MUST NOT gate
|
|
557
|
+
* suppression of Blockaid / token-protection warnings (LP-1076).
|
|
558
|
+
*
|
|
559
|
+
* @generated from field: bool is_quick_launch = 46;
|
|
560
|
+
*/
|
|
561
|
+
this.isQuickLaunch = false;
|
|
552
562
|
proto3.util.initPartial(data, this);
|
|
553
563
|
}
|
|
554
564
|
static fromBinary(bytes, options) {
|
|
@@ -612,6 +622,7 @@ Auction.fields = proto3.util.newFieldList(() => [
|
|
|
612
622
|
{ no: 43, name: "lbp_migration_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
613
623
|
{ no: 44, name: "liquidity_lock", kind: "message", T: LiquidityLockInfo, opt: true },
|
|
614
624
|
{ no: 45, name: "pool_owner", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
625
|
+
{ no: 46, name: "is_quick_launch", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
615
626
|
]);
|
|
616
627
|
/**
|
|
617
628
|
* Response containing auctions.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
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, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
5
5
|
*/
|
|
@@ -26,6 +26,19 @@ export declare const getTokens: {
|
|
|
26
26
|
readonly typeName: "data.v2.DataApiService";
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @generated from rpc data.v2.DataApiService.GetTokenMultiChain
|
|
31
|
+
*/
|
|
32
|
+
export declare const getTokenMultiChain: {
|
|
33
|
+
readonly localName: "getTokenMultiChain";
|
|
34
|
+
readonly name: "GetTokenMultiChain";
|
|
35
|
+
readonly kind: MethodKind.Unary;
|
|
36
|
+
readonly I: typeof GetTokenMultiChainRequest;
|
|
37
|
+
readonly O: typeof GetTokenMultiChainResponse;
|
|
38
|
+
readonly service: {
|
|
39
|
+
readonly typeName: "data.v2.DataApiService";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
29
42
|
/**
|
|
30
43
|
* @generated from rpc data.v2.DataApiService.GetTokensMultiChain
|
|
31
44
|
*/
|
|
@@ -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, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
9
9
|
*/
|
|
@@ -30,6 +30,19 @@ export const getTokens = {
|
|
|
30
30
|
typeName: "data.v2.DataApiService"
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc data.v2.DataApiService.GetTokenMultiChain
|
|
35
|
+
*/
|
|
36
|
+
export const getTokenMultiChain = {
|
|
37
|
+
localName: "getTokenMultiChain",
|
|
38
|
+
name: "GetTokenMultiChain",
|
|
39
|
+
kind: MethodKind.Unary,
|
|
40
|
+
I: GetTokenMultiChainRequest,
|
|
41
|
+
O: GetTokenMultiChainResponse,
|
|
42
|
+
service: {
|
|
43
|
+
typeName: "data.v2.DataApiService"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
33
46
|
/**
|
|
34
47
|
* @generated from rpc data.v2.DataApiService.GetTokensMultiChain
|
|
35
48
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
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, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
1
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v2.DataApiService
|
|
@@ -24,6 +24,15 @@ export declare const DataApiService: {
|
|
|
24
24
|
readonly O: typeof GetTokensResponse;
|
|
25
25
|
readonly kind: MethodKind.Unary;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* @generated from rpc data.v2.DataApiService.GetTokenMultiChain
|
|
29
|
+
*/
|
|
30
|
+
readonly getTokenMultiChain: {
|
|
31
|
+
readonly name: "GetTokenMultiChain";
|
|
32
|
+
readonly I: typeof GetTokenMultiChainRequest;
|
|
33
|
+
readonly O: typeof GetTokenMultiChainResponse;
|
|
34
|
+
readonly kind: MethodKind.Unary;
|
|
35
|
+
};
|
|
27
36
|
/**
|
|
28
37
|
* @generated from rpc data.v2.DataApiService.GetTokensMultiChain
|
|
29
38
|
*/
|
|
@@ -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, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
5
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v2.DataApiService
|
|
@@ -28,6 +28,15 @@ export const DataApiService = {
|
|
|
28
28
|
O: GetTokensResponse,
|
|
29
29
|
kind: MethodKind.Unary,
|
|
30
30
|
},
|
|
31
|
+
/**
|
|
32
|
+
* @generated from rpc data.v2.DataApiService.GetTokenMultiChain
|
|
33
|
+
*/
|
|
34
|
+
getTokenMultiChain: {
|
|
35
|
+
name: "GetTokenMultiChain",
|
|
36
|
+
I: GetTokenMultiChainRequest,
|
|
37
|
+
O: GetTokenMultiChainResponse,
|
|
38
|
+
kind: MethodKind.Unary,
|
|
39
|
+
},
|
|
31
40
|
/**
|
|
32
41
|
* @generated from rpc data.v2.DataApiService.GetTokensMultiChain
|
|
33
42
|
*/
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -647,6 +647,66 @@ export declare class GetTokensResponse extends Message<GetTokensResponse> {
|
|
|
647
647
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokensResponse;
|
|
648
648
|
static equals(a: GetTokensResponse | PlainMessage<GetTokensResponse> | undefined, b: GetTokensResponse | PlainMessage<GetTokensResponse> | undefined): boolean;
|
|
649
649
|
}
|
|
650
|
+
/**
|
|
651
|
+
* Single-token sibling of GetTokensMultiChain: same canonical-group resolution,
|
|
652
|
+
* but a missing token is a not_found error instead of a silent omission.
|
|
653
|
+
*
|
|
654
|
+
* @generated from message data.v2.GetTokenMultiChainRequest
|
|
655
|
+
*/
|
|
656
|
+
export declare class GetTokenMultiChainRequest extends Message<GetTokenMultiChainRequest> {
|
|
657
|
+
/**
|
|
658
|
+
* @generated from oneof data.v2.GetTokenMultiChainRequest.identifier
|
|
659
|
+
*/
|
|
660
|
+
identifier: {
|
|
661
|
+
/**
|
|
662
|
+
* @generated from field: string multichain_id = 1;
|
|
663
|
+
*/
|
|
664
|
+
value: string;
|
|
665
|
+
case: "multichainId";
|
|
666
|
+
} | {
|
|
667
|
+
/**
|
|
668
|
+
* any (chain_id, address) in the group resolves to the same canonical result
|
|
669
|
+
*
|
|
670
|
+
* @generated from field: data.v2.TokenIdentifier token = 2;
|
|
671
|
+
*/
|
|
672
|
+
value: TokenIdentifier;
|
|
673
|
+
case: "token";
|
|
674
|
+
} | {
|
|
675
|
+
case: undefined;
|
|
676
|
+
value?: undefined;
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* override canonical chain selection; mainnet -> lowest chainId if omitted
|
|
680
|
+
*
|
|
681
|
+
* @generated from field: optional uint32 canonical_chain_id = 3;
|
|
682
|
+
*/
|
|
683
|
+
canonicalChainId?: number;
|
|
684
|
+
constructor(data?: PartialMessage<GetTokenMultiChainRequest>);
|
|
685
|
+
static readonly runtime: typeof proto3;
|
|
686
|
+
static readonly typeName = "data.v2.GetTokenMultiChainRequest";
|
|
687
|
+
static readonly fields: FieldList;
|
|
688
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenMultiChainRequest;
|
|
689
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenMultiChainRequest;
|
|
690
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMultiChainRequest;
|
|
691
|
+
static equals(a: GetTokenMultiChainRequest | PlainMessage<GetTokenMultiChainRequest> | undefined, b: GetTokenMultiChainRequest | PlainMessage<GetTokenMultiChainRequest> | undefined): boolean;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* @generated from message data.v2.GetTokenMultiChainResponse
|
|
695
|
+
*/
|
|
696
|
+
export declare class GetTokenMultiChainResponse extends Message<GetTokenMultiChainResponse> {
|
|
697
|
+
/**
|
|
698
|
+
* @generated from field: data.v2.MultichainToken token = 1;
|
|
699
|
+
*/
|
|
700
|
+
token?: MultichainToken;
|
|
701
|
+
constructor(data?: PartialMessage<GetTokenMultiChainResponse>);
|
|
702
|
+
static readonly runtime: typeof proto3;
|
|
703
|
+
static readonly typeName = "data.v2.GetTokenMultiChainResponse";
|
|
704
|
+
static readonly fields: FieldList;
|
|
705
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenMultiChainResponse;
|
|
706
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenMultiChainResponse;
|
|
707
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMultiChainResponse;
|
|
708
|
+
static equals(a: GetTokenMultiChainResponse | PlainMessage<GetTokenMultiChainResponse> | undefined, b: GetTokenMultiChainResponse | PlainMessage<GetTokenMultiChainResponse> | undefined): boolean;
|
|
709
|
+
}
|
|
650
710
|
/**
|
|
651
711
|
* @generated from message data.v2.GetTokensMultiChainRequest
|
|
652
712
|
*/
|
|
@@ -991,6 +1051,13 @@ export declare class ListTokensRequest extends Message<ListTokensRequest> {
|
|
|
991
1051
|
* @generated from field: optional data.v2.PageRequest page = 4;
|
|
992
1052
|
*/
|
|
993
1053
|
page?: PageRequest;
|
|
1054
|
+
/**
|
|
1055
|
+
* Sparkline window. Required — UNSPECIFIED or unknown values are rejected.
|
|
1056
|
+
* MAX serves the DAY series.
|
|
1057
|
+
*
|
|
1058
|
+
* @generated from field: data.v2.HistoryDuration sparkline_duration = 5;
|
|
1059
|
+
*/
|
|
1060
|
+
sparklineDuration: HistoryDuration;
|
|
994
1061
|
constructor(data?: PartialMessage<ListTokensRequest>);
|
|
995
1062
|
static readonly runtime: typeof proto3;
|
|
996
1063
|
static readonly typeName = "data.v2.ListTokensRequest";
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -863,6 +863,67 @@ GetTokensResponse.typeName = "data.v2.GetTokensResponse";
|
|
|
863
863
|
GetTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
864
864
|
{ no: 1, name: "tokens", kind: "message", T: Token, repeated: true },
|
|
865
865
|
]);
|
|
866
|
+
/**
|
|
867
|
+
* Single-token sibling of GetTokensMultiChain: same canonical-group resolution,
|
|
868
|
+
* but a missing token is a not_found error instead of a silent omission.
|
|
869
|
+
*
|
|
870
|
+
* @generated from message data.v2.GetTokenMultiChainRequest
|
|
871
|
+
*/
|
|
872
|
+
export class GetTokenMultiChainRequest extends Message {
|
|
873
|
+
constructor(data) {
|
|
874
|
+
super();
|
|
875
|
+
/**
|
|
876
|
+
* @generated from oneof data.v2.GetTokenMultiChainRequest.identifier
|
|
877
|
+
*/
|
|
878
|
+
this.identifier = { case: undefined };
|
|
879
|
+
proto3.util.initPartial(data, this);
|
|
880
|
+
}
|
|
881
|
+
static fromBinary(bytes, options) {
|
|
882
|
+
return new GetTokenMultiChainRequest().fromBinary(bytes, options);
|
|
883
|
+
}
|
|
884
|
+
static fromJson(jsonValue, options) {
|
|
885
|
+
return new GetTokenMultiChainRequest().fromJson(jsonValue, options);
|
|
886
|
+
}
|
|
887
|
+
static fromJsonString(jsonString, options) {
|
|
888
|
+
return new GetTokenMultiChainRequest().fromJsonString(jsonString, options);
|
|
889
|
+
}
|
|
890
|
+
static equals(a, b) {
|
|
891
|
+
return proto3.util.equals(GetTokenMultiChainRequest, a, b);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
GetTokenMultiChainRequest.runtime = proto3;
|
|
895
|
+
GetTokenMultiChainRequest.typeName = "data.v2.GetTokenMultiChainRequest";
|
|
896
|
+
GetTokenMultiChainRequest.fields = proto3.util.newFieldList(() => [
|
|
897
|
+
{ no: 1, name: "multichain_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identifier" },
|
|
898
|
+
{ no: 2, name: "token", kind: "message", T: TokenIdentifier, oneof: "identifier" },
|
|
899
|
+
{ no: 3, name: "canonical_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
900
|
+
]);
|
|
901
|
+
/**
|
|
902
|
+
* @generated from message data.v2.GetTokenMultiChainResponse
|
|
903
|
+
*/
|
|
904
|
+
export class GetTokenMultiChainResponse extends Message {
|
|
905
|
+
constructor(data) {
|
|
906
|
+
super();
|
|
907
|
+
proto3.util.initPartial(data, this);
|
|
908
|
+
}
|
|
909
|
+
static fromBinary(bytes, options) {
|
|
910
|
+
return new GetTokenMultiChainResponse().fromBinary(bytes, options);
|
|
911
|
+
}
|
|
912
|
+
static fromJson(jsonValue, options) {
|
|
913
|
+
return new GetTokenMultiChainResponse().fromJson(jsonValue, options);
|
|
914
|
+
}
|
|
915
|
+
static fromJsonString(jsonString, options) {
|
|
916
|
+
return new GetTokenMultiChainResponse().fromJsonString(jsonString, options);
|
|
917
|
+
}
|
|
918
|
+
static equals(a, b) {
|
|
919
|
+
return proto3.util.equals(GetTokenMultiChainResponse, a, b);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
GetTokenMultiChainResponse.runtime = proto3;
|
|
923
|
+
GetTokenMultiChainResponse.typeName = "data.v2.GetTokenMultiChainResponse";
|
|
924
|
+
GetTokenMultiChainResponse.fields = proto3.util.newFieldList(() => [
|
|
925
|
+
{ no: 1, name: "token", kind: "message", T: MultichainToken },
|
|
926
|
+
]);
|
|
866
927
|
/**
|
|
867
928
|
* @generated from message data.v2.GetTokensMultiChainRequest
|
|
868
929
|
*/
|
|
@@ -1331,6 +1392,13 @@ export class ListTokensRequest extends Message {
|
|
|
1331
1392
|
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1332
1393
|
*/
|
|
1333
1394
|
this.chainIds = [];
|
|
1395
|
+
/**
|
|
1396
|
+
* Sparkline window. Required — UNSPECIFIED or unknown values are rejected.
|
|
1397
|
+
* MAX serves the DAY series.
|
|
1398
|
+
*
|
|
1399
|
+
* @generated from field: data.v2.HistoryDuration sparkline_duration = 5;
|
|
1400
|
+
*/
|
|
1401
|
+
this.sparklineDuration = HistoryDuration.UNSPECIFIED;
|
|
1334
1402
|
proto3.util.initPartial(data, this);
|
|
1335
1403
|
}
|
|
1336
1404
|
static fromBinary(bytes, options) {
|
|
@@ -1353,6 +1421,7 @@ ListTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1353
1421
|
{ no: 2, name: "sort", kind: "message", T: TokensSort, opt: true },
|
|
1354
1422
|
{ no: 3, name: "filter", kind: "message", T: TokenListFilter, opt: true },
|
|
1355
1423
|
{ no: 4, name: "page", kind: "message", T: PageRequest, opt: true },
|
|
1424
|
+
{ no: 5, name: "sparkline_duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
1356
1425
|
]);
|
|
1357
1426
|
/**
|
|
1358
1427
|
* @generated from message data.v2.ListTokensResponse
|
|
@@ -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 { TokenType } from "../v1/types_pb.js";
|
|
3
|
+
import { TimestampedValue, TokenType } from "../v1/types_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* @generated from enum data.v2.TokensOrderBy
|
|
6
6
|
*/
|
|
@@ -391,6 +391,14 @@ export declare class RankedMultichainToken extends Message<RankedMultichainToken
|
|
|
391
391
|
* @generated from field: repeated data.v2.ChainTokenRankStats chain_stats = 3;
|
|
392
392
|
*/
|
|
393
393
|
chainStats: ChainTokenRankStats[];
|
|
394
|
+
/**
|
|
395
|
+
* USD price sparkline over sparkline_duration, from the same chain member
|
|
396
|
+
* as price_change. <=20 points, oldest first; timestamps are synthesized,
|
|
397
|
+
* not observed. Empty when no series is available.
|
|
398
|
+
*
|
|
399
|
+
* @generated from field: repeated data.v1.TimestampedValue sparkline = 4;
|
|
400
|
+
*/
|
|
401
|
+
sparkline: TimestampedValue[];
|
|
394
402
|
constructor(data?: PartialMessage<RankedMultichainToken>);
|
|
395
403
|
static readonly runtime: typeof proto3;
|
|
396
404
|
static readonly typeName = "data.v2.RankedMultichainToken";
|
package/dist/data/v2/types_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 { TokenType } from "../v1/types_pb.js";
|
|
6
|
+
import { TimestampedValue, TokenType } from "../v1/types_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from enum data.v2.TokensOrderBy
|
|
9
9
|
*/
|
|
@@ -462,6 +462,14 @@ export class RankedMultichainToken extends Message {
|
|
|
462
462
|
* @generated from field: repeated data.v2.ChainTokenRankStats chain_stats = 3;
|
|
463
463
|
*/
|
|
464
464
|
this.chainStats = [];
|
|
465
|
+
/**
|
|
466
|
+
* USD price sparkline over sparkline_duration, from the same chain member
|
|
467
|
+
* as price_change. <=20 points, oldest first; timestamps are synthesized,
|
|
468
|
+
* not observed. Empty when no series is available.
|
|
469
|
+
*
|
|
470
|
+
* @generated from field: repeated data.v1.TimestampedValue sparkline = 4;
|
|
471
|
+
*/
|
|
472
|
+
this.sparkline = [];
|
|
465
473
|
proto3.util.initPartial(data, this);
|
|
466
474
|
}
|
|
467
475
|
static fromBinary(bytes, options) {
|
|
@@ -483,6 +491,7 @@ RankedMultichainToken.fields = proto3.util.newFieldList(() => [
|
|
|
483
491
|
{ no: 1, name: "multichain_token", kind: "message", T: MultichainToken },
|
|
484
492
|
{ no: 2, name: "stats", kind: "message", T: TokenRankStats },
|
|
485
493
|
{ no: 3, name: "chain_stats", kind: "message", T: ChainTokenRankStats, repeated: true },
|
|
494
|
+
{ no: 4, name: "sparkline", kind: "message", T: TimestampedValue, repeated: true },
|
|
486
495
|
]);
|
|
487
496
|
/**
|
|
488
497
|
* @generated from message data.v2.TokenPriceData
|