@merkl/api 0.10.199 → 0.10.201

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/dist/src/eden/index.d.ts +2 -6398
  2. package/dist/src/errors/HttpError.d.ts +5 -0
  3. package/dist/src/errors/HttpError.js +6 -0
  4. package/dist/src/errors/NotFound.error.d.ts +4 -0
  5. package/dist/src/errors/NotFound.error.js +5 -0
  6. package/dist/src/index.d.ts +1 -2464
  7. package/dist/src/index.js +56 -7
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +15 -22
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.js +1 -0
  10. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +3 -1
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
  12. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GammaProcessor.d.ts +43 -0
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GammaProcessor.js +63 -0
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.d.ts +3 -3
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.js +3 -1
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/NoLinkVaultProcessor.d.ts +36 -0
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/NoLinkVaultProcessor.js +51 -0
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.d.ts +0 -1
  19. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/StakingProcessor.js +15 -7
  20. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
  21. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.d.ts +1 -1
  22. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.js +13 -572
  23. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.d.ts +2 -21
  24. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +197 -1174
  25. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.d.ts +1 -5
  26. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.js +11 -634
  27. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.d.ts +1 -4
  28. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.js +10 -380
  29. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.d.ts +3 -3
  30. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.js +11 -312
  31. package/dist/src/libs/campaigns/campaignTypes/EulerDynamicData.js +8 -8
  32. package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +3 -4
  33. package/dist/src/libs/campaigns/campaignsDynamicData.js +0 -5
  34. package/dist/src/modules/v4/accounting/accounting.controller.js +1 -1
  35. package/dist/src/modules/v4/apr/apr.model.d.ts +26 -0
  36. package/dist/src/modules/v4/apr/apr.model.js +15 -1
  37. package/dist/src/modules/v4/blacklist/blacklist.controller.js +1 -1
  38. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +6 -4
  39. package/dist/src/modules/v4/campaign/campaign.controller.js +14 -4
  40. package/dist/src/modules/v4/campaign/campaign.model.d.ts +51 -5
  41. package/dist/src/modules/v4/campaign/campaign.model.js +48 -13
  42. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +2 -2
  43. package/dist/src/modules/v4/campaign/campaign.repository.js +10 -2
  44. package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -2
  45. package/dist/src/modules/v4/chain/chain.controller.d.ts +2 -2
  46. package/dist/src/modules/v4/chain/chain.controller.js +7 -2
  47. package/dist/src/modules/v4/chain/chain.model.d.ts +6 -1
  48. package/dist/src/modules/v4/chain/chain.model.js +8 -1
  49. package/dist/src/modules/v4/chain/chain.repository.js +1 -1
  50. package/dist/src/modules/v4/claims/claims.controller.js +1 -1
  51. package/dist/src/modules/v4/dynamicData/dynamicData.controller.js +4 -1
  52. package/dist/src/modules/v4/enso/enso.model.d.ts +1 -1
  53. package/dist/src/modules/v4/enso/enso.model.js +2 -1
  54. package/dist/src/modules/v4/enso/enso.service.d.ts +0 -1
  55. package/dist/src/modules/v4/enso/enso.service.js +4 -4
  56. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +26 -17
  57. package/dist/src/modules/v4/interaction/interaction.controller.js +19 -28
  58. package/dist/src/modules/v4/interaction/interaction.model.d.ts +17 -5
  59. package/dist/src/modules/v4/interaction/interaction.model.js +3 -3
  60. package/dist/src/modules/v4/interaction/interaction.service.d.ts +18 -3
  61. package/dist/src/modules/v4/interaction/interaction.service.js +89 -11
  62. package/dist/src/modules/v4/kyberzap/kyberzap.model.d.ts +72 -0
  63. package/dist/src/modules/v4/kyberzap/kyberzap.model.js +79 -0
  64. package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +15 -0
  65. package/dist/src/modules/v4/kyberzap/kyberzap.service.js +84 -0
  66. package/dist/src/modules/v4/liquidity/liquidity.controller.js +1 -1
  67. package/dist/src/modules/v4/merklRoot/merklRoot.controller.js +1 -1
  68. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +224 -213
  69. package/dist/src/modules/v4/opportunity/opportunity.controller.js +39 -10
  70. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +252 -22
  71. package/dist/src/modules/v4/opportunity/opportunity.model.js +58 -15
  72. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +11 -11
  73. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -232
  74. package/dist/src/modules/v4/opportunity/opportunity.service.js +0 -32
  75. package/dist/src/modules/v4/price/price.controller.js +1 -1
  76. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +23 -24
  77. package/dist/src/modules/v4/protocol/protocol.controller.js +15 -9
  78. package/dist/src/modules/v4/protocol/protocol.model.d.ts +13 -1
  79. package/dist/src/modules/v4/protocol/protocol.model.js +12 -8
  80. package/dist/src/modules/v4/reward/reward.controller.js +1 -1
  81. package/dist/src/modules/v4/reward/reward.model.d.ts +44 -1
  82. package/dist/src/modules/v4/reward/reward.model.js +15 -0
  83. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -2
  84. package/dist/src/modules/v4/reward/reward.service.d.ts +11 -11
  85. package/dist/src/modules/v4/reward/reward.service.js +1 -1
  86. package/dist/src/modules/v4/router.d.ts +289 -268
  87. package/dist/src/modules/v4/status/status.controller.js +2 -3
  88. package/dist/src/modules/v4/status/status.model.d.ts +12 -0
  89. package/dist/src/modules/v4/status/status.model.js +12 -0
  90. package/dist/src/modules/v4/token/token.controller.d.ts +4 -4
  91. package/dist/src/modules/v4/token/token.controller.js +1 -1
  92. package/dist/src/modules/v4/token/token.model.d.ts +12 -0
  93. package/dist/src/modules/v4/token/token.model.js +12 -0
  94. package/dist/src/modules/v4/token/token.repository.d.ts +2 -2
  95. package/dist/src/modules/v4/token/token.service.d.ts +7 -7
  96. package/dist/src/modules/v4/tvl/tvl.model.d.ts +24 -0
  97. package/dist/src/modules/v4/tvl/tvl.model.js +15 -1
  98. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +1 -1
  99. package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.js +9 -8
  100. package/dist/src/modules/v4/user/user.controller.d.ts +4 -4
  101. package/dist/src/modules/v4/user/user.controller.js +20 -17
  102. package/dist/src/modules/v4/user/user.model.d.ts +30 -0
  103. package/dist/src/modules/v4/user/user.model.js +27 -0
  104. package/dist/src/modules/v4/zyfi/zyfi.model.d.ts +45 -0
  105. package/dist/src/modules/v4/zyfi/zyfi.model.js +1 -0
  106. package/dist/src/modules/v4/zyfi/zyfi.service.d.ts +30 -0
  107. package/dist/src/modules/v4/zyfi/zyfi.service.js +35 -0
  108. package/dist/src/plugins/error-handling.plugin.d.ts +2 -2
  109. package/dist/src/plugins/error-handling.plugin.js +9 -3
  110. package/dist/src/plugins/logger.plugin.js +1 -20
  111. package/dist/src/routes/v1/allowances.d.ts +1 -1
  112. package/dist/src/routes/v1/allowances.js +1 -1
  113. package/dist/src/routes/v1/balances.d.ts +1 -1
  114. package/dist/src/routes/v1/balances.js +1 -1
  115. package/dist/src/routes/v1/prices.d.ts +1 -1
  116. package/dist/src/routes/v1/prices.js +1 -1
  117. package/dist/src/routes/v1/router.d.ts +102 -0
  118. package/dist/src/routes/v1/router.js +6 -0
  119. package/dist/src/routes/v1/tokens.d.ts +1 -1
  120. package/dist/src/routes/v1/tokens.js +1 -1
  121. package/dist/src/routes/v2/merkl.d.ts +5 -5
  122. package/dist/src/routes/v2/merkl.js +1 -1
  123. package/dist/src/routes/v2/router.d.ts +46 -0
  124. package/dist/src/routes/v2/router.js +3 -0
  125. package/dist/src/routes/v3/app.d.ts +1 -1
  126. package/dist/src/routes/v3/app.js +1 -1
  127. package/dist/src/routes/v3/blacklist.d.ts +1 -2479
  128. package/dist/src/routes/v3/blacklist.js +1 -1
  129. package/dist/src/routes/v3/campaignClaims.d.ts +1 -1
  130. package/dist/src/routes/v3/campaignClaims.js +1 -1
  131. package/dist/src/routes/v3/campaignReport.d.ts +1 -1
  132. package/dist/src/routes/v3/campaignReport.js +1 -1
  133. package/dist/src/routes/v3/campaignUnclaimed.d.ts +1 -1
  134. package/dist/src/routes/v3/campaignUnclaimed.js +1 -1
  135. package/dist/src/routes/v3/campaigns.d.ts +1 -2483
  136. package/dist/src/routes/v3/campaigns.js +1 -1
  137. package/dist/src/routes/v3/campaignsForMainParameter.d.ts +1 -1
  138. package/dist/src/routes/v3/campaignsForMainParameter.js +1 -1
  139. package/dist/src/routes/v3/campaignsInfo.d.ts +1 -2481
  140. package/dist/src/routes/v3/campaignsInfo.js +1 -1
  141. package/dist/src/routes/v3/campaignsRewardsReport.d.ts +1 -1
  142. package/dist/src/routes/v3/campaignsRewardsReport.js +1 -1
  143. package/dist/src/routes/v3/claims.d.ts +2 -2
  144. package/dist/src/routes/v3/claims.js +1 -1
  145. package/dist/src/routes/v3/compoundV2.d.ts +1 -1
  146. package/dist/src/routes/v3/compoundV2.js +1 -1
  147. package/dist/src/routes/v3/createCampaign.d.ts +1 -1
  148. package/dist/src/routes/v3/createCampaign.js +1 -1
  149. package/dist/src/routes/v3/dolomite.d.ts +1 -1
  150. package/dist/src/routes/v3/dolomite.js +1 -1
  151. package/dist/src/routes/v3/euler.d.ts +1 -1
  152. package/dist/src/routes/v3/euler.js +1 -1
  153. package/dist/src/routes/v3/fetch.d.ts +1 -1
  154. package/dist/src/routes/v3/fetch.js +1 -1
  155. package/dist/src/routes/v3/health.d.ts +1 -1
  156. package/dist/src/routes/v3/health.js +1 -1
  157. package/dist/src/routes/v3/lostyield.d.ts +1 -1
  158. package/dist/src/routes/v3/lostyield.js +1 -1
  159. package/dist/src/routes/v3/merkl.d.ts +1 -1
  160. package/dist/src/routes/v3/merkl.js +1 -1
  161. package/dist/src/routes/v3/morphoMarkets.d.ts +1 -1
  162. package/dist/src/routes/v3/morphoMarkets.js +1 -1
  163. package/dist/src/routes/v3/morphoVaults.d.ts +1 -1
  164. package/dist/src/routes/v3/morphoVaults.js +1 -1
  165. package/dist/src/routes/v3/multiChainPositions.d.ts +1 -2480
  166. package/dist/src/routes/v3/multiChainPositions.js +1 -1
  167. package/dist/src/routes/v3/opportunity.d.ts +1 -2483
  168. package/dist/src/routes/v3/opportunity.js +1 -1
  169. package/dist/src/routes/v3/overview.d.ts +1 -1
  170. package/dist/src/routes/v3/overview.js +1 -1
  171. package/dist/src/routes/v3/parse.d.ts +1 -1
  172. package/dist/src/routes/v3/parse.js +1 -1
  173. package/dist/src/routes/v3/payload.d.ts +1 -1
  174. package/dist/src/routes/v3/payload.js +1 -1
  175. package/dist/src/routes/v3/poolInfo.js +1 -1
  176. package/dist/src/routes/v3/positions.d.ts +1 -2479
  177. package/dist/src/routes/v3/positions.js +1 -1
  178. package/dist/src/routes/v3/radiant.d.ts +1 -1
  179. package/dist/src/routes/v3/radiant.js +1 -1
  180. package/dist/src/routes/v3/recipients.d.ts +1 -1
  181. package/dist/src/routes/v3/recipients.js +1 -1
  182. package/dist/src/routes/v3/rewards.d.ts +1 -2508
  183. package/dist/src/routes/v3/rewards.js +1 -1
  184. package/dist/src/routes/v3/rewardsReport.d.ts +1 -1
  185. package/dist/src/routes/v3/rewardsReport.js +1 -1
  186. package/dist/src/routes/v3/router.d.ts +1 -0
  187. package/dist/src/routes/v3/router.js +74 -0
  188. package/dist/src/routes/v3/silo.d.ts +1 -1
  189. package/dist/src/routes/v3/silo.js +1 -1
  190. package/dist/src/routes/v3/token.d.ts +1 -1
  191. package/dist/src/routes/v3/token.js +1 -1
  192. package/dist/src/routes/v3/tokenUnclaimed.d.ts +1 -1
  193. package/dist/src/routes/v3/tokenUnclaimed.js +1 -1
  194. package/dist/src/routes/v3/updates.d.ts +1 -2483
  195. package/dist/src/routes/v3/updates.js +1 -1
  196. package/dist/src/routes/v3/userRewards.d.ts +1 -2499
  197. package/dist/src/routes/v3/userRewards.js +1 -1
  198. package/dist/src/utils/decodeCalls.js +12 -1
  199. package/dist/src/utils/encodeCalls.js +26 -3
  200. package/dist/src/utils/generateCardName.js +2 -0
  201. package/dist/tsconfig.package.tsbuildinfo +1 -1
  202. package/package.json +2 -3
  203. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.d.ts +0 -3
  204. package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicDataRefacto.js +0 -155
  205. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.d.ts +0 -4
  206. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.js +0 -24
  207. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.d.ts +0 -4
  208. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1RefactoFinal.js +0 -230
  209. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.d.ts +0 -3
  210. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2RefactoFinal.js +0 -22
  211. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.d.ts +0 -3
  212. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3RefactoFinal.js +0 -22
  213. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.d.ts +0 -4
  214. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4RefactoFinal.js +0 -22
  215. package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.d.ts +0 -3
  216. package/dist/src/libs/campaigns/campaignsDynamicDataRefacto.js +0 -75
