@r2wa-org/eden 0.0.63 → 0.0.65
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 +99 -99
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +54 -54
- package/dist/src/asset-convert-product/admin/router.d.ts +91 -91
- package/dist/src/asset-convert-product/admin/service.d.ts +157 -109
- package/dist/src/asset-convert-product/internal/service.d.ts +1 -66
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +244 -447
- package/dist/src/asset-convert-product/user/router.d.ts +86 -0
- package/dist/src/asset-convert-product/user/service.d.ts +245 -2
- package/dist/src/asset-price/admin/dto.schemas.d.ts +4 -4
- package/dist/src/asset-price/admin/router.d.ts +8 -8
- package/dist/src/index.d.ts +185 -99
- package/dist/src/ledger-account/user/dto.schemas.d.ts +5 -0
- package/dist/src/ledger-account/user/router.d.ts +61 -0
- package/dist/src/ledger-account/user/service.d.ts +51 -1
- package/dist/src/wallet/admin/dto.schemas.d.ts +18 -18
- package/package.json +2 -2
package/dist/src/index.d.ts
CHANGED
|
@@ -1108,7 +1108,7 @@ declare const app: Elysia<"/api", {
|
|
|
1108
1108
|
price: string;
|
|
1109
1109
|
source: string;
|
|
1110
1110
|
effectiveAt: Date;
|
|
1111
|
-
|
|
1111
|
+
baseAssetInfo: {
|
|
1112
1112
|
symbol: string;
|
|
1113
1113
|
id: string;
|
|
1114
1114
|
name: string;
|
|
@@ -1117,7 +1117,7 @@ declare const app: Elysia<"/api", {
|
|
|
1117
1117
|
isActive: boolean;
|
|
1118
1118
|
precision: number;
|
|
1119
1119
|
};
|
|
1120
|
-
|
|
1120
|
+
quoteAssetInfo: {
|
|
1121
1121
|
symbol: string;
|
|
1122
1122
|
id: string;
|
|
1123
1123
|
name: string;
|
|
@@ -1174,7 +1174,7 @@ declare const app: Elysia<"/api", {
|
|
|
1174
1174
|
price: string;
|
|
1175
1175
|
source: string;
|
|
1176
1176
|
effectiveAt: Date;
|
|
1177
|
-
|
|
1177
|
+
baseAssetInfo: {
|
|
1178
1178
|
symbol: string;
|
|
1179
1179
|
id: string;
|
|
1180
1180
|
name: string;
|
|
@@ -1183,7 +1183,7 @@ declare const app: Elysia<"/api", {
|
|
|
1183
1183
|
isActive: boolean;
|
|
1184
1184
|
precision: number;
|
|
1185
1185
|
};
|
|
1186
|
-
|
|
1186
|
+
quoteAssetInfo: {
|
|
1187
1187
|
symbol: string;
|
|
1188
1188
|
id: string;
|
|
1189
1189
|
name: string;
|
|
@@ -1232,7 +1232,7 @@ declare const app: Elysia<"/api", {
|
|
|
1232
1232
|
price: string;
|
|
1233
1233
|
source: string;
|
|
1234
1234
|
effectiveAt: Date;
|
|
1235
|
-
|
|
1235
|
+
baseAssetInfo: {
|
|
1236
1236
|
symbol: string;
|
|
1237
1237
|
id: string;
|
|
1238
1238
|
name: string;
|
|
@@ -1241,7 +1241,7 @@ declare const app: Elysia<"/api", {
|
|
|
1241
1241
|
isActive: boolean;
|
|
1242
1242
|
precision: number;
|
|
1243
1243
|
};
|
|
1244
|
-
|
|
1244
|
+
quoteAssetInfo: {
|
|
1245
1245
|
symbol: string;
|
|
1246
1246
|
id: string;
|
|
1247
1247
|
name: string;
|
|
@@ -1291,7 +1291,7 @@ declare const app: Elysia<"/api", {
|
|
|
1291
1291
|
price: string;
|
|
1292
1292
|
source: string;
|
|
1293
1293
|
effectiveAt: Date;
|
|
1294
|
-
|
|
1294
|
+
baseAssetInfo: {
|
|
1295
1295
|
symbol: string;
|
|
1296
1296
|
id: string;
|
|
1297
1297
|
name: string;
|
|
@@ -1300,7 +1300,7 @@ declare const app: Elysia<"/api", {
|
|
|
1300
1300
|
isActive: boolean;
|
|
1301
1301
|
precision: number;
|
|
1302
1302
|
};
|
|
1303
|
-
|
|
1303
|
+
quoteAssetInfo: {
|
|
1304
1304
|
symbol: string;
|
|
1305
1305
|
id: string;
|
|
1306
1306
|
name: string;
|
|
@@ -1677,7 +1677,7 @@ declare const app: Elysia<"/api", {
|
|
|
1677
1677
|
receiveAccountTypeId: string;
|
|
1678
1678
|
minPayAmount: string;
|
|
1679
1679
|
settlementMode: "available" | "locked";
|
|
1680
|
-
|
|
1680
|
+
targetAsset: {
|
|
1681
1681
|
symbol: string;
|
|
1682
1682
|
id: string;
|
|
1683
1683
|
name: string;
|
|
@@ -1685,7 +1685,7 @@ declare const app: Elysia<"/api", {
|
|
|
1685
1685
|
isActive: boolean;
|
|
1686
1686
|
precision: number;
|
|
1687
1687
|
};
|
|
1688
|
-
|
|
1688
|
+
payAsset: {
|
|
1689
1689
|
symbol: string;
|
|
1690
1690
|
id: string;
|
|
1691
1691
|
name: string;
|
|
@@ -1693,13 +1693,13 @@ declare const app: Elysia<"/api", {
|
|
|
1693
1693
|
isActive: boolean;
|
|
1694
1694
|
precision: number;
|
|
1695
1695
|
};
|
|
1696
|
-
|
|
1696
|
+
payAccountType: {
|
|
1697
1697
|
id: string;
|
|
1698
1698
|
name: string;
|
|
1699
1699
|
key: string;
|
|
1700
1700
|
isActive: boolean;
|
|
1701
1701
|
};
|
|
1702
|
-
|
|
1702
|
+
receiveAccountType: {
|
|
1703
1703
|
id: string;
|
|
1704
1704
|
name: string;
|
|
1705
1705
|
key: string;
|
|
@@ -1758,7 +1758,7 @@ declare const app: Elysia<"/api", {
|
|
|
1758
1758
|
receiveAccountTypeId: string;
|
|
1759
1759
|
minPayAmount: string;
|
|
1760
1760
|
settlementMode: "available" | "locked";
|
|
1761
|
-
|
|
1761
|
+
targetAsset: {
|
|
1762
1762
|
symbol: string;
|
|
1763
1763
|
id: string;
|
|
1764
1764
|
name: string;
|
|
@@ -1766,7 +1766,7 @@ declare const app: Elysia<"/api", {
|
|
|
1766
1766
|
isActive: boolean;
|
|
1767
1767
|
precision: number;
|
|
1768
1768
|
};
|
|
1769
|
-
|
|
1769
|
+
payAsset: {
|
|
1770
1770
|
symbol: string;
|
|
1771
1771
|
id: string;
|
|
1772
1772
|
name: string;
|
|
@@ -1774,13 +1774,13 @@ declare const app: Elysia<"/api", {
|
|
|
1774
1774
|
isActive: boolean;
|
|
1775
1775
|
precision: number;
|
|
1776
1776
|
};
|
|
1777
|
-
|
|
1777
|
+
payAccountType: {
|
|
1778
1778
|
id: string;
|
|
1779
1779
|
name: string;
|
|
1780
1780
|
key: string;
|
|
1781
1781
|
isActive: boolean;
|
|
1782
1782
|
};
|
|
1783
|
-
|
|
1783
|
+
receiveAccountType: {
|
|
1784
1784
|
id: string;
|
|
1785
1785
|
name: string;
|
|
1786
1786
|
key: string;
|
|
@@ -1830,7 +1830,7 @@ declare const app: Elysia<"/api", {
|
|
|
1830
1830
|
receiveAccountTypeId: string;
|
|
1831
1831
|
minPayAmount: string;
|
|
1832
1832
|
settlementMode: "available" | "locked";
|
|
1833
|
-
|
|
1833
|
+
targetAsset: {
|
|
1834
1834
|
symbol: string;
|
|
1835
1835
|
id: string;
|
|
1836
1836
|
name: string;
|
|
@@ -1838,7 +1838,7 @@ declare const app: Elysia<"/api", {
|
|
|
1838
1838
|
isActive: boolean;
|
|
1839
1839
|
precision: number;
|
|
1840
1840
|
};
|
|
1841
|
-
|
|
1841
|
+
payAsset: {
|
|
1842
1842
|
symbol: string;
|
|
1843
1843
|
id: string;
|
|
1844
1844
|
name: string;
|
|
@@ -1846,13 +1846,13 @@ declare const app: Elysia<"/api", {
|
|
|
1846
1846
|
isActive: boolean;
|
|
1847
1847
|
precision: number;
|
|
1848
1848
|
};
|
|
1849
|
-
|
|
1849
|
+
payAccountType: {
|
|
1850
1850
|
id: string;
|
|
1851
1851
|
name: string;
|
|
1852
1852
|
key: string;
|
|
1853
1853
|
isActive: boolean;
|
|
1854
1854
|
};
|
|
1855
|
-
|
|
1855
|
+
receiveAccountType: {
|
|
1856
1856
|
id: string;
|
|
1857
1857
|
name: string;
|
|
1858
1858
|
key: string;
|
|
@@ -1903,7 +1903,7 @@ declare const app: Elysia<"/api", {
|
|
|
1903
1903
|
receiveAccountTypeId: string;
|
|
1904
1904
|
minPayAmount: string;
|
|
1905
1905
|
settlementMode: "available" | "locked";
|
|
1906
|
-
|
|
1906
|
+
targetAsset: {
|
|
1907
1907
|
symbol: string;
|
|
1908
1908
|
id: string;
|
|
1909
1909
|
name: string;
|
|
@@ -1911,7 +1911,7 @@ declare const app: Elysia<"/api", {
|
|
|
1911
1911
|
isActive: boolean;
|
|
1912
1912
|
precision: number;
|
|
1913
1913
|
};
|
|
1914
|
-
|
|
1914
|
+
payAsset: {
|
|
1915
1915
|
symbol: string;
|
|
1916
1916
|
id: string;
|
|
1917
1917
|
name: string;
|
|
@@ -1919,13 +1919,13 @@ declare const app: Elysia<"/api", {
|
|
|
1919
1919
|
isActive: boolean;
|
|
1920
1920
|
precision: number;
|
|
1921
1921
|
};
|
|
1922
|
-
|
|
1922
|
+
payAccountType: {
|
|
1923
1923
|
id: string;
|
|
1924
1924
|
name: string;
|
|
1925
1925
|
key: string;
|
|
1926
1926
|
isActive: boolean;
|
|
1927
1927
|
};
|
|
1928
|
-
|
|
1928
|
+
receiveAccountType: {
|
|
1929
1929
|
id: string;
|
|
1930
1930
|
name: string;
|
|
1931
1931
|
key: string;
|
|
@@ -1976,7 +1976,7 @@ declare const app: Elysia<"/api", {
|
|
|
1976
1976
|
receiveAccountTypeId: string;
|
|
1977
1977
|
minPayAmount: string;
|
|
1978
1978
|
settlementMode: "available" | "locked";
|
|
1979
|
-
|
|
1979
|
+
targetAsset: {
|
|
1980
1980
|
symbol: string;
|
|
1981
1981
|
id: string;
|
|
1982
1982
|
name: string;
|
|
@@ -1984,7 +1984,7 @@ declare const app: Elysia<"/api", {
|
|
|
1984
1984
|
isActive: boolean;
|
|
1985
1985
|
precision: number;
|
|
1986
1986
|
};
|
|
1987
|
-
|
|
1987
|
+
payAsset: {
|
|
1988
1988
|
symbol: string;
|
|
1989
1989
|
id: string;
|
|
1990
1990
|
name: string;
|
|
@@ -1992,13 +1992,13 @@ declare const app: Elysia<"/api", {
|
|
|
1992
1992
|
isActive: boolean;
|
|
1993
1993
|
precision: number;
|
|
1994
1994
|
};
|
|
1995
|
-
|
|
1995
|
+
payAccountType: {
|
|
1996
1996
|
id: string;
|
|
1997
1997
|
name: string;
|
|
1998
1998
|
key: string;
|
|
1999
1999
|
isActive: boolean;
|
|
2000
2000
|
};
|
|
2001
|
-
|
|
2001
|
+
receiveAccountType: {
|
|
2002
2002
|
id: string;
|
|
2003
2003
|
name: string;
|
|
2004
2004
|
key: string;
|
|
@@ -2048,7 +2048,7 @@ declare const app: Elysia<"/api", {
|
|
|
2048
2048
|
receiveAccountTypeId: string;
|
|
2049
2049
|
minPayAmount: string;
|
|
2050
2050
|
settlementMode: "available" | "locked";
|
|
2051
|
-
|
|
2051
|
+
targetAsset: {
|
|
2052
2052
|
symbol: string;
|
|
2053
2053
|
id: string;
|
|
2054
2054
|
name: string;
|
|
@@ -2056,7 +2056,7 @@ declare const app: Elysia<"/api", {
|
|
|
2056
2056
|
isActive: boolean;
|
|
2057
2057
|
precision: number;
|
|
2058
2058
|
};
|
|
2059
|
-
|
|
2059
|
+
payAsset: {
|
|
2060
2060
|
symbol: string;
|
|
2061
2061
|
id: string;
|
|
2062
2062
|
name: string;
|
|
@@ -2064,13 +2064,13 @@ declare const app: Elysia<"/api", {
|
|
|
2064
2064
|
isActive: boolean;
|
|
2065
2065
|
precision: number;
|
|
2066
2066
|
};
|
|
2067
|
-
|
|
2067
|
+
payAccountType: {
|
|
2068
2068
|
id: string;
|
|
2069
2069
|
name: string;
|
|
2070
2070
|
key: string;
|
|
2071
2071
|
isActive: boolean;
|
|
2072
2072
|
};
|
|
2073
|
-
|
|
2073
|
+
receiveAccountType: {
|
|
2074
2074
|
id: string;
|
|
2075
2075
|
name: string;
|
|
2076
2076
|
key: string;
|
|
@@ -2135,7 +2135,7 @@ declare const app: Elysia<"/api", {
|
|
|
2135
2135
|
receiveAccountTypeId: string;
|
|
2136
2136
|
minPayAmount: string;
|
|
2137
2137
|
settlementMode: "available" | "locked";
|
|
2138
|
-
|
|
2138
|
+
targetAsset: {
|
|
2139
2139
|
symbol: string;
|
|
2140
2140
|
id: string;
|
|
2141
2141
|
name: string;
|
|
@@ -2143,7 +2143,7 @@ declare const app: Elysia<"/api", {
|
|
|
2143
2143
|
isActive: boolean;
|
|
2144
2144
|
precision: number;
|
|
2145
2145
|
};
|
|
2146
|
-
|
|
2146
|
+
payAsset: {
|
|
2147
2147
|
symbol: string;
|
|
2148
2148
|
id: string;
|
|
2149
2149
|
name: string;
|
|
@@ -2151,13 +2151,13 @@ declare const app: Elysia<"/api", {
|
|
|
2151
2151
|
isActive: boolean;
|
|
2152
2152
|
precision: number;
|
|
2153
2153
|
};
|
|
2154
|
-
|
|
2154
|
+
payAccountType: {
|
|
2155
2155
|
id: string;
|
|
2156
2156
|
name: string;
|
|
2157
2157
|
key: string;
|
|
2158
2158
|
isActive: boolean;
|
|
2159
2159
|
};
|
|
2160
|
-
|
|
2160
|
+
receiveAccountType: {
|
|
2161
2161
|
id: string;
|
|
2162
2162
|
name: string;
|
|
2163
2163
|
key: string;
|
|
@@ -2213,18 +2213,26 @@ declare const app: Elysia<"/api", {
|
|
|
2213
2213
|
response: {
|
|
2214
2214
|
200: {
|
|
2215
2215
|
data: {
|
|
2216
|
-
|
|
2216
|
+
debitLedgerEntry?: {
|
|
2217
2217
|
id: string;
|
|
2218
2218
|
createdAt: Date;
|
|
2219
2219
|
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";
|
|
2220
2220
|
amount: string;
|
|
2221
2221
|
} | undefined;
|
|
2222
|
-
|
|
2222
|
+
creditLedgerEntry?: {
|
|
2223
2223
|
id: string;
|
|
2224
2224
|
createdAt: Date;
|
|
2225
2225
|
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";
|
|
2226
2226
|
amount: string;
|
|
2227
2227
|
} | undefined;
|
|
2228
|
+
user: {
|
|
2229
|
+
email: string;
|
|
2230
|
+
id: string;
|
|
2231
|
+
username: string | null;
|
|
2232
|
+
displayUsername: string | null;
|
|
2233
|
+
phoneNumber: string | null;
|
|
2234
|
+
banned: boolean | null;
|
|
2235
|
+
};
|
|
2228
2236
|
id: string;
|
|
2229
2237
|
createdAt: Date;
|
|
2230
2238
|
updatedAt: Date;
|
|
@@ -2247,7 +2255,13 @@ declare const app: Elysia<"/api", {
|
|
|
2247
2255
|
creditLedgerEntryId: string | null;
|
|
2248
2256
|
failureCode: string | null;
|
|
2249
2257
|
failureReason: string | null;
|
|
2250
|
-
|
|
2258
|
+
product: {
|
|
2259
|
+
id: string;
|
|
2260
|
+
name: string;
|
|
2261
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
2262
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2263
|
+
};
|
|
2264
|
+
payAssetSnapshot: {
|
|
2251
2265
|
symbol: string;
|
|
2252
2266
|
id: string;
|
|
2253
2267
|
name: string;
|
|
@@ -2255,7 +2269,7 @@ declare const app: Elysia<"/api", {
|
|
|
2255
2269
|
isActive: boolean;
|
|
2256
2270
|
precision: number;
|
|
2257
2271
|
};
|
|
2258
|
-
|
|
2272
|
+
targetAssetSnapshot: {
|
|
2259
2273
|
symbol: string;
|
|
2260
2274
|
id: string;
|
|
2261
2275
|
name: string;
|
|
@@ -2263,21 +2277,7 @@ declare const app: Elysia<"/api", {
|
|
|
2263
2277
|
isActive: boolean;
|
|
2264
2278
|
precision: number;
|
|
2265
2279
|
};
|
|
2266
|
-
|
|
2267
|
-
email: string;
|
|
2268
|
-
id: string;
|
|
2269
|
-
username: string | null;
|
|
2270
|
-
displayUsername: string | null;
|
|
2271
|
-
phoneNumber: string | null;
|
|
2272
|
-
banned: boolean | null;
|
|
2273
|
-
};
|
|
2274
|
-
productInfo: {
|
|
2275
|
-
id: string;
|
|
2276
|
-
name: string;
|
|
2277
|
-
status: "active" | "draft" | "paused" | "ended";
|
|
2278
|
-
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2279
|
-
};
|
|
2280
|
-
quoteAssetInfo: {
|
|
2280
|
+
quoteAssetSnapshot: {
|
|
2281
2281
|
symbol: string;
|
|
2282
2282
|
id: string;
|
|
2283
2283
|
name: string;
|
|
@@ -2285,13 +2285,13 @@ declare const app: Elysia<"/api", {
|
|
|
2285
2285
|
isActive: boolean;
|
|
2286
2286
|
precision: number;
|
|
2287
2287
|
};
|
|
2288
|
-
|
|
2288
|
+
sourcePayAccount: {
|
|
2289
2289
|
id: string;
|
|
2290
2290
|
status: "active" | "frozen" | "disabled";
|
|
2291
2291
|
assetId: string;
|
|
2292
2292
|
ledgerAccountTypeId: string;
|
|
2293
2293
|
};
|
|
2294
|
-
|
|
2294
|
+
receiveAccount: {
|
|
2295
2295
|
id: string;
|
|
2296
2296
|
status: "active" | "frozen" | "disabled";
|
|
2297
2297
|
assetId: string;
|
|
@@ -2334,18 +2334,26 @@ declare const app: Elysia<"/api", {
|
|
|
2334
2334
|
headers: {};
|
|
2335
2335
|
response: {
|
|
2336
2336
|
200: {
|
|
2337
|
-
|
|
2337
|
+
debitLedgerEntry?: {
|
|
2338
2338
|
id: string;
|
|
2339
2339
|
createdAt: Date;
|
|
2340
2340
|
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";
|
|
2341
2341
|
amount: string;
|
|
2342
2342
|
} | undefined;
|
|
2343
|
-
|
|
2343
|
+
creditLedgerEntry?: {
|
|
2344
2344
|
id: string;
|
|
2345
2345
|
createdAt: Date;
|
|
2346
2346
|
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";
|
|
2347
2347
|
amount: string;
|
|
2348
2348
|
} | undefined;
|
|
2349
|
+
user: {
|
|
2350
|
+
email: string;
|
|
2351
|
+
id: string;
|
|
2352
|
+
username: string | null;
|
|
2353
|
+
displayUsername: string | null;
|
|
2354
|
+
phoneNumber: string | null;
|
|
2355
|
+
banned: boolean | null;
|
|
2356
|
+
};
|
|
2349
2357
|
id: string;
|
|
2350
2358
|
createdAt: Date;
|
|
2351
2359
|
updatedAt: Date;
|
|
@@ -2368,7 +2376,13 @@ declare const app: Elysia<"/api", {
|
|
|
2368
2376
|
creditLedgerEntryId: string | null;
|
|
2369
2377
|
failureCode: string | null;
|
|
2370
2378
|
failureReason: string | null;
|
|
2371
|
-
|
|
2379
|
+
product: {
|
|
2380
|
+
id: string;
|
|
2381
|
+
name: string;
|
|
2382
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
2383
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2384
|
+
};
|
|
2385
|
+
payAssetSnapshot: {
|
|
2372
2386
|
symbol: string;
|
|
2373
2387
|
id: string;
|
|
2374
2388
|
name: string;
|
|
@@ -2376,7 +2390,7 @@ declare const app: Elysia<"/api", {
|
|
|
2376
2390
|
isActive: boolean;
|
|
2377
2391
|
precision: number;
|
|
2378
2392
|
};
|
|
2379
|
-
|
|
2393
|
+
targetAssetSnapshot: {
|
|
2380
2394
|
symbol: string;
|
|
2381
2395
|
id: string;
|
|
2382
2396
|
name: string;
|
|
@@ -2384,21 +2398,7 @@ declare const app: Elysia<"/api", {
|
|
|
2384
2398
|
isActive: boolean;
|
|
2385
2399
|
precision: number;
|
|
2386
2400
|
};
|
|
2387
|
-
|
|
2388
|
-
email: string;
|
|
2389
|
-
id: string;
|
|
2390
|
-
username: string | null;
|
|
2391
|
-
displayUsername: string | null;
|
|
2392
|
-
phoneNumber: string | null;
|
|
2393
|
-
banned: boolean | null;
|
|
2394
|
-
};
|
|
2395
|
-
productInfo: {
|
|
2396
|
-
id: string;
|
|
2397
|
-
name: string;
|
|
2398
|
-
status: "active" | "draft" | "paused" | "ended";
|
|
2399
|
-
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2400
|
-
};
|
|
2401
|
-
quoteAssetInfo: {
|
|
2401
|
+
quoteAssetSnapshot: {
|
|
2402
2402
|
symbol: string;
|
|
2403
2403
|
id: string;
|
|
2404
2404
|
name: string;
|
|
@@ -2406,13 +2406,13 @@ declare const app: Elysia<"/api", {
|
|
|
2406
2406
|
isActive: boolean;
|
|
2407
2407
|
precision: number;
|
|
2408
2408
|
};
|
|
2409
|
-
|
|
2409
|
+
sourcePayAccount: {
|
|
2410
2410
|
id: string;
|
|
2411
2411
|
status: "active" | "frozen" | "disabled";
|
|
2412
2412
|
assetId: string;
|
|
2413
2413
|
ledgerAccountTypeId: string;
|
|
2414
2414
|
};
|
|
2415
|
-
|
|
2415
|
+
receiveAccount: {
|
|
2416
2416
|
id: string;
|
|
2417
2417
|
status: "active" | "frozen" | "disabled";
|
|
2418
2418
|
assetId: string;
|
|
@@ -2449,18 +2449,26 @@ declare const app: Elysia<"/api", {
|
|
|
2449
2449
|
headers: {};
|
|
2450
2450
|
response: {
|
|
2451
2451
|
200: {
|
|
2452
|
-
|
|
2452
|
+
debitLedgerEntry?: {
|
|
2453
2453
|
id: string;
|
|
2454
2454
|
createdAt: Date;
|
|
2455
2455
|
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";
|
|
2456
2456
|
amount: string;
|
|
2457
2457
|
} | undefined;
|
|
2458
|
-
|
|
2458
|
+
creditLedgerEntry?: {
|
|
2459
2459
|
id: string;
|
|
2460
2460
|
createdAt: Date;
|
|
2461
2461
|
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";
|
|
2462
2462
|
amount: string;
|
|
2463
2463
|
} | undefined;
|
|
2464
|
+
user: {
|
|
2465
|
+
email: string;
|
|
2466
|
+
id: string;
|
|
2467
|
+
username: string | null;
|
|
2468
|
+
displayUsername: string | null;
|
|
2469
|
+
phoneNumber: string | null;
|
|
2470
|
+
banned: boolean | null;
|
|
2471
|
+
};
|
|
2464
2472
|
id: string;
|
|
2465
2473
|
createdAt: Date;
|
|
2466
2474
|
updatedAt: Date;
|
|
@@ -2483,7 +2491,13 @@ declare const app: Elysia<"/api", {
|
|
|
2483
2491
|
creditLedgerEntryId: string | null;
|
|
2484
2492
|
failureCode: string | null;
|
|
2485
2493
|
failureReason: string | null;
|
|
2486
|
-
|
|
2494
|
+
product: {
|
|
2495
|
+
id: string;
|
|
2496
|
+
name: string;
|
|
2497
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
2498
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2499
|
+
};
|
|
2500
|
+
payAssetSnapshot: {
|
|
2487
2501
|
symbol: string;
|
|
2488
2502
|
id: string;
|
|
2489
2503
|
name: string;
|
|
@@ -2491,7 +2505,7 @@ declare const app: Elysia<"/api", {
|
|
|
2491
2505
|
isActive: boolean;
|
|
2492
2506
|
precision: number;
|
|
2493
2507
|
};
|
|
2494
|
-
|
|
2508
|
+
targetAssetSnapshot: {
|
|
2495
2509
|
symbol: string;
|
|
2496
2510
|
id: string;
|
|
2497
2511
|
name: string;
|
|
@@ -2499,21 +2513,7 @@ declare const app: Elysia<"/api", {
|
|
|
2499
2513
|
isActive: boolean;
|
|
2500
2514
|
precision: number;
|
|
2501
2515
|
};
|
|
2502
|
-
|
|
2503
|
-
email: string;
|
|
2504
|
-
id: string;
|
|
2505
|
-
username: string | null;
|
|
2506
|
-
displayUsername: string | null;
|
|
2507
|
-
phoneNumber: string | null;
|
|
2508
|
-
banned: boolean | null;
|
|
2509
|
-
};
|
|
2510
|
-
productInfo: {
|
|
2511
|
-
id: string;
|
|
2512
|
-
name: string;
|
|
2513
|
-
status: "active" | "draft" | "paused" | "ended";
|
|
2514
|
-
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
2515
|
-
};
|
|
2516
|
-
quoteAssetInfo: {
|
|
2516
|
+
quoteAssetSnapshot: {
|
|
2517
2517
|
symbol: string;
|
|
2518
2518
|
id: string;
|
|
2519
2519
|
name: string;
|
|
@@ -2521,13 +2521,13 @@ declare const app: Elysia<"/api", {
|
|
|
2521
2521
|
isActive: boolean;
|
|
2522
2522
|
precision: number;
|
|
2523
2523
|
};
|
|
2524
|
-
|
|
2524
|
+
sourcePayAccount: {
|
|
2525
2525
|
id: string;
|
|
2526
2526
|
status: "active" | "frozen" | "disabled";
|
|
2527
2527
|
assetId: string;
|
|
2528
2528
|
ledgerAccountTypeId: string;
|
|
2529
2529
|
};
|
|
2530
|
-
|
|
2530
|
+
receiveAccount: {
|
|
2531
2531
|
id: string;
|
|
2532
2532
|
status: "active" | "frozen" | "disabled";
|
|
2533
2533
|
assetId: string;
|
|
@@ -9371,6 +9371,17 @@ declare const app: Elysia<"/api", {
|
|
|
9371
9371
|
updatedAt: Date;
|
|
9372
9372
|
description: string | null;
|
|
9373
9373
|
status: "active" | "draft" | "paused" | "ended";
|
|
9374
|
+
price: {
|
|
9375
|
+
latest?: {
|
|
9376
|
+
id: string;
|
|
9377
|
+
baseAssetId: string;
|
|
9378
|
+
quoteAssetId: string;
|
|
9379
|
+
price: string;
|
|
9380
|
+
source: string;
|
|
9381
|
+
effectiveAt: Date;
|
|
9382
|
+
} | undefined;
|
|
9383
|
+
dailyChangeRate?: string | undefined;
|
|
9384
|
+
};
|
|
9374
9385
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
9375
9386
|
targetAssetId: string;
|
|
9376
9387
|
payAssetId: string;
|
|
@@ -9378,6 +9389,38 @@ declare const app: Elysia<"/api", {
|
|
|
9378
9389
|
receiveAccountTypeId: string;
|
|
9379
9390
|
minPayAmount: string;
|
|
9380
9391
|
settlementMode: "available" | "locked";
|
|
9392
|
+
targetAsset: {
|
|
9393
|
+
symbol: string;
|
|
9394
|
+
id: string;
|
|
9395
|
+
name: string;
|
|
9396
|
+
code: string;
|
|
9397
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
9398
|
+
isActive: boolean;
|
|
9399
|
+
precision: number;
|
|
9400
|
+
};
|
|
9401
|
+
payAsset: {
|
|
9402
|
+
symbol: string;
|
|
9403
|
+
id: string;
|
|
9404
|
+
name: string;
|
|
9405
|
+
code: string;
|
|
9406
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
9407
|
+
isActive: boolean;
|
|
9408
|
+
precision: number;
|
|
9409
|
+
};
|
|
9410
|
+
payAccountType: {
|
|
9411
|
+
id: string;
|
|
9412
|
+
name: string;
|
|
9413
|
+
description: string | null;
|
|
9414
|
+
key: string;
|
|
9415
|
+
isActive: boolean;
|
|
9416
|
+
};
|
|
9417
|
+
receiveAccountType: {
|
|
9418
|
+
id: string;
|
|
9419
|
+
name: string;
|
|
9420
|
+
description: string | null;
|
|
9421
|
+
key: string;
|
|
9422
|
+
isActive: boolean;
|
|
9423
|
+
};
|
|
9381
9424
|
}[];
|
|
9382
9425
|
pagination: {
|
|
9383
9426
|
total: number;
|
|
@@ -9420,6 +9463,17 @@ declare const app: Elysia<"/api", {
|
|
|
9420
9463
|
updatedAt: Date;
|
|
9421
9464
|
description: string | null;
|
|
9422
9465
|
status: "active" | "draft" | "paused" | "ended";
|
|
9466
|
+
price: {
|
|
9467
|
+
latest?: {
|
|
9468
|
+
id: string;
|
|
9469
|
+
baseAssetId: string;
|
|
9470
|
+
quoteAssetId: string;
|
|
9471
|
+
price: string;
|
|
9472
|
+
source: string;
|
|
9473
|
+
effectiveAt: Date;
|
|
9474
|
+
} | undefined;
|
|
9475
|
+
dailyChangeRate?: string | undefined;
|
|
9476
|
+
};
|
|
9423
9477
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
9424
9478
|
targetAssetId: string;
|
|
9425
9479
|
payAssetId: string;
|
|
@@ -9427,6 +9481,38 @@ declare const app: Elysia<"/api", {
|
|
|
9427
9481
|
receiveAccountTypeId: string;
|
|
9428
9482
|
minPayAmount: string;
|
|
9429
9483
|
settlementMode: "available" | "locked";
|
|
9484
|
+
targetAsset: {
|
|
9485
|
+
symbol: string;
|
|
9486
|
+
id: string;
|
|
9487
|
+
name: string;
|
|
9488
|
+
code: string;
|
|
9489
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
9490
|
+
isActive: boolean;
|
|
9491
|
+
precision: number;
|
|
9492
|
+
};
|
|
9493
|
+
payAsset: {
|
|
9494
|
+
symbol: string;
|
|
9495
|
+
id: string;
|
|
9496
|
+
name: string;
|
|
9497
|
+
code: string;
|
|
9498
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
9499
|
+
isActive: boolean;
|
|
9500
|
+
precision: number;
|
|
9501
|
+
};
|
|
9502
|
+
payAccountType: {
|
|
9503
|
+
id: string;
|
|
9504
|
+
name: string;
|
|
9505
|
+
description: string | null;
|
|
9506
|
+
key: string;
|
|
9507
|
+
isActive: boolean;
|
|
9508
|
+
};
|
|
9509
|
+
receiveAccountType: {
|
|
9510
|
+
id: string;
|
|
9511
|
+
name: string;
|
|
9512
|
+
description: string | null;
|
|
9513
|
+
key: string;
|
|
9514
|
+
isActive: boolean;
|
|
9515
|
+
};
|
|
9430
9516
|
};
|
|
9431
9517
|
422: {
|
|
9432
9518
|
type: "validation";
|