@merkl/api 0.10.177 → 0.10.180

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/dist/database/api/.generated/edge.js +6 -6
  2. package/dist/database/api/.generated/index-browser.js +4 -4
  3. package/dist/database/api/.generated/index.d.ts +2 -2
  4. package/dist/database/api/.generated/index.js +6 -6
  5. package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  7. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/runtime/edge-esm.js +15 -15
  10. package/dist/database/api/.generated/runtime/edge.js +16 -16
  11. package/dist/database/api/.generated/runtime/library.d.ts +23 -34
  12. package/dist/database/api/.generated/runtime/library.js +56 -56
  13. package/dist/database/api/.generated/runtime/react-native.js +23 -23
  14. package/dist/database/api/.generated/runtime/wasm.js +15 -15
  15. package/dist/database/api/.generated/wasm.js +4 -4
  16. package/dist/database/engine/.generated/edge.js +6 -6
  17. package/dist/database/engine/.generated/index-browser.js +4 -4
  18. package/dist/database/engine/.generated/index.d.ts +2 -2
  19. package/dist/database/engine/.generated/index.js +6 -6
  20. package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  21. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  22. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  23. package/dist/database/engine/.generated/package.json +1 -1
  24. package/dist/database/engine/.generated/runtime/edge-esm.js +15 -15
  25. package/dist/database/engine/.generated/runtime/edge.js +16 -16
  26. package/dist/database/engine/.generated/runtime/library.d.ts +23 -34
  27. package/dist/database/engine/.generated/runtime/library.js +56 -56
  28. package/dist/database/engine/.generated/runtime/react-native.js +23 -23
  29. package/dist/database/engine/.generated/runtime/wasm.js +15 -15
  30. package/dist/database/engine/.generated/wasm.js +4 -4
  31. package/dist/src/eden/index.d.ts +336 -51
  32. package/dist/src/index.d.ts +136 -17
  33. package/dist/src/index.js +1 -1
  34. package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.js +2 -2
  35. package/dist/src/modules/v4/bucket/bucket.service.d.ts +5 -0
  36. package/dist/src/modules/v4/bucket/bucket.service.js +11 -0
  37. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +11 -13
  38. package/dist/src/modules/v4/campaign/campaign.controller.js +3 -3
  39. package/dist/src/modules/v4/campaign/campaign.repository.js +1 -1
  40. package/dist/src/modules/v4/chain/chain.controller.d.ts +24 -0
  41. package/dist/src/modules/v4/chain/chain.controller.js +8 -2
  42. package/dist/src/modules/v4/chain/chain.model.d.ts +4 -0
  43. package/dist/src/modules/v4/chain/chain.model.js +4 -0
  44. package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -1
  45. package/dist/src/modules/v4/chain/chain.repository.js +3 -0
  46. package/dist/src/modules/v4/chain/chain.service.d.ts +6 -1
  47. package/dist/src/modules/v4/chain/chain.service.js +7 -0
  48. package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
  49. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +1 -1
  50. package/dist/src/modules/v4/{position → liquidity}/implementations/AjnaPositionFetcher.d.ts +1 -1
  51. package/dist/src/modules/v4/{position → liquidity}/implementations/BadgerPositionFetcher.d.ts +1 -1
  52. package/dist/src/modules/v4/{position → liquidity}/implementations/ClammPositionFetcher.d.ts +1 -1
  53. package/dist/src/modules/v4/{position → liquidity}/implementations/DolomitePositionFetcher.d.ts +1 -1
  54. package/dist/src/modules/v4/{position → liquidity}/implementations/DolomitePositionFetcher.js +2 -2
  55. package/dist/src/modules/v4/{position → liquidity}/implementations/ERC20PositionFetcher.d.ts +1 -1
  56. package/dist/src/modules/v4/{position → liquidity}/implementations/EulerPositionFetcher.d.ts +1 -1
  57. package/dist/src/modules/v4/liquidity/index.d.ts +2 -0
  58. package/dist/src/modules/v4/liquidity/index.js +2 -0
  59. package/dist/src/modules/v4/{position/position.controller.d.ts → liquidity/liquidity.controller.d.ts} +3 -3
  60. package/dist/src/modules/v4/{position/position.controller.js → liquidity/liquidity.controller.js} +4 -4
  61. package/dist/src/modules/v4/{position/position.repository.d.ts → liquidity/liquidity.repository.d.ts} +1 -1
  62. package/dist/src/modules/v4/{position/position.repository.js → liquidity/liquidity.repository.js} +1 -1
  63. package/dist/src/modules/v4/liquidity/liquidity.service.d.ts +5 -0
  64. package/dist/src/modules/v4/{position/position.service.js → liquidity/liquidity.service.js} +2 -2
  65. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +34 -0
  66. package/dist/src/modules/v4/opportunity/opportunity.controller.js +11 -2
  67. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +8 -0
  68. package/dist/src/modules/v4/opportunity/opportunity.model.js +5 -0
  69. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +29 -1
  70. package/dist/src/modules/v4/opportunity/opportunity.repository.js +6 -0
  71. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +15 -1
  72. package/dist/src/modules/v4/opportunity/opportunity.service.js +7 -6
  73. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +30 -1
  74. package/dist/src/modules/v4/protocol/protocol.controller.js +9 -2
  75. package/dist/src/modules/v4/protocol/protocol.model.d.ts +10 -1
  76. package/dist/src/modules/v4/protocol/protocol.model.js +9 -0
  77. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +9 -1
  78. package/dist/src/modules/v4/protocol/protocol.repository.js +4 -1
  79. package/dist/src/modules/v4/protocol/protocol.service.d.ts +11 -3
  80. package/dist/src/modules/v4/protocol/protocol.service.js +38 -32
  81. package/dist/src/modules/v4/reward/subservices/converter.js +2 -2
  82. package/dist/src/modules/v4/router.d.ts +136 -17
  83. package/dist/src/modules/v4/router.js +2 -2
  84. package/dist/src/modules/v4/token/token.controller.d.ts +34 -0
  85. package/dist/src/modules/v4/token/token.controller.js +11 -3
  86. package/dist/src/modules/v4/token/token.model.d.ts +9 -0
  87. package/dist/src/modules/v4/token/token.model.js +7 -0
  88. package/dist/src/modules/v4/token/token.repository.d.ts +14 -1
  89. package/dist/src/modules/v4/token/token.repository.js +3 -0
  90. package/dist/src/modules/v4/token/token.service.d.ts +14 -1
  91. package/dist/src/modules/v4/token/token.service.js +7 -0
  92. package/dist/src/routes/v3/blacklist.d.ts +136 -17
  93. package/dist/src/routes/v3/campaigns.d.ts +136 -17
  94. package/dist/src/routes/v3/campaignsInfo.d.ts +136 -17
  95. package/dist/src/routes/v3/multiChainPositions.d.ts +136 -17
  96. package/dist/src/routes/v3/opportunity.d.ts +136 -17
  97. package/dist/src/routes/v3/positions.d.ts +136 -17
  98. package/dist/src/routes/v3/rewards.d.ts +136 -17
  99. package/dist/src/routes/v3/updates.d.ts +136 -17
  100. package/dist/src/routes/v3/userRewards.d.ts +136 -17
  101. package/dist/src/utils/logger.d.ts +12 -6
  102. package/dist/tsconfig.package.tsbuildinfo +1 -1
  103. package/package.json +24 -24
  104. package/dist/src/modules/v4/position/index.d.ts +0 -2
  105. package/dist/src/modules/v4/position/index.js +0 -2
  106. package/dist/src/modules/v4/position/position.service.d.ts +0 -5
  107. /package/dist/src/modules/v4/{position → liquidity}/implementations/AjnaPositionFetcher.js +0 -0
  108. /package/dist/src/modules/v4/{position → liquidity}/implementations/BadgerPositionFetcher.js +0 -0
  109. /package/dist/src/modules/v4/{position → liquidity}/implementations/ClammPositionFetcher.js +0 -0
  110. /package/dist/src/modules/v4/{position → liquidity}/implementations/ERC20PositionFetcher.js +0 -0
  111. /package/dist/src/modules/v4/{position → liquidity}/implementations/EulerPositionFetcher.js +0 -0
  112. /package/dist/src/modules/v4/{position/position.model.d.ts → liquidity/liquidity.model.d.ts} +0 -0
  113. /package/dist/src/modules/v4/{position/position.model.js → liquidity/liquidity.model.js} +0 -0
