@r2wa-org/eden 0.0.65 → 0.0.67
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 +35 -85
- package/dist/src/asset-price/admin/dto.schemas.d.ts +1 -37
- package/dist/src/asset-price/admin/router.d.ts +35 -85
- package/dist/src/asset-price/admin/service.d.ts +24 -142
- package/dist/src/asset-price/constants.d.ts +2 -0
- package/dist/src/asset-price/errors/index.d.ts +1 -0
- package/dist/src/asset-price/errors/locales/zh.d.ts +1 -0
- package/dist/src/asset-price/index.d.ts +1 -0
- package/dist/src/asset-price/internal/service.d.ts +2 -43
- package/dist/src/asset-price/user/dto.schemas.d.ts +20 -362
- package/dist/src/asset-price/user/router.d.ts +25 -74
- package/dist/src/asset-price/user/service.d.ts +4 -21
- package/dist/src/index.d.ts +240 -159
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1082,8 +1082,6 @@ declare const app: Elysia<"/api", {
|
|
|
1082
1082
|
id?: string | undefined;
|
|
1083
1083
|
baseAssetId?: string | undefined;
|
|
1084
1084
|
baseAsset?: string | undefined;
|
|
1085
|
-
quoteAssetId?: string | undefined;
|
|
1086
|
-
quoteAsset?: string | undefined;
|
|
1087
1085
|
source?: string | undefined;
|
|
1088
1086
|
startDate?: Date | undefined;
|
|
1089
1087
|
limit?: number | undefined;
|
|
@@ -1103,8 +1101,6 @@ declare const app: Elysia<"/api", {
|
|
|
1103
1101
|
updatedAt: Date;
|
|
1104
1102
|
baseAssetId: string;
|
|
1105
1103
|
baseAsset: string;
|
|
1106
|
-
quoteAssetId: string;
|
|
1107
|
-
quoteAsset: string;
|
|
1108
1104
|
price: string;
|
|
1109
1105
|
source: string;
|
|
1110
1106
|
effectiveAt: Date;
|
|
@@ -1117,15 +1113,6 @@ declare const app: Elysia<"/api", {
|
|
|
1117
1113
|
isActive: boolean;
|
|
1118
1114
|
precision: number;
|
|
1119
1115
|
};
|
|
1120
|
-
quoteAssetInfo: {
|
|
1121
|
-
symbol: string;
|
|
1122
|
-
id: string;
|
|
1123
|
-
name: string;
|
|
1124
|
-
code: string;
|
|
1125
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1126
|
-
isActive: boolean;
|
|
1127
|
-
precision: number;
|
|
1128
|
-
};
|
|
1129
1116
|
}[];
|
|
1130
1117
|
pagination: {
|
|
1131
1118
|
total: number;
|
|
@@ -1153,58 +1140,44 @@ declare const app: Elysia<"/api", {
|
|
|
1153
1140
|
asset_prices: {
|
|
1154
1141
|
latest: {
|
|
1155
1142
|
":baseAsset": {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1143
|
+
get: {
|
|
1144
|
+
body: {};
|
|
1145
|
+
params: {
|
|
1146
|
+
baseAsset: string;
|
|
1147
|
+
};
|
|
1148
|
+
query: {};
|
|
1149
|
+
headers: {};
|
|
1150
|
+
response: {
|
|
1151
|
+
200: {
|
|
1152
|
+
id: string;
|
|
1153
|
+
createdAt: Date;
|
|
1154
|
+
updatedAt: Date;
|
|
1155
|
+
baseAssetId: string;
|
|
1160
1156
|
baseAsset: string;
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
200: {
|
|
1157
|
+
price: string;
|
|
1158
|
+
source: string;
|
|
1159
|
+
effectiveAt: Date;
|
|
1160
|
+
baseAssetInfo: {
|
|
1161
|
+
symbol: string;
|
|
1167
1162
|
id: string;
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
quoteAsset: string;
|
|
1174
|
-
price: string;
|
|
1175
|
-
source: string;
|
|
1176
|
-
effectiveAt: Date;
|
|
1177
|
-
baseAssetInfo: {
|
|
1178
|
-
symbol: string;
|
|
1179
|
-
id: string;
|
|
1180
|
-
name: string;
|
|
1181
|
-
code: string;
|
|
1182
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1183
|
-
isActive: boolean;
|
|
1184
|
-
precision: number;
|
|
1185
|
-
};
|
|
1186
|
-
quoteAssetInfo: {
|
|
1187
|
-
symbol: string;
|
|
1188
|
-
id: string;
|
|
1189
|
-
name: string;
|
|
1190
|
-
code: string;
|
|
1191
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1192
|
-
isActive: boolean;
|
|
1193
|
-
precision: number;
|
|
1194
|
-
};
|
|
1195
|
-
};
|
|
1196
|
-
422: {
|
|
1197
|
-
type: "validation";
|
|
1198
|
-
on: string;
|
|
1199
|
-
summary?: string;
|
|
1200
|
-
message?: string;
|
|
1201
|
-
found?: unknown;
|
|
1202
|
-
property?: string;
|
|
1203
|
-
expected?: string;
|
|
1163
|
+
name: string;
|
|
1164
|
+
code: string;
|
|
1165
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1166
|
+
isActive: boolean;
|
|
1167
|
+
precision: number;
|
|
1204
1168
|
};
|
|
1205
|
-
401: "Unauthorized";
|
|
1206
|
-
403: "Forbidden: Admins only";
|
|
1207
1169
|
};
|
|
1170
|
+
422: {
|
|
1171
|
+
type: "validation";
|
|
1172
|
+
on: string;
|
|
1173
|
+
summary?: string;
|
|
1174
|
+
message?: string;
|
|
1175
|
+
found?: unknown;
|
|
1176
|
+
property?: string;
|
|
1177
|
+
expected?: string;
|
|
1178
|
+
};
|
|
1179
|
+
401: "Unauthorized";
|
|
1180
|
+
403: "Forbidden: Admins only";
|
|
1208
1181
|
};
|
|
1209
1182
|
};
|
|
1210
1183
|
};
|
|
@@ -1227,8 +1200,6 @@ declare const app: Elysia<"/api", {
|
|
|
1227
1200
|
updatedAt: Date;
|
|
1228
1201
|
baseAssetId: string;
|
|
1229
1202
|
baseAsset: string;
|
|
1230
|
-
quoteAssetId: string;
|
|
1231
|
-
quoteAsset: string;
|
|
1232
1203
|
price: string;
|
|
1233
1204
|
source: string;
|
|
1234
1205
|
effectiveAt: Date;
|
|
@@ -1241,15 +1212,6 @@ declare const app: Elysia<"/api", {
|
|
|
1241
1212
|
isActive: boolean;
|
|
1242
1213
|
precision: number;
|
|
1243
1214
|
};
|
|
1244
|
-
quoteAssetInfo: {
|
|
1245
|
-
symbol: string;
|
|
1246
|
-
id: string;
|
|
1247
|
-
name: string;
|
|
1248
|
-
code: string;
|
|
1249
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1250
|
-
isActive: boolean;
|
|
1251
|
-
precision: number;
|
|
1252
|
-
};
|
|
1253
1215
|
};
|
|
1254
1216
|
422: {
|
|
1255
1217
|
type: "validation";
|
|
@@ -1270,10 +1232,9 @@ declare const app: Elysia<"/api", {
|
|
|
1270
1232
|
asset_prices: {
|
|
1271
1233
|
post: {
|
|
1272
1234
|
body: {
|
|
1235
|
+
source?: string | undefined;
|
|
1273
1236
|
baseAsset: string;
|
|
1274
|
-
quoteAsset: string;
|
|
1275
1237
|
price: string;
|
|
1276
|
-
source: string;
|
|
1277
1238
|
effectiveAt: Date;
|
|
1278
1239
|
};
|
|
1279
1240
|
params: {};
|
|
@@ -1286,8 +1247,6 @@ declare const app: Elysia<"/api", {
|
|
|
1286
1247
|
updatedAt: Date;
|
|
1287
1248
|
baseAssetId: string;
|
|
1288
1249
|
baseAsset: string;
|
|
1289
|
-
quoteAssetId: string;
|
|
1290
|
-
quoteAsset: string;
|
|
1291
1250
|
price: string;
|
|
1292
1251
|
source: string;
|
|
1293
1252
|
effectiveAt: Date;
|
|
@@ -1300,15 +1259,6 @@ declare const app: Elysia<"/api", {
|
|
|
1300
1259
|
isActive: boolean;
|
|
1301
1260
|
precision: number;
|
|
1302
1261
|
};
|
|
1303
|
-
quoteAssetInfo: {
|
|
1304
|
-
symbol: string;
|
|
1305
|
-
id: string;
|
|
1306
|
-
name: string;
|
|
1307
|
-
code: string;
|
|
1308
|
-
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
1309
|
-
isActive: boolean;
|
|
1310
|
-
precision: number;
|
|
1311
|
-
};
|
|
1312
1262
|
};
|
|
1313
1263
|
422: {
|
|
1314
1264
|
type: "validation";
|
|
@@ -9711,7 +9661,6 @@ declare const app: Elysia<"/api", {
|
|
|
9711
9661
|
pageIndex?: number | undefined;
|
|
9712
9662
|
endDate?: Date | undefined;
|
|
9713
9663
|
baseAsset: string;
|
|
9714
|
-
quoteAsset: string;
|
|
9715
9664
|
};
|
|
9716
9665
|
headers: {};
|
|
9717
9666
|
response: {
|
|
@@ -9722,8 +9671,6 @@ declare const app: Elysia<"/api", {
|
|
|
9722
9671
|
updatedAt: Date;
|
|
9723
9672
|
baseAssetId: string;
|
|
9724
9673
|
baseAsset: string;
|
|
9725
|
-
quoteAssetId: string;
|
|
9726
|
-
quoteAsset: string;
|
|
9727
9674
|
price: string;
|
|
9728
9675
|
source: string;
|
|
9729
9676
|
effectiveAt: Date;
|
|
@@ -9749,84 +9696,38 @@ declare const app: Elysia<"/api", {
|
|
|
9749
9696
|
};
|
|
9750
9697
|
};
|
|
9751
9698
|
};
|
|
9752
|
-
} & {
|
|
9753
|
-
asset_prices: {
|
|
9754
|
-
latest: {
|
|
9755
|
-
cny: {
|
|
9756
|
-
":baseAsset": {
|
|
9757
|
-
get: {
|
|
9758
|
-
body: {};
|
|
9759
|
-
params: {
|
|
9760
|
-
baseAsset: string;
|
|
9761
|
-
};
|
|
9762
|
-
query: {};
|
|
9763
|
-
headers: {};
|
|
9764
|
-
response: {
|
|
9765
|
-
200: {
|
|
9766
|
-
id: string;
|
|
9767
|
-
createdAt: Date;
|
|
9768
|
-
updatedAt: Date;
|
|
9769
|
-
baseAssetId: string;
|
|
9770
|
-
baseAsset: string;
|
|
9771
|
-
quoteAssetId: string;
|
|
9772
|
-
quoteAsset: string;
|
|
9773
|
-
price: string;
|
|
9774
|
-
source: string;
|
|
9775
|
-
effectiveAt: Date;
|
|
9776
|
-
};
|
|
9777
|
-
422: {
|
|
9778
|
-
type: "validation";
|
|
9779
|
-
on: string;
|
|
9780
|
-
summary?: string;
|
|
9781
|
-
message?: string;
|
|
9782
|
-
found?: unknown;
|
|
9783
|
-
property?: string;
|
|
9784
|
-
expected?: string;
|
|
9785
|
-
};
|
|
9786
|
-
401: "Unauthorized";
|
|
9787
|
-
};
|
|
9788
|
-
};
|
|
9789
|
-
};
|
|
9790
|
-
};
|
|
9791
|
-
};
|
|
9792
|
-
};
|
|
9793
9699
|
} & {
|
|
9794
9700
|
asset_prices: {
|
|
9795
9701
|
latest: {
|
|
9796
9702
|
":baseAsset": {
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9703
|
+
get: {
|
|
9704
|
+
body: {};
|
|
9705
|
+
params: {
|
|
9706
|
+
baseAsset: string;
|
|
9707
|
+
};
|
|
9708
|
+
query: {};
|
|
9709
|
+
headers: {};
|
|
9710
|
+
response: {
|
|
9711
|
+
200: {
|
|
9712
|
+
id: string;
|
|
9713
|
+
createdAt: Date;
|
|
9714
|
+
updatedAt: Date;
|
|
9715
|
+
baseAssetId: string;
|
|
9801
9716
|
baseAsset: string;
|
|
9802
|
-
|
|
9717
|
+
price: string;
|
|
9718
|
+
source: string;
|
|
9719
|
+
effectiveAt: Date;
|
|
9803
9720
|
};
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
baseAsset: string;
|
|
9813
|
-
quoteAssetId: string;
|
|
9814
|
-
quoteAsset: string;
|
|
9815
|
-
price: string;
|
|
9816
|
-
source: string;
|
|
9817
|
-
effectiveAt: Date;
|
|
9818
|
-
};
|
|
9819
|
-
422: {
|
|
9820
|
-
type: "validation";
|
|
9821
|
-
on: string;
|
|
9822
|
-
summary?: string;
|
|
9823
|
-
message?: string;
|
|
9824
|
-
found?: unknown;
|
|
9825
|
-
property?: string;
|
|
9826
|
-
expected?: string;
|
|
9827
|
-
};
|
|
9828
|
-
401: "Unauthorized";
|
|
9721
|
+
422: {
|
|
9722
|
+
type: "validation";
|
|
9723
|
+
on: string;
|
|
9724
|
+
summary?: string;
|
|
9725
|
+
message?: string;
|
|
9726
|
+
found?: unknown;
|
|
9727
|
+
property?: string;
|
|
9728
|
+
expected?: string;
|
|
9829
9729
|
};
|
|
9730
|
+
401: "Unauthorized";
|
|
9830
9731
|
};
|
|
9831
9732
|
};
|
|
9832
9733
|
};
|
|
@@ -10176,6 +10077,186 @@ declare const app: Elysia<"/api", {
|
|
|
10176
10077
|
};
|
|
10177
10078
|
};
|
|
10178
10079
|
};
|
|
10080
|
+
} & {
|
|
10081
|
+
api: {
|
|
10082
|
+
ledger_accounts: {};
|
|
10083
|
+
} & {
|
|
10084
|
+
ledger_accounts: {
|
|
10085
|
+
"account-types": {
|
|
10086
|
+
":accountTypeKey": {
|
|
10087
|
+
assets: {
|
|
10088
|
+
":assetCode": {
|
|
10089
|
+
get: {
|
|
10090
|
+
body: {};
|
|
10091
|
+
params: {
|
|
10092
|
+
assetCode: string;
|
|
10093
|
+
accountTypeKey: string;
|
|
10094
|
+
};
|
|
10095
|
+
query: {};
|
|
10096
|
+
headers: {};
|
|
10097
|
+
response: {
|
|
10098
|
+
200: {
|
|
10099
|
+
id: string;
|
|
10100
|
+
createdAt: Date;
|
|
10101
|
+
updatedAt: Date;
|
|
10102
|
+
userId: string;
|
|
10103
|
+
status: "active" | "frozen" | "disabled";
|
|
10104
|
+
asset: {
|
|
10105
|
+
symbol: string;
|
|
10106
|
+
id: string;
|
|
10107
|
+
name: string;
|
|
10108
|
+
code: string;
|
|
10109
|
+
iconUrl: string;
|
|
10110
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
10111
|
+
isActive: boolean;
|
|
10112
|
+
precision: number;
|
|
10113
|
+
};
|
|
10114
|
+
assetId: string;
|
|
10115
|
+
ledgerAccountTypeId: string;
|
|
10116
|
+
available: string;
|
|
10117
|
+
locked: string;
|
|
10118
|
+
version: number;
|
|
10119
|
+
ledgerAccountType: {
|
|
10120
|
+
id: string;
|
|
10121
|
+
name: string;
|
|
10122
|
+
description: string | null;
|
|
10123
|
+
key: string;
|
|
10124
|
+
isActive: boolean;
|
|
10125
|
+
};
|
|
10126
|
+
};
|
|
10127
|
+
422: {
|
|
10128
|
+
type: "validation";
|
|
10129
|
+
on: string;
|
|
10130
|
+
summary?: string;
|
|
10131
|
+
message?: string;
|
|
10132
|
+
found?: unknown;
|
|
10133
|
+
property?: string;
|
|
10134
|
+
expected?: string;
|
|
10135
|
+
};
|
|
10136
|
+
401: "Unauthorized";
|
|
10137
|
+
};
|
|
10138
|
+
};
|
|
10139
|
+
};
|
|
10140
|
+
};
|
|
10141
|
+
};
|
|
10142
|
+
};
|
|
10143
|
+
};
|
|
10144
|
+
} & {
|
|
10145
|
+
ledger_accounts: {
|
|
10146
|
+
"account-type-ids": {
|
|
10147
|
+
":ledgerAccountTypeId": {
|
|
10148
|
+
assets: {
|
|
10149
|
+
":assetId": {
|
|
10150
|
+
get: {
|
|
10151
|
+
body: {};
|
|
10152
|
+
params: {
|
|
10153
|
+
assetId: string;
|
|
10154
|
+
ledgerAccountTypeId: string;
|
|
10155
|
+
};
|
|
10156
|
+
query: {};
|
|
10157
|
+
headers: {};
|
|
10158
|
+
response: {
|
|
10159
|
+
200: {
|
|
10160
|
+
id: string;
|
|
10161
|
+
createdAt: Date;
|
|
10162
|
+
updatedAt: Date;
|
|
10163
|
+
userId: string;
|
|
10164
|
+
status: "active" | "frozen" | "disabled";
|
|
10165
|
+
asset: {
|
|
10166
|
+
symbol: string;
|
|
10167
|
+
id: string;
|
|
10168
|
+
name: string;
|
|
10169
|
+
code: string;
|
|
10170
|
+
iconUrl: string;
|
|
10171
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
10172
|
+
isActive: boolean;
|
|
10173
|
+
precision: number;
|
|
10174
|
+
};
|
|
10175
|
+
assetId: string;
|
|
10176
|
+
ledgerAccountTypeId: string;
|
|
10177
|
+
available: string;
|
|
10178
|
+
locked: string;
|
|
10179
|
+
version: number;
|
|
10180
|
+
ledgerAccountType: {
|
|
10181
|
+
id: string;
|
|
10182
|
+
name: string;
|
|
10183
|
+
description: string | null;
|
|
10184
|
+
key: string;
|
|
10185
|
+
isActive: boolean;
|
|
10186
|
+
};
|
|
10187
|
+
};
|
|
10188
|
+
422: {
|
|
10189
|
+
type: "validation";
|
|
10190
|
+
on: string;
|
|
10191
|
+
summary?: string;
|
|
10192
|
+
message?: string;
|
|
10193
|
+
found?: unknown;
|
|
10194
|
+
property?: string;
|
|
10195
|
+
expected?: string;
|
|
10196
|
+
};
|
|
10197
|
+
401: "Unauthorized";
|
|
10198
|
+
};
|
|
10199
|
+
};
|
|
10200
|
+
};
|
|
10201
|
+
};
|
|
10202
|
+
};
|
|
10203
|
+
};
|
|
10204
|
+
};
|
|
10205
|
+
} & {
|
|
10206
|
+
ledger_accounts: {
|
|
10207
|
+
":id": {
|
|
10208
|
+
get: {
|
|
10209
|
+
body: {};
|
|
10210
|
+
params: {
|
|
10211
|
+
id: string;
|
|
10212
|
+
};
|
|
10213
|
+
query: {};
|
|
10214
|
+
headers: {};
|
|
10215
|
+
response: {
|
|
10216
|
+
200: {
|
|
10217
|
+
id: string;
|
|
10218
|
+
createdAt: Date;
|
|
10219
|
+
updatedAt: Date;
|
|
10220
|
+
userId: string;
|
|
10221
|
+
status: "active" | "frozen" | "disabled";
|
|
10222
|
+
asset: {
|
|
10223
|
+
symbol: string;
|
|
10224
|
+
id: string;
|
|
10225
|
+
name: string;
|
|
10226
|
+
code: string;
|
|
10227
|
+
iconUrl: string;
|
|
10228
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
10229
|
+
isActive: boolean;
|
|
10230
|
+
precision: number;
|
|
10231
|
+
};
|
|
10232
|
+
assetId: string;
|
|
10233
|
+
ledgerAccountTypeId: string;
|
|
10234
|
+
available: string;
|
|
10235
|
+
locked: string;
|
|
10236
|
+
version: number;
|
|
10237
|
+
ledgerAccountType: {
|
|
10238
|
+
id: string;
|
|
10239
|
+
name: string;
|
|
10240
|
+
description: string | null;
|
|
10241
|
+
key: string;
|
|
10242
|
+
isActive: boolean;
|
|
10243
|
+
};
|
|
10244
|
+
};
|
|
10245
|
+
422: {
|
|
10246
|
+
type: "validation";
|
|
10247
|
+
on: string;
|
|
10248
|
+
summary?: string;
|
|
10249
|
+
message?: string;
|
|
10250
|
+
found?: unknown;
|
|
10251
|
+
property?: string;
|
|
10252
|
+
expected?: string;
|
|
10253
|
+
};
|
|
10254
|
+
401: "Unauthorized";
|
|
10255
|
+
};
|
|
10256
|
+
};
|
|
10257
|
+
};
|
|
10258
|
+
};
|
|
10259
|
+
};
|
|
10179
10260
|
} & {
|
|
10180
10261
|
api: {
|
|
10181
10262
|
bank_account: {};
|