@r2wa-org/eden 0.0.82 → 0.0.84

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.
@@ -398,11 +398,27 @@ export declare const tradeMarketRouter: Elysia<"/trade_market", {
398
398
  data: {
399
399
  id: string;
400
400
  name: string;
401
- createdAt: Date;
402
- updatedAt: Date;
403
401
  status: "active" | "draft" | "paused" | "ended";
404
402
  baseAssetId: string;
403
+ baseAsset: {
404
+ symbol: string | null;
405
+ id: string;
406
+ name: string;
407
+ code: string;
408
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
409
+ isActive: boolean;
410
+ precision: number;
411
+ };
405
412
  quoteAssetId: string;
413
+ quoteAsset: {
414
+ symbol: string | null;
415
+ id: string;
416
+ name: string;
417
+ code: string;
418
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
419
+ isActive: boolean;
420
+ precision: number;
421
+ };
406
422
  isBuyEnabled: boolean;
407
423
  isSellEnabled: boolean;
408
424
  minBaseAmount: string;
@@ -410,6 +426,10 @@ export declare const tradeMarketRouter: Elysia<"/trade_market", {
410
426
  dailyUserBuyBaseLimit: string | null;
411
427
  dailyUserSellBaseLimit: string | null;
412
428
  maxSlippageBps: string;
429
+ latestPrice: {
430
+ price: string;
431
+ effectiveAt: Date;
432
+ } | null;
413
433
  }[];
414
434
  pagination: {
415
435
  total: number;
@@ -448,11 +468,27 @@ export declare const tradeMarketRouter: Elysia<"/trade_market", {
448
468
  200: {
449
469
  id: string;
450
470
  name: string;
451
- createdAt: Date;
452
- updatedAt: Date;
453
471
  status: "active" | "draft" | "paused" | "ended";
454
472
  baseAssetId: string;
473
+ baseAsset: {
474
+ symbol: string | null;
475
+ id: string;
476
+ name: string;
477
+ code: string;
478
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
479
+ isActive: boolean;
480
+ precision: number;
481
+ };
455
482
  quoteAssetId: string;
483
+ quoteAsset: {
484
+ symbol: string | null;
485
+ id: string;
486
+ name: string;
487
+ code: string;
488
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
489
+ isActive: boolean;
490
+ precision: number;
491
+ };
456
492
  isBuyEnabled: boolean;
457
493
  isSellEnabled: boolean;
458
494
  minBaseAmount: string;
@@ -460,6 +496,10 @@ export declare const tradeMarketRouter: Elysia<"/trade_market", {
460
496
  dailyUserBuyBaseLimit: string | null;
461
497
  dailyUserSellBaseLimit: string | null;
462
498
  maxSlippageBps: string;
499
+ latestPrice: {
500
+ price: string;
501
+ effectiveAt: Date;
502
+ } | null;
463
503
  };
464
504
  401: "Unauthorized";
465
505
  422: {
@@ -482,6 +522,7 @@ export declare const tradeMarketRouter: Elysia<"/trade_market", {
482
522
  "market-buy": {
483
523
  post: {
484
524
  body: {
525
+ transactionPassword?: string | undefined;
485
526
  idempotencyKey: string;
486
527
  marketId: string;
487
528
  baseAmount: string;
@@ -533,6 +574,7 @@ export declare const tradeMarketRouter: Elysia<"/trade_market", {
533
574
  "market-sell": {
534
575
  post: {
535
576
  body: {
577
+ transactionPassword?: string | undefined;
536
578
  idempotencyKey: string;
537
579
  marketId: string;
538
580
  baseAmount: string;
@@ -5,6 +5,18 @@ declare abstract class BaseTradeMarketService {
5
5
  export declare abstract class UserTradeMarketService extends BaseTradeMarketService {
6
6
  static listMarkets(query?: TradeMarketListQueryType): Promise<{
7
7
  items: {
8
+ latestPrice: {
9
+ id: string;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ baseAssetId: string;
13
+ baseAsset: string;
14
+ quoteAssetId: string;
15
+ quoteAsset: string;
16
+ price: string;
17
+ source: string;
18
+ effectiveAt: Date;
19
+ } | null;
8
20
  id: string;
9
21
  name: string;
10
22
  createdAt: Date;
@@ -49,6 +61,18 @@ export declare abstract class UserTradeMarketService extends BaseTradeMarketServ
49
61
  total: number;
50
62
  }>;
51
63
  static getMarket(marketId: string): Promise<{
64
+ latestPrice: {
65
+ id: string;
66
+ createdAt: Date;
67
+ updatedAt: Date;
68
+ baseAssetId: string;
69
+ baseAsset: string;
70
+ quoteAssetId: string;
71
+ quoteAsset: string;
72
+ price: string;
73
+ source: string;
74
+ effectiveAt: Date;
75
+ } | null;
52
76
  id: string;
53
77
  name: string;
54
78
  createdAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2wa-org/eden",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "description": "Elysia API type definitions for Eden Treaty",
5
5
  "files": [
6
6
  "dist"