@@ -502,6 +502,40 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
502
502
  };
503
503
  };
504
504
  };
505
+ } & {
506
+ opportunities: {
507
+ ":id": {
508
+ patch: {
509
+ body: {
510
+ name?: string | undefined;
511
+ tags?: string[] | undefined;
512
+ };
513
+ params: {
514
+ id: string;
515
+ };
516
+ query: unknown;
517
+ headers: {
518
+ authorization: string;
519
+ };
520
+ response: {
521
+ 200: {
522
+ name: string;
523
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
524
+ id: string;
525
+ status: import("../../../database/api/.generated").$Enums.Status;
526
+ tags: string[];
527
+ identifier: string;
528
+ chainId: number;
529
+ action: import("../../../database/api/.generated").$Enums.OpportunityAction;
530
+ mainProtocolId: string | null;
531
+ tvl: number;
532
+ apr: number;
533
+ dailyRewards: number;
534
+ };
535
+ };
536
+ };
537
+ };
538
+ };
505
539
  };
506
540
  } & {
507
541
  v4: {
@@ -685,19 +719,17 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
685
719
  } & {
686
720
  "campaigns-to-process": {
687
721
  engine: {
688
- "": {
689
- post: {
690
- body: unknown;
691
- params: {};
692
- query: {
693
- chainId: number;
694
- };
695
- headers: {
696
- authorization: string;
697
- };
698
- response: {
699
- 200: string;
700
- };
722
+ post: {
723
+ body: unknown;
724
+ params: {};
725
+ query: {
726
+ chainId: number;
727
+ };
728
+ headers: {
729
+ authorization: string;
730
+ };
731
+ response: {
732
+ 200: string;
701
733
  };
702
734
  };
703
735
  };
@@ -750,7 +782,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
750
782
  id: string;
751
783
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
752
784
  icon: string;
753
- } & {})[] | null;
785
+ } & {})[];
754
786
  };
