@r2wa-org/eden 0.0.66 → 0.0.68

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.
@@ -759,8 +759,6 @@ export declare const adminRouter: Elysia<"/admin", {
759
759
  id?: string | undefined;
760
760
  baseAssetId?: string | undefined;
761
761
  baseAsset?: string | undefined;
762
- quoteAssetId?: string | undefined;
763
- quoteAsset?: string | undefined;
764
762
  source?: string | undefined;
765
763
  startDate?: Date | undefined;
766
764
  limit?: number | undefined;
@@ -780,21 +778,10 @@ export declare const adminRouter: Elysia<"/admin", {
780
778
  updatedAt: Date;
781
779
  baseAssetId: string;
782
780
  baseAsset: string;
783
- quoteAssetId: string;
784
- quoteAsset: string;
785
781
  price: string;
786
782
  source: string;
787
783
  effectiveAt: Date;
788
- baseAssetInfo: {
789
- symbol: string;
790
- id: string;
791
- name: string;
792
- code: string;
793
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
794
- isActive: boolean;
795
- precision: number;
796
- };
797
- quoteAssetInfo: {
784
+ baseAssetEntity: {
798
785
  symbol: string;
799
786
  id: string;
800
787
  name: string;
@@ -830,58 +817,44 @@ export declare const adminRouter: Elysia<"/admin", {
830
817
  asset_prices: {
831
818
  latest: {
832
819
  ":baseAsset": {
833
- ":quoteAsset": {
834
- get: {
835
- body: {};
836
- params: {
820
+ get: {
821
+ body: {};
822
+ params: {
823
+ baseAsset: string;
824
+ };
825
+ query: {};
826
+ headers: {};
827
+ response: {
828
+ 200: {
829
+ id: string;
830
+ createdAt: Date;
831
+ updatedAt: Date;
832
+ baseAssetId: string;
837
833
  baseAsset: string;
838
- quoteAsset: string;
839
- };
840
- query: {};
841
- headers: {};
842
- response: {
843
- 200: {
834
+ price: string;
835
+ source: string;
836
+ effectiveAt: Date;
837
+ baseAssetEntity: {
838
+ symbol: string;
844
839
  id: string;
845
- createdAt: Date;
846
- updatedAt: Date;
847
- baseAssetId: string;
848
- baseAsset: string;
849
- quoteAssetId: string;
850
- quoteAsset: string;
851
- price: string;
852
- source: string;
853
- effectiveAt: Date;
854
- baseAssetInfo: {
855
- symbol: string;
856
- id: string;
857
- name: string;
858
- code: string;
859
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
860
- isActive: boolean;
861
- precision: number;
862
- };
863
- quoteAssetInfo: {
864
- symbol: string;
865
- id: string;
866
- name: string;
867
- code: string;
868
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
869
- isActive: boolean;
870
- precision: number;
871
- };
872
- };
873
- 422: {
874
- type: "validation";
875
- on: string;
876
- summary?: string;
877
- message?: string;
878
- found?: unknown;
879
- property?: string;
880
- expected?: string;
840
+ name: string;
841
+ code: string;
842
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
843
+ isActive: boolean;
844
+ precision: number;
881
845
  };
882
- 401: "Unauthorized";
883
- 403: "Forbidden: Admins only";
884
846
  };
847
+ 422: {
848
+ type: "validation";
849
+ on: string;
850
+ summary?: string;
851
+ message?: string;
852
+ found?: unknown;
853
+ property?: string;
854
+ expected?: string;
855
+ };
856
+ 401: "Unauthorized";
857
+ 403: "Forbidden: Admins only";
885
858
  };
886
859
  };
887
860
  };
@@ -904,21 +877,10 @@ export declare const adminRouter: Elysia<"/admin", {
904
877
  updatedAt: Date;
905
878
  baseAssetId: string;
906
879
  baseAsset: string;
907
- quoteAssetId: string;
908
- quoteAsset: string;
909
880
  price: string;
910
881
  source: string;
911
882
  effectiveAt: Date;
912
- baseAssetInfo: {
913
- symbol: string;
914
- id: string;
915
- name: string;
916
- code: string;
917
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
918
- isActive: boolean;
919
- precision: number;
920
- };
921
- quoteAssetInfo: {
883
+ baseAssetEntity: {
922
884
  symbol: string;
923
885
  id: string;
924
886
  name: string;
@@ -947,10 +909,9 @@ export declare const adminRouter: Elysia<"/admin", {
947
909
  asset_prices: {
948
910
  post: {
949
911
  body: {
912
+ source?: string | undefined;
950
913
  baseAsset: string;
951
- quoteAsset: string;
952
914
  price: string;
953
- source: string;
954
915
  effectiveAt: Date;
955
916
  };
956
917
  params: {};
@@ -963,21 +924,10 @@ export declare const adminRouter: Elysia<"/admin", {
963
924
  updatedAt: Date;
964
925
  baseAssetId: string;
965
926
  baseAsset: string;
966
- quoteAssetId: string;
967
- quoteAsset: string;
968
927
  price: string;
969
928
  source: string;
970
929
  effectiveAt: Date;
971
- baseAssetInfo: {
972
- symbol: string;
973
- id: string;
974
- name: string;
975
- code: string;
976
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
977
- isActive: boolean;
978
- precision: number;
979
- };
980
- quoteAssetInfo: {
930
+ baseAssetEntity: {
981
931
  symbol: string;
982
932
  id: string;
983
933
  name: string;
@@ -2746,6 +2696,15 @@ export declare const adminRouter: Elysia<"/admin", {
2746
2696
  response: {
2747
2697
  200: {
2748
2698
  data: {
2699
+ user: {
2700
+ email: string;
2701
+ id: string;
2702
+ username: string | null;
2703
+ displayUsername: string | null;
2704
+ phoneNumber: string | null;
2705
+ role: string | null;
2706
+ banned: boolean | null;
2707
+ };
2749
2708
  id: string;
2750
2709
  name: string;
2751
2710
  createdAt: Date;
@@ -2764,15 +2723,6 @@ export declare const adminRouter: Elysia<"/admin", {
2764
2723
  sortOrder: number;
2765
2724
  isSingleton: boolean;
2766
2725
  };
2767
- userInfo: {
2768
- email: string;
2769
- id: string;
2770
- username: string | null;
2771
- displayUsername: string | null;
2772
- phoneNumber: string | null;
2773
- role: string | null;
2774
- banned: boolean | null;
2775
- };
2776
2726
  }[];
2777
2727
  pagination: {
2778
2728
  total: number;
@@ -2808,6 +2758,15 @@ export declare const adminRouter: Elysia<"/admin", {
2808
2758
  headers: {};
2809
2759
  response: {
2810
2760
  200: {
2761
+ user: {
2762
+ email: string;
2763
+ id: string;
2764
+ username: string | null;
2765
+ displayUsername: string | null;
2766
+ phoneNumber: string | null;
2767
+ role: string | null;
2768
+ banned: boolean | null;
2769
+ };
2811
2770
  id: string;
2812
2771
  name: string;
2813
2772
  createdAt: Date;
@@ -2826,15 +2785,6 @@ export declare const adminRouter: Elysia<"/admin", {
2826
2785
  sortOrder: number;
2827
2786
  isSingleton: boolean;
2828
2787
  };
2829
- userInfo: {
2830
- email: string;
2831
- id: string;
2832
- username: string | null;
2833
- displayUsername: string | null;
2834
- phoneNumber: string | null;
2835
- role: string | null;
2836
- banned: boolean | null;
2837
- };
2838
2788
  };
2839
2789
  422: {
2840
2790
  type: "validation";
@@ -18,26 +18,10 @@ export declare const assetPriceAdminResponseSchema: import("@sinclair/typebox").
18
18
  id: import("@sinclair/typebox").TString;
19
19
  baseAssetId: import("@sinclair/typebox").TString;
20
20
  baseAsset: import("@sinclair/typebox").TString;
21
- quoteAssetId: import("@sinclair/typebox").TString;
22
- quoteAsset: import("@sinclair/typebox").TString;
23
21
  price: import("@sinclair/typebox").TString;
24
22
  source: import("@sinclair/typebox").TString;
25
23
  effectiveAt: import("@sinclair/typebox").TDate;
26
- baseAssetInfo: import("@sinclair/typebox").TObject<{
27
- symbol: import("@sinclair/typebox").TString;
28
- id: import("@sinclair/typebox").TString;
29
- name: import("@sinclair/typebox").TString;
30
- code: import("@sinclair/typebox").TString;
31
- category: import("@sinclair/typebox").TEnum<{
32
- FIAT: "FIAT";
33
- CRYPTO: "CRYPTO";
34
- POINT: "POINT";
35
- RWA: "RWA";
36
- }>;
37
- isActive: import("@sinclair/typebox").TBoolean;
38
- precision: import("@sinclair/typebox").TInteger;
39
- }>;
40
- quoteAssetInfo: import("@sinclair/typebox").TObject<{
24
+ baseAssetEntity: import("@sinclair/typebox").TObject<{
41
25
  symbol: import("@sinclair/typebox").TString;
42
26
  id: import("@sinclair/typebox").TString;
43
27
  name: import("@sinclair/typebox").TString;
@@ -65,8 +49,6 @@ export declare const assetPriceAdminListQuerySchema: import("@sinclair/typebox")
65
49
  id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
66
50
  baseAssetId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
67
51
  baseAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
68
- quoteAssetId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
69
- quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
70
52
  source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
71
53
  startDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
72
54
  endDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
@@ -76,14 +58,12 @@ export declare const assetPriceAdminListQuerySchema: import("@sinclair/typebox")
76
58
  export type AssetPriceAdminListQueryType = typeof assetPriceAdminListQuerySchema.static;
77
59
  export declare const assetPriceLatestParamsSchema: import("@sinclair/typebox").TObject<{
78
60
  baseAsset: import("@sinclair/typebox").TString;
79
- quoteAsset: import("@sinclair/typebox").TString;
80
61
  }>;
81
62
  export type AssetPriceLatestParamsType = typeof assetPriceLatestParamsSchema.static;
82
63
  export declare const assetPriceAdminCreateSchema: import("@sinclair/typebox").TObject<{
83
64
  baseAsset: import("@sinclair/typebox").TString;
84
- quoteAsset: import("@sinclair/typebox").TString;
85
65
  price: import("@sinclair/typebox").TString;
86
- source: import("@sinclair/typebox").TString;
66
+ source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
87
67
  effectiveAt: import("@sinclair/typebox").TDate;
88
68
  }>;
89
69
  export type AssetPriceAdminCreateInputType = typeof assetPriceAdminCreateSchema.static;
@@ -94,26 +74,10 @@ export declare const assetPriceAdminListResponseSchema: import("@sinclair/typebo
94
74
  id: import("@sinclair/typebox").TString;
95
75
  baseAssetId: import("@sinclair/typebox").TString;
96
76
  baseAsset: import("@sinclair/typebox").TString;
97
- quoteAssetId: import("@sinclair/typebox").TString;
98
- quoteAsset: import("@sinclair/typebox").TString;
99
77
  price: import("@sinclair/typebox").TString;
100
78
  source: import("@sinclair/typebox").TString;
101
79
  effectiveAt: import("@sinclair/typebox").TDate;
102
- baseAssetInfo: import("@sinclair/typebox").TObject<{
103
- symbol: import("@sinclair/typebox").TString;
104
- id: import("@sinclair/typebox").TString;
105
- name: import("@sinclair/typebox").TString;
106
- code: import("@sinclair/typebox").TString;
107
- category: import("@sinclair/typebox").TEnum<{
108
- FIAT: "FIAT";
109
- CRYPTO: "CRYPTO";
110
- POINT: "POINT";
111
- RWA: "RWA";
112
- }>;
113
- isActive: import("@sinclair/typebox").TBoolean;
114
- precision: import("@sinclair/typebox").TInteger;
115
- }>;
116
- quoteAssetInfo: import("@sinclair/typebox").TObject<{
80
+ baseAssetEntity: import("@sinclair/typebox").TObject<{
117
81
  symbol: import("@sinclair/typebox").TString;
118
82
  id: import("@sinclair/typebox").TString;
119
83
  name: import("@sinclair/typebox").TString;
@@ -388,8 +388,6 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
388
388
  id?: string | undefined;
389
389
  baseAssetId?: string | undefined;
390
390
  baseAsset?: string | undefined;
391
- quoteAssetId?: string | undefined;
392
- quoteAsset?: string | undefined;
393
391
  source?: string | undefined;
394
392
  startDate?: Date | undefined;
395
393
  limit?: number | undefined;
@@ -409,21 +407,10 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
409
407
  updatedAt: Date;
410
408
  baseAssetId: string;
411
409
  baseAsset: string;
412
- quoteAssetId: string;
413
- quoteAsset: string;
414
410
  price: string;
415
411
  source: string;
416
412
  effectiveAt: Date;
417
- baseAssetInfo: {
418
- symbol: string;
419
- id: string;
420
- name: string;
421
- code: string;
422
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
423
- isActive: boolean;
424
- precision: number;
425
- };
426
- quoteAssetInfo: {
413
+ baseAssetEntity: {
427
414
  symbol: string;
428
415
  id: string;
429
416
  name: string;
@@ -459,58 +446,44 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
459
446
  asset_prices: {
460
447
  latest: {
461
448
  ":baseAsset": {
462
- ":quoteAsset": {
463
- get: {
464
- body: {};
465
- params: {
449
+ get: {
450
+ body: {};
451
+ params: {
452
+ baseAsset: string;
453
+ };
454
+ query: {};
455
+ headers: {};
456
+ response: {
457
+ 200: {
458
+ id: string;
459
+ createdAt: Date;
460
+ updatedAt: Date;
461
+ baseAssetId: string;
466
462
  baseAsset: string;
467
- quoteAsset: string;
468
- };
469
- query: {};
470
- headers: {};
471
- response: {
472
- 200: {
463
+ price: string;
464
+ source: string;
465
+ effectiveAt: Date;
466
+ baseAssetEntity: {
467
+ symbol: string;
473
468
  id: string;
474
- createdAt: Date;
475
- updatedAt: Date;
476
- baseAssetId: string;
477
- baseAsset: string;
478
- quoteAssetId: string;
479
- quoteAsset: string;
480
- price: string;
481
- source: string;
482
- effectiveAt: Date;
483
- baseAssetInfo: {
484
- symbol: string;
485
- id: string;
486
- name: string;
487
- code: string;
488
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
489
- isActive: boolean;
490
- precision: number;
491
- };
492
- quoteAssetInfo: {
493
- symbol: string;
494
- id: string;
495
- name: string;
496
- code: string;
497
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
498
- isActive: boolean;
499
- precision: number;
500
- };
469
+ name: string;
470
+ code: string;
471
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
472
+ isActive: boolean;
473
+ precision: number;
501
474
  };
502
- 422: {
503
- type: "validation";
504
- on: string;
505
- summary?: string;
506
- message?: string;
507
- found?: unknown;
508
- property?: string;
509
- expected?: string;
510
- };
511
- 401: "Unauthorized";
512
- 403: "Forbidden: Admins only";
513
475
  };
476
+ 422: {
477
+ type: "validation";
478
+ on: string;
479
+ summary?: string;
480
+ message?: string;
481
+ found?: unknown;
482
+ property?: string;
483
+ expected?: string;
484
+ };
485
+ 401: "Unauthorized";
486
+ 403: "Forbidden: Admins only";
514
487
  };
515
488
  };
516
489
  };
@@ -533,21 +506,10 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
533
506
  updatedAt: Date;
534
507
  baseAssetId: string;
535
508
  baseAsset: string;
536
- quoteAssetId: string;
537
- quoteAsset: string;
538
509
  price: string;
539
510
  source: string;
540
511
  effectiveAt: Date;
541
- baseAssetInfo: {
542
- symbol: string;
543
- id: string;
544
- name: string;
545
- code: string;
546
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
547
- isActive: boolean;
548
- precision: number;
549
- };
550
- quoteAssetInfo: {
512
+ baseAssetEntity: {
551
513
  symbol: string;
552
514
  id: string;
553
515
  name: string;
@@ -576,10 +538,9 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
576
538
  asset_prices: {
577
539
  post: {
578
540
  body: {
541
+ source?: string | undefined;
579
542
  baseAsset: string;
580
- quoteAsset: string;
581
543
  price: string;
582
- source: string;
583
544
  effectiveAt: Date;
584
545
  };
585
546
  params: {};
@@ -592,21 +553,10 @@ export declare const assetPriceAdminRouter: Elysia<"/asset_prices", {
592
553
  updatedAt: Date;
593
554
  baseAssetId: string;
594
555
  baseAsset: string;
595
- quoteAssetId: string;
596
- quoteAsset: string;
597
556
  price: string;
598
557
  source: string;
599
558
  effectiveAt: Date;
600
- baseAssetInfo: {
601
- symbol: string;
602
- id: string;
603
- name: string;
604
- code: string;
605
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
606
- isActive: boolean;
607
- precision: number;
608
- };
609
- quoteAssetInfo: {
559
+ baseAssetEntity: {
610
560
  symbol: string;
611
561
  id: string;
612
562
  name: string;