@merkl/api 0.10.115 → 0.10.117

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. package/dist/database/api/.generated/default.d.ts +1 -1
  2. package/dist/database/api/.generated/edge.d.ts +1 -1
  3. package/dist/database/api/.generated/index.d.ts +335 -311
  4. package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  5. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  7. package/dist/database/api/.generated/package.json +15 -2
  8. package/dist/database/api/.generated/runtime/library.d.ts +195 -79
  9. package/dist/database/api/.generated/schema.prisma +1 -1
  10. package/dist/database/api/.generated/wasm.d.ts +1 -1
  11. package/dist/database/engine/.generated/default.d.ts +1 -1
  12. package/dist/database/engine/.generated/edge.d.ts +1 -1
  13. package/dist/database/engine/.generated/index.d.ts +16 -104
  14. package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  15. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  16. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  17. package/dist/database/engine/.generated/package.json +14 -1
  18. package/dist/database/engine/.generated/runtime/library.d.ts +195 -79
  19. package/dist/database/engine/.generated/wasm.d.ts +1 -1
  20. package/dist/src/eden/index.d.ts +543 -426
  21. package/dist/src/index.d.ts +188 -141
  22. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +1 -1
  23. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +8 -8
  24. package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
  25. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +5 -3
  26. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
  27. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +5 -3
  28. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +14 -14
  29. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +27 -27
  30. package/dist/src/modules/v4/campaign/campaign.service.d.ts +28 -28
  31. package/dist/src/modules/v4/chain/chain.controller.d.ts +5 -5
  32. package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -6
  33. package/dist/src/modules/v4/chain/chain.service.d.ts +5 -5
  34. package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +4 -2
  35. package/dist/src/modules/v4/dynamicData/dynamicData.model.d.ts +2 -2
  36. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +2 -1
  37. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
  38. package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
  39. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +22 -3
  40. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
  41. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -4
  42. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
  43. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
  44. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
  45. package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
  46. package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
  47. package/dist/src/modules/v4/price/price.service.d.ts +8 -8
  48. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
  49. package/dist/src/modules/v4/reward/reward.controller.d.ts +32 -8
  50. package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
  51. package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
  52. package/dist/src/modules/v4/reward/reward.service.d.ts +134 -131
  53. package/dist/src/modules/v4/router.d.ts +188 -141
  54. package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
  55. package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
  56. package/dist/src/modules/v4/status/status.service.d.ts +20 -20
  57. package/dist/src/modules/v4/user/user.controller.d.ts +44 -44
  58. package/dist/src/modules/v4/user/user.repository.d.ts +3 -3
  59. package/dist/src/modules/v4/user/user.service.d.ts +3 -3
  60. package/dist/src/routes/v3/ERC20Campaigns.d.ts +188 -141
  61. package/dist/src/routes/v3/blacklist.d.ts +188 -141
  62. package/dist/src/routes/v3/campaigns.d.ts +188 -141
  63. package/dist/src/routes/v3/campaignsInfo.d.ts +188 -141
  64. package/dist/src/routes/v3/multiChainPositions.d.ts +188 -141
  65. package/dist/src/routes/v3/opportunity.d.ts +188 -141
  66. package/dist/src/routes/v3/positions.d.ts +188 -141
  67. package/dist/src/routes/v3/rewards.d.ts +188 -141
  68. package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
  69. package/dist/src/routes/v3/updates.d.ts +188 -141
  70. package/dist/src/routes/v3/userRewards.d.ts +188 -141
  71. package/dist/src/utils/bigintToString.d.ts +1 -1
  72. package/dist/tsconfig.package.tsbuildinfo +1 -1
  73. package/package.json +3 -3
  74. package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkl/api",
3
- "version": "v0.10.115",
3
+ "version": "v0.10.117",
4
4
  "type": "module",
5
5
  "types": "./dist/src/eden/index.d.ts",
6
6
  "main": "./dist/src/eden/index.js",
@@ -34,7 +34,7 @@
34
34
  "@elysiajs/cors": "^0.7.2",
35
35
  "@elysiajs/swagger": "^0.7.4",
36
36
  "@ethersproject/abi": "^5.7.0",
37
- "@prisma/client": "5.18.0",
37
+ "@prisma/client": "6.0.1",
38
38
  "@sinclair/typebox": "^0.33.4",
39
39
  "@types/crypto-js": "^4.2.1",
40
40
  "@types/lodash": "^4.17.12",
@@ -75,7 +75,7 @@
75
75
  "@types/treeify": "^1.0.3",
76
76
  "@types/uuid": "^9.0.7",
77
77
  "bun-types": "latest",
78
- "prisma": "^5.7.0"
78
+ "prisma": "^6.0.1"
79
79
  },
80
80
  "repository": {
81
81
  "type": "git",
@@ -1,29 +0,0 @@
1
- import { type MerklChainId } from "@sdk";
2
- export type RewardsT = {
3
- [chainId: number]: {
4
- tokenData: {
5
- [token: string]: {
6
- accumulated: string;
7
- unclaimed: string;
8
- decimals: number;
9
- symbol: string;
10
- proof: string[];
11
- };
12
- };
13
- campaignData: {
14
- [campaignId: string]: {
15
- [reason: string]: {
16
- accumulated: string;
17
- unclaimed: string;
18
- token: string;
19
- decimals: number;
20
- symbol: string;
21
- mainParameter: string;
22
- auxiliaryData1: string;
23
- auxiliaryData2: string;
24
- };
25
- };
26
- };
27
- };
28
- };
29
- export declare const getRewards: (chainIds: MerklChainId[], user: string, merklRoots: string[], creatorTag?: string) => Promise<RewardsT>;