755
787
  };
756
788
  };
@@ -769,6 +801,35 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
769
801
  };
770
802
  };
771
803
  };
804
+ } & {
805
+ protocols: {
806
+ ":id": {
807
+ patch: {
808
+ body: {
809
+ url?: string | undefined;
810
+ description?: string | undefined;
811
+ icon?: string | undefined;
812
+ };
813
+ params: {
814
+ id: string;
815
+ };
816
+ query: unknown;
817
+ headers: {
818
+ authorization: string;
819
+ };
820
+ response: {
821
+ 200: {
822
+ name: string;
823
+ url: string;
824
+ description: string;
825
+ id: string;
826
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
827
+ icon: string;
828
+ };
829
+ };
830
+ };
831
+ };
832
+ };
772
833
  };
773
834
  } & {
774
835
  v4: {
@@ -885,6 +946,40 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
885
946
  };
886
947
  };
887
948
  };
949
+ } & {
950
+ tokens: {
951
+ ":id": {
952
+ patch: {
953
+ body: {
954
+ icon?: string | undefined;
955
+ displaySymbol?: string | undefined;
956
+ isTest?: boolean | undefined;
957
+ };
958
+ params: {
959
+ id: string;
960
+ };
961
+ query: unknown;
962
+ headers: {
963
+ authorization: string;
964
+ };
965
+ response: {
966
+ 200: {
967
+ symbol: string;
968
+ name: string | null;
969
+ id: string;
970
+ chainId: number;
971
+ address: string;
972
+ icon: string;
973
+ decimals: number;
974
+ displaySymbol: string;
975
+ verified: boolean;
976
+ isTest: boolean;
977
+ price: number | null;
978
+ };
979
+ };
980
+ };
981
+ };
982
+ };
888
983
  };
889
984
  } & {
890
985
  v4: {
@@ -1164,6 +1259,30 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1164
1259
  };
1165
1260
  };
1166
1261
  };
