@r2wa-org/eden 0.0.81 → 0.0.83
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/admin/index.d.ts +23 -4
- package/dist/asset/admin/dto.schemas.d.ts +14 -0
- package/dist/asset/admin/router.d.ts +7 -0
- package/dist/asset/admin/service.d.ts +8 -0
- package/dist/asset/user/dto.schemas.d.ts +14 -0
- package/dist/asset/user/router.d.ts +21 -0
- package/dist/asset/user/service.d.ts +8 -0
- package/dist/asset-price/cron.d.ts +7 -0
- package/dist/asset-price/internal/service.d.ts +6 -0
- package/dist/env/server.d.ts +1 -0
- package/dist/index.d.ts +88 -8
- package/dist/trade-market/admin/dto.schemas.d.ts +356 -0
- package/dist/trade-market/admin/router.d.ts +12 -0
- package/dist/trade-market/admin/service.d.ts +12 -0
- package/dist/trade-market/internal/service.d.ts +26 -0
- package/dist/trade-market/user/dto.schemas.d.ts +153 -480
- package/dist/trade-market/user/router.d.ts +44 -4
- package/dist/trade-market/user/service.d.ts +24 -0
- package/dist/welfare-cycle/admin/dto.schemas.d.ts +4 -4
- package/dist/welfare-cycle/admin/router.d.ts +4 -4
- package/package.json +1 -1
|
@@ -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: {
|
|
@@ -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;
|
|
@@ -12,10 +12,6 @@ export declare const welfareCyclePlanCreateSchema: import("@sinclair/typebox").T
|
|
|
12
12
|
ended: "ended";
|
|
13
13
|
}>>;
|
|
14
14
|
rightsAssetId: import("@sinclair/typebox").TString;
|
|
15
|
-
pricingAssetId: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
|
|
16
|
-
sourcePricingAccountTypeId: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
|
|
17
|
-
dailyPayoutAccountTypeId: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
|
|
18
|
-
maturitySettlementAccountTypeId: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
|
|
19
15
|
pricePerShare: import("@sinclair/typebox").TString;
|
|
20
16
|
rightsPerShare: import("@sinclair/typebox").TString;
|
|
21
17
|
cycleDays: import("@sinclair/typebox").TInteger;
|
|
@@ -25,6 +21,10 @@ export declare const welfareCyclePlanCreateSchema: import("@sinclair/typebox").T
|
|
|
25
21
|
maxSharesPerOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
26
22
|
saleStartAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
|
|
27
23
|
saleEndAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
|
|
24
|
+
pricingAssetId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
|
+
sourcePricingAccountTypeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
26
|
+
dailyPayoutAccountTypeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
27
|
+
maturitySettlementAccountTypeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
28
28
|
coverImageFileId: import("@sinclair/typebox").TString;
|
|
29
29
|
}>;
|
|
30
30
|
export type WelfareCyclePlanCreateInputType = typeof welfareCyclePlanCreateSchema.static;
|
|
@@ -386,16 +386,16 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
386
386
|
body: {
|
|
387
387
|
description?: string | null | undefined;
|
|
388
388
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
389
|
+
pricingAssetId?: string | undefined;
|
|
390
|
+
sourcePricingAccountTypeId?: string | undefined;
|
|
391
|
+
dailyPayoutAccountTypeId?: string | undefined;
|
|
392
|
+
maturitySettlementAccountTypeId?: string | undefined;
|
|
389
393
|
minShares?: number | undefined;
|
|
390
394
|
maxSharesPerOrder?: number | null | undefined;
|
|
391
395
|
saleStartAt?: Date | null | undefined;
|
|
392
396
|
saleEndAt?: Date | null | undefined;
|
|
393
397
|
name: string;
|
|
394
398
|
rightsAssetId: string;
|
|
395
|
-
pricingAssetId: string;
|
|
396
|
-
sourcePricingAccountTypeId: string;
|
|
397
|
-
dailyPayoutAccountTypeId: string;
|
|
398
|
-
maturitySettlementAccountTypeId: string;
|
|
399
399
|
pricePerShare: string;
|
|
400
400
|
rightsPerShare: string;
|
|
401
401
|
cycleDays: number;
|