@r2wa-org/eden 0.0.88 → 0.0.89

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.
@@ -6930,6 +6930,13 @@ export declare const adminRouter: Elysia<"/admin", {
6930
6930
  response: {
6931
6931
  200: {
6932
6932
  data: {
6933
+ user: {
6934
+ email: string;
6935
+ id: string;
6936
+ name: string;
6937
+ username: string | null;
6938
+ displayUsername: string | null;
6939
+ };
6933
6940
  id: string;
6934
6941
  createdAt: Date;
6935
6942
  updatedAt: Date;
@@ -6950,6 +6957,25 @@ export declare const adminRouter: Elysia<"/admin", {
6950
6957
  userQuoteAccountId: string;
6951
6958
  userDebitLedgerEntryId: string | null;
6952
6959
  userCreditLedgerEntryId: string | null;
6960
+ market: {
6961
+ id: string;
6962
+ name: string;
6963
+ status: "active" | "draft" | "paused" | "ended";
6964
+ baseAsset: {
6965
+ symbol: string | null;
6966
+ id: string;
6967
+ name: string;
6968
+ code: string;
6969
+ precision: number;
6970
+ };
6971
+ quoteAsset: {
6972
+ symbol: string | null;
6973
+ id: string;
6974
+ name: string;
6975
+ code: string;
6976
+ precision: number;
6977
+ };
6978
+ };
6953
6979
  }[];
6954
6980
  pagination: {
6955
6981
  total: number;
package/dist/index.d.ts CHANGED
@@ -7253,6 +7253,13 @@ declare const app: Elysia<"/api", {
7253
7253
  response: {
7254
7254
  200: {
7255
7255
  data: {
7256
+ user: {
7257
+ email: string;
7258
+ id: string;
7259
+ name: string;
7260
+ username: string | null;
7261
+ displayUsername: string | null;
7262
+ };
7256
7263
  id: string;
7257
7264
  createdAt: Date;
7258
7265
  updatedAt: Date;
@@ -7273,6 +7280,25 @@ declare const app: Elysia<"/api", {
7273
7280
  userQuoteAccountId: string;
7274
7281
  userDebitLedgerEntryId: string | null;
7275
7282
  userCreditLedgerEntryId: string | null;
7283
+ market: {
7284
+ id: string;
7285
+ name: string;
7286
+ status: "active" | "draft" | "paused" | "ended";
7287
+ baseAsset: {
7288
+ symbol: string | null;
7289
+ id: string;
7290
+ name: string;
7291
+ code: string;
7292
+ precision: number;
7293
+ };
7294
+ quoteAsset: {
7295
+ symbol: string | null;
7296
+ id: string;
7297
+ name: string;
7298
+ code: string;
7299
+ precision: number;
7300
+ };
7301
+ };
7276
7302
  }[];
7277
7303
  pagination: {
7278
7304
  total: number;
@@ -13146,6 +13172,25 @@ declare const app: Elysia<"/api", {
13146
13172
  userQuoteAccountId: string;
13147
13173
  userDebitLedgerEntryId: string | null;
13148
13174
  userCreditLedgerEntryId: string | null;
13175
+ market: {
13176
+ id: string;
13177
+ name: string;
13178
+ status: "active" | "draft" | "paused" | "ended";
13179
+ baseAsset: {
13180
+ symbol: string | null;
13181
+ id: string;
13182
+ name: string;
13183
+ code: string;
13184
+ precision: number;
13185
+ };
13186
+ quoteAsset: {
13187
+ symbol: string | null;
13188
+ id: string;
13189
+ name: string;
13190
+ code: string;
13191
+ precision: number;
13192
+ };
13193
+ };
13149
13194
  }[];
13150
13195
  pagination: {
13151
13196
  total: number;
@@ -1230,349 +1230,158 @@ export declare const tradeMarketAdminOrderListQuerySchema: import("@sinclair/typ
1230
1230
  pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1231
1231
  }>;
1232
1232
  export type TradeMarketAdminOrderListQueryType = typeof tradeMarketAdminOrderListQuerySchema.static;
1233
+ export declare const tradeMarketAdminOrderMarketSchema: import("@sinclair/typebox").TObject<{
1234
+ id: import("@sinclair/typebox").TString;
1235
+ name: import("@sinclair/typebox").TString;
1236
+ status: import("@sinclair/typebox").TEnum<{
1237
+ active: "active";
1238
+ draft: "draft";
1239
+ paused: "paused";
1240
+ ended: "ended";
1241
+ }>;
1242
+ baseAsset: import("@sinclair/typebox").TObject<{
1243
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1244
+ id: import("@sinclair/typebox").TString;
1245
+ name: import("@sinclair/typebox").TString;
1246
+ code: import("@sinclair/typebox").TString;
1247
+ precision: import("@sinclair/typebox").TInteger;
1248
+ }>;
1249
+ quoteAsset: import("@sinclair/typebox").TObject<{
1250
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1251
+ id: import("@sinclair/typebox").TString;
1252
+ name: import("@sinclair/typebox").TString;
1253
+ code: import("@sinclair/typebox").TString;
1254
+ precision: import("@sinclair/typebox").TInteger;
1255
+ }>;
1256
+ }>;
1257
+ export declare const tradeMarketAdminOrderUserSchema: import("@sinclair/typebox").TObject<{
1258
+ email: import("@sinclair/typebox").TString;
1259
+ id: import("@sinclair/typebox").TString;
1260
+ name: import("@sinclair/typebox").TString;
1261
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1262
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1263
+ }>;
1264
+ export declare const tradeMarketAdminOrderItemSchema: import("@sinclair/typebox").TObject<{
1265
+ createdAt: import("@sinclair/typebox").TDate;
1266
+ updatedAt: import("@sinclair/typebox").TDate;
1267
+ id: import("@sinclair/typebox").TString;
1268
+ userId: import("@sinclair/typebox").TString;
1269
+ status: import("@sinclair/typebox").TEnum<{
1270
+ created: "created";
1271
+ completed: "completed";
1272
+ failed: "failed";
1273
+ }>;
1274
+ idempotencyKey: import("@sinclair/typebox").TString;
1275
+ orderNo: import("@sinclair/typebox").TString;
1276
+ priceSnapshot: import("@sinclair/typebox").TString;
1277
+ priceEffectiveAtSnapshot: import("@sinclair/typebox").TDate;
1278
+ failureCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1279
+ failureReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1280
+ marketId: import("@sinclair/typebox").TString;
1281
+ side: import("@sinclair/typebox").TEnum<{
1282
+ buy: "buy";
1283
+ sell: "sell";
1284
+ }>;
1285
+ baseAmount: import("@sinclair/typebox").TString;
1286
+ quoteAmount: import("@sinclair/typebox").TString;
1287
+ pricingSourceSnapshot: import("@sinclair/typebox").TString;
1288
+ userBaseAccountId: import("@sinclair/typebox").TString;
1289
+ userQuoteAccountId: import("@sinclair/typebox").TString;
1290
+ userDebitLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1291
+ userCreditLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1292
+ user: import("@sinclair/typebox").TObject<{
1293
+ email: import("@sinclair/typebox").TString;
1294
+ id: import("@sinclair/typebox").TString;
1295
+ name: import("@sinclair/typebox").TString;
1296
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1297
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1298
+ }>;
1299
+ market: import("@sinclair/typebox").TObject<{
1300
+ id: import("@sinclair/typebox").TString;
1301
+ name: import("@sinclair/typebox").TString;
1302
+ status: import("@sinclair/typebox").TEnum<{
1303
+ active: "active";
1304
+ draft: "draft";
1305
+ paused: "paused";
1306
+ ended: "ended";
1307
+ }>;
1308
+ baseAsset: import("@sinclair/typebox").TObject<{
1309
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1310
+ id: import("@sinclair/typebox").TString;
1311
+ name: import("@sinclair/typebox").TString;
1312
+ code: import("@sinclair/typebox").TString;
1313
+ precision: import("@sinclair/typebox").TInteger;
1314
+ }>;
1315
+ quoteAsset: import("@sinclair/typebox").TObject<{
1316
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1317
+ id: import("@sinclair/typebox").TString;
1318
+ name: import("@sinclair/typebox").TString;
1319
+ code: import("@sinclair/typebox").TString;
1320
+ precision: import("@sinclair/typebox").TInteger;
1321
+ }>;
1322
+ }>;
1323
+ }>;
1233
1324
  export declare const tradeMarketAdminOrderListResponseSchema: import("@sinclair/typebox").TObject<{
1234
- data: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
1235
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
1236
- name: "created_at";
1237
- tableName: "trade_market_order";
1238
- dataType: "date";
1239
- columnType: "PgTimestamp";
1240
- data: Date;
1241
- driverParam: string;
1242
- notNull: true;
1243
- hasDefault: true;
1244
- isPrimaryKey: false;
1245
- isAutoincrement: false;
1246
- hasRuntimeDefault: false;
1247
- enumValues: undefined;
1248
- baseColumn: never;
1249
- identity: undefined;
1250
- generated: undefined;
1251
- }, {}, {}>;
1252
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
1253
- name: "updated_at";
1254
- tableName: "trade_market_order";
1255
- dataType: "date";
1256
- columnType: "PgTimestamp";
1257
- data: Date;
1258
- driverParam: string;
1259
- notNull: true;
1260
- hasDefault: true;
1261
- isPrimaryKey: false;
1262
- isAutoincrement: false;
1263
- hasRuntimeDefault: false;
1264
- enumValues: undefined;
1265
- baseColumn: never;
1266
- identity: undefined;
1267
- generated: undefined;
1268
- }, {}, {}>;
1269
- id: import("drizzle-orm/pg-core").PgColumn<{
1270
- name: "id";
1271
- tableName: "trade_market_order";
1272
- dataType: "string";
1273
- columnType: "PgUUID";
1274
- data: string;
1275
- driverParam: string;
1276
- notNull: true;
1277
- hasDefault: true;
1278
- isPrimaryKey: true;
1279
- isAutoincrement: false;
1280
- hasRuntimeDefault: false;
1281
- enumValues: undefined;
1282
- baseColumn: never;
1283
- identity: undefined;
1284
- generated: undefined;
1285
- }, {}, {}>;
1286
- orderNo: import("drizzle-orm/pg-core").PgColumn<{
1287
- name: "order_no";
1288
- tableName: "trade_market_order";
1289
- dataType: "string";
1290
- columnType: "PgText";
1291
- data: string;
1292
- driverParam: string;
1293
- notNull: true;
1294
- hasDefault: false;
1295
- isPrimaryKey: false;
1296
- isAutoincrement: false;
1297
- hasRuntimeDefault: false;
1298
- enumValues: [string, ...string[]];
1299
- baseColumn: never;
1300
- identity: undefined;
1301
- generated: undefined;
1302
- }, {}, {}>;
1303
- idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
1304
- name: "idempotency_key";
1305
- tableName: "trade_market_order";
1306
- dataType: "string";
1307
- columnType: "PgText";
1308
- data: string;
1309
- driverParam: string;
1310
- notNull: true;
1311
- hasDefault: false;
1312
- isPrimaryKey: false;
1313
- isAutoincrement: false;
1314
- hasRuntimeDefault: false;
1315
- enumValues: [string, ...string[]];
1316
- baseColumn: never;
1317
- identity: undefined;
1318
- generated: undefined;
1319
- }, {}, {}>;
1320
- userId: import("drizzle-orm/pg-core").PgColumn<{
1321
- name: "user_id";
1322
- tableName: "trade_market_order";
1323
- dataType: "string";
1324
- columnType: "PgText";
1325
- data: string;
1326
- driverParam: string;
1327
- notNull: true;
1328
- hasDefault: false;
1329
- isPrimaryKey: false;
1330
- isAutoincrement: false;
1331
- hasRuntimeDefault: false;
1332
- enumValues: [string, ...string[]];
1333
- baseColumn: never;
1334
- identity: undefined;
1335
- generated: undefined;
1336
- }, {}, {}>;
1337
- marketId: import("drizzle-orm/pg-core").PgColumn<{
1338
- name: "market_id";
1339
- tableName: "trade_market_order";
1340
- dataType: "string";
1341
- columnType: "PgUUID";
1342
- data: string;
1343
- driverParam: string;
1344
- notNull: true;
1345
- hasDefault: false;
1346
- isPrimaryKey: false;
1347
- isAutoincrement: false;
1348
- hasRuntimeDefault: false;
1349
- enumValues: undefined;
1350
- baseColumn: never;
1351
- identity: undefined;
1352
- generated: undefined;
1353
- }, {}, {}>;
1354
- side: import("drizzle-orm/pg-core").PgColumn<{
1355
- name: "side";
1356
- tableName: "trade_market_order";
1357
- dataType: "string";
1358
- columnType: "PgEnumColumn";
1359
- data: "buy" | "sell";
1360
- driverParam: string;
1361
- notNull: true;
1362
- hasDefault: false;
1363
- isPrimaryKey: false;
1364
- isAutoincrement: false;
1365
- hasRuntimeDefault: false;
1366
- enumValues: ["buy", "sell"];
1367
- baseColumn: never;
1368
- identity: undefined;
1369
- generated: undefined;
1370
- }, {}, {}>;
1371
- status: import("drizzle-orm/pg-core").PgColumn<{
1372
- name: "status";
1373
- tableName: "trade_market_order";
1374
- dataType: "string";
1375
- columnType: "PgEnumColumn";
1376
- data: "created" | "completed" | "failed";
1377
- driverParam: string;
1378
- notNull: true;
1379
- hasDefault: true;
1380
- isPrimaryKey: false;
1381
- isAutoincrement: false;
1382
- hasRuntimeDefault: false;
1383
- enumValues: ["created", "completed", "failed"];
1384
- baseColumn: never;
1385
- identity: undefined;
1386
- generated: undefined;
1387
- }, {}, {}>;
1388
- baseAmount: import("drizzle-orm/pg-core").PgColumn<{
1389
- name: "base_amount";
1390
- tableName: "trade_market_order";
1391
- dataType: "string";
1392
- columnType: "PgNumeric";
1393
- data: string;
1394
- driverParam: string;
1395
- notNull: true;
1396
- hasDefault: false;
1397
- isPrimaryKey: false;
1398
- isAutoincrement: false;
1399
- hasRuntimeDefault: false;
1400
- enumValues: undefined;
1401
- baseColumn: never;
1402
- identity: undefined;
1403
- generated: undefined;
1404
- }, {}, {}>;
1405
- quoteAmount: import("drizzle-orm/pg-core").PgColumn<{
1406
- name: "quote_amount";
1407
- tableName: "trade_market_order";
1408
- dataType: "string";
1409
- columnType: "PgNumeric";
1410
- data: string;
1411
- driverParam: string;
1412
- notNull: true;
1413
- hasDefault: false;
1414
- isPrimaryKey: false;
1415
- isAutoincrement: false;
1416
- hasRuntimeDefault: false;
1417
- enumValues: undefined;
1418
- baseColumn: never;
1419
- identity: undefined;
1420
- generated: undefined;
1421
- }, {}, {}>;
1422
- priceSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1423
- name: "price_snapshot";
1424
- tableName: "trade_market_order";
1425
- dataType: "string";
1426
- columnType: "PgNumeric";
1427
- data: string;
1428
- driverParam: string;
1429
- notNull: true;
1430
- hasDefault: false;
1431
- isPrimaryKey: false;
1432
- isAutoincrement: false;
1433
- hasRuntimeDefault: false;
1434
- enumValues: undefined;
1435
- baseColumn: never;
1436
- identity: undefined;
1437
- generated: undefined;
1438
- }, {}, {}>;
1439
- priceEffectiveAtSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1440
- name: "price_effective_at_snapshot";
1441
- tableName: "trade_market_order";
1442
- dataType: "date";
1443
- columnType: "PgTimestamp";
1444
- data: Date;
1445
- driverParam: string;
1446
- notNull: true;
1447
- hasDefault: false;
1448
- isPrimaryKey: false;
1449
- isAutoincrement: false;
1450
- hasRuntimeDefault: false;
1451
- enumValues: undefined;
1452
- baseColumn: never;
1453
- identity: undefined;
1454
- generated: undefined;
1455
- }, {}, {}>;
1456
- pricingSourceSnapshot: import("drizzle-orm/pg-core").PgColumn<{
1457
- name: "pricing_source_snapshot";
1458
- tableName: "trade_market_order";
1459
- dataType: "string";
1460
- columnType: "PgText";
1461
- data: string;
1462
- driverParam: string;
1463
- notNull: true;
1464
- hasDefault: false;
1465
- isPrimaryKey: false;
1466
- isAutoincrement: false;
1467
- hasRuntimeDefault: false;
1468
- enumValues: [string, ...string[]];
1469
- baseColumn: never;
1470
- identity: undefined;
1471
- generated: undefined;
1472
- }, {}, {}>;
1473
- userBaseAccountId: import("drizzle-orm/pg-core").PgColumn<{
1474
- name: "user_base_account_id";
1475
- tableName: "trade_market_order";
1476
- dataType: "string";
1477
- columnType: "PgUUID";
1478
- data: string;
1479
- driverParam: string;
1480
- notNull: true;
1481
- hasDefault: false;
1482
- isPrimaryKey: false;
1483
- isAutoincrement: false;
1484
- hasRuntimeDefault: false;
1485
- enumValues: undefined;
1486
- baseColumn: never;
1487
- identity: undefined;
1488
- generated: undefined;
1489
- }, {}, {}>;
1490
- userQuoteAccountId: import("drizzle-orm/pg-core").PgColumn<{
1491
- name: "user_quote_account_id";
1492
- tableName: "trade_market_order";
1493
- dataType: "string";
1494
- columnType: "PgUUID";
1495
- data: string;
1496
- driverParam: string;
1497
- notNull: true;
1498
- hasDefault: false;
1499
- isPrimaryKey: false;
1500
- isAutoincrement: false;
1501
- hasRuntimeDefault: false;
1502
- enumValues: undefined;
1503
- baseColumn: never;
1504
- identity: undefined;
1505
- generated: undefined;
1506
- }, {}, {}>;
1507
- userDebitLedgerEntryId: import("drizzle-orm/pg-core").PgColumn<{
1508
- name: "user_debit_ledger_entry_id";
1509
- tableName: "trade_market_order";
1510
- dataType: "string";
1511
- columnType: "PgUUID";
1512
- data: string;
1513
- driverParam: string;
1514
- notNull: false;
1515
- hasDefault: false;
1516
- isPrimaryKey: false;
1517
- isAutoincrement: false;
1518
- hasRuntimeDefault: false;
1519
- enumValues: undefined;
1520
- baseColumn: never;
1521
- identity: undefined;
1522
- generated: undefined;
1523
- }, {}, {}>;
1524
- userCreditLedgerEntryId: import("drizzle-orm/pg-core").PgColumn<{
1525
- name: "user_credit_ledger_entry_id";
1526
- tableName: "trade_market_order";
1527
- dataType: "string";
1528
- columnType: "PgUUID";
1529
- data: string;
1530
- driverParam: string;
1531
- notNull: false;
1532
- hasDefault: false;
1533
- isPrimaryKey: false;
1534
- isAutoincrement: false;
1535
- hasRuntimeDefault: false;
1536
- enumValues: undefined;
1537
- baseColumn: never;
1538
- identity: undefined;
1539
- generated: undefined;
1540
- }, {}, {}>;
1541
- failureCode: import("drizzle-orm/pg-core").PgColumn<{
1542
- name: "failure_code";
1543
- tableName: "trade_market_order";
1544
- dataType: "string";
1545
- columnType: "PgText";
1546
- data: string;
1547
- driverParam: string;
1548
- notNull: false;
1549
- hasDefault: false;
1550
- isPrimaryKey: false;
1551
- isAutoincrement: false;
1552
- hasRuntimeDefault: false;
1553
- enumValues: [string, ...string[]];
1554
- baseColumn: never;
1555
- identity: undefined;
1556
- generated: undefined;
1557
- }, {}, {}>;
1558
- failureReason: import("drizzle-orm/pg-core").PgColumn<{
1559
- name: "failure_reason";
1560
- tableName: "trade_market_order";
1561
- dataType: "string";
1562
- columnType: "PgText";
1563
- data: string;
1564
- driverParam: string;
1565
- notNull: false;
1566
- hasDefault: false;
1567
- isPrimaryKey: false;
1568
- isAutoincrement: false;
1569
- hasRuntimeDefault: false;
1570
- enumValues: [string, ...string[]];
1571
- baseColumn: never;
1572
- identity: undefined;
1573
- generated: undefined;
1574
- }, {}, {}>;
1575
- }, undefined>>;
1325
+ data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
1326
+ createdAt: import("@sinclair/typebox").TDate;
1327
+ updatedAt: import("@sinclair/typebox").TDate;
1328
+ id: import("@sinclair/typebox").TString;
1329
+ userId: import("@sinclair/typebox").TString;
1330
+ status: import("@sinclair/typebox").TEnum<{
1331
+ created: "created";
1332
+ completed: "completed";
1333
+ failed: "failed";
1334
+ }>;
1335
+ idempotencyKey: import("@sinclair/typebox").TString;
1336
+ orderNo: import("@sinclair/typebox").TString;
1337
+ priceSnapshot: import("@sinclair/typebox").TString;
1338
+ priceEffectiveAtSnapshot: import("@sinclair/typebox").TDate;
1339
+ failureCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1340
+ failureReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1341
+ marketId: import("@sinclair/typebox").TString;
1342
+ side: import("@sinclair/typebox").TEnum<{
1343
+ buy: "buy";
1344
+ sell: "sell";
1345
+ }>;
1346
+ baseAmount: import("@sinclair/typebox").TString;
1347
+ quoteAmount: import("@sinclair/typebox").TString;
1348
+ pricingSourceSnapshot: import("@sinclair/typebox").TString;
1349
+ userBaseAccountId: import("@sinclair/typebox").TString;
1350
+ userQuoteAccountId: import("@sinclair/typebox").TString;
1351
+ userDebitLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1352
+ userCreditLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1353
+ user: import("@sinclair/typebox").TObject<{
1354
+ email: import("@sinclair/typebox").TString;
1355
+ id: import("@sinclair/typebox").TString;
1356
+ name: import("@sinclair/typebox").TString;
1357
+ username: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1358
+ displayUsername: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1359
+ }>;
1360
+ market: import("@sinclair/typebox").TObject<{
1361
+ id: import("@sinclair/typebox").TString;
1362
+ name: import("@sinclair/typebox").TString;
1363
+ status: import("@sinclair/typebox").TEnum<{
1364
+ active: "active";
1365
+ draft: "draft";
1366
+ paused: "paused";
1367
+ ended: "ended";
1368
+ }>;
1369
+ baseAsset: import("@sinclair/typebox").TObject<{
1370
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1371
+ id: import("@sinclair/typebox").TString;
1372
+ name: import("@sinclair/typebox").TString;
1373
+ code: import("@sinclair/typebox").TString;
1374
+ precision: import("@sinclair/typebox").TInteger;
1375
+ }>;
1376
+ quoteAsset: import("@sinclair/typebox").TObject<{
1377
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1378
+ id: import("@sinclair/typebox").TString;
1379
+ name: import("@sinclair/typebox").TString;
1380
+ code: import("@sinclair/typebox").TString;
1381
+ precision: import("@sinclair/typebox").TInteger;
1382
+ }>;
1383
+ }>;
1384
+ }>>;
1576
1385
  pagination: import("@sinclair/typebox").TObject<{
1577
1386
  pageSize: import("@sinclair/typebox").TNumber;
1578
1387
  pageIndex: import("@sinclair/typebox").TNumber;
@@ -788,6 +788,13 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
788
788
  response: {
789
789
  200: {
790
790
  data: {
791
+ user: {
792
+ email: string;
793
+ id: string;
794
+ name: string;
795
+ username: string | null;
796
+ displayUsername: string | null;
797
+ };
791
798
  id: string;
792
799
  createdAt: Date;
793
800
  updatedAt: Date;
@@ -808,6 +815,25 @@ export declare const tradeMarketAdminRouter: Elysia<"/trade_market", {
808
815
  userQuoteAccountId: string;
809
816
  userDebitLedgerEntryId: string | null;
810
817
  userCreditLedgerEntryId: string | null;
818
+ market: {
819
+ id: string;
820
+ name: string;
821
+ status: "active" | "draft" | "paused" | "ended";
822
+ baseAsset: {
823
+ symbol: string | null;
824
+ id: string;
825
+ name: string;
826
+ code: string;
827
+ precision: number;
828
+ };
829
+ quoteAsset: {
830
+ symbol: string | null;
831
+ id: string;
832
+ name: string;
833
+ code: string;
834
+ precision: number;
835
+ };
836
+ };
811
837
  }[];
812
838
  pagination: {
813
839
  total: number;
@@ -218,6 +218,32 @@ export declare abstract class AdminTradeMarketService extends BaseTradeMarketAdm
218
218
  userQuoteAccountId: string;
219
219
  userDebitLedgerEntryId: string | null;
220
220
  userCreditLedgerEntryId: string | null;
221
+ user: {
222
+ email: string;
223
+ id: string;
224
+ name: string;
225
+ username: string | null;
226
+ displayUsername: string | null;
227
+ };
228
+ market: {
229
+ id: string;
230
+ name: string;
231
+ status: "active" | "draft" | "paused" | "ended";
232
+ baseAsset: {
233
+ symbol: string | null;
234
+ id: string;
235
+ name: string;
236
+ code: string;
237
+ precision: number;
238
+ };
239
+ quoteAsset: {
240
+ symbol: string | null;
241
+ id: string;
242
+ name: string;
243
+ code: string;
244
+ precision: number;
245
+ };
246
+ };
221
247
  }[];
222
248
  total: number;
223
249
  }>;
@@ -249,6 +249,25 @@ export declare abstract class InternalTradeMarketService extends BaseTradeMarket
249
249
  userQuoteAccountId: string;
250
250
  userDebitLedgerEntryId: string | null;
251
251
  userCreditLedgerEntryId: string | null;
252
+ market: {
253
+ id: string;
254
+ name: string;
255
+ status: "active" | "draft" | "paused" | "ended";
256
+ baseAsset: {
257
+ symbol: string | null;
258
+ id: string;
259
+ name: string;
260
+ code: string;
261
+ precision: number;
262
+ };
263
+ quoteAsset: {
264
+ symbol: string | null;
265
+ id: string;
266
+ name: string;
267
+ code: string;
268
+ precision: number;
269
+ };
270
+ };
252
271
  }[];
253
272
  total: number;
254
273
  }>;
@@ -542,349 +542,113 @@ export declare const tradeMarketOrderListQuerySchema: import("@sinclair/typebox"
542
542
  pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
543
543
  }>;
544
544
  export type TradeMarketOrderListQueryType = typeof tradeMarketOrderListQuerySchema.static;
545
+ export declare const tradeMarketOrderListItemSchema: import("@sinclair/typebox").TObject<{
546
+ createdAt: import("@sinclair/typebox").TDate;
547
+ updatedAt: import("@sinclair/typebox").TDate;
548
+ id: import("@sinclair/typebox").TString;
549
+ userId: import("@sinclair/typebox").TString;
550
+ status: import("@sinclair/typebox").TEnum<{
551
+ created: "created";
552
+ completed: "completed";
553
+ failed: "failed";
554
+ }>;
555
+ idempotencyKey: import("@sinclair/typebox").TString;
556
+ orderNo: import("@sinclair/typebox").TString;
557
+ priceSnapshot: import("@sinclair/typebox").TString;
558
+ priceEffectiveAtSnapshot: import("@sinclair/typebox").TDate;
559
+ failureCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
560
+ failureReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
561
+ marketId: import("@sinclair/typebox").TString;
562
+ side: import("@sinclair/typebox").TEnum<{
563
+ buy: "buy";
564
+ sell: "sell";
565
+ }>;
566
+ baseAmount: import("@sinclair/typebox").TString;
567
+ quoteAmount: import("@sinclair/typebox").TString;
568
+ pricingSourceSnapshot: import("@sinclair/typebox").TString;
569
+ userBaseAccountId: import("@sinclair/typebox").TString;
570
+ userQuoteAccountId: import("@sinclair/typebox").TString;
571
+ userDebitLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
572
+ userCreditLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
573
+ market: import("@sinclair/typebox").TObject<{
574
+ id: import("@sinclair/typebox").TString;
575
+ name: import("@sinclair/typebox").TString;
576
+ status: import("@sinclair/typebox").TEnum<{
577
+ active: "active";
578
+ draft: "draft";
579
+ paused: "paused";
580
+ ended: "ended";
581
+ }>;
582
+ baseAsset: import("@sinclair/typebox").TObject<{
583
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
584
+ id: import("@sinclair/typebox").TString;
585
+ name: import("@sinclair/typebox").TString;
586
+ code: import("@sinclair/typebox").TString;
587
+ precision: import("@sinclair/typebox").TInteger;
588
+ }>;
589
+ quoteAsset: import("@sinclair/typebox").TObject<{
590
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
591
+ id: import("@sinclair/typebox").TString;
592
+ name: import("@sinclair/typebox").TString;
593
+ code: import("@sinclair/typebox").TString;
594
+ precision: import("@sinclair/typebox").TInteger;
595
+ }>;
596
+ }>;
597
+ }>;
545
598
  export declare const tradeMarketOrderListResponseSchema: import("@sinclair/typebox").TObject<{
546
- data: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
547
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
548
- name: "created_at";
549
- tableName: "trade_market_order";
550
- dataType: "date";
551
- columnType: "PgTimestamp";
552
- data: Date;
553
- driverParam: string;
554
- notNull: true;
555
- hasDefault: true;
556
- isPrimaryKey: false;
557
- isAutoincrement: false;
558
- hasRuntimeDefault: false;
559
- enumValues: undefined;
560
- baseColumn: never;
561
- identity: undefined;
562
- generated: undefined;
563
- }, {}, {}>;
564
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
565
- name: "updated_at";
566
- tableName: "trade_market_order";
567
- dataType: "date";
568
- columnType: "PgTimestamp";
569
- data: Date;
570
- driverParam: string;
571
- notNull: true;
572
- hasDefault: true;
573
- isPrimaryKey: false;
574
- isAutoincrement: false;
575
- hasRuntimeDefault: false;
576
- enumValues: undefined;
577
- baseColumn: never;
578
- identity: undefined;
579
- generated: undefined;
580
- }, {}, {}>;
581
- id: import("drizzle-orm/pg-core").PgColumn<{
582
- name: "id";
583
- tableName: "trade_market_order";
584
- dataType: "string";
585
- columnType: "PgUUID";
586
- data: string;
587
- driverParam: string;
588
- notNull: true;
589
- hasDefault: true;
590
- isPrimaryKey: true;
591
- isAutoincrement: false;
592
- hasRuntimeDefault: false;
593
- enumValues: undefined;
594
- baseColumn: never;
595
- identity: undefined;
596
- generated: undefined;
597
- }, {}, {}>;
598
- orderNo: import("drizzle-orm/pg-core").PgColumn<{
599
- name: "order_no";
600
- tableName: "trade_market_order";
601
- dataType: "string";
602
- columnType: "PgText";
603
- data: string;
604
- driverParam: string;
605
- notNull: true;
606
- hasDefault: false;
607
- isPrimaryKey: false;
608
- isAutoincrement: false;
609
- hasRuntimeDefault: false;
610
- enumValues: [string, ...string[]];
611
- baseColumn: never;
612
- identity: undefined;
613
- generated: undefined;
614
- }, {}, {}>;
615
- idempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
616
- name: "idempotency_key";
617
- tableName: "trade_market_order";
618
- dataType: "string";
619
- columnType: "PgText";
620
- data: string;
621
- driverParam: string;
622
- notNull: true;
623
- hasDefault: false;
624
- isPrimaryKey: false;
625
- isAutoincrement: false;
626
- hasRuntimeDefault: false;
627
- enumValues: [string, ...string[]];
628
- baseColumn: never;
629
- identity: undefined;
630
- generated: undefined;
631
- }, {}, {}>;
632
- userId: import("drizzle-orm/pg-core").PgColumn<{
633
- name: "user_id";
634
- tableName: "trade_market_order";
635
- dataType: "string";
636
- columnType: "PgText";
637
- data: string;
638
- driverParam: string;
639
- notNull: true;
640
- hasDefault: false;
641
- isPrimaryKey: false;
642
- isAutoincrement: false;
643
- hasRuntimeDefault: false;
644
- enumValues: [string, ...string[]];
645
- baseColumn: never;
646
- identity: undefined;
647
- generated: undefined;
648
- }, {}, {}>;
649
- marketId: import("drizzle-orm/pg-core").PgColumn<{
650
- name: "market_id";
651
- tableName: "trade_market_order";
652
- dataType: "string";
653
- columnType: "PgUUID";
654
- data: string;
655
- driverParam: string;
656
- notNull: true;
657
- hasDefault: false;
658
- isPrimaryKey: false;
659
- isAutoincrement: false;
660
- hasRuntimeDefault: false;
661
- enumValues: undefined;
662
- baseColumn: never;
663
- identity: undefined;
664
- generated: undefined;
665
- }, {}, {}>;
666
- side: import("drizzle-orm/pg-core").PgColumn<{
667
- name: "side";
668
- tableName: "trade_market_order";
669
- dataType: "string";
670
- columnType: "PgEnumColumn";
671
- data: "buy" | "sell";
672
- driverParam: string;
673
- notNull: true;
674
- hasDefault: false;
675
- isPrimaryKey: false;
676
- isAutoincrement: false;
677
- hasRuntimeDefault: false;
678
- enumValues: ["buy", "sell"];
679
- baseColumn: never;
680
- identity: undefined;
681
- generated: undefined;
682
- }, {}, {}>;
683
- status: import("drizzle-orm/pg-core").PgColumn<{
684
- name: "status";
685
- tableName: "trade_market_order";
686
- dataType: "string";
687
- columnType: "PgEnumColumn";
688
- data: "created" | "completed" | "failed";
689
- driverParam: string;
690
- notNull: true;
691
- hasDefault: true;
692
- isPrimaryKey: false;
693
- isAutoincrement: false;
694
- hasRuntimeDefault: false;
695
- enumValues: ["created", "completed", "failed"];
696
- baseColumn: never;
697
- identity: undefined;
698
- generated: undefined;
699
- }, {}, {}>;
700
- baseAmount: import("drizzle-orm/pg-core").PgColumn<{
701
- name: "base_amount";
702
- tableName: "trade_market_order";
703
- dataType: "string";
704
- columnType: "PgNumeric";
705
- data: string;
706
- driverParam: string;
707
- notNull: true;
708
- hasDefault: false;
709
- isPrimaryKey: false;
710
- isAutoincrement: false;
711
- hasRuntimeDefault: false;
712
- enumValues: undefined;
713
- baseColumn: never;
714
- identity: undefined;
715
- generated: undefined;
716
- }, {}, {}>;
717
- quoteAmount: import("drizzle-orm/pg-core").PgColumn<{
718
- name: "quote_amount";
719
- tableName: "trade_market_order";
720
- dataType: "string";
721
- columnType: "PgNumeric";
722
- data: string;
723
- driverParam: string;
724
- notNull: true;
725
- hasDefault: false;
726
- isPrimaryKey: false;
727
- isAutoincrement: false;
728
- hasRuntimeDefault: false;
729
- enumValues: undefined;
730
- baseColumn: never;
731
- identity: undefined;
732
- generated: undefined;
733
- }, {}, {}>;
734
- priceSnapshot: import("drizzle-orm/pg-core").PgColumn<{
735
- name: "price_snapshot";
736
- tableName: "trade_market_order";
737
- dataType: "string";
738
- columnType: "PgNumeric";
739
- data: string;
740
- driverParam: string;
741
- notNull: true;
742
- hasDefault: false;
743
- isPrimaryKey: false;
744
- isAutoincrement: false;
745
- hasRuntimeDefault: false;
746
- enumValues: undefined;
747
- baseColumn: never;
748
- identity: undefined;
749
- generated: undefined;
750
- }, {}, {}>;
751
- priceEffectiveAtSnapshot: import("drizzle-orm/pg-core").PgColumn<{
752
- name: "price_effective_at_snapshot";
753
- tableName: "trade_market_order";
754
- dataType: "date";
755
- columnType: "PgTimestamp";
756
- data: Date;
757
- driverParam: string;
758
- notNull: true;
759
- hasDefault: false;
760
- isPrimaryKey: false;
761
- isAutoincrement: false;
762
- hasRuntimeDefault: false;
763
- enumValues: undefined;
764
- baseColumn: never;
765
- identity: undefined;
766
- generated: undefined;
767
- }, {}, {}>;
768
- pricingSourceSnapshot: import("drizzle-orm/pg-core").PgColumn<{
769
- name: "pricing_source_snapshot";
770
- tableName: "trade_market_order";
771
- dataType: "string";
772
- columnType: "PgText";
773
- data: string;
774
- driverParam: string;
775
- notNull: true;
776
- hasDefault: false;
777
- isPrimaryKey: false;
778
- isAutoincrement: false;
779
- hasRuntimeDefault: false;
780
- enumValues: [string, ...string[]];
781
- baseColumn: never;
782
- identity: undefined;
783
- generated: undefined;
784
- }, {}, {}>;
785
- userBaseAccountId: import("drizzle-orm/pg-core").PgColumn<{
786
- name: "user_base_account_id";
787
- tableName: "trade_market_order";
788
- dataType: "string";
789
- columnType: "PgUUID";
790
- data: string;
791
- driverParam: string;
792
- notNull: true;
793
- hasDefault: false;
794
- isPrimaryKey: false;
795
- isAutoincrement: false;
796
- hasRuntimeDefault: false;
797
- enumValues: undefined;
798
- baseColumn: never;
799
- identity: undefined;
800
- generated: undefined;
801
- }, {}, {}>;
802
- userQuoteAccountId: import("drizzle-orm/pg-core").PgColumn<{
803
- name: "user_quote_account_id";
804
- tableName: "trade_market_order";
805
- dataType: "string";
806
- columnType: "PgUUID";
807
- data: string;
808
- driverParam: string;
809
- notNull: true;
810
- hasDefault: false;
811
- isPrimaryKey: false;
812
- isAutoincrement: false;
813
- hasRuntimeDefault: false;
814
- enumValues: undefined;
815
- baseColumn: never;
816
- identity: undefined;
817
- generated: undefined;
818
- }, {}, {}>;
819
- userDebitLedgerEntryId: import("drizzle-orm/pg-core").PgColumn<{
820
- name: "user_debit_ledger_entry_id";
821
- tableName: "trade_market_order";
822
- dataType: "string";
823
- columnType: "PgUUID";
824
- data: string;
825
- driverParam: string;
826
- notNull: false;
827
- hasDefault: false;
828
- isPrimaryKey: false;
829
- isAutoincrement: false;
830
- hasRuntimeDefault: false;
831
- enumValues: undefined;
832
- baseColumn: never;
833
- identity: undefined;
834
- generated: undefined;
835
- }, {}, {}>;
836
- userCreditLedgerEntryId: import("drizzle-orm/pg-core").PgColumn<{
837
- name: "user_credit_ledger_entry_id";
838
- tableName: "trade_market_order";
839
- dataType: "string";
840
- columnType: "PgUUID";
841
- data: string;
842
- driverParam: string;
843
- notNull: false;
844
- hasDefault: false;
845
- isPrimaryKey: false;
846
- isAutoincrement: false;
847
- hasRuntimeDefault: false;
848
- enumValues: undefined;
849
- baseColumn: never;
850
- identity: undefined;
851
- generated: undefined;
852
- }, {}, {}>;
853
- failureCode: import("drizzle-orm/pg-core").PgColumn<{
854
- name: "failure_code";
855
- tableName: "trade_market_order";
856
- dataType: "string";
857
- columnType: "PgText";
858
- data: string;
859
- driverParam: string;
860
- notNull: false;
861
- hasDefault: false;
862
- isPrimaryKey: false;
863
- isAutoincrement: false;
864
- hasRuntimeDefault: false;
865
- enumValues: [string, ...string[]];
866
- baseColumn: never;
867
- identity: undefined;
868
- generated: undefined;
869
- }, {}, {}>;
870
- failureReason: import("drizzle-orm/pg-core").PgColumn<{
871
- name: "failure_reason";
872
- tableName: "trade_market_order";
873
- dataType: "string";
874
- columnType: "PgText";
875
- data: string;
876
- driverParam: string;
877
- notNull: false;
878
- hasDefault: false;
879
- isPrimaryKey: false;
880
- isAutoincrement: false;
881
- hasRuntimeDefault: false;
882
- enumValues: [string, ...string[]];
883
- baseColumn: never;
884
- identity: undefined;
885
- generated: undefined;
886
- }, {}, {}>;
887
- }, undefined>>;
599
+ data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
600
+ createdAt: import("@sinclair/typebox").TDate;
601
+ updatedAt: import("@sinclair/typebox").TDate;
602
+ id: import("@sinclair/typebox").TString;
603
+ userId: import("@sinclair/typebox").TString;
604
+ status: import("@sinclair/typebox").TEnum<{
605
+ created: "created";
606
+ completed: "completed";
607
+ failed: "failed";
608
+ }>;
609
+ idempotencyKey: import("@sinclair/typebox").TString;
610
+ orderNo: import("@sinclair/typebox").TString;
611
+ priceSnapshot: import("@sinclair/typebox").TString;
612
+ priceEffectiveAtSnapshot: import("@sinclair/typebox").TDate;
613
+ failureCode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
614
+ failureReason: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
615
+ marketId: import("@sinclair/typebox").TString;
616
+ side: import("@sinclair/typebox").TEnum<{
617
+ buy: "buy";
618
+ sell: "sell";
619
+ }>;
620
+ baseAmount: import("@sinclair/typebox").TString;
621
+ quoteAmount: import("@sinclair/typebox").TString;
622
+ pricingSourceSnapshot: import("@sinclair/typebox").TString;
623
+ userBaseAccountId: import("@sinclair/typebox").TString;
624
+ userQuoteAccountId: import("@sinclair/typebox").TString;
625
+ userDebitLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
626
+ userCreditLedgerEntryId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
627
+ market: import("@sinclair/typebox").TObject<{
628
+ id: import("@sinclair/typebox").TString;
629
+ name: import("@sinclair/typebox").TString;
630
+ status: import("@sinclair/typebox").TEnum<{
631
+ active: "active";
632
+ draft: "draft";
633
+ paused: "paused";
634
+ ended: "ended";
635
+ }>;
636
+ baseAsset: import("@sinclair/typebox").TObject<{
637
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
638
+ id: import("@sinclair/typebox").TString;
639
+ name: import("@sinclair/typebox").TString;
640
+ code: import("@sinclair/typebox").TString;
641
+ precision: import("@sinclair/typebox").TInteger;
642
+ }>;
643
+ quoteAsset: import("@sinclair/typebox").TObject<{
644
+ symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
645
+ id: import("@sinclair/typebox").TString;
646
+ name: import("@sinclair/typebox").TString;
647
+ code: import("@sinclair/typebox").TString;
648
+ precision: import("@sinclair/typebox").TInteger;
649
+ }>;
650
+ }>;
651
+ }>>;
888
652
  pagination: import("@sinclair/typebox").TObject<{
889
653
  pageSize: import("@sinclair/typebox").TNumber;
890
654
  pageIndex: import("@sinclair/typebox").TNumber;
@@ -659,6 +659,25 @@ export declare const tradeMarketRouter: Elysia<"/trade_market", {
659
659
  userQuoteAccountId: string;
660
660
  userDebitLedgerEntryId: string | null;
661
661
  userCreditLedgerEntryId: string | null;
662
+ market: {
663
+ id: string;
664
+ name: string;
665
+ status: "active" | "draft" | "paused" | "ended";
666
+ baseAsset: {
667
+ symbol: string | null;
668
+ id: string;
669
+ name: string;
670
+ code: string;
671
+ precision: number;
672
+ };
673
+ quoteAsset: {
674
+ symbol: string | null;
675
+ id: string;
676
+ name: string;
677
+ code: string;
678
+ precision: number;
679
+ };
680
+ };
662
681
  }[];
663
682
  pagination: {
664
683
  total: number;
@@ -180,6 +180,25 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
180
180
  userQuoteAccountId: string;
181
181
  userDebitLedgerEntryId: string | null;
182
182
  userCreditLedgerEntryId: string | null;
183
+ market: {
184
+ id: string;
185
+ name: string;
186
+ status: "active" | "draft" | "paused" | "ended";
187
+ baseAsset: {
188
+ symbol: string | null;
189
+ id: string;
190
+ name: string;
191
+ code: string;
192
+ precision: number;
193
+ };
194
+ quoteAsset: {
195
+ symbol: string | null;
196
+ id: string;
197
+ name: string;
198
+ code: string;
199
+ precision: number;
200
+ };
201
+ };
183
202
  }[];
184
203
  total: number;
185
204
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2wa-org/eden",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "description": "Elysia API type definitions for Eden Treaty",
5
5
  "files": [
6
6
  "dist"