@@ -22,2487 +22,5 @@ export declare const response: import("@sinclair/typebox").TRecord<import("@sinc
22
22
  type: import("@sinclair/typebox").TNumber;
23
23
  }>;
24
24
  }>>;
25
- declare const _default: (app: App) => import("elysia").default<"", false, {
26
- decorator: {};
27
- store: {};
28
- derive: {};
29
- resolve: {};
30
- }, {
31
- type: {};
32
- error: {
33
- readonly HttpError: import("../../errors").HttpError;
34
- readonly BadRequestError: import("../../errors").BadRequestError;
35
- readonly ConflictError: import("../../errors").ConflictError;
36
- readonly NotFoundError: import("../../errors").NotFoundError;
37
- readonly UnauthorizedError: import("../../errors").UnauthorizedError;
38
- readonly InvalidParameter: import("../../utils/error").InvalidParameter;
39
- readonly UnsupportedNetwork: import("../../utils/error").UnsupportedNetwork;
40
- readonly OpportunityNotFound: import("../../utils/error").OpportunityNotFound;
41
- readonly MerkleRootNotFound: import("../../utils/error").MerkleRootNotFound;
42
- readonly ValidationError: import("elysia").ValidationError;
43
- readonly InvalidCacheCall: import("../../utils/error").InvalidCacheCall;
44
- };
45
- }, {
46
- schema: {};
47
- macro: {};
48
- macroFn: {};
49
- }, false & {
50
- index: {
51
- get: {
52
- body: unknown;
53
- params: {};
54
- query: unknown;
55
- headers: unknown;
56
- response: {
57
- 200: string;
58
- };
59
- };
60
- };
61
- } & {
62
- v4: {};
63
- } & {
64
- v4: {
65
- opportunities: {
66
- index: {
67
- post: {
68
- body: {
69
- name?: string | undefined;
70
- type: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4";
71
- tokens: {
72
- chainId: number;
73
- address: string;
74
- }[];
75
- status: "NONE" | "PAST" | "LIVE" | "SOON";
76
- identifier: string;
77
- chainId: number;
78
- action: "INVALID" | "POOL" | "HOLD" | "DROP" | "LEND" | "BORROW";
79
- protocols: string[];
80
- mainProtocol: string;
81
- };
82
- params: {};
83
- query: unknown;
84
- headers: {
85
- authorization: string;
86
- };
87
- response: {
88
- 200: void;
89
- };
90
- };
91
- };
92
- };
93
- } & {
94
- opportunities: {
95
- ":id": {
96
- get: {
97
- body: unknown;
98
- params: {
99
- id: string;
100
- };
101
- query: unknown;
102
- headers: unknown;
103
- response: {
104
- 200: {
105
- aprRecord: {
106
- cumulated: number;
107
- timestamp: bigint;
108
- breakdowns: {
109
- type: import("../../../database/api/.generated").$Enums.AprType;
110
- id: number;
111
- identifier: string;
112
- value: number;
113
- aprRecordId: string;
114
- }[];
115
- };
116
- tvlRecord: {
117
- id: string;
118
- total: number;
119
- timestamp: bigint;
120
- breakdowns: {
121
- type: import("../../../database/api/.generated").$Enums.TvlType;
122
- id: number;
123
- identifier: string;
124
- value: number;
125
- tvlRecordId: string;
126
- }[];
127
- };
128
- rewardsRecord: {
129
- id: string;
130
- total: number;
131
- timestamp: bigint;
132
- breakdowns: {
133
- id: number;
134
- value: number;
135
- campaignId: string;
136
- dailyRewardsRecordId: string;
137
- token: {
138
- symbol: string;
139
- name: string | null;
140
- id: string;
141
- chainId: number;
142
- address: string;
143
- icon: string;
144
- decimals: number;
145
- displaySymbol: string;
146
- verified: boolean;
147
- isTest: boolean;
148
- price: number | null;
149
- };
150
- amount: bigint;
151
- }[];
152
- };
153
- id: string;
154
- tokens: ({
155
- symbol: string;
156
- name: string | null;
157
- id: string;
158
- chainId: number;
159
- address: string;
160
- icon: string;
161
- decimals: number;
162
- verified: boolean;
163
- isTest: boolean;
164
- } & {
165
- price?: number | null | undefined;
166
- })[];
167
- chain: {
168
- name: string;
169
- id: number;
170
- icon: string;
171
- };
172
- protocol: {
173
- name: string;
174
- url: string;
175
- description: string;
176
- id: string;
177
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
178
- icon: string;
179
- } | undefined;
180
- name: string;
181
- type: import("../../../database/api/.generated").$Enums.CampaignType;
182
- status: import("../../../database/api/.generated").$Enums.Status;
183
- tags: string[];
184
- identifier: string;
185
- chainId: number;
186
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
187
- tvl: number;
188
- apr: number;
189
- dailyRewards: number;
190
- } | undefined;
191
- };
192
- };
193
- };
194
- };
195
- } & {
196
- opportunities: {
197
- ":id": {
198
- campaigns: {
199
- get: {
200
- body: unknown;
201
- params: {
202
- id: string;
203
- };
204
- query: unknown;
205
- headers: unknown;
206
- response: {
207
- 200: {
208
- aprRecord: {
209
- cumulated: number;
210
- timestamp: bigint;
211
- breakdowns: {
212
- type: import("../../../database/api/.generated").$Enums.AprType;
213
- id: number;
214
- identifier: string;
215
- value: number;
216
- aprRecordId: string;
217
- }[];
218
- };
219
- tvlRecord: {
220
- id: string;
221
- total: number;
222
- timestamp: bigint;
223
- breakdowns: {
224
- type: import("../../../database/api/.generated").$Enums.TvlType;
225
- id: number;
226
- identifier: string;
227
- value: number;
228
- tvlRecordId: string;
229
- }[];
230
- };
231
- rewardsRecord: {
232
- id: string;
233
- total: number;
234
- timestamp: bigint;
235
- breakdowns: {
236
- id: number;
237
- value: number;
238
- campaignId: string;
239
- dailyRewardsRecordId: string;
240
- token: {
241
- symbol: string;
242
- name: string | null;
243
- id: string;
244
- chainId: number;
245
- address: string;
246
- icon: string;
247
- decimals: number;
248
- displaySymbol: string;
249
- verified: boolean;
250
- isTest: boolean;
251
- price: number | null;
252
- };
253
- amount: bigint;
254
- }[];
255
- };
256
- id: string;
257
- tokens: ({
258
- symbol: string;
259
- name: string | null;
260
- id: string;
261
- chainId: number;
262
- address: string;
263
- icon: string;
264
- decimals: number;
265
- verified: boolean;
266
- isTest: boolean;
267
- } & {
268
- price?: number | null | undefined;
269
- })[];
270
- chain: {
271
- name: string;
272
- id: number;
273
- icon: string;
274
- };
275
- protocol: {
276
- name: string;
277
- url: string;
278
- description: string;
279
- id: string;
280
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
281
- icon: string;
282
- } | undefined;
283
- name: string;
284
- type: import("../../../database/api/.generated").$Enums.CampaignType;
285
- status: import("../../../database/api/.generated").$Enums.Status;
286
- tags: string[];
287
- identifier: string;
288
- chainId: number;
289
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
290
- tvl: number;
291
- apr: number;
292
- dailyRewards: number;
293
- campaigns: {
294
- params: any;
295
- chain: {
296
- name: string;
297
- id: number;
298
- icon: string;
299
- };
300
- rewardToken: {
301
- symbol: string;
302
- name: string | null;
303
- id: string;
304
- chainId: number;
305
- address: string;
306
- icon: string;
307
- decimals: number;
308
- verified: boolean;
309
- isTest: boolean;
310
- } & {
311
- price?: number | null | undefined;
312
- };
313
- distributionChain: {
314
- name: string;
315
- id: number;
316
- icon: string;
317
- } | undefined;
318
- campaignStatus: {
319
- error: string;
320
- details: import("database/api/.generated/runtime/library").JsonValue;
321
- status: import("../../../database/api/.generated").$Enums.RunStatus;
322
- campaignId: string;
323
- computedUntil: bigint;
324
- processingStarted: bigint;
325
- };
326
- type: import("../../../database/api/.generated").$Enums.CampaignType;
327
- id: string;
328
- subType: number | null;
329
- startTimestamp: bigint;
330
- endTimestamp: bigint;
331
- computeChainId: number;
332
- distributionChainId: number;
333
- campaignId: string;
334
- rewardTokenId: string;
335
- amount: string;
336
- opportunityId: string;
337
- creatorAddress: string;
338
- }[];
339
- } | null | undefined;
340
- };
341
- };
342
- };
343
- };
344
- };
345
- } & {
346
- opportunities: {
347
- index: {
348
- get: {
349
- body: unknown;
350
- params: {};
351
- query: {
352
- sort?: "tvl" | "apr" | "rewards" | undefined;
353
- name?: string | undefined;
354
- tokens?: string | undefined;
355
- status?: string | undefined;
356
- items?: number | undefined;
357
- tags?: string | undefined;
358
- chainId?: string | undefined;
359
- page?: number | undefined;
360
- action?: string | undefined;
361
- mainProtocolId?: string | undefined;
362
- order?: "asc" | "desc" | undefined;
363
- test?: boolean | undefined;
364
- minimumTvl?: number | undefined;
365
- };
366
- headers: unknown;
367
- response: {
368
- 200: {
369
- aprRecord: {
370
- cumulated: number;
371
- timestamp: bigint;
372
- breakdowns: {
373
- type: import("../../../database/api/.generated").$Enums.AprType;
374
- id: number;
375
- identifier: string;
376
- value: number;
377
- aprRecordId: string;
378
- }[];
379
- };
380
- tvlRecord: {
381
- id: string;
382
- total: number;
383
- timestamp: bigint;
384
- breakdowns: {
385
- type: import("../../../database/api/.generated").$Enums.TvlType;
386
- id: number;
387
- identifier: string;
388
- value: number;
389
- tvlRecordId: string;
390
- }[];
391
- };
392
- rewardsRecord: {
393
- id: string;
394
- total: number;
395
- timestamp: bigint;
396
- breakdowns: {
397
- id: number;
398
- value: number;
399
- campaignId: string;
400
- dailyRewardsRecordId: string;
401
- token: {
402
- symbol: string;
403
- name: string | null;
404
- id: string;
405
- chainId: number;
406
- address: string;
407
- icon: string;
408
- decimals: number;
409
- displaySymbol: string;
410
- verified: boolean;
411
- isTest: boolean;
412
- price: number | null;
413
- };
414
- amount: bigint;
415
- }[];
416
- };
417
- id: string;
418
- tokens: ({
419
- symbol: string;
420
- name: string | null;
421
- id: string;
422
- chainId: number;
423
- address: string;
424
- icon: string;
425
- decimals: number;
426
- verified: boolean;
427
- isTest: boolean;
428
- } & {
429
- price?: number | null | undefined;
430
- })[];
431
- chain: {
432
- name: string;
433
- id: number;
434
- icon: string;
435
- };
436
- protocol: {
437
- name: string;
438
- url: string;
439
- description: string;
440
- id: string;
441
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
442
- icon: string;
443
- } | undefined;
444
- name: string;
445
- type: import("../../../database/api/.generated").$Enums.CampaignType;
446
- status: import("../../../database/api/.generated").$Enums.Status;
447
- tags: string[];
448
- identifier: string;
449
- chainId: number;
450
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
451
- tvl: number;
452
- apr: number;
453
- dailyRewards: number;
454
- }[];
455
- };
456
- };
457
- };
458
- };
459
- } & {
460
- opportunities: {
461
- count: {
462
- get: {
463
- body: unknown;
464
- params: {};
465
- query: {
466
- sort?: "tvl" | "apr" | "rewards" | undefined;
467
- name?: string | undefined;
468
- tokens?: string | undefined;
469
- status?: string | undefined;
470
- items?: number | undefined;
471
- tags?: string | undefined;
472
- chainId?: string | undefined;
473
- page?: number | undefined;
474
- action?: string | undefined;
475
- mainProtocolId?: string | undefined;
476
- order?: "asc" | "desc" | undefined;
477
- test?: boolean | undefined;
478
- minimumTvl?: number | undefined;
479
- };
480
- headers: unknown;
481
- response: {
482
- 200: number;
483
- };
484
- };
485
- };
486
- };
487
- } & {
488
- opportunities: {
489
- aggregate: {
490
- ":field": {
491
- get: {
492
- body: unknown;
493
- params: {
494
- field: never;
495
- };
496
- query: {
497
- sort?: "tvl" | "apr" | "rewards" | undefined;
498
- name?: string | undefined;
499
- tokens?: string | undefined;
500
- status?: string | undefined;
501
- items?: number | undefined;
502
- tags?: string | undefined;
503
- chainId?: string | undefined;
504
- page?: number | undefined;
505
- action?: string | undefined;
506
- mainProtocolId?: string | undefined;
507
- order?: "asc" | "desc" | undefined;
508
- test?: boolean | undefined;
509
- minimumTvl?: number | undefined;
510
- };
511
- headers: unknown;
512
- response: {
513
- 200: {
514
- sum: File;
515
- };
516
- };
517
- };
518
- };
519
- };
520
- };
521
- } & {
522
- opportunities: {
523
- ":id": {
524
- patch: {
525
- body: {
526
- name?: string | undefined;
527
- tags?: string[] | undefined;
528
- };
529
- params: {
530
- id: string;
531
- };
532
- query: unknown;
533
- headers: {
534
- authorization: string;
535
- };
536
- response: {
537
- 200: {
538
- name: string;
539
- type: import("../../../database/api/.generated").$Enums.CampaignType;
540
- id: string;
541
- status: import("../../../database/api/.generated").$Enums.Status;
542
- tags: string[];
543
- identifier: string;
544
- chainId: number;
545
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
546
- mainProtocolId: string | null;
547
- tvl: number;
548
- apr: number;
549
- dailyRewards: number;
550
- };
551
- };
552
- };
553
- };
554
- };
555
- };
556
- } & {
557
- v4: {
558
- campaigns: {
559
- index: {
560
- post: {
561
- body: {
562
- identifier?: string | undefined;
563
- subType?: number | undefined;
564
- type: number;
565
- params: string;
566
- chainId: number;
567
- startTimestamp: string;
568
- endTimestamp: string;
569
- computeChainId: number;
570
- campaignId: string;
571
- amount: string;
572
- creator: string;
573
- rewardTokenAddress: string;
574
- opportunityIdentifier: string;
575
- };
576
- params: {};
577
- query: unknown;
578
- headers: {
579
- authorization: string;
580
- };
581
- response: {
582
- 200: {
583
- type: import("../../../database/api/.generated").$Enums.CampaignType;
584
- id: string;
585
- params: import("database/api/.generated/runtime/library").JsonValue;
586
- subType: number | null;
587
- startTimestamp: bigint;
588
- endTimestamp: bigint;
589
- computeChainId: number;
590
- distributionChainId: number;
591
- campaignId: string;
592
- rewardTokenId: string;
593
- amount: string;
594
- opportunityId: string;
595
- creatorAddress: string;
596
- } | undefined;
597
- };
598
- };
599
- };
600
- } & {
601
- index: {
602
- get: {
603
- body: unknown;
604
- params: {};
605
- query: {
606
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
607
- items?: number | undefined;
608
- subType?: number | undefined;
609
- chainId?: number | undefined;
610
- startTimestamp?: string | undefined;
611
- endTimestamp?: string | undefined;
612
- tokenAddress?: string | undefined;
613
- page?: number | undefined;
614
- mainParameter?: string | undefined;
615
- campaignId?: string | undefined;
616
- opportunityId?: string | undefined;
617
- test?: boolean | undefined;
618
- tokenSymbol?: string | undefined;
619
- };
620
- headers: unknown;
621
- response: {
622
- 200: {
623
- params: any;
624
- chain: {
625
- name: string;
626
- id: number;
627
- icon: string;
628
- };
629
- rewardToken: {
630
- symbol: string;
631
- name: string | null;
632
- id: string;
633
- chainId: number;
634
- address: string;
635
- icon: string;
636
- decimals: number;
637
- verified: boolean;
638
- isTest: boolean;
639
- } & {
640
- price?: number | null | undefined;
641
- };
642
- distributionChain: {
643
- name: string;
644
- id: number;
645
- icon: string;
646
- } | undefined;
647
- campaignStatus: {
648
- error: string;
649
- details: import("database/api/.generated/runtime/library").JsonValue;
650
- status: import("../../../database/api/.generated").$Enums.RunStatus;
651
- campaignId: string;
652
- computedUntil: bigint;
653
- processingStarted: bigint;
654
- };
655
- type: import("../../../database/api/.generated").$Enums.CampaignType;
656
- id: string;
657
- subType: number | null;
658
- startTimestamp: bigint;
659
- endTimestamp: bigint;
660
- computeChainId: number;
661
- distributionChainId: number;
662
- campaignId: string;
663
- rewardTokenId: string;
664
- amount: string;
665
- opportunityId: string;
666
- creatorAddress: string;
667
- }[];
668
- };
669
- };
670
- };
671
- } & {
672
- count: {
673
- get: {
674
- body: unknown;
675
- params: {};
676
- query: {
677
- type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
678
- items?: number | undefined;
679
- subType?: number | undefined;
680
- chainId?: number | undefined;
681
- startTimestamp?: string | undefined;
682
- endTimestamp?: string | undefined;
683
- tokenAddress?: string | undefined;
684
- page?: number | undefined;
685
- mainParameter?: string | undefined;
686
- campaignId?: string | undefined;
687
- opportunityId?: string | undefined;
688
- test?: boolean | undefined;
689
- tokenSymbol?: string | undefined;
690
- };
691
- headers: unknown;
692
- response: {
693
- 200: number;
694
- };
695
- };
696
- };
697
- } & {
698
- "campaigns-to-process": {
699
- index: {
700
- get: {
701
- body: unknown;
702
- params: {};
703
- query: {
704
- chainId: number;
705
- };
706
- headers: unknown;
707
- response: {
708
- 200: {
709
- endTimestamp: bigint;
710
- campaignId: string;
711
- CampaignStatus: {
712
- computedUntil: bigint;
713
- }[];
714
- }[];
715
- };
716
- };
717
- };
718
- };
719
- } & {
720
- "campaigns-to-process": {
721
- count: {
722
- get: {
723
- body: unknown;
724
- params: {};
725
- query: {
726
- chainId: number;
727
- };
728
- headers: unknown;
729
- response: {
730
- 200: number;
731
- };
732
- };
733
- };
734
- };
735
- } & {
736
- "campaigns-to-process": {
737
- engine: {
738
- post: {
739
- body: unknown;
740
- params: {};
741
- query: {
742
- chainId: number;
743
- };
744
- headers: {
745
- authorization: string;
746
- };
747
- response: {
748
- 200: string;
749
- };
750
- };
751
- };
752
- };
753
- };
754
- };
755
- } & {
756
- v4: {
757
- protocols: {
758
- ":id": {
759
- get: {
760
- body: unknown;
761
- params: {
762
- id: string;
763
- };
764
- query: unknown;
765
- headers: unknown;
766
- response: {
767
- 200: {
768
- name: string;
769
- url: string;
770
- description: string;
771
- id: string;
772
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
773
- icon: string;
774
- } | null;
775
- };
776
- };
777
- };
778
- };
779
- } & {
780
- protocols: {
781
- index: {
782
- get: {
783
- body: unknown;
784
- params: {};
785
- query: {
786
- name?: string | undefined;
787
- id?: string[] | undefined;
788
- items?: number | undefined;
789
- tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
790
- page?: number | undefined;
791
- };
792
- headers: unknown;
793
- response: {
794
- 200: ({
795
- name: string;
796
- url: string;
797
- description: string;
798
- id: string;
799
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
800
- icon: string;
801
- } & {})[];
802
- };
803
- };
804
- };
805
- };
806
- } & {
807
- protocols: {
808
- count: {
809
- get: {
810
- body: unknown;
811
- params: {};
812
- query: unknown;
813
- headers: unknown;
814
- response: {
815
- 200: number;
816
- };
817
- };
818
- };
819
- };
820
- } & {
821
- protocols: {
822
- ":id": {
823
- patch: {
824
- body: {
825
- url?: string | undefined;
826
- description?: string | undefined;
827
- icon?: string | undefined;
828
- };
829
- params: {
830
- id: string;
831
- };
832
- query: unknown;
833
- headers: {
834
- authorization: string;
835
- };
836
- response: {
837
- 200: {
838
- name: string;
839
- url: string;
840
- description: string;
841
- id: string;
842
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
843
- icon: string;
844
- };
845
- };
846
- };
847
- };
848
- };
849
- };
850
- } & {
851
- v4: {
852
- tokens: {
853
- ":id": {
854
- get: {
855
- body: unknown;
856
- params: {
857
- id: string;
858
- };
859
- query: unknown;
860
- headers: unknown;
861
- response: {
862
- 200: {
863
- symbol: string;
864
- name: string | null;
865
- id: string;
866
- chainId: number;
867
- address: string;
868
- icon: string;
869
- decimals: number;
870
- verified: boolean;
871
- isTest: boolean;
872
- price?: number | null | undefined;
873
- } | undefined;
874
- };
875
- };
876
- };
877
- };
878
- } & {
879
- tokens: {
880
- balances: {
881
- get: {
882
- body: unknown;
883
- params: {};
884
- query: {
885
- tokenAddress?: string | undefined;
886
- additionalTokenAddresses?: string[] | undefined;
887
- chainId: number;
888
- userAddress: string;
889
- };
890
- headers: unknown;
891
- response: {
892
- 200: ({
893
- symbol: string;
894
- name: string | null;
895
- id: string;
896
- chainId: number;
897
- address: string;
898
- icon: string;
899
- decimals: number;
900
- verified: boolean;
901
- isTest: boolean;
902
- } & {
903
- price?: number | null | undefined;
904
- } & {
905
- balance: bigint;
906
- })[];
907
- };
908
- };
909
- };
910
- };
911
- } & {
912
- tokens: {
913
- index: {
914
- get: {
915
- body: unknown;
916
- params: {};
917
- query: {
918
- symbol?: string | undefined;
919
- name?: string | undefined;
920
- chainId?: any;
921
- address?: string | undefined;
922
- verified?: boolean | undefined;
923
- test?: boolean | undefined;
924
- };
925
- headers: unknown;
926
- response: {
927
- 200: ({
928
- symbol: string;
929
- name: string | null;
930
- id: string;
931
- chainId: number;
932
- address: string;
933
- icon: string;
934
- decimals: number;
935
- verified: boolean;
936
- isTest: boolean;
937
- } & {
938
- price?: number | null | undefined;
939
- })[];
940
- };
941
- };
942
- };
943
- };
944
- } & {
945
- tokens: {
946
- count: {
947
- get: {
948
- body: unknown;
949
- params: {};
950
- query: {
951
- symbol?: string | undefined;
952
- name?: string | undefined;
953
- chainId?: any;
954
- address?: string | undefined;
955
- verified?: boolean | undefined;
956
- test?: boolean | undefined;
957
- };
958
- headers: unknown;
959
- response: {
960
- 200: number;
961
- };
962
- };
963
- };
964
- };
965
- } & {
966
- tokens: {
967
- ":id": {
968
- patch: {
969
- body: {
970
- icon?: string | undefined;
971
- displaySymbol?: string | undefined;
972
- isTest?: boolean | undefined;
973
- };
974
- params: {
975
- id: string;
976
- };
977
- query: unknown;
978
- headers: {
979
- authorization: string;
980
- };
981
- response: {
982
- 200: {
983
- symbol: string;
984
- name: string | null;
985
- id: string;
986
- chainId: number;
987
- address: string;
988
- icon: string;
989
- decimals: number;
990
- displaySymbol: string;
991
- verified: boolean;
992
- isTest: boolean;
993
- price: number | null;
994
- };
995
- };
996
- };
997
- };
998
- };
999
- };
1000
- } & {
1001
- v4: {
1002
- rewards: {
1003
- index: {
1004
- get: {
1005
- body: unknown;
1006
- params: {};
1007
- query: {
1008
- items?: number | undefined;
1009
- page?: number | undefined;
1010
- chainId: number;
1011
- campaignId: string;
1012
- };
1013
- headers: unknown;
1014
- response: {
1015
- 200: import("../../modules/v4/reward").BreakdownForCampaignsRaw[];
1016
- };
1017
- };
1018
- };
1019
- } & {
1020
- total: {
1021
- get: {
1022
- body: unknown;
1023
- params: {};
1024
- query: {
1025
- items?: number | undefined;
1026
- page?: number | undefined;
1027
- chainId: number;
1028
- campaignId: string;
1029
- };
1030
- headers: unknown;
1031
- response: {
1032
- 200: {
1033
- campaignId: string;
1034
- amount: bigint;
1035
- };
1036
- };
1037
- };
1038
- };
1039
- } & {
1040
- engine: {
1041
- post: {
1042
- body: {
1043
- recipient: string;
1044
- distributionChainId: number;
1045
- root: string;
1046
- proofs: string[];
1047
- rewardToken: string;
1048
- }[];
1049
- params: {};
1050
- query: unknown;
1051
- headers: {
1052
- authorization: string;
1053
- };
1054
- response: {
1055
- 200: {
1056
- count: number;
1057
- };
1058
- };
1059
- };
1060
- };
1061
- } & {
1062
- engine: {
1063
- breakdowns: {
1064
- post: {
1065
- body: {
1066
- distributionChainId: number;
1067
- campaignId: string;
1068
- root: string;
1069
- rewardToken: string;
1070
- breakdowns: {
1071
- protocolId?: string | undefined;
1072
- auxiliaryData1?: string | undefined;
1073
- auxiliaryData2?: string | undefined;
1074
- reason: string;
1075
- pending: string;
1076
- recipient: string;
1077
- amount: string;
1078
- claimed: string;
1079
- }[];
1080
- }[];
1081
- params: {};
1082
- query: unknown;
1083
- headers: {
1084
- authorization: string;
1085
- };
1086
- response: {
1087
- 200: {
1088
- count: number;
1089
- } | undefined;
1090
- };
1091
- };
1092
- };
1093
- };
1094
- } & {
1095
- engine: {
1096
- claims: {
1097
- post: {
1098
- body: {
1099
- token: string;
1100
- chainId: number;
1101
- recipient: string;
1102
- root: string;
1103
- }[];
1104
- params: {};
1105
- query: unknown;
1106
- headers: {
1107
- authorization: string;
1108
- };
1109
- response: {
1110
- 200: void;
1111
- };
1112
- };
1113
- };
1114
- };
1115
- } & {
1116
- engine: {
1117
- pendings: {
1118
- post: {
1119
- body: {
1120
- distributionChainId: number;
1121
- campaignId: string;
1122
- root: string;
1123
- rewardToken: string;
1124
- toUpdate: {
1125
- auxiliaryData1?: string | undefined;
1126
- auxiliaryData2?: string | undefined;
1127
- reason: string;
1128
- pending: string;
1129
- recipient: string;
1130
- }[];
1131
- toCreate: {
1132
- auxiliaryData1?: string | undefined;
1133
- auxiliaryData2?: string | undefined;
1134
- reason: string;
1135
- pending: string;
1136
- recipient: string;
1137
- }[];
1138
- };
1139
- params: {};
1140
- query: unknown;
1141
- headers: {
1142
- authorization: string;
1143
- };
1144
- response: {
1145
- 200: boolean;
1146
- };
1147
- };
1148
- };
1149
- };
1150
- } & {
1151
- count: {
1152
- get: {
1153
- body: unknown;
1154
- params: {};
1155
- query: {
1156
- items?: number | undefined;
1157
- page?: number | undefined;
1158
- chainId: number;
1159
- campaignId: string;
1160
- };
1161
- headers: unknown;
1162
- response: {
1163
- 200: {
1164
- count: number;
1165
- };
1166
- };
1167
- };
1168
- };
1169
- } & {
1170
- count: {
1171
- chains: {
1172
- get: {
1173
- body: unknown;
1174
- params: {};
1175
- query: unknown;
1176
- headers: {
1177
- authorization: string;
1178
- };
1179
- response: {
1180
- 200: {
1181
- [x: string]: {
1182
- breakdown: number;
1183
- rewards: Record<string, number>;
1184
- };
1185
- };
1186
- };
1187
- };
1188
- };
1189
- };
1190
- } & {
1191
- unclaim: {
1192
- index: {
1193
- get: {
1194
- body: unknown;
1195
- params: {};
1196
- query: {
1197
- chainId: number;
1198
- campaignIds: string[];
1199
- };
1200
- headers: unknown;
1201
- response: {
1202
- 200: {
1203
- [x: string]: string;
1204
- };
1205
- };
1206
- };
1207
- };
1208
- };
1209
- };
1210
- };
1211
- } & {
1212
- v4: {
1213
- chains: {
1214
- ":chainId": {
1215
- get: {
1216
- body: unknown;
1217
- params: {
1218
- chainId: number;
1219
- };
1220
- query: unknown;
1221
- headers: unknown;
1222
- response: {
1223
- 200: {
1224
- name: string;
1225
- id: number;
1226
- icon: string;
1227
- explorers: {
1228
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1229
- url: string;
1230
- id: string;
1231
- chainId: number;
1232
- }[];
1233
- } | null;
1234
- };
1235
- };
1236
- };
1237
- } & {
1238
- index: {
1239
- get: {
1240
- body: unknown;
1241
- params: {};
1242
- query: {
1243
- search?: string | undefined;
1244
- };
1245
- headers: unknown;
1246
- response: {
1247
- 200: {
1248
- name: string;
1249
- id: number;
1250
- icon: string;
1251
- explorers: {
1252
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1253
- url: string;
1254
- id: string;
1255
- chainId: number;
1256
- }[];
1257
- }[];
1258
- };
1259
- };
1260
- };
1261
- } & {
1262
- count: {
1263
- get: {
1264
- body: unknown;
1265
- params: {};
1266
- query: {
1267
- search?: string | undefined;
1268
- };
1269
- headers: unknown;
1270
- response: {
1271
- 200: number;
1272
- };
1273
- };
1274
- };
1275
- } & {
1276
- explorers: {
1277
- post: {
1278
- body: {
1279
- type: "ETHERSCAN" | "BLOCKSCOUT";
1280
- url: string;
1281
- chainId: number;
1282
- };
1283
- params: {};
1284
- query: unknown;
1285
- headers: {
1286
- authorization: string;
1287
- };
1288
- response: {
1289
- 200: {
1290
- type: import("../../../database/api/.generated").$Enums.ExplorerType;
1291
- url: string;
1292
- id: string;
1293
- chainId: number;
1294
- };
1295
- };
1296
- };
1297
- };
1298
- };
1299
- } & {
1300
- chains: {
1301
- ":chainId": {
1302
- patch: {
1303
- body: {
1304
- icon?: string | undefined;
1305
- };
1306
- params: {
1307
- chainId: number;
1308
- };
1309
- query: unknown;
1310
- headers: {
1311
- authorization: string;
1312
- };
1313
- response: {
1314
- 200: {
1315
- name: string;
1316
- id: number;
1317
- icon: string;
1318
- };
1319
- };
1320
- };
1321
- };
1322
- };
1323
- };
1324
- } & {
1325
- v4: {
1326
- prices: {
1327
- index: {
1328
- get: {
1329
- body: unknown;
1330
- params: {};
1331
- query: unknown;
1332
- headers: unknown;
1333
- response: {
1334
- 200: {
1335
- [x: string]: number;
1336
- };
1337
- };
1338
- };
1339
- };
1340
- } & {
1341
- array: {
1342
- get: {
1343
- body: unknown;
1344
- params: {};
1345
- query: unknown;
1346
- headers: unknown;
1347
- response: {
1348
- 200: {
1349
- rate: number;
1350
- token: string;
1351
- }[];
1352
- };
1353
- };
1354
- };
1355
- } & {
1356
- symbol: {
1357
- ":symbol": {
1358
- get: {
1359
- body: unknown;
1360
- params: {
1361
- symbol: string;
1362
- };
1363
- query: unknown;
1364
- headers: unknown;
1365
- response: {
1366
- 200: number;
1367
- };
1368
- };
1369
- };
1370
- };
1371
- } & {
1372
- sources: {
1373
- index: {
1374
- get: {
1375
- body: unknown;
1376
- params: {};
1377
- query: unknown;
1378
- headers: unknown;
1379
- response: {
1380
- 200: {
1381
- symbol: string;
1382
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1383
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1384
- id: number;
1385
- }[];
1386
- };
1387
- };
1388
- };
1389
- };
1390
- } & {
1391
- sources: {
1392
- symbol: {
1393
- ":symbol": {
1394
- get: {
1395
- body: unknown;
1396
- params: {
1397
- symbol: string;
1398
- };
1399
- query: unknown;
1400
- headers: unknown;
1401
- response: {
1402
- 200: {
1403
- symbol: string;
1404
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1405
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1406
- id: number;
1407
- };
1408
- };
1409
- };
1410
- };
1411
- };
1412
- };
1413
- } & {
1414
- sources: {
1415
- index: {
1416
- post: {
1417
- body: {
1418
- symbol: string;
1419
- method: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA";
1420
- args: {};
1421
- };
1422
- params: {};
1423
- query: unknown;
1424
- headers: {
1425
- authorization: string;
1426
- };
1427
- response: {
1428
- 200: number | undefined;
1429
- };
1430
- };
1431
- };
1432
- };
1433
- } & {
1434
- sources: {
1435
- symbol: {
1436
- ":symbol": {
1437
- patch: {
1438
- body: {
1439
- symbol?: string | undefined;
1440
- method?: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA" | undefined;
1441
- args?: {} | undefined;
1442
- };
1443
- params: {
1444
- symbol: string;
1445
- };
1446
- query: unknown;
1447
- headers: {
1448
- authorization: string;
1449
- };
1450
- response: {
1451
- 200: {
1452
- symbol: string;
1453
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1454
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1455
- id: number;
1456
- };
1457
- };
1458
- };
1459
- };
1460
- };
1461
- };
1462
- } & {
1463
- sources: {
1464
- symbol: {
1465
- ":symbol": {
1466
- delete: {
1467
- body: unknown;
1468
- params: {
1469
- symbol: string;
1470
- };
1471
- query: unknown;
1472
- headers: {
1473
- authorization: string;
1474
- };
1475
- response: {
1476
- 200: {
1477
- symbol: string;
1478
- method: import("../../../database/api/.generated").$Enums.PriceSourceMethod;
1479
- args: import("database/api/.generated/runtime/library").JsonValue | null;
1480
- id: number;
1481
- };
1482
- };
1483
- };
1484
- };
1485
- };
1486
- };
1487
- };
1488
- };
1489
- } & {
1490
- v4: {
1491
- blacklists: {
1492
- index: {
1493
- get: {
1494
- body: unknown;
1495
- params: {};
1496
- query: unknown;
1497
- headers: unknown;
1498
- response: {
1499
- 200: {
1500
- id: string;
1501
- chainId: number;
1502
- poolAddress: string;
1503
- userAddress: string;
1504
- arrestTimestamp: bigint;
1505
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1506
- }[];
1507
- };
1508
- };
1509
- };
1510
- };
1511
- } & {
1512
- blacklists: {
1513
- mapping: {
1514
- get: {
1515
- body: unknown;
1516
- params: {};
1517
- query: unknown;
1518
- headers: unknown;
1519
- response: {
1520
- 200: unknown;
1521
- };
1522
- };
1523
- };
1524
- };
1525
- } & {
1526
- blacklists: {
1527
- check: {
1528
- ":address": {
1529
- get: {
1530
- body: unknown;
1531
- params: {
1532
- address: string;
1533
- };
1534
- query: unknown;
1535
- headers: unknown;
1536
- response: {
1537
- 200: boolean;
1538
- };
1539
- };
1540
- };
1541
- };
1542
- };
1543
- } & {
1544
- blacklists: {
1545
- index: {
1546
- post: {
1547
- body: {
1548
- reason?: string | undefined;
1549
- chainId: number;
1550
- poolAddress: string;
1551
- userAddress: string;
1552
- };
1553
- params: {};
1554
- query: unknown;
1555
- headers: {
1556
- authorization: string;
1557
- };
1558
- response: {
1559
- 200: {
1560
- id: string;
1561
- chainId: number;
1562
- poolAddress: string;
1563
- userAddress: string;
1564
- arrestTimestamp: bigint;
1565
- arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
1566
- };
1567
- };
1568
- };
1569
- };
1570
- };
1571
- } & {
1572
- blacklists: {
1573
- user: {
1574
- ":address": {
1575
- delete: {
1576
- body: unknown;
1577
- params: {
1578
- address: string;
1579
- };
1580
- query: unknown;
1581
- headers: {
1582
- authorization: string;
1583
- };
1584
- response: {
1585
- 200: boolean;
1586
- };
1587
- };
1588
- };
1589
- };
1590
- };
1591
- };
1592
- } & {
1593
- v4: {
1594
- users: {
1595
- index: {
1596
- get: {
1597
- body: unknown;
1598
- params: {};
1599
- query: {
1600
- items?: number | undefined;
1601
- tags?: string[] | undefined;
1602
- page?: number | undefined;
1603
- address?: string | undefined;
1604
- };
1605
- headers: unknown;
1606
- response: {
1607
- 200: {
1608
- tags: string[];
1609
- address: string;
1610
- }[];
1611
- };
1612
- };
1613
- };
1614
- };
1615
- } & {
1616
- users: {
1617
- tags: {
1618
- get: {
1619
- body: unknown;
1620
- params: {};
1621
- query: unknown;
1622
- headers: {
1623
- authorization: string;
1624
- };
1625
- response: {
1626
- 200: {
1627
- tags: string[];
1628
- address: string;
1629
- }[];
1630
- };
1631
- };
1632
- };
1633
- };
1634
- } & {
1635
- users: {
1636
- ":address": {
1637
- get: {
1638
- body: unknown;
1639
- params: {
1640
- address: string;
1641
- };
1642
- query: unknown;
1643
- headers: unknown;
1644
- response: {
1645
- 200: {
1646
- tags: string[];
1647
- address: string;
1648
- } | null;
1649
- };
1650
- };
1651
- };
1652
- };
1653
- } & {
1654
- users: {
1655
- ":address": {
1656
- rewards: {
1657
- breakdowns: {
1658
- get: {
1659
- body: unknown;
1660
- params: {
1661
- address: string;
1662
- };
1663
- query: {
1664
- chainId?: number | undefined;
1665
- };
1666
- headers: unknown;
1667
- response: {
1668
- 200: (Omit<{
1669
- chain: import("../../../database/api/.generated").Chain;
1670
- rewards: Awaited<ReturnType<typeof import("../../modules/v4/reward").RewardService["format"]>>;
1671
- }, "rewards"> & {
1672
- rewards: (Omit<{
1673
- token: {
1674
- symbol: string;
1675
- name: string | null;
1676
- id: string;
1677
- chainId: number;
1678
- address: string;
1679
- icon: string;
1680
- decimals: number;
1681
- displaySymbol: string;
1682
- verified: boolean;
1683
- isTest: boolean;
1684
- price: number | null;
1685
- };
1686
- breakdowns: {
1687
- campaignId: string;
1688
- opportunity: {
1689
- Chain: {
1690
- name: string;
1691
- id: number;
1692
- icon: string;
1693
- };
1694
- Tokens: {
1695
- symbol: string;
1696
- name: string | null;
1697
- id: string;
1698
- chainId: number;
1699
- address: string;
1700
- icon: string;
1701
- decimals: number;
1702
- displaySymbol: string;
1703
- verified: boolean;
1704
- isTest: boolean;
1705
- price: number | null;
1706
- }[];
1707
- Protocols: {
1708
- name: string;
1709
- url: string;
1710
- description: string;
1711
- id: string;
1712
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1713
- icon: string;
1714
- }[];
1715
- MainProtocol: {
1716
- name: string;
1717
- url: string;
1718
- description: string;
1719
- id: string;
1720
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1721
- icon: string;
1722
- } | null;
1723
- } & {
1724
- name: string;
1725
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1726
- id: string;
1727
- status: import("../../../database/api/.generated").$Enums.Status;
1728
- tags: string[];
1729
- identifier: string;
1730
- chainId: number;
1731
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1732
- mainProtocolId: string | null;
1733
- tvl: number;
1734
- apr: number;
1735
- dailyRewards: number;
1736
- };
1737
- reason: string;
1738
- pending: string;
1739
- amount: string;
1740
- claimed: string;
1741
- auxiliaryData1: string | null;
1742
- auxiliaryData2: string | null;
1743
- }[];
1744
- claimed: bigint;
1745
- amount: bigint;
1746
- pending: bigint;
1747
- recipient: string;
1748
- root: string;
1749
- proofs: string[];
1750
- }, "breakdowns"> & {
1751
- breakdowns: {
1752
- opportunity: import("../../modules/v4").Opportunity["model"];
1753
- claimed: bigint;
1754
- amount: bigint;
1755
- pending: bigint;
1756
- auxiliaryData1: string | null;
1757
- auxiliaryData2: string | null;
1758
- }[];
1759
- })[];
1760
- distributor: string;
1761
- })[];
1762
- };
1763
- };
1764
- };
1765
- };
1766
- };
1767
- };
1768
- } & {
1769
- users: {
1770
- ":address": {
1771
- rewards: {
1772
- get: {
1773
- body: unknown;
1774
- params: {
1775
- address: string;
1776
- };
1777
- query: {
1778
- chainId: number[];
1779
- };
1780
- headers: unknown;
1781
- response: {
1782
- 200: (Omit<{
1783
- chain: import("../../../database/api/.generated").Chain;
1784
- rewards: Awaited<ReturnType<typeof import("../../modules/v4/reward").RewardService["format"]>>;
1785
- }, "rewards"> & {
1786
- rewards: (Omit<{
1787
- token: {
1788
- symbol: string;
1789
- name: string | null;
1790
- id: string;
1791
- chainId: number;
1792
- address: string;
1793
- icon: string;
1794
- decimals: number;
1795
- displaySymbol: string;
1796
- verified: boolean;
1797
- isTest: boolean;
1798
- price: number | null;
1799
- };
1800
- breakdowns: {
1801
- campaignId: string;
1802
- opportunity: {
1803
- Chain: {
1804
- name: string;
1805
- id: number;
1806
- icon: string;
1807
- };
1808
- Tokens: {
1809
- symbol: string;
1810
- name: string | null;
1811
- id: string;
1812
- chainId: number;
1813
- address: string;
1814
- icon: string;
1815
- decimals: number;
1816
- displaySymbol: string;
1817
- verified: boolean;
1818
- isTest: boolean;
1819
- price: number | null;
1820
- }[];
1821
- Protocols: {
1822
- name: string;
1823
- url: string;
1824
- description: string;
1825
- id: string;
1826
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1827
- icon: string;
1828
- }[];
1829
- MainProtocol: {
1830
- name: string;
1831
- url: string;
1832
- description: string;
1833
- id: string;
1834
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
1835
- icon: string;
1836
- } | null;
1837
- } & {
1838
- name: string;
1839
- type: import("../../../database/api/.generated").$Enums.CampaignType;
1840
- id: string;
1841
- status: import("../../../database/api/.generated").$Enums.Status;
1842
- tags: string[];
1843
- identifier: string;
1844
- chainId: number;
1845
- action: import("../../../database/api/.generated").$Enums.OpportunityAction;
1846
- mainProtocolId: string | null;
1847
- tvl: number;
1848
- apr: number;
1849
- dailyRewards: number;
1850
- };
1851
- reason: string;
1852
- pending: string;
1853
- amount: string;
1854
- claimed: string;
1855
- auxiliaryData1: string | null;
1856
- auxiliaryData2: string | null;
1857
- }[];
1858
- claimed: bigint;
1859
- amount: bigint;
1860
- pending: bigint;
1861
- recipient: string;
1862
- root: string;
1863
- proofs: string[];
1864
- }, "breakdowns"> & {
1865
- breakdowns: {
1866
- campaignId: string;
1867
- reason: string;
1868
- pending: string;
1869
- amount: string;
1870
- claimed: string;
1871
- auxiliaryData1: string | null;
1872
- auxiliaryData2: string | null;
1873
- }[];
1874
- })[];
1875
- })[];
1876
- };
1877
- };
1878
- };
1879
- };
1880
- };
1881
- } & {
1882
- users: {
1883
- index: {
1884
- post: {
1885
- body: {
1886
- tags: string[];
1887
- address: string;
1888
- };
1889
- params: {};
1890
- query: unknown;
1891
- headers: {
1892
- authorization: string;
1893
- };
1894
- response: {
1895
- 200: {
1896
- tags: string[];
1897
- address: string;
1898
- };
1899
- };
1900
- };
1901
- };
1902
- };
1903
- } & {
1904
- users: {
1905
- sync: {
1906
- post: {
1907
- body: unknown;
1908
- params: {};
1909
- query: unknown;
1910
- headers: {
1911
- authorization: string;
1912
- };
1913
- response: {
1914
- 200: void;
1915
- };
1916
- };
1917
- };
1918
- };
1919
- } & {
1920
- users: {
1921
- ":address": {
1922
- tags: {
1923
- patch: {
1924
- body: {
1925
- tags: string[];
1926
- };
1927
- params: {
1928
- address: string;
1929
- };
1930
- query: unknown;
1931
- headers: {
1932
- authorization: string;
1933
- };
1934
- response: {
1935
- 200: {
1936
- tags: string[];
1937
- address: string;
1938
- };
1939
- };
1940
- };
1941
- };
1942
- };
1943
- };
1944
- };
1945
- } & {
1946
- v4: {
1947
- roots: {
1948
- index: {
1949
- get: {
1950
- body: unknown;
1951
- params: {};
1952
- query: {
1953
- chainId: number;
1954
- fromTimestamp: string;
1955
- toTimestamp: string;
1956
- };
1957
- headers: unknown;
1958
- response: {
1959
- 200: {
1960
- timestamp: bigint;
1961
- chainId: number;
1962
- root: string;
1963
- epoch: number;
1964
- }[];
1965
- };
1966
- };
1967
- };
1968
- };
1969
- } & {
1970
- roots: {
1971
- live: {
1972
- get: {
1973
- body: unknown;
1974
- params: {};
1975
- query: unknown;
1976
- headers: unknown;
1977
- response: {
1978
- 200: {
1979
- live: string;
1980
- tree: string;
1981
- lastTree: string;
1982
- }[];
1983
- };
1984
- };
1985
- };
1986
- };
1987
- } & {
1988
- roots: {
1989
- engine: {
1990
- post: {
1991
- body: {
1992
- timestamp: number;
1993
- chainId: number;
1994
- root: string;
1995
- epoch: number;
1996
- };
1997
- params: {};
1998
- query: unknown;
1999
- headers: {
2000
- authorization: string;
2001
- };
2002
- response: {
2003
- 200: {
2004
- timestamp: bigint;
2005
- chainId: number;
2006
- root: string;
2007
- epoch: number;
2008
- };
2009
- };
2010
- };
2011
- };
2012
- };
2013
- };
2014
- } & {
2015
- v4: {
2016
- interaction: {
2017
- targets: {
2018
- get: {
2019
- body: unknown;
2020
- params: {};
2021
- query: {
2022
- identifier?: string | undefined;
2023
- chainId: number;
2024
- protocolId: string;
2025
- };
2026
- headers: unknown;
2027
- response: {
2028
- 200: import("../../modules/v4/interaction/interaction.model").InteractionTarget[] | undefined;
2029
- };
2030
- };
2031
- };
2032
- };
2033
- } & {
2034
- interaction: {
2035
- protocols: {
2036
- get: {
2037
- body: unknown;
2038
- params: {};
2039
- query: {
2040
- chainId?: number | undefined;
2041
- };
2042
- headers: unknown;
2043
- response: {
2044
- 200: ({
2045
- name: string;
2046
- url: string;
2047
- description: string;
2048
- id: string;
2049
- tags: import("../../../database/api/.generated").$Enums.ProtocolTag[];
2050
- icon: string;
2051
- } & {})[];
2052
- };
2053
- };
2054
- };
2055
- };
2056
- } & {
2057
- interaction: {
2058
- quote: {
2059
- get: {
2060
- body: unknown;
2061
- params: {};
2062
- query: {
2063
- identifier: string;
2064
- chainId: number;
2065
- protocolId: string;
2066
- userAddress: string;
2067
- fromAmount: string;
2068
- fromTokenAddress: string;
2069
- };
2070
- headers: unknown;
2071
- response: {
2072
- 200: {
2073
- amountOut: {};
2074
- gas: string;
2075
- feeAmount: string[];
2076
- priceImpact: number;
2077
- } | undefined;
2078
- };
2079
- };
2080
- };
2081
- };
2082
- } & {
2083
- interaction: {
2084
- transaction: {
2085
- get: {
2086
- body: unknown;
2087
- params: {};
2088
- query: {
2089
- identifier: string;
2090
- chainId: number;
2091
- protocolId: string;
2092
- userAddress: string;
2093
- fromAmount: string;
2094
- fromTokenAddress: string;
2095
- };
2096
- headers: unknown;
2097
- response: {
2098
- 200: {
2099
- amountOut: string;
2100
- gas: string;
2101
- feeAmount: string[];
2102
- priceImpact: number;
2103
- createAt: number;
2104
- tx: {
2105
- data: string;
2106
- from: string;
2107
- value: string;
2108
- to: string;
2109
- };
2110
- } | undefined;
2111
- };
2112
- };
2113
- };
2114
- };
2115
- };
2116
- } & {
2117
- v4: {
2118
- accounting: {
2119
- index: {
2120
- get: {
2121
- body: unknown;
2122
- params: {};
2123
- query: {
2124
- items?: number | undefined;
2125
- page?: number | undefined;
2126
- };
2127
- headers: {
2128
- authorization: string;
2129
- };
2130
- response: {
2131
- 200: {
2132
- id: string;
2133
- timestamp: number;
2134
- chainId: number;
2135
- fromTokenId: string;
2136
- toTokenId: string;
2137
- multisig: string;
2138
- recipient: string;
2139
- amountIn: string;
2140
- amountOut: string;
2141
- datetime: Date;
2142
- }[];
2143
- };
2144
- };
2145
- };
2146
- } & {
2147
- revenues: {
2148
- get: {
2149
- body: unknown;
2150
- params: {};
2151
- query: unknown;
2152
- headers: {
2153
- authorization: string;
2154
- };
2155
- response: {
2156
- 200: {
2157
- totalAmount: number;
2158
- };
2159
- };
2160
- };
2161
- };
2162
- } & {
2163
- revenues: {
2164
- "per-month": {
2165
- ":year": {
2166
- ":month": {
2167
- get: {
2168
- body: unknown;
2169
- params: {
2170
- month: number;
2171
- year: number;
2172
- };
2173
- query: unknown;
2174
- headers: {
2175
- authorization: string;
2176
- };
2177
- response: {
2178
- 200: {
2179
- totalAmount: number;
2180
- from: string;
2181
- to: string;
2182
- };
2183
- };
2184
- };
2185
- };
2186
- };
2187
- };
2188
- };
2189
- } & {
2190
- revenues: {
2191
- chains: {
2192
- ":chainId": {
2193
- get: {
2194
- body: unknown;
2195
- params: {
2196
- chainId: number;
2197
- };
2198
- query: unknown;
2199
- headers: {
2200
- authorization: string;
2201
- };
2202
- response: {
2203
- 200: {
2204
- totalAmount: number;
2205
- };
2206
- };
2207
- };
2208
- };
2209
- };
2210
- };
2211
- } & {
2212
- revenues: {
2213
- chains: {
2214
- ":chainId": {
2215
- "per-month": {
2216
- ":year": {
2217
- ":month": {
2218
- get: {
2219
- body: unknown;
2220
- params: {
2221
- chainId: number;
2222
- month: number;
2223
- year: number;
2224
- };
2225
- query: unknown;
2226
- headers: {
2227
- authorization: string;
2228
- };
2229
- response: {
2230
- 200: {
2231
- totalAmount: number;
2232
- from: string;
2233
- to: string;
2234
- };
2235
- };
2236
- };
2237
- };
2238
- };
2239
- };
2240
- };
2241
- };
2242
- };
2243
- } & {
2244
- tokens: {
2245
- ":chainId": {
2246
- ":tokenAddress": {
2247
- get: {
2248
- body: unknown;
2249
- params: {
2250
- chainId: number;
2251
- tokenAddress: string;
2252
- };
2253
- query: unknown;
2254
- headers: {
2255
- authorization: string;
2256
- };
2257
- response: {
2258
- 200: {
2259
- totalAmount: number;
2260
- totalAmountUSD: number;
2261
- };
2262
- };
2263
- };
2264
- };
2265
- };
2266
- };
2267
- } & {
2268
- tokens: {
2269
- ":chainId": {
2270
- ":tokenAddress": {
2271
- "per-month": {
2272
- ":year": {
2273
- ":month": {
2274
- get: {
2275
- body: unknown;
2276
- params: {
2277
- chainId: number;
2278
- tokenAddress: string;
2279
- month: number;
2280
- year: number;
2281
- };
2282
- query: unknown;
2283
- headers: {
2284
- authorization: string;
2285
- };
2286
- response: {
2287
- 200: {
2288
- totalAmount: number;
2289
- totalAmountUSD: number;
2290
- from: string;
2291
- to: string;
2292
- };
2293
- };
2294
- };
2295
- };
2296
- };
2297
- };
2298
- };
2299
- };
2300
- };
2301
- };
2302
- };
2303
- } & {
2304
- v4: {
2305
- "dynamic-data": {
2306
- index: {
2307
- get: {
2308
- body: unknown;
2309
- params: {};
2310
- query: {
2311
- chainId: number;
2312
- tokenAddress: string;
2313
- };
2314
- headers: {
2315
- authorization: string;
2316
- };
2317
- response: {
2318
- 200: {
2319
- tvl: number;
2320
- totalSupply: number;
2321
- cardName: string;
2322
- blacklistedSupply: number;
2323
- priceTargetToken: number;
2324
- };
2325
- };
2326
- };
2327
- };
2328
- };
2329
- };
2330
- } & {
2331
- v4: {
2332
- "campaign-status": {
2333
- engine: {
2334
- ":campaignId": {
2335
- put: {
2336
- body: {
2337
- value: "SUCCESS";
2338
- computedUntil: number;
2339
- } | {
2340
- value: "PROCESSING";
2341
- } | {
2342
- error: string;
2343
- details: string;
2344
- value: "SKIPPED";
2345
- } | {
2346
- error: string;
2347
- details: string;
2348
- value: "FAILED";
2349
- };
2350
- params: {
2351
- campaignId: string;
2352
- };
2353
- query: unknown;
2354
- headers: {
2355
- authorization: string;
2356
- };
2357
- response: {
2358
- 200: void;
2359
- };
2360
- };
2361
- };
2362
- };
2363
- };
2364
- } & {
2365
- "campaign-status": {
2366
- engine: {
2367
- overlaps: {
2368
- get: {
2369
- body: unknown;
2370
- params: {};
2371
- query: {
2372
- campaignId: string;
2373
- distributionChain: number;
2374
- };
2375
- headers: {
2376
- authorization: string;
2377
- };
2378
- response: {
2379
- 200: boolean;
2380
- };
2381
- };
2382
- };
2383
- };
2384
- };
2385
- } & {
2386
- "campaign-status": {
2387
- index: {
2388
- get: {
2389
- body: unknown;
2390
- params: {};
2391
- query: {
2392
- status?: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[] | undefined;
2393
- computeChainId?: number | undefined;
2394
- };
2395
- headers: unknown;
2396
- response: {
2397
- 200: {
2398
- error: string;
2399
- details: import("database/api/.generated/runtime/library").JsonValue;
2400
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2401
- campaignId: string;
2402
- computedUntil: bigint;
2403
- processingStarted: bigint;
2404
- }[];
2405
- };
2406
- };
2407
- };
2408
- };
2409
- } & {
2410
- "campaign-status": {
2411
- ":campaignId": {
2412
- get: {
2413
- body: unknown;
2414
- params: {
2415
- campaignId: string;
2416
- };
2417
- query: unknown;
2418
- headers: unknown;
2419
- response: {
2420
- 200: {
2421
- error: string;
2422
- details: import("database/api/.generated/runtime/library").JsonValue;
2423
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2424
- campaignId: string;
2425
- computedUntil: bigint;
2426
- processingStarted: bigint;
2427
- }[] | {
2428
- error: string;
2429
- details: import("database/api/.generated/runtime/library").JsonValue;
2430
- status: import("../../../database/api/.generated").$Enums.RunStatus;
2431
- campaignId: string;
2432
- computedUntil: bigint;
2433
- processingStarted: bigint;
2434
- };
2435
- };
2436
- };
2437
- };
2438
- };
2439
- };
2440
- } & {
2441
- v4: {
2442
- liquidity: {
2443
- index: {
2444
- get: {
2445
- body: unknown;
2446
- params: {};
2447
- query: {
2448
- chainId: number;
2449
- address: string;
2450
- };
2451
- headers: unknown;
2452
- response: {
2453
- 200: import("../../modules/v4/liquidity").PositionT[];
2454
- };
2455
- };
2456
- };
2457
- };
2458
- };
2459
- } & {
2460
- v4: {
2461
- claims: {
2462
- ":address": {
2463
- get: {
2464
- body: unknown;
2465
- params: {
2466
- address: string;
2467
- };
2468
- query: unknown;
2469
- headers: unknown;
2470
- response: {
2471
- 200: (import("../../modules/v4/claims").ClaimModel & {
2472
- token: import("../../modules/v4").Token["model"];
2473
- })[];
2474
- };
2475
- };
2476
- };
2477
- };
2478
- };
2479
- } & {
2480
- index: {
2481
- get: {
2482
- body: unknown;
2483
- params: {};
2484
- query: {
2485
- type?: undefined;
2486
- chainId?: undefined;
2487
- mainParameter?: string | undefined;
2488
- action?: undefined;
2489
- campaigns?: boolean | undefined;
2490
- testTokens?: boolean | undefined;
2491
- tag?: string | undefined;
2492
- };
2493
- headers: unknown;
2494
- response: {
2495
- 200: {};
2496
- };
2497
- };
2498
- };
2499
- }, {
2500
- derive: {};
2501
- resolve: {};
2502
- schema: {};
2503
- }, {
2504
- derive: {};
2505
- resolve: {};
2506
- schema: {};
2507
- }>;
25
+ declare const _default: (app: App) => any;
2508
26
  export default _default;