@merkl/api 0.10.199 → 0.10.200

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