@uniswap/client-data-api 0.0.258 → 0.0.260
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
3
|
-
import { RankedMultichainToken, RankedPool } from "./types_pb.js";
|
|
3
|
+
import { RankedMultichainToken, RankedPool, TokenLaunchProvenance } from "./types_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* @generated from enum data.v2.SearchType
|
|
6
6
|
*/
|
|
@@ -26,6 +26,43 @@ export declare enum SearchType {
|
|
|
26
26
|
*/
|
|
27
27
|
CATEGORY = 4
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Where an auction is in its life, decided server-side from the chain head against start_block/end_block and, once ended, from the raise outcome.
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum data.v2.AuctionLifecycle
|
|
33
|
+
*/
|
|
34
|
+
export declare enum AuctionLifecycle {
|
|
35
|
+
/**
|
|
36
|
+
* The current row, the chain head or the raise figures were unavailable; the block times and raw raise fields, when set, still let a client classify.
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum value: AUCTION_LIFECYCLE_UNSPECIFIED = 0;
|
|
39
|
+
*/
|
|
40
|
+
UNSPECIFIED = 0,
|
|
41
|
+
/**
|
|
42
|
+
* start_block not yet reached.
|
|
43
|
+
*
|
|
44
|
+
* @generated from enum value: AUCTION_LIFECYCLE_UPCOMING = 1;
|
|
45
|
+
*/
|
|
46
|
+
UPCOMING = 1,
|
|
47
|
+
/**
|
|
48
|
+
* start_block reached and end_block not yet reached (the data.v1 AuctionStatusFilter ACTIVE rule).
|
|
49
|
+
*
|
|
50
|
+
* @generated from enum value: AUCTION_LIFECYCLE_LIVE = 2;
|
|
51
|
+
*/
|
|
52
|
+
LIVE = 2,
|
|
53
|
+
/**
|
|
54
|
+
* Ended with total_bid_volume >= required_currency_raised, or already migrated into its pool; the migration itself may still be pending.
|
|
55
|
+
*
|
|
56
|
+
* @generated from enum value: AUCTION_LIFECYCLE_GRADUATED = 3;
|
|
57
|
+
*/
|
|
58
|
+
GRADUATED = 3,
|
|
59
|
+
/**
|
|
60
|
+
* Ended with total_bid_volume < required_currency_raised.
|
|
61
|
+
*
|
|
62
|
+
* @generated from enum value: AUCTION_LIFECYCLE_FAILED = 4;
|
|
63
|
+
*/
|
|
64
|
+
FAILED = 4
|
|
65
|
+
}
|
|
29
66
|
/**
|
|
30
67
|
* @generated from message data.v2.SearchRequest
|
|
31
68
|
*/
|
|
@@ -149,11 +186,51 @@ export declare class SearchAuction extends Message<SearchAuction> {
|
|
|
149
186
|
*/
|
|
150
187
|
fdvUsd?: string;
|
|
151
188
|
/**
|
|
152
|
-
* Same rules as data.v1.Auction.estimated_end_time
|
|
189
|
+
* Same rules as data.v1.Auction.estimated_end_time, served for every lifecycle (a graduated auction's end is its "launched x ago" anchor); unset when unresolvable.
|
|
153
190
|
*
|
|
154
191
|
* @generated from field: optional google.protobuf.Timestamp estimated_end_time = 9;
|
|
155
192
|
*/
|
|
156
193
|
estimatedEndTime?: Timestamp;
|
|
194
|
+
/**
|
|
195
|
+
* Same rules as data.v1.Auction.estimated_start_time; unset when unresolvable.
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: optional google.protobuf.Timestamp estimated_start_time = 10;
|
|
198
|
+
*/
|
|
199
|
+
estimatedStartTime?: Timestamp;
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: data.v2.AuctionLifecycle lifecycle = 11;
|
|
202
|
+
*/
|
|
203
|
+
lifecycle: AuctionLifecycle;
|
|
204
|
+
/**
|
|
205
|
+
* Same shape as Token.launch_provenance: the Uniswap CCA launchpad, with launch_method CROWD/CUSTOM from the quick-launch classification (UNSPECIFIED until classified).
|
|
206
|
+
*
|
|
207
|
+
* @generated from field: optional data.v2.TokenLaunchProvenance launch_provenance = 12;
|
|
208
|
+
*/
|
|
209
|
+
launchProvenance?: TokenLaunchProvenance;
|
|
210
|
+
/**
|
|
211
|
+
* Raw bid volume, an integer string in the raise currency's smallest unit; unset when unavailable or not an integer.
|
|
212
|
+
*
|
|
213
|
+
* @generated from field: optional string total_bid_volume = 13;
|
|
214
|
+
*/
|
|
215
|
+
totalBidVolume?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Raw raise target that decides GRADUATED vs FAILED, in the units of total_bid_volume; unset when unavailable or not an integer.
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: optional string required_currency_raised = 14;
|
|
220
|
+
*/
|
|
221
|
+
requiredCurrencyRaised?: string;
|
|
222
|
+
/**
|
|
223
|
+
* EIP-55 checksummed raise currency, the zero address for the chain's native currency; unset when unavailable or not an address.
|
|
224
|
+
*
|
|
225
|
+
* @generated from field: optional string currency_address = 15;
|
|
226
|
+
*/
|
|
227
|
+
currencyAddress?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Raise currency decimals (0-255), for rendering the raw raise fields; unset when unknown.
|
|
230
|
+
*
|
|
231
|
+
* @generated from field: optional uint32 currency_decimals = 16;
|
|
232
|
+
*/
|
|
233
|
+
currencyDecimals?: number;
|
|
157
234
|
constructor(data?: PartialMessage<SearchAuction>);
|
|
158
235
|
static readonly runtime: typeof proto3;
|
|
159
236
|
static readonly typeName = "data.v2.SearchAuction";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
-
import { RankedMultichainToken, RankedPool } from "./types_pb.js";
|
|
6
|
+
import { RankedMultichainToken, RankedPool, TokenLaunchProvenance } from "./types_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from enum data.v2.SearchType
|
|
9
9
|
*/
|
|
@@ -38,6 +38,52 @@ proto3.util.setEnumType(SearchType, "data.v2.SearchType", [
|
|
|
38
38
|
{ no: 3, name: "SEARCH_TYPE_AUCTION" },
|
|
39
39
|
{ no: 4, name: "SEARCH_TYPE_CATEGORY" },
|
|
40
40
|
]);
|
|
41
|
+
/**
|
|
42
|
+
* Where an auction is in its life, decided server-side from the chain head against start_block/end_block and, once ended, from the raise outcome.
|
|
43
|
+
*
|
|
44
|
+
* @generated from enum data.v2.AuctionLifecycle
|
|
45
|
+
*/
|
|
46
|
+
export var AuctionLifecycle;
|
|
47
|
+
(function (AuctionLifecycle) {
|
|
48
|
+
/**
|
|
49
|
+
* The current row, the chain head or the raise figures were unavailable; the block times and raw raise fields, when set, still let a client classify.
|
|
50
|
+
*
|
|
51
|
+
* @generated from enum value: AUCTION_LIFECYCLE_UNSPECIFIED = 0;
|
|
52
|
+
*/
|
|
53
|
+
AuctionLifecycle[AuctionLifecycle["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
54
|
+
/**
|
|
55
|
+
* start_block not yet reached.
|
|
56
|
+
*
|
|
57
|
+
* @generated from enum value: AUCTION_LIFECYCLE_UPCOMING = 1;
|
|
58
|
+
*/
|
|
59
|
+
AuctionLifecycle[AuctionLifecycle["UPCOMING"] = 1] = "UPCOMING";
|
|
60
|
+
/**
|
|
61
|
+
* start_block reached and end_block not yet reached (the data.v1 AuctionStatusFilter ACTIVE rule).
|
|
62
|
+
*
|
|
63
|
+
* @generated from enum value: AUCTION_LIFECYCLE_LIVE = 2;
|
|
64
|
+
*/
|
|
65
|
+
AuctionLifecycle[AuctionLifecycle["LIVE"] = 2] = "LIVE";
|
|
66
|
+
/**
|
|
67
|
+
* Ended with total_bid_volume >= required_currency_raised, or already migrated into its pool; the migration itself may still be pending.
|
|
68
|
+
*
|
|
69
|
+
* @generated from enum value: AUCTION_LIFECYCLE_GRADUATED = 3;
|
|
70
|
+
*/
|
|
71
|
+
AuctionLifecycle[AuctionLifecycle["GRADUATED"] = 3] = "GRADUATED";
|
|
72
|
+
/**
|
|
73
|
+
* Ended with total_bid_volume < required_currency_raised.
|
|
74
|
+
*
|
|
75
|
+
* @generated from enum value: AUCTION_LIFECYCLE_FAILED = 4;
|
|
76
|
+
*/
|
|
77
|
+
AuctionLifecycle[AuctionLifecycle["FAILED"] = 4] = "FAILED";
|
|
78
|
+
})(AuctionLifecycle || (AuctionLifecycle = {}));
|
|
79
|
+
// Retrieve enum metadata with: proto3.getEnumType(AuctionLifecycle)
|
|
80
|
+
proto3.util.setEnumType(AuctionLifecycle, "data.v2.AuctionLifecycle", [
|
|
81
|
+
{ no: 0, name: "AUCTION_LIFECYCLE_UNSPECIFIED" },
|
|
82
|
+
{ no: 1, name: "AUCTION_LIFECYCLE_UPCOMING" },
|
|
83
|
+
{ no: 2, name: "AUCTION_LIFECYCLE_LIVE" },
|
|
84
|
+
{ no: 3, name: "AUCTION_LIFECYCLE_GRADUATED" },
|
|
85
|
+
{ no: 4, name: "AUCTION_LIFECYCLE_FAILED" },
|
|
86
|
+
]);
|
|
41
87
|
/**
|
|
42
88
|
* @generated from message data.v2.SearchRequest
|
|
43
89
|
*/
|
|
@@ -183,6 +229,10 @@ export class SearchAuction extends Message {
|
|
|
183
229
|
* @generated from field: string total_bid_volume_usd = 7;
|
|
184
230
|
*/
|
|
185
231
|
this.totalBidVolumeUsd = "";
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: data.v2.AuctionLifecycle lifecycle = 11;
|
|
234
|
+
*/
|
|
235
|
+
this.lifecycle = AuctionLifecycle.UNSPECIFIED;
|
|
186
236
|
proto3.util.initPartial(data, this);
|
|
187
237
|
}
|
|
188
238
|
static fromBinary(bytes, options) {
|
|
@@ -210,4 +260,11 @@ SearchAuction.fields = proto3.util.newFieldList(() => [
|
|
|
210
260
|
{ no: 7, name: "total_bid_volume_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
211
261
|
{ no: 8, name: "fdv_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
212
262
|
{ no: 9, name: "estimated_end_time", kind: "message", T: Timestamp, opt: true },
|
|
263
|
+
{ no: 10, name: "estimated_start_time", kind: "message", T: Timestamp, opt: true },
|
|
264
|
+
{ no: 11, name: "lifecycle", kind: "enum", T: proto3.getEnumType(AuctionLifecycle) },
|
|
265
|
+
{ no: 12, name: "launch_provenance", kind: "message", T: TokenLaunchProvenance, opt: true },
|
|
266
|
+
{ no: 13, name: "total_bid_volume", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
267
|
+
{ no: 14, name: "required_currency_raised", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
268
|
+
{ no: 15, name: "currency_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
269
|
+
{ no: 16, name: "currency_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
213
270
|
]);
|
|
@@ -990,6 +990,31 @@ export declare class TokenIssuerInfo extends Message<TokenIssuerInfo> {
|
|
|
990
990
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenIssuerInfo;
|
|
991
991
|
static equals(a: TokenIssuerInfo | PlainMessage<TokenIssuerInfo> | undefined, b: TokenIssuerInfo | PlainMessage<TokenIssuerInfo> | undefined): boolean;
|
|
992
992
|
}
|
|
993
|
+
/**
|
|
994
|
+
* One chain's deployment of a multichain token. Decimals differ across a
|
|
995
|
+
* group's chains (USDC is 6 on mainnet and 18 on BNB), so amounts on a
|
|
996
|
+
* chain are scaled by this value, never by MultichainToken.decimals.
|
|
997
|
+
*
|
|
998
|
+
* @generated from message data.v2.ChainDeployment
|
|
999
|
+
*/
|
|
1000
|
+
export declare class ChainDeployment extends Message<ChainDeployment> {
|
|
1001
|
+
/**
|
|
1002
|
+
* @generated from field: string address = 1;
|
|
1003
|
+
*/
|
|
1004
|
+
address: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* @generated from field: uint32 decimals = 2;
|
|
1007
|
+
*/
|
|
1008
|
+
decimals: number;
|
|
1009
|
+
constructor(data?: PartialMessage<ChainDeployment>);
|
|
1010
|
+
static readonly runtime: typeof proto3;
|
|
1011
|
+
static readonly typeName = "data.v2.ChainDeployment";
|
|
1012
|
+
static readonly fields: FieldList;
|
|
1013
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainDeployment;
|
|
1014
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainDeployment;
|
|
1015
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainDeployment;
|
|
1016
|
+
static equals(a: ChainDeployment | PlainMessage<ChainDeployment> | undefined, b: ChainDeployment | PlainMessage<ChainDeployment> | undefined): boolean;
|
|
1017
|
+
}
|
|
993
1018
|
/**
|
|
994
1019
|
* @generated from message data.v2.MultichainToken
|
|
995
1020
|
*/
|
|
@@ -1003,7 +1028,11 @@ export declare class MultichainToken extends Message<MultichainToken> {
|
|
|
1003
1028
|
*/
|
|
1004
1029
|
multichainId: string;
|
|
1005
1030
|
/**
|
|
1006
|
-
*
|
|
1031
|
+
* chainId -> address. Same keys as `deployments`, which also carries the
|
|
1032
|
+
* chain's decimals; read that instead.
|
|
1033
|
+
*
|
|
1034
|
+
* @generated from field: map<string, string> addresses = 2 [deprecated = true];
|
|
1035
|
+
* @deprecated
|
|
1007
1036
|
*/
|
|
1008
1037
|
addresses: {
|
|
1009
1038
|
[key: string]: string;
|
|
@@ -1013,6 +1042,9 @@ export declare class MultichainToken extends Message<MultichainToken> {
|
|
|
1013
1042
|
*/
|
|
1014
1043
|
symbol: string;
|
|
1015
1044
|
/**
|
|
1045
|
+
* The canonical deployment's decimals (`canonical_chain_id`). Per-chain
|
|
1046
|
+
* values are in `deployments`.
|
|
1047
|
+
*
|
|
1016
1048
|
* @generated from field: uint32 decimals = 4;
|
|
1017
1049
|
*/
|
|
1018
1050
|
decimals: number;
|
|
@@ -1058,11 +1090,19 @@ export declare class MultichainToken extends Message<MultichainToken> {
|
|
|
1058
1090
|
*/
|
|
1059
1091
|
issuer?: TokenIssuerInfo;
|
|
1060
1092
|
/**
|
|
1061
|
-
* key of `
|
|
1093
|
+
* key of `deployments` the price, chart and metadata come from
|
|
1062
1094
|
*
|
|
1063
1095
|
* @generated from field: optional uint32 canonical_chain_id = 14;
|
|
1064
1096
|
*/
|
|
1065
1097
|
canonicalChainId?: number;
|
|
1098
|
+
/**
|
|
1099
|
+
* chainId -> that chain's deployment: one per chain, the full canonical group.
|
|
1100
|
+
*
|
|
1101
|
+
* @generated from field: map<string, data.v2.ChainDeployment> deployments = 15;
|
|
1102
|
+
*/
|
|
1103
|
+
deployments: {
|
|
1104
|
+
[key: string]: ChainDeployment;
|
|
1105
|
+
};
|
|
1066
1106
|
constructor(data?: PartialMessage<MultichainToken>);
|
|
1067
1107
|
static readonly runtime: typeof proto3;
|
|
1068
1108
|
static readonly typeName = "data.v2.MultichainToken";
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1134,6 +1134,45 @@ TokenIssuerInfo.fields = proto3.util.newFieldList(() => [
|
|
|
1134
1134
|
{ no: 2, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1135
1135
|
{ no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1136
1136
|
]);
|
|
1137
|
+
/**
|
|
1138
|
+
* One chain's deployment of a multichain token. Decimals differ across a
|
|
1139
|
+
* group's chains (USDC is 6 on mainnet and 18 on BNB), so amounts on a
|
|
1140
|
+
* chain are scaled by this value, never by MultichainToken.decimals.
|
|
1141
|
+
*
|
|
1142
|
+
* @generated from message data.v2.ChainDeployment
|
|
1143
|
+
*/
|
|
1144
|
+
export class ChainDeployment extends Message {
|
|
1145
|
+
constructor(data) {
|
|
1146
|
+
super();
|
|
1147
|
+
/**
|
|
1148
|
+
* @generated from field: string address = 1;
|
|
1149
|
+
*/
|
|
1150
|
+
this.address = "";
|
|
1151
|
+
/**
|
|
1152
|
+
* @generated from field: uint32 decimals = 2;
|
|
1153
|
+
*/
|
|
1154
|
+
this.decimals = 0;
|
|
1155
|
+
proto3.util.initPartial(data, this);
|
|
1156
|
+
}
|
|
1157
|
+
static fromBinary(bytes, options) {
|
|
1158
|
+
return new ChainDeployment().fromBinary(bytes, options);
|
|
1159
|
+
}
|
|
1160
|
+
static fromJson(jsonValue, options) {
|
|
1161
|
+
return new ChainDeployment().fromJson(jsonValue, options);
|
|
1162
|
+
}
|
|
1163
|
+
static fromJsonString(jsonString, options) {
|
|
1164
|
+
return new ChainDeployment().fromJsonString(jsonString, options);
|
|
1165
|
+
}
|
|
1166
|
+
static equals(a, b) {
|
|
1167
|
+
return proto3.util.equals(ChainDeployment, a, b);
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
ChainDeployment.runtime = proto3;
|
|
1171
|
+
ChainDeployment.typeName = "data.v2.ChainDeployment";
|
|
1172
|
+
ChainDeployment.fields = proto3.util.newFieldList(() => [
|
|
1173
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1174
|
+
{ no: 2, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1175
|
+
]);
|
|
1137
1176
|
/**
|
|
1138
1177
|
* @generated from message data.v2.MultichainToken
|
|
1139
1178
|
*/
|
|
@@ -1149,7 +1188,11 @@ export class MultichainToken extends Message {
|
|
|
1149
1188
|
*/
|
|
1150
1189
|
this.multichainId = "";
|
|
1151
1190
|
/**
|
|
1152
|
-
*
|
|
1191
|
+
* chainId -> address. Same keys as `deployments`, which also carries the
|
|
1192
|
+
* chain's decimals; read that instead.
|
|
1193
|
+
*
|
|
1194
|
+
* @generated from field: map<string, string> addresses = 2 [deprecated = true];
|
|
1195
|
+
* @deprecated
|
|
1153
1196
|
*/
|
|
1154
1197
|
this.addresses = {};
|
|
1155
1198
|
/**
|
|
@@ -1157,6 +1200,9 @@ export class MultichainToken extends Message {
|
|
|
1157
1200
|
*/
|
|
1158
1201
|
this.symbol = "";
|
|
1159
1202
|
/**
|
|
1203
|
+
* The canonical deployment's decimals (`canonical_chain_id`). Per-chain
|
|
1204
|
+
* values are in `deployments`.
|
|
1205
|
+
*
|
|
1160
1206
|
* @generated from field: uint32 decimals = 4;
|
|
1161
1207
|
*/
|
|
1162
1208
|
this.decimals = 0;
|
|
@@ -1174,6 +1220,12 @@ export class MultichainToken extends Message {
|
|
|
1174
1220
|
* @generated from field: repeated string category_ids = 12;
|
|
1175
1221
|
*/
|
|
1176
1222
|
this.categoryIds = [];
|
|
1223
|
+
/**
|
|
1224
|
+
* chainId -> that chain's deployment: one per chain, the full canonical group.
|
|
1225
|
+
*
|
|
1226
|
+
* @generated from field: map<string, data.v2.ChainDeployment> deployments = 15;
|
|
1227
|
+
*/
|
|
1228
|
+
this.deployments = {};
|
|
1177
1229
|
proto3.util.initPartial(data, this);
|
|
1178
1230
|
}
|
|
1179
1231
|
static fromBinary(bytes, options) {
|
|
@@ -1206,6 +1258,7 @@ MultichainToken.fields = proto3.util.newFieldList(() => [
|
|
|
1206
1258
|
{ no: 12, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1207
1259
|
{ no: 13, name: "issuer", kind: "message", T: TokenIssuerInfo, opt: true },
|
|
1208
1260
|
{ no: 14, name: "canonical_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1261
|
+
{ no: 15, name: "deployments", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: ChainDeployment } },
|
|
1209
1262
|
]);
|
|
1210
1263
|
/**
|
|
1211
1264
|
* @generated from message data.v2.PoolsSort
|