@merkl/api 0.10.116 → 0.10.117

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) 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 +470 -414
  21. package/dist/src/index.d.ts +160 -138
  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 +2 -2
  26. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
  27. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
  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/explorer/explorer.repository.d.ts +2 -2
  35. package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
  36. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +22 -3
  37. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
  38. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -4
  39. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
  42. package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
  43. package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
  44. package/dist/src/modules/v4/price/price.service.d.ts +8 -8
  45. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
  46. package/dist/src/modules/v4/reward/reward.controller.d.ts +11 -8
  47. package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
  48. package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
  49. package/dist/src/modules/v4/reward/reward.service.d.ts +133 -130
  50. package/dist/src/modules/v4/router.d.ts +160 -138
  51. package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
  52. package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
  53. package/dist/src/modules/v4/status/status.service.d.ts +20 -20
  54. package/dist/src/modules/v4/user/user.controller.d.ts +44 -44
  55. package/dist/src/modules/v4/user/user.repository.d.ts +3 -3
  56. package/dist/src/modules/v4/user/user.service.d.ts +3 -3
  57. package/dist/src/routes/v3/ERC20Campaigns.d.ts +160 -138
  58. package/dist/src/routes/v3/blacklist.d.ts +160 -138
  59. package/dist/src/routes/v3/campaigns.d.ts +160 -138
  60. package/dist/src/routes/v3/campaignsInfo.d.ts +160 -138
  61. package/dist/src/routes/v3/multiChainPositions.d.ts +160 -138
  62. package/dist/src/routes/v3/opportunity.d.ts +160 -138
  63. package/dist/src/routes/v3/positions.d.ts +160 -138
  64. package/dist/src/routes/v3/rewards.d.ts +160 -138
  65. package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
  66. package/dist/src/routes/v3/updates.d.ts +160 -138
  67. package/dist/src/routes/v3/userRewards.d.ts +160 -138
  68. package/dist/tsconfig.package.tsbuildinfo +1 -1
  69. package/package.json +3 -3
  70. package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
@@ -1,17 +1,17 @@
1
1
  import type { Prisma } from "../../../../database/api/.generated";
2
- import type { BreakdownForCampaignsRaw, CampaignIdListModel, CreateManyBreakdownModel, CreateManyRewardModel, PendingEntity } from "./reward.model";
2
+ import type { BreakdownForCampaignsRaw, CampaignIdModel, CreateManyBreakdownModel, CreateManyRewardModel, PendingEntity } from "./reward.model";
3
3
  export declare abstract class RewardRepository {
4
4
  static createManyReward(rewards: CreateManyRewardModel): Promise<Prisma.BatchPayload>;
5
5
  static createManyBreakdown(data: CreateManyBreakdownModel): Promise<Prisma.BatchPayload>;
6
6
  static getByRecipient(recipient: string, roots: string[], withToken: boolean): Promise<({
7
7
  RewardToken: {
8
- id: string;
8
+ symbol: string;
9
9
  name: string | null;
10
+ id: string;
10
11
  chainId: number;
11
12
  address: string;
12
- decimals: number;
13
- symbol: string;
14
13
  icon: string;
14
+ decimals: number;
15
15
  verified: boolean;
16
16
  price: number | null;
17
17
  };
@@ -20,69 +20,69 @@ export declare abstract class RewardRepository {
20
20
  campaignId: string;
21
21
  Opportunity: {
22
22
  Chain: {
23
- id: number;
24
23
  name: string;
24
+ id: number;
25
25
  icon: string;
26
26
  };
27
27
  Tokens: {
28
- id: string;
28
+ symbol: string;
29
29
  name: string | null;
30
+ id: string;
30
31
  chainId: number;
31
32
  address: string;
32
- decimals: number;
33
- symbol: string;
34
33
  icon: string;
34
+ decimals: number;
35
35
  verified: boolean;
36
36
  price: number | null;
37
37
  }[];
38
38
  Protocols: {
39
- id: string;
40
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
41
39
  name: string;
42
- description: string;
43
40
  url: string;
41
+ description: string;
42
+ id: string;
43
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
44
44
  icon: string;
45
45
  }[];
46
46
  MainProtocol: {
47
- id: string;
48
- tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
49
47
  name: string;
50
- description: string;
51
48
  url: string;
49
+ description: string;
50
+ id: string;
51
+ tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
52
52
  icon: string;
53
53
  } | null;
54
54
  } & {
55
- id: string;
56
- chainId: number;
57
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
58
- identifier: string;
59
55
  name: string;
56
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
57
+ id: string;
60
58
  status: import("../../../../database/api/.generated").$Enums.Status;
59
+ tags: string[];
60
+ identifier: string;
61
+ chainId: number;
61
62
  action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
62
63
  mainProtocolId: string | null;
63
64
  tvl: number;
64
65
  apr: number;
65
66
  dailyRewards: number;
66
- tags: string[];
67
67
  };
68
68
  };
69
69
  } & {
70
- id: number;
71
- protocolId: string | null;
72
70
  reason: string;
71
+ pending: string;
72
+ id: number;
73
+ campaignId: string;
73
74
  amount: string;
75
+ protocolId: string | null;
74
76
  claimed: string;
75
- pending: string;
76
77
  auxiliaryData1: string | null;
77
78
  auxiliaryData2: string | null;
78
79
  rewardId: string;
79
- campaignId: string;
80
80
  })[];
81
81
  } & {
82
82
  id: string;
83
- root: string;
84
83
  recipient: string;
85
84
  rewardTokenId: string;
85
+ root: string;
86
86
  proofs: string[];
87
87
  })[]>;
