@eyettea/zeta-backend 0.0.1-rc.3

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.
Files changed (66) hide show
  1. package/README.md +1 -0
  2. package/dist/types/api/index.d.ts +9 -0
  3. package/dist/types/api/index.d.ts.map +1 -0
  4. package/dist/types/api/types.d.ts +19 -0
  5. package/dist/types/api/types.d.ts.map +1 -0
  6. package/dist/types/app.d.ts +945 -0
  7. package/dist/types/app.d.ts.map +1 -0
  8. package/dist/types/config/database.d.ts +17 -0
  9. package/dist/types/config/database.d.ts.map +1 -0
  10. package/dist/types/config/env.d.ts +20 -0
  11. package/dist/types/config/env.d.ts.map +1 -0
  12. package/dist/types/database/aggregates.d.ts +14 -0
  13. package/dist/types/database/aggregates.d.ts.map +1 -0
  14. package/dist/types/database/clmmTicks.d.ts +9 -0
  15. package/dist/types/database/clmmTicks.d.ts.map +1 -0
  16. package/dist/types/database/liquidityTicks.d.ts +7 -0
  17. package/dist/types/database/liquidityTicks.d.ts.map +1 -0
  18. package/dist/types/database/mints.d.ts +18 -0
  19. package/dist/types/database/mints.d.ts.map +1 -0
  20. package/dist/types/database/poolEvents.d.ts +37 -0
  21. package/dist/types/database/poolEvents.d.ts.map +1 -0
  22. package/dist/types/database/pools.d.ts +47 -0
  23. package/dist/types/database/pools.d.ts.map +1 -0
  24. package/dist/types/database/priceTicks.d.ts +7 -0
  25. package/dist/types/database/priceTicks.d.ts.map +1 -0
  26. package/dist/types/database/schemas.d.ts +134 -0
  27. package/dist/types/database/schemas.d.ts.map +1 -0
  28. package/dist/types/database/types.d.ts +114 -0
  29. package/dist/types/database/types.d.ts.map +1 -0
  30. package/dist/types/index.d.ts +2 -0
  31. package/dist/types/index.d.ts.map +1 -0
  32. package/dist/types/lib/errors.d.ts +8 -0
  33. package/dist/types/lib/errors.d.ts.map +1 -0
  34. package/dist/types/lib/logger.d.ts +2 -0
  35. package/dist/types/lib/logger.d.ts.map +1 -0
  36. package/dist/types/lib/validation.d.ts +3 -0
  37. package/dist/types/lib/validation.d.ts.map +1 -0
  38. package/dist/types/routes/compute.d.ts +103 -0
  39. package/dist/types/routes/compute.d.ts.map +1 -0
  40. package/dist/types/routes/ohlcv.d.ts +64 -0
  41. package/dist/types/routes/ohlcv.d.ts.map +1 -0
  42. package/dist/types/routes/pools.d.ts +305 -0
  43. package/dist/types/routes/pools.d.ts.map +1 -0
  44. package/dist/types/routes/response.d.ts +26 -0
  45. package/dist/types/routes/response.d.ts.map +1 -0
  46. package/dist/types/routes/websocket.d.ts +42 -0
  47. package/dist/types/routes/websocket.d.ts.map +1 -0
  48. package/dist/types/services/Services.d.ts +21 -0
  49. package/dist/types/services/Services.d.ts.map +1 -0
  50. package/dist/types/services/computeService.d.ts +103 -0
  51. package/dist/types/services/computeService.d.ts.map +1 -0
  52. package/dist/types/services/poolEventsHandler.d.ts +26 -0
  53. package/dist/types/services/poolEventsHandler.d.ts.map +1 -0
  54. package/dist/types/services/poolEventsSubscriptionService.d.ts +16 -0
  55. package/dist/types/services/poolEventsSubscriptionService.d.ts.map +1 -0
  56. package/dist/types/services/poolService.d.ts +140 -0
  57. package/dist/types/services/poolService.d.ts.map +1 -0
  58. package/dist/types/services/poolStateWebsocketService.d.ts +13 -0
  59. package/dist/types/services/poolStateWebsocketService.d.ts.map +1 -0
  60. package/dist/types/services/poolStatsService.d.ts +53 -0
  61. package/dist/types/services/poolStatsService.d.ts.map +1 -0
  62. package/dist/types/services/priceService.d.ts +36 -0
  63. package/dist/types/services/priceService.d.ts.map +1 -0
  64. package/dist/types/utils/period.d.ts +8 -0
  65. package/dist/types/utils/period.d.ts.map +1 -0
  66. package/package.json +48 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Zeta Market Backend
@@ -0,0 +1,9 @@
1
+ export type { App } from '../app';
2
+ export type { PoolType, PoolSortType, PoolWithStats, StandardPoolWithStats, ConcentratedPoolWithStats, PoolStatsPeriod, ClmmLiquidityRow, } from '../services/poolService';
3
+ export type { TokenPrice } from '../services/priceService';
4
+ export type { LiquidityLineData, OHLVCResult } from '../services/poolStatsService';
5
+ export type { SwapComputeResult } from '../services/computeService';
6
+ export type { ApiResponse, SuccessApiResponse, ErrorApiResponse, PaginatedApiResponse, } from '../routes/response';
7
+ export type { ClmmLiquidityRowPayload, ClmmLiquidityLinePayload, PoolListResponse, PoolListFromIdsResponse, Events as PoolEventsResponse, TokenListResponse, TokenPricesResponse, } from '../routes/pools';
8
+ export type { ClmmPosition } from '../api/types';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAClF,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,MAAM,IAAI,kBAAkB,EAC5B,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { ClmmPositionRow } from '../database/types';
2
+ export interface ClmmPosition {
3
+ id: string;
4
+ poolId: string;
5
+ configIndex: number;
6
+ txId: string;
7
+ createdAt: Date;
8
+ blockHash: string;
9
+ sender: string;
10
+ owner: string;
11
+ tickLower: number;
12
+ tickUpper: number;
13
+ liquidity: number;
14
+ amount0: number;
15
+ amount1: number;
16
+ totalLiquidity: number;
17
+ }
18
+ export declare function mapClmmPosition(row: ClmmPositionRow): ClmmPosition;
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,YAAY,CAiBlE"}