1262
+ } & {
1263
+ chains: {
1264
+ ":chainId": {
1265
+ patch: {
1266
+ body: {
1267
+ icon?: string | undefined;
1268
+ };
1269
+ params: {
1270
+ chainId: number;
1271
+ };
1272
+ query: unknown;
1273
+ headers: {
1274
+ authorization: string;
1275
+ };
1276
+ response: {
1277
+ 200: {
1278
+ name: string;
1279
+ id: number;
1280
+ icon: string;
1281
+ };
1282
+ };
1283
+ };
1284
+ };
1285
+ };
1167
1286
  };
1168
1287
  } & {
1169
1288
  v4: {
@@ -1864,7 +1983,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1864
1983
  id: string;
1865
1984
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1866
1985
  icon: string;
1867
- } & {})[] | null;
1986
+ } & {})[];
1868
1987
  };
1869
1988
  };
1870
1989
  };
@@ -2255,7 +2374,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2255
2374
  };
2256
2375
  } & {
2257
2376
  v4: {
2258
- positions: {
2377
+ liquidity: {
2259
2378
  index: {
2260
2379
  get: {
2261
2380
  body: unknown;
@@ -2266,7 +2385,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2266
2385
  };
2267
2386
  headers: unknown;
2268
2387
  response: {
2269
- 200: any[];
2388
+ 200: import("../../modules/v4/liquidity").PositionT[];
2270
2389
  };
2271
2390
  };
2272
2391
  };
@@ -504,6 +504,40 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
504
504
  };
505
505
  };
506
506
  };
507
+ } & {
508
+ opportunities: {
509
+ ":id": {
510
+ patch: {
511
+ body: {
512
+ name?: string | undefined;
513
+ tags?: string[] | undefined;
514
+ };
515
+ params: {
516
+ id: string;
517
+ };
518
+ query: unknown;
519
+ headers: {
520
+ authorization: string;
521
+ };
522
+ response: {
523
+ 200: {
524
+ name: string;
525
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
526
+ id: string;
527
+ status: import("../../../database/api/.generated").$Enums.Status;
528
+ tags: string[];
529
+ identifier: string;
530
+ chainId: number;
531
+ action: import("../../../database/api/.generated").$Enums.OpportunityAction;
532
+ mainProtocolId: string | null;
533
+ tvl: number;
534
+ apr: number;
535
+ dailyRewards: number;
536
+ };
537
+ };
538
+ };
539
+ };
540
+ };
507
541
  };
508
542
  } & {
509
543
  v4: {
@@ -687,19 +721,17 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
687
721
  } & {
688
722
  "campaigns-to-process": {
689
723
  engine: {
690
- "": {
691
- post: {
692
- body: unknown;
693
- params: {};
694
- query: {
695
- chainId: number;
696
- };
697
- headers: {
698
- authorization: string;
699
- };
700
- response: {
701
- 200: string;
702
- };
724
+ post: {
725
+ body: unknown;
726
+ params: {};
727
+ query: {
728
+ chainId: number;
729
+ };
730
+ headers: {
731
+ authorization: string;
732
+ };
733
+ response: {
734
+ 200: string;
703
735
  };
704
736
  };
705
737
  };
@@ -752,7 +784,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
752
784
  id: string;
753
785
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
754
786
  icon: string;
755
- } & {})[] | null;
787
+ } & {})[];
756
788
  };
757
789
  };
758
790
  };
@@ -771,6 +803,35 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
771
803
  };
772
804
  };
773
805
  };
806
+ } & {
807
+ protocols: {
808
+ ":id": {
809
+ patch: {
810
+ body: {
811
+ url?: string | undefined;
812
+ description?: string | undefined;
813
+ icon?: string | undefined;
814
+ };
815
+ params: {
816
+ id: string;
817
+ };
818
+ query: unknown;
819
+ headers: {
820
+ authorization: string;
821
+ };
822
+ response: {
823
+ 200: {
824
+ name: string;
825
+ url: string;
826
+ description: string;
827
+ id: string;
828
+ tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
829
+ icon: string;
830
+ };
831
+ };
832
+ };
833
+ };
834
+ };
774
835
  };
775
836
  } & {
776
837
  v4: {
@@ -887,6 +948,40 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
887
948
  };
888
949
  };