88
88
  static getByChainRecipientToken(recipient: string, root: string, tokenId: string): Promise<({
@@ -91,22 +91,22 @@ export declare abstract class RewardRepository {
91
91
  campaignId: string;
92
92
  };
93
93
  } & {
94
- id: number;
95
- protocolId: string | null;
96
94
  reason: string;
95
+ pending: string;
96
+ id: number;
97
+ campaignId: string;
97
98
  amount: string;
99
+ protocolId: string | null;
98
100
  claimed: string;
99
- pending: string;
100
101
  auxiliaryData1: string | null;
101
102
  auxiliaryData2: string | null;
102
103
  rewardId: string;
103
- campaignId: string;
104
104
  })[];
105
105
  } & {
106
106
  id: string;
107
- root: string;
108
107
  recipient: string;
109
108
  rewardTokenId: string;
109
+ root: string;
110
110
  proofs: string[];
111
111
  }) | null>;
112
112
  static countRewardPerRewardTokenIdAndRoot(): Promise<(Prisma.PickEnumerable<Prisma.RewardGroupByOutputType, ("rewardTokenId" | "root")[]> & {
@@ -120,32 +120,35 @@ export declare abstract class RewardRepository {
120
120
  };
121
121
  })[]>;
122
122
  static updatePendings(rewardTokenId: string, root: string, campaignId: string, toUpdate: PendingEntity[]): Promise<{
123
- id: number;
124
- protocolId: string | null;
125
123
  reason: string;
124
+ pending: string;
125
+ id: number;
126
+ campaignId: string;
126
127
  amount: string;
128
+ protocolId: string | null;
127
129
  claimed: string;
128
- pending: string;
129
130
  auxiliaryData1: string | null;
130
131
  auxiliaryData2: string | null;
131
132
  rewardId: string;
132
- campaignId: string;
133
133
  }[]>;
134
134
  static createPendings(rewardTokenId: string, root: string, campaignId: string, toCreate: PendingEntity[]): Promise<{
135
- id: number;
136
- protocolId: string | null;
137
135
  reason: string;
136
+ pending: string;
137
+ id: number;
138
+ campaignId: string;
138
139
  amount: string;
140
+ protocolId: string | null;
139
141
  claimed: string;
140
- pending: string;
141
142
  auxiliaryData1: string | null;
142
143
  auxiliaryData2: string | null;
143
144
  rewardId: string;
144
- campaignId: string;
145
145
  }[]>;
146
146
  static findManyRootsWithRewardOnChain(chainId: number): Promise<string[]>;
147
- static breakdownForCampaigns(root: string, campaignId: string, query: CampaignIdListModel): Promise<BreakdownForCampaignsRaw[]>;
148
- static total(campaignIds: string[]): Promise<unknown>;
147
+ static breakdownForCampaign(root: string, id: string, query: CampaignIdModel): Promise<BreakdownForCampaignsRaw[]>;
148
+ static total(campaignId: string, root: string): Promise<{
149
+ campaignId: string;
150
+ amount: bigint;
151
+ }>;
149
152
  static count(campaignId: string, root: string): Promise<{
150
153
  count: number;
151
154
  }>;