@r2wa-org/eden 0.0.57 → 0.0.59

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.
@@ -8834,6 +8834,243 @@ declare const app: Elysia<"/api", {
8834
8834
  };
8835
8835
  };
8836
8836
  };
8837
+ } & {
8838
+ api: {
8839
+ portfolio: {};
8840
+ } & {
8841
+ portfolio: {
8842
+ overview: {
8843
+ get: {
8844
+ body: {};
8845
+ params: {};
8846
+ query: {
8847
+ quoteAsset?: string | undefined;
8848
+ };
8849
+ headers: {};
8850
+ response: {
8851
+ 200: {
8852
+ quoteAsset: string;
8853
+ overview: {
8854
+ totalValuation: string;
8855
+ };
8856
+ walletView: {
8857
+ id: string;
8858
+ name: string;
8859
+ isActive: boolean;
8860
+ walletTypeId: string;
8861
+ isPrimary: boolean;
8862
+ }[];
8863
+ accountTypeView: {
8864
+ id: string;
8865
+ name: string;
8866
+ key: string;
8867
+ accountCount: number;
8868
+ totalValuation: string;
8869
+ }[];
8870
+ assetView: {
8871
+ id: string;
8872
+ name: string;
8873
+ code: string;
8874
+ iconUrl: string;
8875
+ totalValuation: string;
8876
+ quantity: string;
8877
+ }[];
8878
+ };
8879
+ 422: {
8880
+ type: "validation";
8881
+ on: string;
8882
+ summary?: string;
8883
+ message?: string;
8884
+ found?: unknown;
8885
+ property?: string;
8886
+ expected?: string;
8887
+ };
8888
+ 401: "Unauthorized";
8889
+ };
8890
+ };
8891
+ };
8892
+ };
8893
+ } & {
8894
+ portfolio: {
8895
+ "account-types": {
8896
+ ":accountTypeKey": {
8897
+ overview: {
8898
+ get: {
8899
+ body: {};
8900
+ params: {
8901
+ accountTypeKey: string;
8902
+ };
8903
+ query: {
8904
+ quoteAsset?: string | undefined;
8905
+ };
8906
+ headers: {};
8907
+ response: {
8908
+ 200: {
8909
+ accounts: {
8910
+ id: string;
8911
+ userId: string;
8912
+ status: "active" | "frozen" | "disabled";
8913
+ asset: {
8914
+ id: string;
8915
+ name: string;
8916
+ code: string;
8917
+ iconUrl: string;
8918
+ };
8919
+ assetId: string;
8920
+ ledgerAccountTypeId: string;
8921
+ available: string;
8922
+ locked: string;
8923
+ totalValuation: string;
8924
+ quantity: string;
8925
+ accountType: {
8926
+ id: string;
8927
+ name: string;
8928
+ key: string;
8929
+ };
8930
+ }[];
8931
+ quoteAsset: string;
8932
+ overview: {
8933
+ totalValuation: string;
8934
+ };
8935
+ accountType: {
8936
+ id: string;
8937
+ name: string;
8938
+ key: string;
8939
+ };
8940
+ };
8941
+ 422: {
8942
+ type: "validation";
8943
+ on: string;
8944
+ summary?: string;
8945
+ message?: string;
8946
+ found?: unknown;
8947
+ property?: string;
8948
+ expected?: string;
8949
+ };
8950
+ 401: "Unauthorized";
8951
+ };
8952
+ };
8953
+ };
8954
+ };
8955
+ };
8956
+ };
8957
+ } & {
8958
+ portfolio: {
8959
+ assets: {
8960
+ ":assetId": {
8961
+ overview: {
8962
+ get: {
8963
+ body: {};
8964
+ params: {
8965
+ assetId: string;
8966
+ };
8967
+ query: {
8968
+ quoteAsset?: string | undefined;
8969
+ accountTypeKey?: string | undefined;
8970
+ days?: number | undefined;
8971
+ };
8972
+ headers: {};
8973
+ response: {
8974
+ 200: {
8975
+ asset: {
8976
+ symbol: string;
8977
+ id: string;
8978
+ name: string;
8979
+ code: string;
8980
+ iconUrl: string;
8981
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
8982
+ isActive: boolean;
8983
+ precision: number;
8984
+ };
8985
+ quoteAsset: string;
8986
+ totalValuation: string;
8987
+ quantity: string;
8988
+ curve: {
8989
+ at: Date;
8990
+ value: string;
8991
+ }[];
8992
+ accountDistribution: {
8993
+ ledgerAccountTypeId: string;
8994
+ ledgerAccountId: string;
8995
+ quantity: string;
8996
+ ledgerAccountTypeKey: string;
8997
+ ledgerAccountTypeName: string;
8998
+ valuation: string;
8999
+ proportion: string;
9000
+ }[];
9001
+ };
9002
+ 422: {
9003
+ type: "validation";
9004
+ on: string;
9005
+ summary?: string;
9006
+ message?: string;
9007
+ found?: unknown;
9008
+ property?: string;
9009
+ expected?: string;
9010
+ };
9011
+ 401: "Unauthorized";
9012
+ };
9013
+ };
9014
+ };
9015
+ };
9016
+ };
9017
+ };
9018
+ } & {
9019
+ portfolio: {
9020
+ accounts: {
9021
+ ":id": {
9022
+ overview: {
9023
+ get: {
9024
+ body: {};
9025
+ params: {
9026
+ id: string;
9027
+ };
9028
+ query: {
9029
+ quoteAsset?: string | undefined;
9030
+ };
9031
+ headers: {};
9032
+ response: {
9033
+ 200: {
9034
+ quoteAsset: string;
9035
+ ledgerAccountType: {
9036
+ id: string;
9037
+ name: string;
9038
+ description: string | null;
9039
+ key: string;
9040
+ };
9041
+ ledgerAccount: {
9042
+ id: string;
9043
+ createdAt: Date;
9044
+ updatedAt: Date;
9045
+ userId: string;
9046
+ status: "active" | "frozen" | "disabled";
9047
+ assetId: string;
9048
+ ledgerAccountTypeId: string;
9049
+ available: string;
9050
+ locked: string;
9051
+ version: number;
9052
+ };
9053
+ overview: {
9054
+ totalValuation: string;
9055
+ };
9056
+ };
9057
+ 422: {
9058
+ type: "validation";
9059
+ on: string;
9060
+ summary?: string;
9061
+ message?: string;
9062
+ found?: unknown;
9063
+ property?: string;
9064
+ expected?: string;
9065
+ };
9066
+ 401: "Unauthorized";
9067
+ };
9068
+ };
9069
+ };
9070
+ };
9071
+ };
9072
+ };
9073
+ };
8837
9074
  } & {
8838
9075
  api: {
8839
9076
  assets: {};
@@ -8845,6 +9082,7 @@ declare const app: Elysia<"/api", {
8845
9082
  query: {
8846
9083
  category?: "FIAT" | "CRYPTO" | "POINT" | "RWA" | undefined;
8847
9084
  isActive?: boolean | undefined;
9085
+ typeId?: string | undefined;
8848
9086
  limit?: number | undefined;
8849
9087
  offset?: number | undefined;
8850
9088
  pageSize?: number | undefined;
@@ -8894,83 +9132,33 @@ declare const app: Elysia<"/api", {
8894
9132
  };
8895
9133
  } & {
8896
9134
  assets: {
8897
- holdings: {
8898
- get: {
8899
- body: {};
8900
- params: {};
8901
- query: {
8902
- quoteAsset?: string | undefined;
8903
- ledgerAccountId?: string | undefined;
8904
- walletId?: string | undefined;
8905
- };
8906
- headers: {};
8907
- response: {
8908
- 200: {
8909
- items: {
8910
- assetId: string;
8911
- assetCode: string;
8912
- totalValuation: string;
8913
- assetName: string;
8914
- quantity: string;
8915
- }[];
8916
- quoteAsset: string;
8917
- };
8918
- 422: {
8919
- type: "validation";
8920
- on: string;
8921
- summary?: string;
8922
- message?: string;
8923
- found?: unknown;
8924
- property?: string;
8925
- expected?: string;
8926
- };
8927
- 401: "Unauthorized";
8928
- };
8929
- };
8930
- };
8931
- };
8932
- } & {
8933
- assets: {
8934
- ":assetId": {
8935
- overview: {
9135
+ code: {
9136
+ ":code": {
8936
9137
  get: {
8937
9138
  body: {};
8938
9139
  params: {
8939
- assetId: string;
8940
- };
8941
- query: {
8942
- quoteAsset?: string | undefined;
8943
- days?: number | undefined;
9140
+ code: string;
8944
9141
  };
9142
+ query: {};
8945
9143
  headers: {};
8946
9144
  response: {
8947
9145
  200: {
8948
- asset: {
8949
- symbol: string;
9146
+ symbol: string;
9147
+ type: {
8950
9148
  id: string;
8951
9149
  name: string;
8952
- code: string;
8953
- iconUrl: string;
8954
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
9150
+ key: string;
9151
+ isGasAsset: boolean;
8955
9152
  isActive: boolean;
8956
- precision: number;
8957
9153
  };
8958
- quoteAsset: string;
8959
- totalValuation: string;
8960
- quantity: string;
8961
- curve: {
8962
- at: Date;
8963
- value: string;
8964
- }[];
8965
- accountDistribution: {
8966
- ledgerAccountTypeId: string;
8967
- ledgerAccountId: string;
8968
- quantity: string;
8969
- ledgerAccountTypeKey: string;
8970
- ledgerAccountTypeName: string;
8971
- valuation: string;
8972
- proportion: string;
8973
- }[];
9154
+ id: string;
9155
+ name: string;
9156
+ code: string;
9157
+ iconUrl: string;
9158
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
9159
+ isActive: boolean;
9160
+ typeId: string;
9161
+ precision: number;
8974
9162
  };
8975
9163
  422: {
8976
9164
  type: "validation";
@@ -8987,6 +9175,49 @@ declare const app: Elysia<"/api", {
8987
9175
  };
8988
9176
  };
8989
9177
  };
9178
+ } & {
9179
+ assets: {
9180
+ ":id": {
9181
+ get: {
9182
+ body: {};
9183
+ params: {
9184
+ id: string;
9185
+ };
9186
+ query: {};
9187
+ headers: {};
9188
+ response: {
9189
+ 200: {
9190
+ symbol: string;
9191
+ type: {
9192
+ id: string;
9193
+ name: string;
9194
+ key: string;
9195
+ isGasAsset: boolean;
9196
+ isActive: boolean;
9197
+ };
9198
+ id: string;
9199
+ name: string;
9200
+ code: string;
9201
+ iconUrl: string;
9202
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
9203
+ isActive: boolean;
9204
+ typeId: string;
9205
+ precision: number;
9206
+ };
9207
+ 422: {
9208
+ type: "validation";
9209
+ on: string;
9210
+ summary?: string;
9211
+ message?: string;
9212
+ found?: unknown;
9213
+ property?: string;
9214
+ expected?: string;
9215
+ };
9216
+ 401: "Unauthorized";
9217
+ };
9218
+ };
9219
+ };
9220
+ };
8990
9221
  };
8991
9222
  } & {
8992
9223
  api: {
@@ -9258,8 +9489,6 @@ declare const app: Elysia<"/api", {
9258
9489
  body: {};
9259
9490
  params: {};
9260
9491
  query: {
9261
- baseAsset?: string | undefined;
9262
- quoteAsset?: string | undefined;
9263
9492
  source?: string | undefined;
9264
9493
  startDate?: Date | undefined;
9265
9494
  limit?: number | undefined;
@@ -9267,6 +9496,8 @@ declare const app: Elysia<"/api", {
9267
9496
  pageSize?: number | undefined;
9268
9497
  pageIndex?: number | undefined;
9269
9498
  endDate?: Date | undefined;
9499
+ baseAsset: string;
9500
+ quoteAsset: string;
9270
9501
  };
9271
9502
  headers: {};
9272
9503
  response: {
@@ -9304,6 +9535,47 @@ declare const app: Elysia<"/api", {
9304
9535
  };
9305
9536
  };
9306
9537
  };
9538
+ } & {
9539
+ asset_prices: {
9540
+ latest: {
9541
+ cny: {
9542
+ ":baseAsset": {
9543
+ get: {
9544
+ body: {};
9545
+ params: {
9546
+ baseAsset: string;
9547
+ };
9548
+ query: {};
9549
+ headers: {};
9550
+ response: {
9551
+ 200: {
9552
+ id: string;
9553
+ createdAt: Date;
9554
+ updatedAt: Date;
9555
+ baseAssetId: string;
9556
+ baseAsset: string;
9557
+ quoteAssetId: string;
9558
+ quoteAsset: string;
9559
+ price: string;
9560
+ source: string;
9561
+ effectiveAt: Date;
9562
+ };
9563
+ 422: {
9564
+ type: "validation";
9565
+ on: string;
9566
+ summary?: string;
9567
+ message?: string;
9568
+ found?: unknown;
9569
+ property?: string;
9570
+ expected?: string;
9571
+ };
9572
+ 401: "Unauthorized";
9573
+ };
9574
+ };
9575
+ };
9576
+ };
9577
+ };
9578
+ };
9307
9579
  } & {
9308
9580
  asset_prices: {
9309
9581
  latest: {
@@ -9514,67 +9786,6 @@ declare const app: Elysia<"/api", {
9514
9786
  };
9515
9787
  };
9516
9788
  };
9517
- } & {
9518
- finance: {
9519
- overview: {
9520
- get: {
9521
- body: {};
9522
- params: {};
9523
- query: {
9524
- quoteAsset?: string | undefined;
9525
- };
9526
- headers: {};
9527
- response: {
9528
- 200: {
9529
- quoteAsset: string;
9530
- overview: {
9531
- totalValuation: string;
9532
- };
9533
- walletView: {
9534
- isActive: boolean;
9535
- walletTypeId: string;
9536
- isPrimary: boolean;
9537
- totalValuation: string;
9538
- walletId: string;
9539
- walletTypeKey: string;
9540
- walletName: string;
9541
- walletTypeName: string;
9542
- }[];
9543
- accountView: {
9544
- status: string;
9545
- assetId: string;
9546
- ledgerAccountTypeId: string;
9547
- assetCode: string;
9548
- ledgerAccountId: string;
9549
- totalValuation: string;
9550
- assetName: string;
9551
- quantity: string;
9552
- ledgerAccountTypeKey: string;
9553
- ledgerAccountTypeName: string;
9554
- }[];
9555
- assetView: {
9556
- iconUrl: string;
9557
- assetId: string;
9558
- assetCode: string;
9559
- totalValuation: string;
9560
- assetName: string;
9561
- quantity: string;
9562
- }[];
9563
- };
9564
- 422: {
9565
- type: "validation";
9566
- on: string;
9567
- summary?: string;
9568
- message?: string;
9569
- found?: unknown;
9570
- property?: string;
9571
- expected?: string;
9572
- };
9573
- 401: "Unauthorized";
9574
- };
9575
- };
9576
- };
9577
- };
9578
9789
  } & {
9579
9790
  wallets: {
9580
9791
  ":walletId": {
@@ -9617,10 +9828,10 @@ declare const app: Elysia<"/api", {
9617
9828
  assetCode: string;
9618
9829
  ledgerAccountId: string;
9619
9830
  totalValuation: string;
9620
- assetName: string;
9621
9831
  quantity: string;
9622
9832
  ledgerAccountTypeKey: string;
9623
9833
  ledgerAccountTypeName: string;
9834
+ assetName: string;
9624
9835
  }[];
9625
9836
  };
9626
9837
  422: {
@@ -9702,59 +9913,50 @@ declare const app: Elysia<"/api", {
9702
9913
  };
9703
9914
  };
9704
9915
  };
9705
- };
9706
- } & {
9707
- api: {
9708
- ledger_accounts: {};
9709
9916
  } & {
9710
- ledger_accounts: {
9711
- ":id": {
9712
- overview: {
9713
- get: {
9714
- body: {};
9715
- params: {
9917
+ ledger_account_types: {
9918
+ ":key": {
9919
+ get: {
9920
+ body: {};
9921
+ params: {
9922
+ key: string;
9923
+ };
9924
+ query: {};
9925
+ headers: {};
9926
+ response: {
9927
+ 200: {
9716
9928
  id: string;
9929
+ name: string;
9930
+ description: string | null;
9931
+ key: string;
9932
+ isActive: boolean;
9933
+ allowDeposit: boolean;
9934
+ allowWithdraw: boolean;
9935
+ minWithdrawAmount: string;
9936
+ maxWithdrawAmount: string;
9937
+ allowTransfer: boolean;
9938
+ minTransferAmount: string;
9939
+ maxTransferAmount: string;
9940
+ allowInternalTransfer: boolean;
9941
+ allowInternalReceiveTransfer: boolean;
9942
+ minInternalTransferAmount: string;
9943
+ maxInternalTransferAmount: string;
9944
+ internalTransferRatio: string;
9945
+ allowTransaction: boolean;
9946
+ hasExpiry: boolean;
9947
+ expiryDays: number | null;
9948
+ sortOrder: number;
9717
9949
  };
9718
- query: {
9719
- quoteAsset?: string | undefined;
9720
- };
9721
- headers: {};
9722
- response: {
9723
- 200: {
9724
- quoteAsset: string;
9725
- ledgerAccountType: {
9726
- id: string;
9727
- name: string;
9728
- description: string | null;
9729
- key: string;
9730
- };
9731
- ledgerAccount: {
9732
- id: string;
9733
- createdAt: Date;
9734
- updatedAt: Date;
9735
- userId: string;
9736
- status: "active" | "frozen" | "disabled";
9737
- assetId: string;
9738
- ledgerAccountTypeId: string;
9739
- available: string;
9740
- locked: string;
9741
- version: number;
9742
- };
9743
- overview: {
9744
- totalValuation: string;
9745
- };
9746
- };
9747
- 422: {
9748
- type: "validation";
9749
- on: string;
9750
- summary?: string;
9751
- message?: string;
9752
- found?: unknown;
9753
- property?: string;
9754
- expected?: string;
9755
- };
9756
- 401: "Unauthorized";
9950
+ 422: {
9951
+ type: "validation";
9952
+ on: string;
9953
+ summary?: string;
9954
+ message?: string;
9955
+ found?: unknown;
9956
+ property?: string;
9957
+ expected?: string;
9757
9958
  };
9959
+ 401: "Unauthorized";
9758
9960
  };
9759
9961
  };
9760
9962
  };