@uniswap/client-data-api 0.0.49 → 0.0.51
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
CHANGED
|
@@ -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";
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -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
|
|
@@ -348,6 +348,30 @@ export declare class Auction extends Message<Auction> {
|
|
|
348
348
|
* @generated from field: optional string total_bid_volume_usd = 29;
|
|
349
349
|
*/
|
|
350
350
|
totalBidVolumeUsd?: string;
|
|
351
|
+
/**
|
|
352
|
+
* ERC-20 metadata for the auctioned token (fetched via on-chain RPC)
|
|
353
|
+
*
|
|
354
|
+
* @generated from field: optional string token_name = 30;
|
|
355
|
+
*/
|
|
356
|
+
tokenName?: string;
|
|
357
|
+
/**
|
|
358
|
+
* @generated from field: optional int32 token_decimals = 31;
|
|
359
|
+
*/
|
|
360
|
+
tokenDecimals?: number;
|
|
361
|
+
/**
|
|
362
|
+
* ERC-20 metadata for the currency token (fetched via on-chain RPC, or native defaults for zero address)
|
|
363
|
+
*
|
|
364
|
+
* @generated from field: optional string currency_token_name = 32;
|
|
365
|
+
*/
|
|
366
|
+
currencyTokenName?: string;
|
|
367
|
+
/**
|
|
368
|
+
* @generated from field: optional string currency_token_symbol = 33;
|
|
369
|
+
*/
|
|
370
|
+
currencyTokenSymbol?: string;
|
|
371
|
+
/**
|
|
372
|
+
* @generated from field: optional int32 currency_token_decimals = 34;
|
|
373
|
+
*/
|
|
374
|
+
currencyTokenDecimals?: number;
|
|
351
375
|
constructor(data?: PartialMessage<Auction>);
|
|
352
376
|
static readonly runtime: typeof proto3;
|
|
353
377
|
static readonly typeName = "data.v1.Auction";
|
|
@@ -476,6 +476,11 @@ Auction.fields = proto3.util.newFieldList(() => [
|
|
|
476
476
|
{ no: 27, name: "token_protection_info", kind: "message", T: ProtectionInfo },
|
|
477
477
|
{ no: 28, name: "currency_price_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
478
478
|
{ no: 29, name: "total_bid_volume_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
479
|
+
{ no: 30, name: "token_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
480
|
+
{ no: 31, name: "token_decimals", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
481
|
+
{ no: 32, name: "currency_token_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
482
|
+
{ no: 33, name: "currency_token_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
483
|
+
{ no: 34, name: "currency_token_decimals", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
479
484
|
]);
|
|
480
485
|
/**
|
|
481
486
|
* Response containing auctions.
|
|
@@ -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
|
*/
|
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
|
*/
|