889
950
  };
951
+ } & {
952
+ tokens: {
953
+ ":id": {
954
+ patch: {
955
+ body: {
956
+ icon?: string | undefined;
957
+ displaySymbol?: string | undefined;
958
+ isTest?: boolean | undefined;
959
+ };
960
+ params: {
961
+ id: string;
962
+ };
963
+ query: unknown;
964
+ headers: {
965
+ authorization: string;
966
+ };
967
+ response: {
968
+ 200: {
969
+ symbol: string;
970
+ name: string | null;
971
+ id: string;
972
+ chainId: number;
973
+ address: string;
974
+ icon: string;
975
+ decimals: number;
976
+ displaySymbol: string;
977
+ verified: boolean;
978
+ isTest: boolean;
979
+ price: number | null;
980
+ };
981
+ };
982
+ };
983
+ };
984
+ };
890
985
  };
891
986
  } & {
892
987
  v4: {
@@ -1166,6 +1261,30 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1166
1261
  };
1167
1262
  };
1168
1263
  };
1264
+ } & {
1265
+ chains: {
1266
+ ":chainId": {
1267
+ patch: {
1268
+ body: {
1269
+ icon?: string | undefined;
1270
+ };
1271
+ params: {
1272
+ chainId: number;
1273
+ };
1274
+ query: unknown;
1275
+ headers: {
1276
+ authorization: string;
1277
+ };
1278
+ response: {
1279
+ 200: {
1280
+ name: string;
1281
+ id: number;
1282
+ icon: string;
1283
+ };
1284
+ };
1285
+ };
1286
+ };
1287
+ };
1169
1288
  };
1170
1289
  } & {
1171
1290
  v4: {
@@ -1866,7 +1985,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1866
1985
  id: string;
1867
1986
  tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1868
1987
  icon: string;
1869
- } & {})[] | null;
1988
+ } & {})[];
1870
1989
  };
1871
1990
  };
1872
1991
  };
@@ -2257,7 +2376,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2257
2376
  };
2258
2377
  } & {
2259
2378
  v4: {
2260
- positions: {
2379
+ liquidity: {
2261
2380
  index: {
2262
2381
  get: {
2263
2382
  body: unknown;
@@ -2268,7 +2387,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2268
2387
  };
2269
2388
  headers: unknown;
2270
2389
  response: {
2271
- 200: any[];
2390
+ 200: import("../../modules/v4/liquidity").PositionT[];
2272
2391
  };
2273
2392
  };
2274
2393
  };
@@ -1,12 +1,18 @@
1
- export declare const logger: import("@bogeychan/elysia-logger/types").ElysiaLogger<import("elysia").default<"", {
2
- request: {
3
- log: import("@bogeychan/elysia-logger/types").Logger;
4
- };
1
+ export declare const logger: import("@bogeychan/elysia-logger/types").ElysiaLogger<import("elysia").default<"", false, {
2
+ decorator: {};
5
3
  store: {};
4
+ derive: {};
5
+ resolve: {
6
+ readonly log: import("pino").default.Logger<never, boolean>;
7
+ };
6
8
  }, {
7
9
  type: {};
8
10
  error: {};
9
- }, {}, {}, false, {
11
+ }, {
12
+ schema: {};
13
+ macro: {};
14
+ macroFn: {};
15
+ }, {}, {
10
16
  derive: {};
11
17
  resolve: {};
12
18
  schema: {};
@@ -14,7 +20,7 @@ export declare const logger: import("@bogeychan/elysia-logger/types").ElysiaLogg
14
20
  derive: {};
15
21
  resolve: {};
16
22
  schema: {};
17
- }>>;
23
+ }> | import("@bogeychan/elysia-logger/types")._INTERNAL_ElysiaLoggerPlugin<import("@bogeychan/elysia-logger/types")._INTERNAL_Writeonly<import("@bogeychan/elysia-logger/types")._INTERNAL_ElysiaLoggerPluginAutoLoggingState>>>;
18
24
  export declare const log: {
19
25
  debug: (message: string) => void;
20
26
  error: (message: string, errorMessage: any, service?: string, url?: string) => void;