@uniswap/client-data-api 0.0.50 → 0.0.52
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/api_pb.d.ts +13 -1
- package/dist/data/v1/api_pb.js +8 -1
- package/dist/data/v1/types_pb.d.ts +247 -0
- package/dist/data/v1/types_pb.js +298 -0
- package/package.json +1 -1
package/dist/data/v1/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 { Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction, TransactionTypeFilter } from "./types_pb.js";
|
|
3
|
+
import { MultichainToken, Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction, TransactionTypeFilter } from "./types_pb.js";
|
|
4
4
|
import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* @generated from enum data.v1.Platform
|
|
@@ -335,6 +335,10 @@ export declare class GetPortfolioRequest extends Message<GetPortfolioRequest> {
|
|
|
335
335
|
* @generated from field: optional data.v1.PortfolioValueModifier modifier = 3;
|
|
336
336
|
*/
|
|
337
337
|
modifier?: PortfolioValueModifier;
|
|
338
|
+
/**
|
|
339
|
+
* @generated from field: optional bool multichain = 4;
|
|
340
|
+
*/
|
|
341
|
+
multichain?: boolean;
|
|
338
342
|
constructor(data?: PartialMessage<GetPortfolioRequest>);
|
|
339
343
|
static readonly runtime: typeof proto3;
|
|
340
344
|
static readonly typeName = "data.v1.GetPortfolioRequest";
|
|
@@ -1121,6 +1125,10 @@ export declare class ListTopTokensRequest extends Message<ListTopTokensRequest>
|
|
|
1121
1125
|
* @generated from field: optional string page_token = 5;
|
|
1122
1126
|
*/
|
|
1123
1127
|
pageToken?: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* @generated from field: optional bool multichain = 6;
|
|
1130
|
+
*/
|
|
1131
|
+
multichain?: boolean;
|
|
1124
1132
|
constructor(data?: PartialMessage<ListTopTokensRequest>);
|
|
1125
1133
|
static readonly runtime: typeof proto3;
|
|
1126
1134
|
static readonly typeName = "data.v1.ListTopTokensRequest";
|
|
@@ -1142,6 +1150,10 @@ export declare class ListTopTokensResponse extends Message<ListTopTokensResponse
|
|
|
1142
1150
|
* @generated from field: optional string next_page_token = 2;
|
|
1143
1151
|
*/
|
|
1144
1152
|
nextPageToken?: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* @generated from field: repeated data.v1.MultichainToken multichain_tokens = 3;
|
|
1155
|
+
*/
|
|
1156
|
+
multichainTokens: MultichainToken[];
|
|
1145
1157
|
constructor(data?: PartialMessage<ListTopTokensResponse>);
|
|
1146
1158
|
static readonly runtime: typeof proto3;
|
|
1147
1159
|
static readonly typeName = "data.v1.ListTopTokensResponse";
|
package/dist/data/v1/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 { Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction, TransactionTypeFilter } from "./types_pb.js";
|
|
6
|
+
import { MultichainToken, Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction, TransactionTypeFilter } from "./types_pb.js";
|
|
7
7
|
import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* @generated from enum data.v1.Platform
|
|
@@ -500,6 +500,7 @@ GetPortfolioRequest.fields = proto3.util.newFieldList(() => [
|
|
|
500
500
|
{ no: 1, name: "wallet_account", kind: "message", T: WalletAccount },
|
|
501
501
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
502
502
|
{ no: 3, name: "modifier", kind: "message", T: PortfolioValueModifier, opt: true },
|
|
503
|
+
{ no: 4, name: "multichain", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
503
504
|
]);
|
|
504
505
|
/**
|
|
505
506
|
* @generated from message data.v1.GetPortfolioResponse
|
|
@@ -1569,6 +1570,7 @@ ListTopTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1569
1570
|
{ no: 3, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1570
1571
|
{ no: 4, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1571
1572
|
{ no: 5, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1573
|
+
{ no: 6, name: "multichain", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1572
1574
|
]);
|
|
1573
1575
|
/**
|
|
1574
1576
|
* @generated from message data.v1.ListTopTokensResponse
|
|
@@ -1580,6 +1582,10 @@ export class ListTopTokensResponse extends Message {
|
|
|
1580
1582
|
* @generated from field: repeated data.v1.Token tokens = 1;
|
|
1581
1583
|
*/
|
|
1582
1584
|
this.tokens = [];
|
|
1585
|
+
/**
|
|
1586
|
+
* @generated from field: repeated data.v1.MultichainToken multichain_tokens = 3;
|
|
1587
|
+
*/
|
|
1588
|
+
this.multichainTokens = [];
|
|
1583
1589
|
proto3.util.initPartial(data, this);
|
|
1584
1590
|
}
|
|
1585
1591
|
static fromBinary(bytes, options) {
|
|
@@ -1600,6 +1606,7 @@ ListTopTokensResponse.typeName = "data.v1.ListTopTokensResponse";
|
|
|
1600
1606
|
ListTopTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
1601
1607
|
{ no: 1, name: "tokens", kind: "message", T: Token, repeated: true },
|
|
1602
1608
|
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1609
|
+
{ no: 3, name: "multichain_tokens", kind: "message", T: MultichainToken, repeated: true },
|
|
1603
1610
|
]);
|
|
1604
1611
|
/**
|
|
1605
1612
|
* @generated from message data.v1.GetProtocolStatsRequest
|
|
@@ -732,6 +732,12 @@ export declare class Portfolio extends Message<Portfolio> {
|
|
|
732
732
|
* @generated from field: double total_value_percent_change_1d = 4;
|
|
733
733
|
*/
|
|
734
734
|
totalValuePercentChange1d: number;
|
|
735
|
+
/**
|
|
736
|
+
* Populated instead of `balances` when multichain=true in GetPortfolioRequest
|
|
737
|
+
*
|
|
738
|
+
* @generated from field: repeated data.v1.MultichainBalance multichain_balances = 5;
|
|
739
|
+
*/
|
|
740
|
+
multichainBalances: MultichainBalance[];
|
|
735
741
|
constructor(data?: PartialMessage<Portfolio>);
|
|
736
742
|
static readonly runtime: typeof proto3;
|
|
737
743
|
static readonly typeName = "data.v1.Portfolio";
|
|
@@ -778,6 +784,116 @@ export declare class Balance extends Message<Balance> {
|
|
|
778
784
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Balance;
|
|
779
785
|
static equals(a: Balance | PlainMessage<Balance> | undefined, b: Balance | PlainMessage<Balance> | undefined): boolean;
|
|
780
786
|
}
|
|
787
|
+
/**
|
|
788
|
+
* Chain-specific balance within a multichain token group
|
|
789
|
+
*
|
|
790
|
+
* @generated from message data.v1.ChainBalance
|
|
791
|
+
*/
|
|
792
|
+
export declare class ChainBalance extends Message<ChainBalance> {
|
|
793
|
+
/**
|
|
794
|
+
* @generated from field: uint32 chain_id = 1;
|
|
795
|
+
*/
|
|
796
|
+
chainId: number;
|
|
797
|
+
/**
|
|
798
|
+
* @generated from field: string address = 2;
|
|
799
|
+
*/
|
|
800
|
+
address: string;
|
|
801
|
+
/**
|
|
802
|
+
* @generated from field: uint32 decimals = 3;
|
|
803
|
+
*/
|
|
804
|
+
decimals: number;
|
|
805
|
+
/**
|
|
806
|
+
* @generated from field: data.v1.Amount amount = 4;
|
|
807
|
+
*/
|
|
808
|
+
amount?: Amount;
|
|
809
|
+
/**
|
|
810
|
+
* @generated from field: double value_usd = 5;
|
|
811
|
+
*/
|
|
812
|
+
valueUsd: number;
|
|
813
|
+
constructor(data?: PartialMessage<ChainBalance>);
|
|
814
|
+
static readonly runtime: typeof proto3;
|
|
815
|
+
static readonly typeName = "data.v1.ChainBalance";
|
|
816
|
+
static readonly fields: FieldList;
|
|
817
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainBalance;
|
|
818
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainBalance;
|
|
819
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainBalance;
|
|
820
|
+
static equals(a: ChainBalance | PlainMessage<ChainBalance> | undefined, b: ChainBalance | PlainMessage<ChainBalance> | undefined): boolean;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* A token aggregated across multiple chains
|
|
824
|
+
*
|
|
825
|
+
* @generated from message data.v1.MultichainBalance
|
|
826
|
+
*/
|
|
827
|
+
export declare class MultichainBalance extends Message<MultichainBalance> {
|
|
828
|
+
/**
|
|
829
|
+
* @generated from field: string name = 1;
|
|
830
|
+
*/
|
|
831
|
+
name: string;
|
|
832
|
+
/**
|
|
833
|
+
* @generated from field: string symbol = 2;
|
|
834
|
+
*/
|
|
835
|
+
symbol: string;
|
|
836
|
+
/**
|
|
837
|
+
* @generated from field: data.v1.TokenType type = 3;
|
|
838
|
+
*/
|
|
839
|
+
type: TokenType;
|
|
840
|
+
/**
|
|
841
|
+
* @generated from field: string project_name = 4;
|
|
842
|
+
*/
|
|
843
|
+
projectName: string;
|
|
844
|
+
/**
|
|
845
|
+
* @generated from field: string logo_url = 5;
|
|
846
|
+
*/
|
|
847
|
+
logoUrl: string;
|
|
848
|
+
/**
|
|
849
|
+
* @generated from field: data.v1.ProtectionInfo protection_info = 6;
|
|
850
|
+
*/
|
|
851
|
+
protectionInfo?: ProtectionInfo;
|
|
852
|
+
/**
|
|
853
|
+
* @generated from field: data.v1.FeeData fee_data = 7;
|
|
854
|
+
*/
|
|
855
|
+
feeData?: FeeData;
|
|
856
|
+
/**
|
|
857
|
+
* @generated from field: data.v1.SafetyLevel safety_level = 8;
|
|
858
|
+
*/
|
|
859
|
+
safetyLevel: SafetyLevel;
|
|
860
|
+
/**
|
|
861
|
+
* @generated from field: data.v1.SpamCode spam_code = 9;
|
|
862
|
+
*/
|
|
863
|
+
spamCode: SpamCode;
|
|
864
|
+
/**
|
|
865
|
+
* @generated from field: data.v1.Amount total_amount = 10;
|
|
866
|
+
*/
|
|
867
|
+
totalAmount?: Amount;
|
|
868
|
+
/**
|
|
869
|
+
* @generated from field: double price_usd = 11;
|
|
870
|
+
*/
|
|
871
|
+
priceUsd: number;
|
|
872
|
+
/**
|
|
873
|
+
* @generated from field: double price_percent_change_1d = 12;
|
|
874
|
+
*/
|
|
875
|
+
pricePercentChange1d: number;
|
|
876
|
+
/**
|
|
877
|
+
* @generated from field: double total_value_usd = 13;
|
|
878
|
+
*/
|
|
879
|
+
totalValueUsd: number;
|
|
880
|
+
/**
|
|
881
|
+
* @generated from field: bool is_hidden = 14;
|
|
882
|
+
*/
|
|
883
|
+
isHidden: boolean;
|
|
884
|
+
/**
|
|
885
|
+
* @generated from field: repeated data.v1.ChainBalance chain_balances = 15;
|
|
886
|
+
*/
|
|
887
|
+
chainBalances: ChainBalance[];
|
|
888
|
+
constructor(data?: PartialMessage<MultichainBalance>);
|
|
889
|
+
static readonly runtime: typeof proto3;
|
|
890
|
+
static readonly typeName = "data.v1.MultichainBalance";
|
|
891
|
+
static readonly fields: FieldList;
|
|
892
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultichainBalance;
|
|
893
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultichainBalance;
|
|
894
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainBalance;
|
|
895
|
+
static equals(a: MultichainBalance | PlainMessage<MultichainBalance> | undefined, b: MultichainBalance | PlainMessage<MultichainBalance> | undefined): boolean;
|
|
896
|
+
}
|
|
781
897
|
/**
|
|
782
898
|
* @generated from message data.v1.Amount
|
|
783
899
|
*/
|
|
@@ -799,6 +915,137 @@ export declare class Amount extends Message<Amount> {
|
|
|
799
915
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Amount;
|
|
800
916
|
static equals(a: Amount | PlainMessage<Amount> | undefined, b: Amount | PlainMessage<Amount> | undefined): boolean;
|
|
801
917
|
}
|
|
918
|
+
/**
|
|
919
|
+
* Chain-specific token info within a multichain token group
|
|
920
|
+
*
|
|
921
|
+
* @generated from message data.v1.ChainToken
|
|
922
|
+
*/
|
|
923
|
+
export declare class ChainToken extends Message<ChainToken> {
|
|
924
|
+
/**
|
|
925
|
+
* @generated from field: uint32 chain_id = 1;
|
|
926
|
+
*/
|
|
927
|
+
chainId: number;
|
|
928
|
+
/**
|
|
929
|
+
* @generated from field: string address = 2;
|
|
930
|
+
*/
|
|
931
|
+
address: string;
|
|
932
|
+
/**
|
|
933
|
+
* @generated from field: uint32 decimals = 3;
|
|
934
|
+
*/
|
|
935
|
+
decimals: number;
|
|
936
|
+
/**
|
|
937
|
+
* @generated from field: bool is_bridged = 4;
|
|
938
|
+
*/
|
|
939
|
+
isBridged: boolean;
|
|
940
|
+
/**
|
|
941
|
+
* @generated from field: data.v1.ChainTokenStats stats = 5;
|
|
942
|
+
*/
|
|
943
|
+
stats?: ChainTokenStats;
|
|
944
|
+
constructor(data?: PartialMessage<ChainToken>);
|
|
945
|
+
static readonly runtime: typeof proto3;
|
|
946
|
+
static readonly typeName = "data.v1.ChainToken";
|
|
947
|
+
static readonly fields: FieldList;
|
|
948
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainToken;
|
|
949
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainToken;
|
|
950
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainToken;
|
|
951
|
+
static equals(a: ChainToken | PlainMessage<ChainToken> | undefined, b: ChainToken | PlainMessage<ChainToken> | undefined): boolean;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* @generated from message data.v1.ChainTokenStats
|
|
955
|
+
*/
|
|
956
|
+
export declare class ChainTokenStats extends Message<ChainTokenStats> {
|
|
957
|
+
/**
|
|
958
|
+
* @generated from field: optional double volume_1h = 1;
|
|
959
|
+
*/
|
|
960
|
+
volume1h?: number;
|
|
961
|
+
/**
|
|
962
|
+
* @generated from field: optional double volume_1d = 2;
|
|
963
|
+
*/
|
|
964
|
+
volume1d?: number;
|
|
965
|
+
/**
|
|
966
|
+
* @generated from field: optional double volume_7d = 3;
|
|
967
|
+
*/
|
|
968
|
+
volume7d?: number;
|
|
969
|
+
/**
|
|
970
|
+
* @generated from field: optional double volume_30d = 4;
|
|
971
|
+
*/
|
|
972
|
+
volume30d?: number;
|
|
973
|
+
/**
|
|
974
|
+
* @generated from field: optional double volume_1y = 5;
|
|
975
|
+
*/
|
|
976
|
+
volume1y?: number;
|
|
977
|
+
constructor(data?: PartialMessage<ChainTokenStats>);
|
|
978
|
+
static readonly runtime: typeof proto3;
|
|
979
|
+
static readonly typeName = "data.v1.ChainTokenStats";
|
|
980
|
+
static readonly fields: FieldList;
|
|
981
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainTokenStats;
|
|
982
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainTokenStats;
|
|
983
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainTokenStats;
|
|
984
|
+
static equals(a: ChainTokenStats | PlainMessage<ChainTokenStats> | undefined, b: ChainTokenStats | PlainMessage<ChainTokenStats> | undefined): boolean;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* A token aggregated across multiple chains
|
|
988
|
+
*
|
|
989
|
+
* @generated from message data.v1.MultichainToken
|
|
990
|
+
*/
|
|
991
|
+
export declare class MultichainToken extends Message<MultichainToken> {
|
|
992
|
+
/**
|
|
993
|
+
* @generated from field: string multichain_id = 1;
|
|
994
|
+
*/
|
|
995
|
+
multichainId: string;
|
|
996
|
+
/**
|
|
997
|
+
* @generated from field: string symbol = 2;
|
|
998
|
+
*/
|
|
999
|
+
symbol: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* @generated from field: string name = 3;
|
|
1002
|
+
*/
|
|
1003
|
+
name: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* @generated from field: data.v1.TokenType type = 4;
|
|
1006
|
+
*/
|
|
1007
|
+
type: TokenType;
|
|
1008
|
+
/**
|
|
1009
|
+
* @generated from field: string project_name = 5;
|
|
1010
|
+
*/
|
|
1011
|
+
projectName: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* @generated from field: string logo_url = 6;
|
|
1014
|
+
*/
|
|
1015
|
+
logoUrl: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* @generated from field: data.v1.ProtectionInfo protection_info = 7;
|
|
1018
|
+
*/
|
|
1019
|
+
protectionInfo?: ProtectionInfo;
|
|
1020
|
+
/**
|
|
1021
|
+
* @generated from field: data.v1.FeeData fee_data = 8;
|
|
1022
|
+
*/
|
|
1023
|
+
feeData?: FeeData;
|
|
1024
|
+
/**
|
|
1025
|
+
* @generated from field: data.v1.SafetyLevel safety_level = 9;
|
|
1026
|
+
*/
|
|
1027
|
+
safetyLevel: SafetyLevel;
|
|
1028
|
+
/**
|
|
1029
|
+
* @generated from field: data.v1.SpamCode spam_code = 10;
|
|
1030
|
+
*/
|
|
1031
|
+
spamCode: SpamCode;
|
|
1032
|
+
/**
|
|
1033
|
+
* @generated from field: data.v1.TokenStats stats = 11;
|
|
1034
|
+
*/
|
|
1035
|
+
stats?: TokenStats;
|
|
1036
|
+
/**
|
|
1037
|
+
* @generated from field: repeated data.v1.ChainToken chain_tokens = 12;
|
|
1038
|
+
*/
|
|
1039
|
+
chainTokens: ChainToken[];
|
|
1040
|
+
constructor(data?: PartialMessage<MultichainToken>);
|
|
1041
|
+
static readonly runtime: typeof proto3;
|
|
1042
|
+
static readonly typeName = "data.v1.MultichainToken";
|
|
1043
|
+
static readonly fields: FieldList;
|
|
1044
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultichainToken;
|
|
1045
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultichainToken;
|
|
1046
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainToken;
|
|
1047
|
+
static equals(a: MultichainToken | PlainMessage<MultichainToken> | undefined, b: MultichainToken | PlainMessage<MultichainToken> | undefined): boolean;
|
|
1048
|
+
}
|
|
802
1049
|
/**
|
|
803
1050
|
* @generated from message data.v1.Contract
|
|
804
1051
|
*/
|
package/dist/data/v1/types_pb.js
CHANGED
|
@@ -981,6 +981,12 @@ export class Portfolio extends Message {
|
|
|
981
981
|
* @generated from field: double total_value_percent_change_1d = 4;
|
|
982
982
|
*/
|
|
983
983
|
this.totalValuePercentChange1d = 0;
|
|
984
|
+
/**
|
|
985
|
+
* Populated instead of `balances` when multichain=true in GetPortfolioRequest
|
|
986
|
+
*
|
|
987
|
+
* @generated from field: repeated data.v1.MultichainBalance multichain_balances = 5;
|
|
988
|
+
*/
|
|
989
|
+
this.multichainBalances = [];
|
|
984
990
|
proto3.util.initPartial(data, this);
|
|
985
991
|
}
|
|
986
992
|
static fromBinary(bytes, options) {
|
|
@@ -1003,6 +1009,7 @@ Portfolio.fields = proto3.util.newFieldList(() => [
|
|
|
1003
1009
|
{ no: 2, name: "total_value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1004
1010
|
{ no: 3, name: "total_value_absolute_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1005
1011
|
{ no: 4, name: "total_value_percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1012
|
+
{ no: 5, name: "multichain_balances", kind: "message", T: MultichainBalance, repeated: true },
|
|
1006
1013
|
]);
|
|
1007
1014
|
/**
|
|
1008
1015
|
* @generated from message data.v1.Balance
|
|
@@ -1051,6 +1058,144 @@ Balance.fields = proto3.util.newFieldList(() => [
|
|
|
1051
1058
|
{ no: 5, name: "value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1052
1059
|
{ no: 6, name: "is_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1053
1060
|
]);
|
|
1061
|
+
/**
|
|
1062
|
+
* Chain-specific balance within a multichain token group
|
|
1063
|
+
*
|
|
1064
|
+
* @generated from message data.v1.ChainBalance
|
|
1065
|
+
*/
|
|
1066
|
+
export class ChainBalance extends Message {
|
|
1067
|
+
constructor(data) {
|
|
1068
|
+
super();
|
|
1069
|
+
/**
|
|
1070
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1071
|
+
*/
|
|
1072
|
+
this.chainId = 0;
|
|
1073
|
+
/**
|
|
1074
|
+
* @generated from field: string address = 2;
|
|
1075
|
+
*/
|
|
1076
|
+
this.address = "";
|
|
1077
|
+
/**
|
|
1078
|
+
* @generated from field: uint32 decimals = 3;
|
|
1079
|
+
*/
|
|
1080
|
+
this.decimals = 0;
|
|
1081
|
+
/**
|
|
1082
|
+
* @generated from field: double value_usd = 5;
|
|
1083
|
+
*/
|
|
1084
|
+
this.valueUsd = 0;
|
|
1085
|
+
proto3.util.initPartial(data, this);
|
|
1086
|
+
}
|
|
1087
|
+
static fromBinary(bytes, options) {
|
|
1088
|
+
return new ChainBalance().fromBinary(bytes, options);
|
|
1089
|
+
}
|
|
1090
|
+
static fromJson(jsonValue, options) {
|
|
1091
|
+
return new ChainBalance().fromJson(jsonValue, options);
|
|
1092
|
+
}
|
|
1093
|
+
static fromJsonString(jsonString, options) {
|
|
1094
|
+
return new ChainBalance().fromJsonString(jsonString, options);
|
|
1095
|
+
}
|
|
1096
|
+
static equals(a, b) {
|
|
1097
|
+
return proto3.util.equals(ChainBalance, a, b);
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
ChainBalance.runtime = proto3;
|
|
1101
|
+
ChainBalance.typeName = "data.v1.ChainBalance";
|
|
1102
|
+
ChainBalance.fields = proto3.util.newFieldList(() => [
|
|
1103
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1104
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1105
|
+
{ no: 3, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1106
|
+
{ no: 4, name: "amount", kind: "message", T: Amount },
|
|
1107
|
+
{ no: 5, name: "value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1108
|
+
]);
|
|
1109
|
+
/**
|
|
1110
|
+
* A token aggregated across multiple chains
|
|
1111
|
+
*
|
|
1112
|
+
* @generated from message data.v1.MultichainBalance
|
|
1113
|
+
*/
|
|
1114
|
+
export class MultichainBalance extends Message {
|
|
1115
|
+
constructor(data) {
|
|
1116
|
+
super();
|
|
1117
|
+
/**
|
|
1118
|
+
* @generated from field: string name = 1;
|
|
1119
|
+
*/
|
|
1120
|
+
this.name = "";
|
|
1121
|
+
/**
|
|
1122
|
+
* @generated from field: string symbol = 2;
|
|
1123
|
+
*/
|
|
1124
|
+
this.symbol = "";
|
|
1125
|
+
/**
|
|
1126
|
+
* @generated from field: data.v1.TokenType type = 3;
|
|
1127
|
+
*/
|
|
1128
|
+
this.type = TokenType.UNKNOWN;
|
|
1129
|
+
/**
|
|
1130
|
+
* @generated from field: string project_name = 4;
|
|
1131
|
+
*/
|
|
1132
|
+
this.projectName = "";
|
|
1133
|
+
/**
|
|
1134
|
+
* @generated from field: string logo_url = 5;
|
|
1135
|
+
*/
|
|
1136
|
+
this.logoUrl = "";
|
|
1137
|
+
/**
|
|
1138
|
+
* @generated from field: data.v1.SafetyLevel safety_level = 8;
|
|
1139
|
+
*/
|
|
1140
|
+
this.safetyLevel = SafetyLevel.UNKNOWN;
|
|
1141
|
+
/**
|
|
1142
|
+
* @generated from field: data.v1.SpamCode spam_code = 9;
|
|
1143
|
+
*/
|
|
1144
|
+
this.spamCode = SpamCode.UNKNOWN;
|
|
1145
|
+
/**
|
|
1146
|
+
* @generated from field: double price_usd = 11;
|
|
1147
|
+
*/
|
|
1148
|
+
this.priceUsd = 0;
|
|
1149
|
+
/**
|
|
1150
|
+
* @generated from field: double price_percent_change_1d = 12;
|
|
1151
|
+
*/
|
|
1152
|
+
this.pricePercentChange1d = 0;
|
|
1153
|
+
/**
|
|
1154
|
+
* @generated from field: double total_value_usd = 13;
|
|
1155
|
+
*/
|
|
1156
|
+
this.totalValueUsd = 0;
|
|
1157
|
+
/**
|
|
1158
|
+
* @generated from field: bool is_hidden = 14;
|
|
1159
|
+
*/
|
|
1160
|
+
this.isHidden = false;
|
|
1161
|
+
/**
|
|
1162
|
+
* @generated from field: repeated data.v1.ChainBalance chain_balances = 15;
|
|
1163
|
+
*/
|
|
1164
|
+
this.chainBalances = [];
|
|
1165
|
+
proto3.util.initPartial(data, this);
|
|
1166
|
+
}
|
|
1167
|
+
static fromBinary(bytes, options) {
|
|
1168
|
+
return new MultichainBalance().fromBinary(bytes, options);
|
|
1169
|
+
}
|
|
1170
|
+
static fromJson(jsonValue, options) {
|
|
1171
|
+
return new MultichainBalance().fromJson(jsonValue, options);
|
|
1172
|
+
}
|
|
1173
|
+
static fromJsonString(jsonString, options) {
|
|
1174
|
+
return new MultichainBalance().fromJsonString(jsonString, options);
|
|
1175
|
+
}
|
|
1176
|
+
static equals(a, b) {
|
|
1177
|
+
return proto3.util.equals(MultichainBalance, a, b);
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
MultichainBalance.runtime = proto3;
|
|
1181
|
+
MultichainBalance.typeName = "data.v1.MultichainBalance";
|
|
1182
|
+
MultichainBalance.fields = proto3.util.newFieldList(() => [
|
|
1183
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1184
|
+
{ no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1185
|
+
{ no: 3, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
|
|
1186
|
+
{ no: 4, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1187
|
+
{ no: 5, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1188
|
+
{ no: 6, name: "protection_info", kind: "message", T: ProtectionInfo },
|
|
1189
|
+
{ no: 7, name: "fee_data", kind: "message", T: FeeData },
|
|
1190
|
+
{ no: 8, name: "safety_level", kind: "enum", T: proto3.getEnumType(SafetyLevel) },
|
|
1191
|
+
{ no: 9, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
|
|
1192
|
+
{ no: 10, name: "total_amount", kind: "message", T: Amount },
|
|
1193
|
+
{ no: 11, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1194
|
+
{ no: 12, name: "price_percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1195
|
+
{ no: 13, name: "total_value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1196
|
+
{ no: 14, name: "is_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1197
|
+
{ no: 15, name: "chain_balances", kind: "message", T: ChainBalance, repeated: true },
|
|
1198
|
+
]);
|
|
1054
1199
|
/**
|
|
1055
1200
|
* @generated from message data.v1.Amount
|
|
1056
1201
|
*/
|
|
@@ -1086,6 +1231,159 @@ Amount.fields = proto3.util.newFieldList(() => [
|
|
|
1086
1231
|
{ no: 1, name: "raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1087
1232
|
{ no: 2, name: "amount", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1088
1233
|
]);
|
|
1234
|
+
/**
|
|
1235
|
+
* Chain-specific token info within a multichain token group
|
|
1236
|
+
*
|
|
1237
|
+
* @generated from message data.v1.ChainToken
|
|
1238
|
+
*/
|
|
1239
|
+
export class ChainToken extends Message {
|
|
1240
|
+
constructor(data) {
|
|
1241
|
+
super();
|
|
1242
|
+
/**
|
|
1243
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1244
|
+
*/
|
|
1245
|
+
this.chainId = 0;
|
|
1246
|
+
/**
|
|
1247
|
+
* @generated from field: string address = 2;
|
|
1248
|
+
*/
|
|
1249
|
+
this.address = "";
|
|
1250
|
+
/**
|
|
1251
|
+
* @generated from field: uint32 decimals = 3;
|
|
1252
|
+
*/
|
|
1253
|
+
this.decimals = 0;
|
|
1254
|
+
/**
|
|
1255
|
+
* @generated from field: bool is_bridged = 4;
|
|
1256
|
+
*/
|
|
1257
|
+
this.isBridged = false;
|
|
1258
|
+
proto3.util.initPartial(data, this);
|
|
1259
|
+
}
|
|
1260
|
+
static fromBinary(bytes, options) {
|
|
1261
|
+
return new ChainToken().fromBinary(bytes, options);
|
|
1262
|
+
}
|
|
1263
|
+
static fromJson(jsonValue, options) {
|
|
1264
|
+
return new ChainToken().fromJson(jsonValue, options);
|
|
1265
|
+
}
|
|
1266
|
+
static fromJsonString(jsonString, options) {
|
|
1267
|
+
return new ChainToken().fromJsonString(jsonString, options);
|
|
1268
|
+
}
|
|
1269
|
+
static equals(a, b) {
|
|
1270
|
+
return proto3.util.equals(ChainToken, a, b);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
ChainToken.runtime = proto3;
|
|
1274
|
+
ChainToken.typeName = "data.v1.ChainToken";
|
|
1275
|
+
ChainToken.fields = proto3.util.newFieldList(() => [
|
|
1276
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1277
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1278
|
+
{ no: 3, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1279
|
+
{ no: 4, name: "is_bridged", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1280
|
+
{ no: 5, name: "stats", kind: "message", T: ChainTokenStats },
|
|
1281
|
+
]);
|
|
1282
|
+
/**
|
|
1283
|
+
* @generated from message data.v1.ChainTokenStats
|
|
1284
|
+
*/
|
|
1285
|
+
export class ChainTokenStats extends Message {
|
|
1286
|
+
constructor(data) {
|
|
1287
|
+
super();
|
|
1288
|
+
proto3.util.initPartial(data, this);
|
|
1289
|
+
}
|
|
1290
|
+
static fromBinary(bytes, options) {
|
|
1291
|
+
return new ChainTokenStats().fromBinary(bytes, options);
|
|
1292
|
+
}
|
|
1293
|
+
static fromJson(jsonValue, options) {
|
|
1294
|
+
return new ChainTokenStats().fromJson(jsonValue, options);
|
|
1295
|
+
}
|
|
1296
|
+
static fromJsonString(jsonString, options) {
|
|
1297
|
+
return new ChainTokenStats().fromJsonString(jsonString, options);
|
|
1298
|
+
}
|
|
1299
|
+
static equals(a, b) {
|
|
1300
|
+
return proto3.util.equals(ChainTokenStats, a, b);
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
ChainTokenStats.runtime = proto3;
|
|
1304
|
+
ChainTokenStats.typeName = "data.v1.ChainTokenStats";
|
|
1305
|
+
ChainTokenStats.fields = proto3.util.newFieldList(() => [
|
|
1306
|
+
{ no: 1, name: "volume_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1307
|
+
{ no: 2, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1308
|
+
{ no: 3, name: "volume_7d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1309
|
+
{ no: 4, name: "volume_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1310
|
+
{ no: 5, name: "volume_1y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1311
|
+
]);
|
|
1312
|
+
/**
|
|
1313
|
+
* A token aggregated across multiple chains
|
|
1314
|
+
*
|
|
1315
|
+
* @generated from message data.v1.MultichainToken
|
|
1316
|
+
*/
|
|
1317
|
+
export class MultichainToken extends Message {
|
|
1318
|
+
constructor(data) {
|
|
1319
|
+
super();
|
|
1320
|
+
/**
|
|
1321
|
+
* @generated from field: string multichain_id = 1;
|
|
1322
|
+
*/
|
|
1323
|
+
this.multichainId = "";
|
|
1324
|
+
/**
|
|
1325
|
+
* @generated from field: string symbol = 2;
|
|
1326
|
+
*/
|
|
1327
|
+
this.symbol = "";
|
|
1328
|
+
/**
|
|
1329
|
+
* @generated from field: string name = 3;
|
|
1330
|
+
*/
|
|
1331
|
+
this.name = "";
|
|
1332
|
+
/**
|
|
1333
|
+
* @generated from field: data.v1.TokenType type = 4;
|
|
1334
|
+
*/
|
|
1335
|
+
this.type = TokenType.UNKNOWN;
|
|
1336
|
+
/**
|
|
1337
|
+
* @generated from field: string project_name = 5;
|
|
1338
|
+
*/
|
|
1339
|
+
this.projectName = "";
|
|
1340
|
+
/**
|
|
1341
|
+
* @generated from field: string logo_url = 6;
|
|
1342
|
+
*/
|
|
1343
|
+
this.logoUrl = "";
|
|
1344
|
+
/**
|
|
1345
|
+
* @generated from field: data.v1.SafetyLevel safety_level = 9;
|
|
1346
|
+
*/
|
|
1347
|
+
this.safetyLevel = SafetyLevel.UNKNOWN;
|
|
1348
|
+
/**
|
|
1349
|
+
* @generated from field: data.v1.SpamCode spam_code = 10;
|
|
1350
|
+
*/
|
|
1351
|
+
this.spamCode = SpamCode.UNKNOWN;
|
|
1352
|
+
/**
|
|
1353
|
+
* @generated from field: repeated data.v1.ChainToken chain_tokens = 12;
|
|
1354
|
+
*/
|
|
1355
|
+
this.chainTokens = [];
|
|
1356
|
+
proto3.util.initPartial(data, this);
|
|
1357
|
+
}
|
|
1358
|
+
static fromBinary(bytes, options) {
|
|
1359
|
+
return new MultichainToken().fromBinary(bytes, options);
|
|
1360
|
+
}
|
|
1361
|
+
static fromJson(jsonValue, options) {
|
|
1362
|
+
return new MultichainToken().fromJson(jsonValue, options);
|
|
1363
|
+
}
|
|
1364
|
+
static fromJsonString(jsonString, options) {
|
|
1365
|
+
return new MultichainToken().fromJsonString(jsonString, options);
|
|
1366
|
+
}
|
|
1367
|
+
static equals(a, b) {
|
|
1368
|
+
return proto3.util.equals(MultichainToken, a, b);
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
MultichainToken.runtime = proto3;
|
|
1372
|
+
MultichainToken.typeName = "data.v1.MultichainToken";
|
|
1373
|
+
MultichainToken.fields = proto3.util.newFieldList(() => [
|
|
1374
|
+
{ no: 1, name: "multichain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1375
|
+
{ no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1376
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1377
|
+
{ no: 4, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
|
|
1378
|
+
{ no: 5, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1379
|
+
{ no: 6, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1380
|
+
{ no: 7, name: "protection_info", kind: "message", T: ProtectionInfo },
|
|
1381
|
+
{ no: 8, name: "fee_data", kind: "message", T: FeeData },
|
|
1382
|
+
{ no: 9, name: "safety_level", kind: "enum", T: proto3.getEnumType(SafetyLevel) },
|
|
1383
|
+
{ no: 10, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
|
|
1384
|
+
{ no: 11, name: "stats", kind: "message", T: TokenStats },
|
|
1385
|
+
{ no: 12, name: "chain_tokens", kind: "message", T: ChainToken, repeated: true },
|
|
1386
|
+
]);
|
|
1089
1387
|
/**
|
|
1090
1388
|
* @generated from message data.v1.Contract
|
|
1091
1389
|
*/
|