@uniswap/client-data-api 0.0.136 → 0.0.138

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.
@@ -4,6 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
6
  import { TimestampedValue, TokenType } from "../v1/types_pb.js";
7
+ import { ProtocolVersion } from "../v1/poolTypes_pb.js";
7
8
  /**
8
9
  * @generated from enum data.v2.TokensOrderBy
9
10
  */
@@ -264,6 +265,112 @@ proto3.util.setEnumType(HistoryDuration, "data.v2.HistoryDuration", [
264
265
  { no: 5, name: "HISTORY_DURATION_YEAR" },
265
266
  { no: 6, name: "HISTORY_DURATION_MAX" },
266
267
  ]);
268
+ /**
269
+ * @generated from enum data.v2.PoolsOrderBy
270
+ */
271
+ export var PoolsOrderBy;
272
+ (function (PoolsOrderBy) {
273
+ /**
274
+ * @generated from enum value: POOLS_ORDER_BY_UNSPECIFIED = 0;
275
+ */
276
+ PoolsOrderBy[PoolsOrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
277
+ /**
278
+ * default
279
+ *
280
+ * @generated from enum value: POOLS_ORDER_BY_TVL = 1;
281
+ */
282
+ PoolsOrderBy[PoolsOrderBy["TVL"] = 1] = "TVL";
283
+ /**
284
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_1D = 2;
285
+ */
286
+ PoolsOrderBy[PoolsOrderBy["VOLUME_1D"] = 2] = "VOLUME_1D";
287
+ /**
288
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_30D = 3;
289
+ */
290
+ PoolsOrderBy[PoolsOrderBy["VOLUME_30D"] = 3] = "VOLUME_30D";
291
+ /**
292
+ * fee revenue / TVL; excludes reward_apr
293
+ *
294
+ * @generated from enum value: POOLS_ORDER_BY_APR = 4;
295
+ */
296
+ PoolsOrderBy[PoolsOrderBy["APR"] = 4] = "APR";
297
+ /**
298
+ * volume_1d / tvl; capital-efficiency proxy
299
+ *
300
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_1D_TVL_RATIO = 5;
301
+ */
302
+ PoolsOrderBy[PoolsOrderBy["VOLUME_1D_TVL_RATIO"] = 5] = "VOLUME_1D_TVL_RATIO";
303
+ })(PoolsOrderBy || (PoolsOrderBy = {}));
304
+ // Retrieve enum metadata with: proto3.getEnumType(PoolsOrderBy)
305
+ proto3.util.setEnumType(PoolsOrderBy, "data.v2.PoolsOrderBy", [
306
+ { no: 0, name: "POOLS_ORDER_BY_UNSPECIFIED" },
307
+ { no: 1, name: "POOLS_ORDER_BY_TVL" },
308
+ { no: 2, name: "POOLS_ORDER_BY_VOLUME_1D" },
309
+ { no: 3, name: "POOLS_ORDER_BY_VOLUME_30D" },
310
+ { no: 4, name: "POOLS_ORDER_BY_APR" },
311
+ { no: 5, name: "POOLS_ORDER_BY_VOLUME_1D_TVL_RATIO" },
312
+ ]);
313
+ /**
314
+ * @generated from enum data.v2.PoolTokenLogicalOperator
315
+ */
316
+ export var PoolTokenLogicalOperator;
317
+ (function (PoolTokenLogicalOperator) {
318
+ /**
319
+ * treated as OR
320
+ *
321
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_UNSPECIFIED = 0;
322
+ */
323
+ PoolTokenLogicalOperator[PoolTokenLogicalOperator["UNSPECIFIED"] = 0] = "UNSPECIFIED";
324
+ /**
325
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_OR = 1;
326
+ */
327
+ PoolTokenLogicalOperator[PoolTokenLogicalOperator["OR"] = 1] = "OR";
328
+ /**
329
+ * invalid with more than 2 tokens
330
+ *
331
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_AND = 2;
332
+ */
333
+ PoolTokenLogicalOperator[PoolTokenLogicalOperator["AND"] = 2] = "AND";
334
+ })(PoolTokenLogicalOperator || (PoolTokenLogicalOperator = {}));
335
+ // Retrieve enum metadata with: proto3.getEnumType(PoolTokenLogicalOperator)
336
+ proto3.util.setEnumType(PoolTokenLogicalOperator, "data.v2.PoolTokenLogicalOperator", [
337
+ { no: 0, name: "POOL_TOKEN_LOGICAL_OPERATOR_UNSPECIFIED" },
338
+ { no: 1, name: "POOL_TOKEN_LOGICAL_OPERATOR_OR" },
339
+ { no: 2, name: "POOL_TOKEN_LOGICAL_OPERATOR_AND" },
340
+ ]);
341
+ /**
342
+ * @generated from enum data.v2.TransactionEventType
343
+ */
344
+ export var TransactionEventType;
345
+ (function (TransactionEventType) {
346
+ /**
347
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_UNSPECIFIED = 0;
348
+ */
349
+ TransactionEventType[TransactionEventType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
350
+ /**
351
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_SWAP = 1;
352
+ */
353
+ TransactionEventType[TransactionEventType["SWAP"] = 1] = "SWAP";
354
+ /**
355
+ * mint / positive modify_liquidity
356
+ *
357
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_ADD = 2;
358
+ */
359
+ TransactionEventType[TransactionEventType["ADD"] = 2] = "ADD";
360
+ /**
361
+ * burn / negative modify_liquidity
362
+ *
363
+ * @generated from enum value: TRANSACTION_EVENT_TYPE_REMOVE = 3;
364
+ */
365
+ TransactionEventType[TransactionEventType["REMOVE"] = 3] = "REMOVE";
366
+ })(TransactionEventType || (TransactionEventType = {}));
367
+ // Retrieve enum metadata with: proto3.getEnumType(TransactionEventType)
368
+ proto3.util.setEnumType(TransactionEventType, "data.v2.TransactionEventType", [
369
+ { no: 0, name: "TRANSACTION_EVENT_TYPE_UNSPECIFIED" },
370
+ { no: 1, name: "TRANSACTION_EVENT_TYPE_SWAP" },
371
+ { no: 2, name: "TRANSACTION_EVENT_TYPE_ADD" },
372
+ { no: 3, name: "TRANSACTION_EVENT_TYPE_REMOVE" },
373
+ ]);
267
374
  /**
268
375
  * Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
269
376
  *
@@ -846,6 +953,405 @@ MultichainToken.fields = proto3.util.newFieldList(() => [
846
953
  { no: 9, name: "fees", kind: "message", T: TokenFees },
847
954
  { no: 10, name: "project", kind: "message", T: TokenProject },
848
955
  ]);
956
+ /**
957
+ * @generated from message data.v2.PoolsSort
958
+ */
959
+ export class PoolsSort extends Message {
960
+ constructor(data) {
961
+ super();
962
+ proto3.util.initPartial(data, this);
963
+ }
964
+ static fromBinary(bytes, options) {
965
+ return new PoolsSort().fromBinary(bytes, options);
966
+ }
967
+ static fromJson(jsonValue, options) {
968
+ return new PoolsSort().fromJson(jsonValue, options);
969
+ }
970
+ static fromJsonString(jsonString, options) {
971
+ return new PoolsSort().fromJsonString(jsonString, options);
972
+ }
973
+ static equals(a, b) {
974
+ return proto3.util.equals(PoolsSort, a, b);
975
+ }
976
+ }
977
+ PoolsSort.runtime = proto3;
978
+ PoolsSort.typeName = "data.v2.PoolsSort";
979
+ PoolsSort.fields = proto3.util.newFieldList(() => [
980
+ { no: 1, name: "order_by", kind: "enum", T: proto3.getEnumType(PoolsOrderBy), opt: true },
981
+ { no: 2, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
982
+ ]);
983
+ /**
984
+ * Ranking stats for a pool.
985
+ * apr = annualised fee revenue / TVL.
986
+ * reward_apr = Merkl incentive yield (not a valid sort key).
987
+ * total_apr = apr + reward_apr treating null as 0; only null if both are null.
988
+ *
989
+ * @generated from message data.v2.PoolRankStats
990
+ */
991
+ export class PoolRankStats extends Message {
992
+ constructor(data) {
993
+ super();
994
+ proto3.util.initPartial(data, this);
995
+ }
996
+ static fromBinary(bytes, options) {
997
+ return new PoolRankStats().fromBinary(bytes, options);
998
+ }
999
+ static fromJson(jsonValue, options) {
1000
+ return new PoolRankStats().fromJson(jsonValue, options);
1001
+ }
1002
+ static fromJsonString(jsonString, options) {
1003
+ return new PoolRankStats().fromJsonString(jsonString, options);
1004
+ }
1005
+ static equals(a, b) {
1006
+ return proto3.util.equals(PoolRankStats, a, b);
1007
+ }
1008
+ }
1009
+ PoolRankStats.runtime = proto3;
1010
+ PoolRankStats.typeName = "data.v2.PoolRankStats";
1011
+ PoolRankStats.fields = proto3.util.newFieldList(() => [
1012
+ { no: 1, name: "tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1013
+ { no: 2, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1014
+ { no: 3, name: "volume_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1015
+ { no: 4, name: "apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1016
+ { no: 5, name: "reward_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1017
+ { no: 6, name: "total_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1018
+ { no: 7, name: "volume_1d_tvl_ratio", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1019
+ ]);
1020
+ /**
1021
+ * A pool with its protocol identity and token pair. No stats — stats live on
1022
+ * RankedPool.
1023
+ *
1024
+ * @generated from message data.v2.Pool
1025
+ */
1026
+ export class Pool extends Message {
1027
+ constructor(data) {
1028
+ super();
1029
+ /**
1030
+ * @generated from field: uint32 chain_id = 1;
1031
+ */
1032
+ this.chainId = 0;
1033
+ /**
1034
+ * checksummed pool address (V4: pool id hash)
1035
+ *
1036
+ * @generated from field: string pool_id = 2;
1037
+ */
1038
+ this.poolId = "";
1039
+ /**
1040
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
1041
+ */
1042
+ this.protocolVersion = ProtocolVersion.UNSPECIFIED;
1043
+ /**
1044
+ * true for V4 pools with dynamic fees
1045
+ *
1046
+ * @generated from field: bool is_dynamic_fee = 8;
1047
+ */
1048
+ this.isDynamicFee = false;
1049
+ proto3.util.initPartial(data, this);
1050
+ }
1051
+ static fromBinary(bytes, options) {
1052
+ return new Pool().fromBinary(bytes, options);
1053
+ }
1054
+ static fromJson(jsonValue, options) {
1055
+ return new Pool().fromJson(jsonValue, options);
1056
+ }
1057
+ static fromJsonString(jsonString, options) {
1058
+ return new Pool().fromJsonString(jsonString, options);
1059
+ }
1060
+ static equals(a, b) {
1061
+ return proto3.util.equals(Pool, a, b);
1062
+ }
1063
+ }
1064
+ Pool.runtime = proto3;
1065
+ Pool.typeName = "data.v2.Pool";
1066
+ Pool.fields = proto3.util.newFieldList(() => [
1067
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1068
+ { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1069
+ { no: 3, name: "token0", kind: "message", T: Token },
1070
+ { no: 4, name: "token1", kind: "message", T: Token },
1071
+ { no: 5, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
1072
+ { no: 6, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1073
+ { no: 7, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1074
+ { no: 8, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1075
+ { no: 9, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1076
+ ]);
1077
+ /**
1078
+ * @generated from message data.v2.PoolTokenFilter
1079
+ */
1080
+ export class PoolTokenFilter extends Message {
1081
+ constructor(data) {
1082
+ super();
1083
+ /**
1084
+ * checksummed EVM addresses
1085
+ *
1086
+ * @generated from field: repeated string tokens = 1;
1087
+ */
1088
+ this.tokens = [];
1089
+ /**
1090
+ * @generated from field: data.v2.PoolTokenLogicalOperator logical_operator = 2;
1091
+ */
1092
+ this.logicalOperator = PoolTokenLogicalOperator.UNSPECIFIED;
1093
+ proto3.util.initPartial(data, this);
1094
+ }
1095
+ static fromBinary(bytes, options) {
1096
+ return new PoolTokenFilter().fromBinary(bytes, options);
1097
+ }
1098
+ static fromJson(jsonValue, options) {
1099
+ return new PoolTokenFilter().fromJson(jsonValue, options);
1100
+ }
1101
+ static fromJsonString(jsonString, options) {
1102
+ return new PoolTokenFilter().fromJsonString(jsonString, options);
1103
+ }
1104
+ static equals(a, b) {
1105
+ return proto3.util.equals(PoolTokenFilter, a, b);
1106
+ }
1107
+ }
1108
+ PoolTokenFilter.runtime = proto3;
1109
+ PoolTokenFilter.typeName = "data.v2.PoolTokenFilter";
1110
+ PoolTokenFilter.fields = proto3.util.newFieldList(() => [
1111
+ { no: 1, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1112
+ { no: 2, name: "logical_operator", kind: "enum", T: proto3.getEnumType(PoolTokenLogicalOperator) },
1113
+ ]);
1114
+ /**
1115
+ * @generated from message data.v2.PoolStatRangeFilter
1116
+ */
1117
+ export class PoolStatRangeFilter extends Message {
1118
+ constructor(data) {
1119
+ super();
1120
+ proto3.util.initPartial(data, this);
1121
+ }
1122
+ static fromBinary(bytes, options) {
1123
+ return new PoolStatRangeFilter().fromBinary(bytes, options);
1124
+ }
1125
+ static fromJson(jsonValue, options) {
1126
+ return new PoolStatRangeFilter().fromJson(jsonValue, options);
1127
+ }
1128
+ static fromJsonString(jsonString, options) {
1129
+ return new PoolStatRangeFilter().fromJsonString(jsonString, options);
1130
+ }
1131
+ static equals(a, b) {
1132
+ return proto3.util.equals(PoolStatRangeFilter, a, b);
1133
+ }
1134
+ }
1135
+ PoolStatRangeFilter.runtime = proto3;
1136
+ PoolStatRangeFilter.typeName = "data.v2.PoolStatRangeFilter";
1137
+ PoolStatRangeFilter.fields = proto3.util.newFieldList(() => [
1138
+ { no: 1, name: "min", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1139
+ { no: 2, name: "max", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1140
+ ]);
1141
+ /**
1142
+ * @generated from message data.v2.PoolStatsFilter
1143
+ */
1144
+ export class PoolStatsFilter extends Message {
1145
+ constructor(data) {
1146
+ super();
1147
+ proto3.util.initPartial(data, this);
1148
+ }
1149
+ static fromBinary(bytes, options) {
1150
+ return new PoolStatsFilter().fromBinary(bytes, options);
1151
+ }
1152
+ static fromJson(jsonValue, options) {
1153
+ return new PoolStatsFilter().fromJson(jsonValue, options);
1154
+ }
1155
+ static fromJsonString(jsonString, options) {
1156
+ return new PoolStatsFilter().fromJsonString(jsonString, options);
1157
+ }
1158
+ static equals(a, b) {
1159
+ return proto3.util.equals(PoolStatsFilter, a, b);
1160
+ }
1161
+ }
1162
+ PoolStatsFilter.runtime = proto3;
1163
+ PoolStatsFilter.typeName = "data.v2.PoolStatsFilter";
1164
+ PoolStatsFilter.fields = proto3.util.newFieldList(() => [
1165
+ { no: 1, name: "tvl", kind: "message", T: PoolStatRangeFilter, opt: true },
1166
+ { no: 2, name: "apr", kind: "message", T: PoolStatRangeFilter, opt: true },
1167
+ { no: 3, name: "volume_1d", kind: "message", T: PoolStatRangeFilter, opt: true },
1168
+ { no: 4, name: "volume_30d", kind: "message", T: PoolStatRangeFilter, opt: true },
1169
+ ]);
1170
+ /**
1171
+ * Server-side filters applied before ranking and pagination.
1172
+ *
1173
+ * @generated from message data.v2.PoolListFilter
1174
+ */
1175
+ export class PoolListFilter extends Message {
1176
+ constructor(data) {
1177
+ super();
1178
+ /**
1179
+ * if empty, all protocol versions
1180
+ *
1181
+ * @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 1;
1182
+ */
1183
+ this.protocolVersions = [];
1184
+ /**
1185
+ * e.g. [500, 3000, 10000]; never matches V2 pools
1186
+ *
1187
+ * @generated from field: repeated uint32 fee_tiers = 5;
1188
+ */
1189
+ this.feeTiers = [];
1190
+ proto3.util.initPartial(data, this);
1191
+ }
1192
+ static fromBinary(bytes, options) {
1193
+ return new PoolListFilter().fromBinary(bytes, options);
1194
+ }
1195
+ static fromJson(jsonValue, options) {
1196
+ return new PoolListFilter().fromJson(jsonValue, options);
1197
+ }
1198
+ static fromJsonString(jsonString, options) {
1199
+ return new PoolListFilter().fromJsonString(jsonString, options);
1200
+ }
1201
+ static equals(a, b) {
1202
+ return proto3.util.equals(PoolListFilter, a, b);
1203
+ }
1204
+ }
1205
+ PoolListFilter.runtime = proto3;
1206
+ PoolListFilter.typeName = "data.v2.PoolListFilter";
1207
+ PoolListFilter.fields = proto3.util.newFieldList(() => [
1208
+ { no: 1, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
1209
+ { no: 2, name: "include_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1210
+ { no: 3, name: "token_filter", kind: "message", T: PoolTokenFilter, opt: true },
1211
+ { no: 4, name: "stats_filter", kind: "message", T: PoolStatsFilter, opt: true },
1212
+ { no: 5, name: "fee_tiers", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1213
+ ]);
1214
+ /**
1215
+ * Returned by ListPools — wraps a Pool with its ranking stats.
1216
+ *
1217
+ * @generated from message data.v2.RankedPool
1218
+ */
1219
+ export class RankedPool extends Message {
1220
+ constructor(data) {
1221
+ super();
1222
+ proto3.util.initPartial(data, this);
1223
+ }
1224
+ static fromBinary(bytes, options) {
1225
+ return new RankedPool().fromBinary(bytes, options);
1226
+ }
1227
+ static fromJson(jsonValue, options) {
1228
+ return new RankedPool().fromJson(jsonValue, options);
1229
+ }
1230
+ static fromJsonString(jsonString, options) {
1231
+ return new RankedPool().fromJsonString(jsonString, options);
1232
+ }
1233
+ static equals(a, b) {
1234
+ return proto3.util.equals(RankedPool, a, b);
1235
+ }
1236
+ }
1237
+ RankedPool.runtime = proto3;
1238
+ RankedPool.typeName = "data.v2.RankedPool";
1239
+ RankedPool.fields = proto3.util.newFieldList(() => [
1240
+ { no: 1, name: "pool", kind: "message", T: Pool },
1241
+ { no: 2, name: "stats", kind: "message", T: PoolRankStats },
1242
+ ]);
1243
+ /**
1244
+ * One token side of a pool event. amount is absolute (always positive).
1245
+ * amount_usd = |amount| * price; 0 when price or decimals are unavailable.
1246
+ *
1247
+ * @generated from message data.v2.TransactionTokenSide
1248
+ */
1249
+ export class TransactionTokenSide extends Message {
1250
+ constructor(data) {
1251
+ super();
1252
+ /**
1253
+ * @generated from field: double amount_usd = 3;
1254
+ */
1255
+ this.amountUsd = 0;
1256
+ proto3.util.initPartial(data, this);
1257
+ }
1258
+ static fromBinary(bytes, options) {
1259
+ return new TransactionTokenSide().fromBinary(bytes, options);
1260
+ }
1261
+ static fromJson(jsonValue, options) {
1262
+ return new TransactionTokenSide().fromJson(jsonValue, options);
1263
+ }
1264
+ static fromJsonString(jsonString, options) {
1265
+ return new TransactionTokenSide().fromJsonString(jsonString, options);
1266
+ }
1267
+ static equals(a, b) {
1268
+ return proto3.util.equals(TransactionTokenSide, a, b);
1269
+ }
1270
+ }
1271
+ TransactionTokenSide.runtime = proto3;
1272
+ TransactionTokenSide.typeName = "data.v2.TransactionTokenSide";
1273
+ TransactionTokenSide.fields = proto3.util.newFieldList(() => [
1274
+ { no: 1, name: "token", kind: "message", T: Token },
1275
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1276
+ { no: 3, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1277
+ ]);
1278
+ /**
1279
+ * A single on-chain event from the global protocol feed.
1280
+ *
1281
+ * @generated from message data.v2.UniswapTransaction
1282
+ */
1283
+ export class UniswapTransaction extends Message {
1284
+ constructor(data) {
1285
+ super();
1286
+ /**
1287
+ * @generated from field: uint32 chain_id = 1;
1288
+ */
1289
+ this.chainId = 0;
1290
+ /**
1291
+ * @generated from field: string tx_hash = 2;
1292
+ */
1293
+ this.txHash = "";
1294
+ /**
1295
+ * Unix epoch milliseconds
1296
+ *
1297
+ * @generated from field: int64 timestamp_ms = 3;
1298
+ */
1299
+ this.timestampMs = protoInt64.zero;
1300
+ /**
1301
+ * @generated from field: data.v2.TransactionEventType event_type = 4;
1302
+ */
1303
+ this.eventType = TransactionEventType.UNSPECIFIED;
1304
+ /**
1305
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
1306
+ */
1307
+ this.protocolVersion = ProtocolVersion.UNSPECIFIED;
1308
+ /**
1309
+ * pool address (V2/V3) or pool_id (V4)
1310
+ *
1311
+ * @generated from field: string pool_id = 6;
1312
+ */
1313
+ this.poolId = "";
1314
+ /**
1315
+ * swap = avg of both sides; add/remove = sum
1316
+ *
1317
+ * @generated from field: double amount_usd = 9;
1318
+ */
1319
+ this.amountUsd = 0;
1320
+ /**
1321
+ * checksummed EVM address (tx_from)
1322
+ *
1323
+ * @generated from field: string wallet_address = 10;
1324
+ */
1325
+ this.walletAddress = "";
1326
+ proto3.util.initPartial(data, this);
1327
+ }
1328
+ static fromBinary(bytes, options) {
1329
+ return new UniswapTransaction().fromBinary(bytes, options);
1330
+ }
1331
+ static fromJson(jsonValue, options) {
1332
+ return new UniswapTransaction().fromJson(jsonValue, options);
1333
+ }
1334
+ static fromJsonString(jsonString, options) {
1335
+ return new UniswapTransaction().fromJsonString(jsonString, options);
1336
+ }
1337
+ static equals(a, b) {
1338
+ return proto3.util.equals(UniswapTransaction, a, b);
1339
+ }
1340
+ }
1341
+ UniswapTransaction.runtime = proto3;
1342
+ UniswapTransaction.typeName = "data.v2.UniswapTransaction";
1343
+ UniswapTransaction.fields = proto3.util.newFieldList(() => [
1344
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1345
+ { no: 2, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1346
+ { no: 3, name: "timestamp_ms", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1347
+ { no: 4, name: "event_type", kind: "enum", T: proto3.getEnumType(TransactionEventType) },
1348
+ { no: 5, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
1349
+ { no: 6, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1350
+ { no: 7, name: "token0", kind: "message", T: TransactionTokenSide },
1351
+ { no: 8, name: "token1", kind: "message", T: TransactionTokenSide },
1352
+ { no: 9, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1353
+ { no: 10, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1354
+ ]);
849
1355
  /**
850
1356
  * @generated from message data.v2.Token
851
1357
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.136",
3
+ "version": "0.0.138",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },