@r2wa-org/eden 0.0.69 → 0.0.71
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/src/admin/index.d.ts +178 -4
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +235 -0
- package/dist/src/asset-convert-product/admin/router.d.ts +174 -0
- package/dist/src/asset-convert-product/admin/service.d.ts +170 -0
- package/dist/src/asset-convert-product/db.schemas.d.ts +34 -0
- package/dist/src/asset-convert-product/schema.d.ts +17 -0
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +4 -0
- package/dist/src/asset-convert-product/user/router.d.ts +3 -0
- package/dist/src/asset-convert-product/user/service.d.ts +3 -0
- package/dist/src/index.d.ts +184 -7
- package/dist/src/news/admin/dto.schemas.d.ts +5 -5
- package/dist/src/news/admin/router.d.ts +4 -4
- package/dist/src/news/admin/service.d.ts +3 -3
- package/dist/src/news/user/dto.schemas.d.ts +5 -5
- package/dist/src/news/user/router.d.ts +3 -3
- package/dist/src/news/user/service.d.ts +4 -4
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
7
7
|
private static ensureValidTimeRange;
|
|
8
8
|
private static assertStatusTransitionAllowed;
|
|
9
9
|
private static ensureProductReferencesValid;
|
|
10
|
+
private static ensureProductPriceReadyForActivation;
|
|
10
11
|
static createProduct(input: AssetConvertProductCreateInputType): Promise<{
|
|
11
12
|
targetAsset: {
|
|
12
13
|
symbol: string;
|
|
@@ -98,6 +99,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
98
99
|
minPayAmount: string;
|
|
99
100
|
settlementMode: "available" | "locked";
|
|
100
101
|
allowPurchase: boolean;
|
|
102
|
+
isHot: boolean;
|
|
101
103
|
}>;
|
|
102
104
|
static updateProduct(productId: string, input: AssetConvertProductUpdateInputType): Promise<{
|
|
103
105
|
id: string;
|
|
@@ -114,11 +116,13 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
114
116
|
minPayAmount: string;
|
|
115
117
|
settlementMode: "available" | "locked";
|
|
116
118
|
allowPurchase: boolean;
|
|
119
|
+
isHot: boolean;
|
|
117
120
|
targetAsset: {
|
|
118
121
|
symbol: string;
|
|
119
122
|
id: string;
|
|
120
123
|
name: string;
|
|
121
124
|
code: string;
|
|
125
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
122
126
|
isActive: boolean;
|
|
123
127
|
precision: number;
|
|
124
128
|
};
|
|
@@ -127,6 +131,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
127
131
|
id: string;
|
|
128
132
|
name: string;
|
|
129
133
|
code: string;
|
|
134
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
130
135
|
isActive: boolean;
|
|
131
136
|
precision: number;
|
|
132
137
|
};
|
|
@@ -158,11 +163,13 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
158
163
|
minPayAmount: string;
|
|
159
164
|
settlementMode: "available" | "locked";
|
|
160
165
|
allowPurchase: boolean;
|
|
166
|
+
isHot: boolean;
|
|
161
167
|
targetAsset: {
|
|
162
168
|
symbol: string;
|
|
163
169
|
id: string;
|
|
164
170
|
name: string;
|
|
165
171
|
code: string;
|
|
172
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
166
173
|
isActive: boolean;
|
|
167
174
|
precision: number;
|
|
168
175
|
};
|
|
@@ -171,6 +178,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
171
178
|
id: string;
|
|
172
179
|
name: string;
|
|
173
180
|
code: string;
|
|
181
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
174
182
|
isActive: boolean;
|
|
175
183
|
precision: number;
|
|
176
184
|
};
|
|
@@ -202,11 +210,13 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
202
210
|
minPayAmount: string;
|
|
203
211
|
settlementMode: "available" | "locked";
|
|
204
212
|
allowPurchase: boolean;
|
|
213
|
+
isHot: boolean;
|
|
205
214
|
targetAsset: {
|
|
206
215
|
symbol: string;
|
|
207
216
|
id: string;
|
|
208
217
|
name: string;
|
|
209
218
|
code: string;
|
|
219
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
210
220
|
isActive: boolean;
|
|
211
221
|
precision: number;
|
|
212
222
|
};
|
|
@@ -215,6 +225,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
215
225
|
id: string;
|
|
216
226
|
name: string;
|
|
217
227
|
code: string;
|
|
228
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
218
229
|
isActive: boolean;
|
|
219
230
|
precision: number;
|
|
220
231
|
};
|
|
@@ -246,11 +257,13 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
246
257
|
minPayAmount: string;
|
|
247
258
|
settlementMode: "available" | "locked";
|
|
248
259
|
allowPurchase: boolean;
|
|
260
|
+
isHot: boolean;
|
|
249
261
|
targetAsset: {
|
|
250
262
|
symbol: string;
|
|
251
263
|
id: string;
|
|
252
264
|
name: string;
|
|
253
265
|
code: string;
|
|
266
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
254
267
|
isActive: boolean;
|
|
255
268
|
precision: number;
|
|
256
269
|
};
|
|
@@ -259,6 +272,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
259
272
|
id: string;
|
|
260
273
|
name: string;
|
|
261
274
|
code: string;
|
|
275
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
262
276
|
isActive: boolean;
|
|
263
277
|
precision: number;
|
|
264
278
|
};
|
|
@@ -290,11 +304,13 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
290
304
|
minPayAmount: string;
|
|
291
305
|
settlementMode: "available" | "locked";
|
|
292
306
|
allowPurchase: boolean;
|
|
307
|
+
isHot: boolean;
|
|
293
308
|
targetAsset: {
|
|
294
309
|
symbol: string;
|
|
295
310
|
id: string;
|
|
296
311
|
name: string;
|
|
297
312
|
code: string;
|
|
313
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
298
314
|
isActive: boolean;
|
|
299
315
|
precision: number;
|
|
300
316
|
};
|
|
@@ -303,6 +319,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
303
319
|
id: string;
|
|
304
320
|
name: string;
|
|
305
321
|
code: string;
|
|
322
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
306
323
|
isActive: boolean;
|
|
307
324
|
precision: number;
|
|
308
325
|
};
|
|
@@ -335,11 +352,13 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
335
352
|
minPayAmount: string;
|
|
336
353
|
settlementMode: "available" | "locked";
|
|
337
354
|
allowPurchase: boolean;
|
|
355
|
+
isHot: boolean;
|
|
338
356
|
targetAsset: {
|
|
339
357
|
symbol: string;
|
|
340
358
|
id: string;
|
|
341
359
|
name: string;
|
|
342
360
|
code: string;
|
|
361
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
343
362
|
isActive: boolean;
|
|
344
363
|
precision: number;
|
|
345
364
|
};
|
|
@@ -348,6 +367,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
348
367
|
id: string;
|
|
349
368
|
name: string;
|
|
350
369
|
code: string;
|
|
370
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
351
371
|
isActive: boolean;
|
|
352
372
|
precision: number;
|
|
353
373
|
};
|
|
@@ -378,12 +398,16 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
378
398
|
createdAt: Date;
|
|
379
399
|
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
380
400
|
amount: string;
|
|
401
|
+
referenceId: string;
|
|
402
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
381
403
|
} | undefined;
|
|
382
404
|
creditLedgerEntry?: {
|
|
383
405
|
id: string;
|
|
384
406
|
createdAt: Date;
|
|
385
407
|
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
386
408
|
amount: string;
|
|
409
|
+
referenceId: string;
|
|
410
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
387
411
|
} | undefined;
|
|
388
412
|
user: {
|
|
389
413
|
email: string;
|
|
@@ -418,14 +442,56 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
418
442
|
product: {
|
|
419
443
|
id: string;
|
|
420
444
|
name: string;
|
|
445
|
+
createdAt: Date;
|
|
446
|
+
updatedAt: Date;
|
|
447
|
+
description: string | null;
|
|
421
448
|
status: "active" | "draft" | "paused" | "ended";
|
|
422
449
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
450
|
+
targetAssetId: string;
|
|
451
|
+
payAssetId: string;
|
|
452
|
+
payAccountTypeId: string;
|
|
453
|
+
receiveAccountTypeId: string;
|
|
454
|
+
minPayAmount: string;
|
|
455
|
+
settlementMode: "available" | "locked";
|
|
456
|
+
allowPurchase: boolean;
|
|
457
|
+
isHot: boolean;
|
|
458
|
+
targetAsset: {
|
|
459
|
+
symbol: string;
|
|
460
|
+
id: string;
|
|
461
|
+
name: string;
|
|
462
|
+
code: string;
|
|
463
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
464
|
+
isActive: boolean;
|
|
465
|
+
precision: number;
|
|
466
|
+
};
|
|
467
|
+
payAsset: {
|
|
468
|
+
symbol: string;
|
|
469
|
+
id: string;
|
|
470
|
+
name: string;
|
|
471
|
+
code: string;
|
|
472
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
473
|
+
isActive: boolean;
|
|
474
|
+
precision: number;
|
|
475
|
+
};
|
|
476
|
+
payAccountType: {
|
|
477
|
+
id: string;
|
|
478
|
+
name: string;
|
|
479
|
+
key: string;
|
|
480
|
+
isActive: boolean;
|
|
481
|
+
};
|
|
482
|
+
receiveAccountType: {
|
|
483
|
+
id: string;
|
|
484
|
+
name: string;
|
|
485
|
+
key: string;
|
|
486
|
+
isActive: boolean;
|
|
487
|
+
};
|
|
423
488
|
};
|
|
424
489
|
payAssetSnapshot: {
|
|
425
490
|
symbol: string;
|
|
426
491
|
id: string;
|
|
427
492
|
name: string;
|
|
428
493
|
code: string;
|
|
494
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
429
495
|
isActive: boolean;
|
|
430
496
|
precision: number;
|
|
431
497
|
};
|
|
@@ -434,6 +500,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
434
500
|
id: string;
|
|
435
501
|
name: string;
|
|
436
502
|
code: string;
|
|
503
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
437
504
|
isActive: boolean;
|
|
438
505
|
precision: number;
|
|
439
506
|
};
|
|
@@ -442,17 +509,20 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
442
509
|
id: string;
|
|
443
510
|
name: string;
|
|
444
511
|
code: string;
|
|
512
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
445
513
|
isActive: boolean;
|
|
446
514
|
precision: number;
|
|
447
515
|
};
|
|
448
516
|
sourcePayAccount: {
|
|
449
517
|
id: string;
|
|
518
|
+
userId: string;
|
|
450
519
|
status: "active" | "frozen" | "disabled";
|
|
451
520
|
assetId: string;
|
|
452
521
|
ledgerAccountTypeId: string;
|
|
453
522
|
};
|
|
454
523
|
receiveAccount: {
|
|
455
524
|
id: string;
|
|
525
|
+
userId: string;
|
|
456
526
|
status: "active" | "frozen" | "disabled";
|
|
457
527
|
assetId: string;
|
|
458
528
|
ledgerAccountTypeId: string;
|
|
@@ -464,12 +534,16 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
464
534
|
createdAt: Date;
|
|
465
535
|
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
466
536
|
amount: string;
|
|
537
|
+
referenceId: string;
|
|
538
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
467
539
|
} | undefined;
|
|
468
540
|
creditLedgerEntry?: {
|
|
469
541
|
id: string;
|
|
470
542
|
createdAt: Date;
|
|
471
543
|
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
472
544
|
amount: string;
|
|
545
|
+
referenceId: string;
|
|
546
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
473
547
|
} | undefined;
|
|
474
548
|
user: {
|
|
475
549
|
email: string;
|
|
@@ -504,14 +578,56 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
504
578
|
product: {
|
|
505
579
|
id: string;
|
|
506
580
|
name: string;
|
|
581
|
+
createdAt: Date;
|
|
582
|
+
updatedAt: Date;
|
|
583
|
+
description: string | null;
|
|
507
584
|
status: "active" | "draft" | "paused" | "ended";
|
|
508
585
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
586
|
+
targetAssetId: string;
|
|
587
|
+
payAssetId: string;
|
|
588
|
+
payAccountTypeId: string;
|
|
589
|
+
receiveAccountTypeId: string;
|
|
590
|
+
minPayAmount: string;
|
|
591
|
+
settlementMode: "available" | "locked";
|
|
592
|
+
allowPurchase: boolean;
|
|
593
|
+
isHot: boolean;
|
|
594
|
+
targetAsset: {
|
|
595
|
+
symbol: string;
|
|
596
|
+
id: string;
|
|
597
|
+
name: string;
|
|
598
|
+
code: string;
|
|
599
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
600
|
+
isActive: boolean;
|
|
601
|
+
precision: number;
|
|
602
|
+
};
|
|
603
|
+
payAsset: {
|
|
604
|
+
symbol: string;
|
|
605
|
+
id: string;
|
|
606
|
+
name: string;
|
|
607
|
+
code: string;
|
|
608
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
609
|
+
isActive: boolean;
|
|
610
|
+
precision: number;
|
|
611
|
+
};
|
|
612
|
+
payAccountType: {
|
|
613
|
+
id: string;
|
|
614
|
+
name: string;
|
|
615
|
+
key: string;
|
|
616
|
+
isActive: boolean;
|
|
617
|
+
};
|
|
618
|
+
receiveAccountType: {
|
|
619
|
+
id: string;
|
|
620
|
+
name: string;
|
|
621
|
+
key: string;
|
|
622
|
+
isActive: boolean;
|
|
623
|
+
};
|
|
509
624
|
};
|
|
510
625
|
payAssetSnapshot: {
|
|
511
626
|
symbol: string;
|
|
512
627
|
id: string;
|
|
513
628
|
name: string;
|
|
514
629
|
code: string;
|
|
630
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
515
631
|
isActive: boolean;
|
|
516
632
|
precision: number;
|
|
517
633
|
};
|
|
@@ -520,6 +636,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
520
636
|
id: string;
|
|
521
637
|
name: string;
|
|
522
638
|
code: string;
|
|
639
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
523
640
|
isActive: boolean;
|
|
524
641
|
precision: number;
|
|
525
642
|
};
|
|
@@ -528,17 +645,20 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
528
645
|
id: string;
|
|
529
646
|
name: string;
|
|
530
647
|
code: string;
|
|
648
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
531
649
|
isActive: boolean;
|
|
532
650
|
precision: number;
|
|
533
651
|
};
|
|
534
652
|
sourcePayAccount: {
|
|
535
653
|
id: string;
|
|
654
|
+
userId: string;
|
|
536
655
|
status: "active" | "frozen" | "disabled";
|
|
537
656
|
assetId: string;
|
|
538
657
|
ledgerAccountTypeId: string;
|
|
539
658
|
};
|
|
540
659
|
receiveAccount: {
|
|
541
660
|
id: string;
|
|
661
|
+
userId: string;
|
|
542
662
|
status: "active" | "frozen" | "disabled";
|
|
543
663
|
assetId: string;
|
|
544
664
|
ledgerAccountTypeId: string;
|
|
@@ -551,12 +671,16 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
551
671
|
createdAt: Date;
|
|
552
672
|
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
553
673
|
amount: string;
|
|
674
|
+
referenceId: string;
|
|
675
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
554
676
|
} | undefined;
|
|
555
677
|
creditLedgerEntry?: {
|
|
556
678
|
id: string;
|
|
557
679
|
createdAt: Date;
|
|
558
680
|
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
559
681
|
amount: string;
|
|
682
|
+
referenceId: string;
|
|
683
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
560
684
|
} | undefined;
|
|
561
685
|
user: {
|
|
562
686
|
email: string;
|
|
@@ -591,14 +715,56 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
591
715
|
product: {
|
|
592
716
|
id: string;
|
|
593
717
|
name: string;
|
|
718
|
+
createdAt: Date;
|
|
719
|
+
updatedAt: Date;
|
|
720
|
+
description: string | null;
|
|
594
721
|
status: "active" | "draft" | "paused" | "ended";
|
|
595
722
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
723
|
+
targetAssetId: string;
|
|
724
|
+
payAssetId: string;
|
|
725
|
+
payAccountTypeId: string;
|
|
726
|
+
receiveAccountTypeId: string;
|
|
727
|
+
minPayAmount: string;
|
|
728
|
+
settlementMode: "available" | "locked";
|
|
729
|
+
allowPurchase: boolean;
|
|
730
|
+
isHot: boolean;
|
|
731
|
+
targetAsset: {
|
|
732
|
+
symbol: string;
|
|
733
|
+
id: string;
|
|
734
|
+
name: string;
|
|
735
|
+
code: string;
|
|
736
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
737
|
+
isActive: boolean;
|
|
738
|
+
precision: number;
|
|
739
|
+
};
|
|
740
|
+
payAsset: {
|
|
741
|
+
symbol: string;
|
|
742
|
+
id: string;
|
|
743
|
+
name: string;
|
|
744
|
+
code: string;
|
|
745
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
746
|
+
isActive: boolean;
|
|
747
|
+
precision: number;
|
|
748
|
+
};
|
|
749
|
+
payAccountType: {
|
|
750
|
+
id: string;
|
|
751
|
+
name: string;
|
|
752
|
+
key: string;
|
|
753
|
+
isActive: boolean;
|
|
754
|
+
};
|
|
755
|
+
receiveAccountType: {
|
|
756
|
+
id: string;
|
|
757
|
+
name: string;
|
|
758
|
+
key: string;
|
|
759
|
+
isActive: boolean;
|
|
760
|
+
};
|
|
596
761
|
};
|
|
597
762
|
payAssetSnapshot: {
|
|
598
763
|
symbol: string;
|
|
599
764
|
id: string;
|
|
600
765
|
name: string;
|
|
601
766
|
code: string;
|
|
767
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
602
768
|
isActive: boolean;
|
|
603
769
|
precision: number;
|
|
604
770
|
};
|
|
@@ -607,6 +773,7 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
607
773
|
id: string;
|
|
608
774
|
name: string;
|
|
609
775
|
code: string;
|
|
776
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
610
777
|
isActive: boolean;
|
|
611
778
|
precision: number;
|
|
612
779
|
};
|
|
@@ -615,17 +782,20 @@ export declare abstract class AdminAssetConvertProductService {
|
|
|
615
782
|
id: string;
|
|
616
783
|
name: string;
|
|
617
784
|
code: string;
|
|
785
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
618
786
|
isActive: boolean;
|
|
619
787
|
precision: number;
|
|
620
788
|
};
|
|
621
789
|
sourcePayAccount: {
|
|
622
790
|
id: string;
|
|
791
|
+
userId: string;
|
|
623
792
|
status: "active" | "frozen" | "disabled";
|
|
624
793
|
assetId: string;
|
|
625
794
|
ledgerAccountTypeId: string;
|
|
626
795
|
};
|
|
627
796
|
receiveAccount: {
|
|
628
797
|
id: string;
|
|
798
|
+
userId: string;
|
|
629
799
|
status: "active" | "frozen" | "disabled";
|
|
630
800
|
assetId: string;
|
|
631
801
|
ledgerAccountTypeId: string;
|
|
@@ -237,6 +237,23 @@ export declare const assetConvertProductSelectSchema: import("drizzle-typebox").
|
|
|
237
237
|
identity: undefined;
|
|
238
238
|
generated: undefined;
|
|
239
239
|
}, {}, {}>;
|
|
240
|
+
isHot: import("drizzle-orm/pg-core").PgColumn<{
|
|
241
|
+
name: "is_hot";
|
|
242
|
+
tableName: "asset_convert_product";
|
|
243
|
+
dataType: "boolean";
|
|
244
|
+
columnType: "PgBoolean";
|
|
245
|
+
data: boolean;
|
|
246
|
+
driverParam: boolean;
|
|
247
|
+
notNull: true;
|
|
248
|
+
hasDefault: true;
|
|
249
|
+
isPrimaryKey: false;
|
|
250
|
+
isAutoincrement: false;
|
|
251
|
+
hasRuntimeDefault: false;
|
|
252
|
+
enumValues: undefined;
|
|
253
|
+
baseColumn: never;
|
|
254
|
+
identity: undefined;
|
|
255
|
+
generated: undefined;
|
|
256
|
+
}, {}, {}>;
|
|
240
257
|
}, undefined>;
|
|
241
258
|
export type AssetConvertProductSelectSchemaType = typeof assetConvertProductSelectSchema.static;
|
|
242
259
|
export declare const assetConvertProductInsertSchema: import("drizzle-typebox").BuildSchema<"insert", {
|
|
@@ -478,6 +495,23 @@ export declare const assetConvertProductInsertSchema: import("drizzle-typebox").
|
|
|
478
495
|
identity: undefined;
|
|
479
496
|
generated: undefined;
|
|
480
497
|
}, {}, {}>;
|
|
498
|
+
isHot: import("drizzle-orm/pg-core").PgColumn<{
|
|
499
|
+
name: "is_hot";
|
|
500
|
+
tableName: "asset_convert_product";
|
|
501
|
+
dataType: "boolean";
|
|
502
|
+
columnType: "PgBoolean";
|
|
503
|
+
data: boolean;
|
|
504
|
+
driverParam: boolean;
|
|
505
|
+
notNull: true;
|
|
506
|
+
hasDefault: true;
|
|
507
|
+
isPrimaryKey: false;
|
|
508
|
+
isAutoincrement: false;
|
|
509
|
+
hasRuntimeDefault: false;
|
|
510
|
+
enumValues: undefined;
|
|
511
|
+
baseColumn: never;
|
|
512
|
+
identity: undefined;
|
|
513
|
+
generated: undefined;
|
|
514
|
+
}, {}, {}>;
|
|
481
515
|
}, undefined>;
|
|
482
516
|
export type AssetConvertProductInsertSchemaType = typeof assetConvertProductInsertSchema.static;
|
|
483
517
|
export declare const assetConvertOrderSelectSchema: import("drizzle-typebox").BuildSchema<"select", {
|
|
@@ -263,6 +263,23 @@ export declare const assetConvertProduct: import("drizzle-orm/pg-core").PgTableW
|
|
|
263
263
|
identity: undefined;
|
|
264
264
|
generated: undefined;
|
|
265
265
|
}, {}, {}>;
|
|
266
|
+
isHot: import("drizzle-orm/pg-core").PgColumn<{
|
|
267
|
+
name: "is_hot";
|
|
268
|
+
tableName: "asset_convert_product";
|
|
269
|
+
dataType: "boolean";
|
|
270
|
+
columnType: "PgBoolean";
|
|
271
|
+
data: boolean;
|
|
272
|
+
driverParam: boolean;
|
|
273
|
+
notNull: true;
|
|
274
|
+
hasDefault: true;
|
|
275
|
+
isPrimaryKey: false;
|
|
276
|
+
isAutoincrement: false;
|
|
277
|
+
hasRuntimeDefault: false;
|
|
278
|
+
enumValues: undefined;
|
|
279
|
+
baseColumn: never;
|
|
280
|
+
identity: undefined;
|
|
281
|
+
generated: undefined;
|
|
282
|
+
}, {}, {}>;
|
|
266
283
|
};
|
|
267
284
|
dialect: "pg";
|
|
268
285
|
}>;
|
|
@@ -5,6 +5,7 @@ export declare const assetConvertProductListQuerySchema: import("@sinclair/typeb
|
|
|
5
5
|
real_estate: "real_estate";
|
|
6
6
|
corporate_credit: "corporate_credit";
|
|
7
7
|
}>>;
|
|
8
|
+
isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
8
9
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
9
10
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
10
11
|
pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -39,6 +40,7 @@ export declare const assetConvertProductListItemResponseSchema: import("@sinclai
|
|
|
39
40
|
locked: "locked";
|
|
40
41
|
}>;
|
|
41
42
|
allowPurchase: import("@sinclair/typebox").TBoolean;
|
|
43
|
+
isHot: import("@sinclair/typebox").TBoolean;
|
|
42
44
|
targetAsset: import("@sinclair/typebox").TObject<{
|
|
43
45
|
symbol: import("@sinclair/typebox").TString;
|
|
44
46
|
id: import("@sinclair/typebox").TString;
|
|
@@ -122,6 +124,7 @@ export declare const assetConvertProductListResponseSchema: import("@sinclair/ty
|
|
|
122
124
|
locked: "locked";
|
|
123
125
|
}>;
|
|
124
126
|
allowPurchase: import("@sinclair/typebox").TBoolean;
|
|
127
|
+
isHot: import("@sinclair/typebox").TBoolean;
|
|
125
128
|
targetAsset: import("@sinclair/typebox").TObject<{
|
|
126
129
|
symbol: import("@sinclair/typebox").TString;
|
|
127
130
|
id: import("@sinclair/typebox").TString;
|
|
@@ -213,6 +216,7 @@ export declare const assetConvertProductResponseSchema: import("@sinclair/typebo
|
|
|
213
216
|
locked: "locked";
|
|
214
217
|
}>;
|
|
215
218
|
allowPurchase: import("@sinclair/typebox").TBoolean;
|
|
219
|
+
isHot: import("@sinclair/typebox").TBoolean;
|
|
216
220
|
targetAsset: import("@sinclair/typebox").TObject<{
|
|
217
221
|
symbol: import("@sinclair/typebox").TString;
|
|
218
222
|
id: import("@sinclair/typebox").TString;
|
|
@@ -387,6 +387,7 @@ export declare const assetConvertProductRouter: Elysia<"/asset_convert_product",
|
|
|
387
387
|
params: {};
|
|
388
388
|
query: {
|
|
389
389
|
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
390
|
+
isHot?: boolean | undefined;
|
|
390
391
|
limit?: number | undefined;
|
|
391
392
|
offset?: number | undefined;
|
|
392
393
|
pageSize?: number | undefined;
|
|
@@ -421,6 +422,7 @@ export declare const assetConvertProductRouter: Elysia<"/asset_convert_product",
|
|
|
421
422
|
minPayAmount: string;
|
|
422
423
|
settlementMode: "available" | "locked";
|
|
423
424
|
allowPurchase: boolean;
|
|
425
|
+
isHot: boolean;
|
|
424
426
|
targetAsset: {
|
|
425
427
|
symbol: string;
|
|
426
428
|
id: string;
|
|
@@ -514,6 +516,7 @@ export declare const assetConvertProductRouter: Elysia<"/asset_convert_product",
|
|
|
514
516
|
minPayAmount: string;
|
|
515
517
|
settlementMode: "available" | "locked";
|
|
516
518
|
allowPurchase: boolean;
|
|
519
|
+
isHot: boolean;
|
|
517
520
|
targetAsset: {
|
|
518
521
|
symbol: string;
|
|
519
522
|
id: string;
|
|
@@ -19,6 +19,7 @@ declare abstract class BaseUserAssetConvertProductService {
|
|
|
19
19
|
minPayAmount: string;
|
|
20
20
|
settlementMode: "available" | "locked";
|
|
21
21
|
allowPurchase: boolean;
|
|
22
|
+
isHot: boolean;
|
|
22
23
|
}>;
|
|
23
24
|
protected static assertProductActive(product: typeof assetConvertProduct.$inferSelect): void;
|
|
24
25
|
protected static assertProductPurchaseAllowed(product: typeof assetConvertProduct.$inferSelect): void;
|
|
@@ -170,6 +171,7 @@ export declare abstract class UserAssetConvertProductService extends BaseUserAss
|
|
|
170
171
|
minPayAmount: string;
|
|
171
172
|
settlementMode: "available" | "locked";
|
|
172
173
|
allowPurchase: boolean;
|
|
174
|
+
isHot: boolean;
|
|
173
175
|
}[];
|
|
174
176
|
pagination: {
|
|
175
177
|
pageSize: number;
|
|
@@ -285,6 +287,7 @@ export declare abstract class UserAssetConvertProductService extends BaseUserAss
|
|
|
285
287
|
minPayAmount: string;
|
|
286
288
|
settlementMode: "available" | "locked";
|
|
287
289
|
allowPurchase: boolean;
|
|
290
|
+
isHot: boolean;
|
|
288
291
|
}>;
|
|
289
292
|
static createOrder(userId: string, input: AssetConvertOrderCreateInputType): Promise<{
|
|
290
293
|
id: string;
|