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