@merkl/api 0.20.158 → 0.20.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/src/eden/index.d.ts +747 -747
  2. package/dist/src/engine/deprecated/dynamicData/factory.js +1 -0
  3. package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +29 -5
  4. package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -3
  5. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +2 -2
  6. package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
  7. package/dist/src/engine/implementations/Locker/metadata.js +36 -0
  8. package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
  9. package/dist/src/engine/implementations/Locker/tvl.js +21 -0
  10. package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -12
  11. package/dist/src/engine/implementations/MultiLog/tvl.js +1 -61
  12. package/dist/src/engine/metadata/factory.js +1 -0
  13. package/dist/src/engine/tvl/logStates.d.ts +17 -0
  14. package/dist/src/engine/tvl/logStates.js +106 -0
  15. package/dist/src/index.d.ts +255 -255
  16. package/dist/src/index.js +2 -2
  17. package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
  18. package/dist/src/modules/v4/bucket/bucket.service.d.ts +2 -0
  19. package/dist/src/modules/v4/bucket/bucket.service.js +3 -0
  20. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
  21. package/dist/src/modules/v4/campaign/campaign.controller.js +0 -1
  22. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -36
  23. package/dist/src/modules/v4/campaign/campaign.service.d.ts +76 -76
  24. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +18 -18
  25. package/dist/src/modules/v4/chain/chain.controller.d.ts +11 -11
  26. package/dist/src/modules/v4/chain/chain.repository.d.ts +13 -13
  27. package/dist/src/modules/v4/chain/chain.service.d.ts +14 -14
  28. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
  29. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
  30. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
  31. package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
  32. package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
  33. package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
  34. package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
  35. package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -3
  36. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +4 -4
  37. package/dist/src/modules/v4/explorer/explorer.service.d.ts +5 -5
  38. package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -2
  39. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +105 -105
  40. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -3
  41. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +117 -117
  42. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +122 -122
  43. package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
  44. package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
  45. package/dist/src/modules/v4/price/price.service.d.ts +4 -4
  46. package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +18 -1
  47. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +14 -7
  48. package/dist/src/modules/v4/programPayload/programPayload.repository.js +128 -8
  49. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +24 -24
  50. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
  51. package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
  52. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +14 -14
  53. package/dist/src/modules/v4/protocol/protocol.service.d.ts +6 -6
  54. package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
  55. package/dist/src/modules/v4/reward/reward.controller.js +0 -1
  56. package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -12
  57. package/dist/src/modules/v4/reward/reward.service.d.ts +82 -82
  58. package/dist/src/modules/v4/router.d.ts +255 -255
  59. package/dist/src/modules/v4/status/status.controller.d.ts +5 -5
  60. package/dist/src/modules/v4/status/status.repository.d.ts +11 -11
  61. package/dist/src/modules/v4/status/status.service.d.ts +7 -7
  62. package/dist/src/modules/v4/token/token.controller.d.ts +11 -11
  63. package/dist/src/modules/v4/token/token.repository.d.ts +4 -4
  64. package/dist/src/modules/v4/token/token.service.d.ts +14 -14
  65. package/dist/src/modules/v4/token/token.service.js +3 -3
  66. package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +1 -1
  67. package/dist/src/modules/v4/user/user.controller.d.ts +24 -24
  68. package/dist/tsconfig.package.tsbuildinfo +1 -1
  69. package/package.json +3 -3
@@ -9,11 +9,11 @@ export declare abstract class OpportunityService {
9
9
  #private;
10
10
  static hashId(opportunity: OpportunityUnique): string;
11
11
  static override(id: string, data: OpportunityOverrideModel): Promise<{
12
- id: string;
13
- name: string;
14
- type: string;
15
12
  status: import("@db/api").$Enums.Status;
13
+ type: string;
14
+ name: string;
16
15
  description: string;
16
+ id: string;
17
17
  tags: string[];
18
18
  identifier: string;
19
19
  action: import("@db/api").$Enums.OpportunityAction;
@@ -31,8 +31,8 @@ export declare abstract class OpportunityService {
31
31
  static deleteOverrides(id: string, overridesToDelete: OpportunityManualOverride[]): Promise<({
32
32
  Tokens: {
33
33
  symbol: string;
34
- id: string;
35
34
  name: string | null;
35
+ id: string;
36
36
  icon: string;
37
37
  address: string;
38
38
  chainId: number;
@@ -46,19 +46,19 @@ export declare abstract class OpportunityService {
46
46
  price: number | null;
47
47
  }[];
48
48
  Protocols: {
49
- id: string;
50
- name: string;
51
49
  url: string;
50
+ name: string;
52
51
  description: string;
52
+ id: string;
53
53
  tags: string[];
54
54
  icon: string;
55
55
  }[];
56
56
  } & {
57
- id: string;
58
- name: string;
59
- type: string;
60
57
  status: import("@db/api").$Enums.Status;
58
+ type: string;
59
+ name: string;
61
60
  description: string;
61
+ id: string;
62
62
  tags: string[];
63
63
  identifier: string;
64
64
  action: import("@db/api").$Enums.OpportunityAction;
@@ -82,8 +82,8 @@ export declare abstract class OpportunityService {
82
82
  action: OpportunityAction;
83
83
  tokens: ({
84
84
  symbol: string;
85
- id: string;
86
85
  name: string | null;
86
+ id: string;
87
87
  icon: string;
88
88
  address: string;
89
89
  chainId: number;
@@ -96,7 +96,7 @@ export declare abstract class OpportunityService {
96
96
  } & {
97
97
  price?: number | null | undefined;
98
98
  })[];
99
- mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
99
+ mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
100
100
  description: string;
101
101
  howToSteps: string[];
102
102
  depositUrl: string | undefined;
@@ -111,8 +111,8 @@ export declare abstract class OpportunityService {
111
111
  static create(newOpp: CreateOpportunityModel): Promise<{
112
112
  Tokens: {
113
113
  symbol: string;
114
- id: string;
115
114
  name: string | null;
115
+ id: string;
116
116
  icon: string;
117
117
  address: string;
118
118
  chainId: number;
@@ -126,19 +126,19 @@ export declare abstract class OpportunityService {
126
126
  price: number | null;
127
127
  }[];
128
128
  Protocols: {
129
- id: string;
130
- name: string;
131
129
  url: string;
130
+ name: string;
132
131
  description: string;
132
+ id: string;
133
133
  tags: string[];
134
134
  icon: string;
135
135
  }[];
136
136
  } & {
137
- id: string;
138
- name: string;
139
- type: string;
140
137
  status: import("@db/api").$Enums.Status;
138
+ type: string;
139
+ name: string;
141
140
  description: string;
141
+ id: string;
142
142
  tags: string[];
143
143
  identifier: string;
144
144
  action: import("@db/api").$Enums.OpportunityAction;
@@ -161,8 +161,8 @@ export declare abstract class OpportunityService {
161
161
  static createFromCampaign(campaign: Omit<CampaignWithParams, "manualOverrides">, opportunityIdentifier: string, upsert?: boolean, dryRun?: boolean): Promise<({
162
162
  Tokens: {
163
163
  symbol: string;
164
- id: string;
165
164
  name: string | null;
165
+ id: string;
166
166
  icon: string;
167
167
  address: string;
168
168
  chainId: number;
@@ -176,19 +176,19 @@ export declare abstract class OpportunityService {
176
176
  price: number | null;
177
177
  }[];
178
178
  Protocols: {
179
- id: string;
180
- name: string;
181
179
  url: string;
180
+ name: string;
182
181
  description: string;
182
+ id: string;
183
183
  tags: string[];
184
184
  icon: string;
185
185
  }[];
186
186
  } & {
187
- id: string;
188
- name: string;
189
- type: string;
190
187
  status: import("@db/api").$Enums.Status;
188
+ type: string;
189
+ name: string;
191
190
  description: string;
191
+ id: string;
192
192
  tags: string[];
193
193
  identifier: string;
194
194
  action: import("@db/api").$Enums.OpportunityAction;
@@ -212,8 +212,8 @@ export declare abstract class OpportunityService {
212
212
  action: OpportunityAction;
213
213
  tokens: ({
214
214
  symbol: string;
215
- id: string;
216
215
  name: string | null;
216
+ id: string;
217
217
  icon: string;
218
218
  address: string;
219
219
  chainId: number;
@@ -226,7 +226,7 @@ export declare abstract class OpportunityService {
226
226
  } & {
227
227
  price?: number | null | undefined;
228
228
  })[];
229
- mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
229
+ mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
230
230
  description: string;
231
231
  howToSteps: string[];
232
232
  depositUrl: string | undefined;
@@ -239,8 +239,8 @@ export declare abstract class OpportunityService {
239
239
  static recreate(opportunityId: string, campaignId?: string): Promise<({
240
240
  Tokens: {
241
241
  symbol: string;
242
- id: string;
243
242
  name: string | null;
243
+ id: string;
244
244
  icon: string;
245
245
  address: string;
246
246
  chainId: number;
@@ -254,19 +254,19 @@ export declare abstract class OpportunityService {
254
254
  price: number | null;
255
255
  }[];
256
256
  Protocols: {
257
- id: string;
258
- name: string;
259
257
  url: string;
258
+ name: string;
260
259
  description: string;
260
+ id: string;
261
261
  tags: string[];
262
262
  icon: string;
263
263
  }[];
264
264
  } & {
265
- id: string;
266
- name: string;
267
- type: string;
268
265
  status: import("@db/api").$Enums.Status;
266
+ type: string;
267
+ name: string;
269
268
  description: string;
269
+ id: string;
270
270
  tags: string[];
271
271
  identifier: string;
272
272
  action: import("@db/api").$Enums.OpportunityAction;
@@ -290,8 +290,8 @@ export declare abstract class OpportunityService {
290
290
  action: OpportunityAction;
291
291
  tokens: ({
292
292
  symbol: string;
293
- id: string;
294
293
  name: string | null;
294
+ id: string;
295
295
  icon: string;
296
296
  address: string;
297
297
  chainId: number;
@@ -304,7 +304,7 @@ export declare abstract class OpportunityService {
304
304
  } & {
305
305
  price?: number | null | undefined;
306
306
  })[];
307
- mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | undefined;
307
+ mainProtocol: "splice" | "reserve" | "morpho" | "quickswap" | "euler" | "aura" | "poolside" | "gearbox" | "filament" | "fluid" | "compound" | "ionic" | "layerbank" | "moonwell" | "fraxlend" | "fenix" | "ra" | "syncswap" | "beefy" | "aerodrome" | "velodrome" | "curve" | "toros" | "akron" | "enzyme" | "dragonswap" | "koi" | "rfx" | "woofi" | "pendle" | "zkSwapThreePool" | "maha" | "tempest" | "holdstation" | "venus" | "reactor_fusion" | "vicuna" | "curveNPool" | "satlayer" | "veda" | "cian" | "concrete" | "hourglass" | "katana" | "gamma" | "stability" | "uniswap" | "ambient" | "arthswap" | "base-swap" | "camelot" | "crust" | "horiza" | "izumi" | "kim" | "pancake-swap" | "ramses" | "retro" | "stryke" | "sushi-swap" | "swapr" | "thruster" | "voltage" | "zero" | "supswap" | "zk-swap" | "thirdtrade" | "swap-x" | "balancer" | "cross_curve" | "neptune" | "maverick" | "trader-joe" | "hanji" | "radiant" | "aave" | "ironclad" | "sturdy" | "frax" | "silo" | "dolomite" | "badger" | "ajna" | "ion" | "eigenlayer" | "vest" | "zerolend" | "lnd" | "hyperdrive" | "oku" | "kyo" | "sonex" | "lendle" | "tako-tako" | "equalizer" | "spectra" | "beraborrow" | "superlend" | "avalon" | "iguana" | "xlend" | "sake" | "sonicmarket" | "angles" | "bunni" | "beratrax" | "yei" | "gammaswap" | "uranium" | "puffer" | undefined;
308
308
  description: string;
309
309
  howToSteps: string[];
310
310
  depositUrl: string | undefined;
@@ -319,10 +319,10 @@ export declare abstract class OpportunityService {
319
319
  */
320
320
  static findManyByCampaigns(where: GetCampaignQueryModel): Promise<{
321
321
  protocol?: {
322
- id: string;
323
- name: string;
324
322
  url: string;
323
+ name: string;
325
324
  description: string;
325
+ id: string;
326
326
  tags: string[];
327
327
  icon: string;
328
328
  } | null | undefined;
@@ -333,8 +333,8 @@ export declare abstract class OpportunityService {
333
333
  timestamp: string | bigint;
334
334
  cumulated: number;
335
335
  breakdowns: {
336
- id: string;
337
336
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
337
+ id: string;
338
338
  identifier: string;
339
339
  value: number;
340
340
  aprRecordId: string;
@@ -344,24 +344,23 @@ export declare abstract class OpportunityService {
344
344
  total: number;
345
345
  timestamp: string | bigint;
346
346
  breakdowns: {
347
- id: string;
348
347
  type: "TOKEN" | "PROTOCOL";
348
+ id: string;
349
349
  identifier: string;
350
350
  value: number;
351
351
  tvlRecordId: string;
352
352
  }[];
353
353
  } | undefined;
354
354
  rewardsRecord?: {
355
- id: string;
356
355
  total: number;
356
+ id: string;
357
357
  timestamp: string | bigint;
358
358
  breakdowns: {
359
- id: string;
360
359
  token: {
361
360
  price?: number | null | undefined;
362
361
  symbol: string;
363
- id: string;
364
362
  name: string | null;
363
+ id: string;
365
364
  icon: string;
366
365
  address: string;
367
366
  chainId: number;
@@ -371,21 +370,21 @@ export declare abstract class OpportunityService {
371
370
  isPoint: boolean;
372
371
  isPreTGE: boolean;
373
372
  };
373
+ id: string;
374
374
  value: number;
375
375
  campaignId: string;
376
376
  amount: string | bigint;
377
377
  dailyRewardsRecordId: string;
378
378
  }[];
379
379
  } | undefined;
380
- id: string;
381
- name: string;
382
- type: string;
383
380
  status: string;
381
+ type: string;
382
+ name: string;
384
383
  tokens: {
385
384
  price?: number | null | undefined;
386
385
  symbol: string;
387
- id: string;
388
386
  name: string | null;
387
+ id: string;
389
388
  icon: string;
390
389
  address: string;
391
390
  chainId: number;
@@ -396,11 +395,12 @@ export declare abstract class OpportunityService {
396
395
  isPreTGE: boolean;
397
396
  }[];
398
397
  description: string;
398
+ id: string;
399
399
  tags: string[];
400
400
  identifier: string;
401
401
  chain: {
402
- id: number;
403
402
  name: string;
403
+ id: number;
404
404
  icon: string;
405
405
  };
406
406
  action: string;
@@ -426,17 +426,17 @@ export declare abstract class OpportunityService {
426
426
  processingStarted: string | number;
427
427
  } | undefined;
428
428
  distributionChain?: {
429
- id: number;
430
429
  name: string;
430
+ id: number;
431
431
  icon: string;
432
432
  } | undefined;
433
- id: string;
434
433
  type: string;
434
+ id: string;
435
435
  params: any;
436
436
  subType: number | null;
437
437
  chain: {
438
- id: number;
439
438
  name: string;
439
+ id: number;
440
440
  icon: string;
441
441
  };
442
442
  computeChainId: number;
@@ -452,8 +452,8 @@ export declare abstract class OpportunityService {
452
452
  rewardToken: {
453
453
  price?: number | null | undefined;
454
454
  symbol: string;
455
- id: string;
456
455
  name: string | null;
456
+ id: string;
457
457
  icon: string;
458
458
  address: string;
459
459
  chainId: number;
@@ -467,10 +467,10 @@ export declare abstract class OpportunityService {
467
467
  }[]>;
468
468
  static getUniqueWithCampaignsOrThrow(opportunityId: string | OpportunityUnique, withTest?: boolean, withPoints?: boolean): Promise<{
469
469
  protocol?: {
470
- id: string;
471
- name: string;
472
470
  url: string;
471
+ name: string;
473
472
  description: string;
473
+ id: string;
474
474
  tags: string[];
475
475
  icon: string;
476
476
  } | null | undefined;
@@ -481,8 +481,8 @@ export declare abstract class OpportunityService {
481
481
  timestamp: string | bigint;
482
482
  cumulated: number;
483
483
  breakdowns: {
484
- id: string;
485
484
  type: "CAMPAIGN" | "TOKEN" | "PROTOCOL";
485
+ id: string;
486
486
  identifier: string;
487
487
  value: number;
488
488
  aprRecordId: string;
@@ -492,24 +492,23 @@ export declare abstract class OpportunityService {
492
492
  total: number;
493
493
  timestamp: string | bigint;
494
494
  breakdowns: {
495
- id: string;
496
495
  type: "TOKEN" | "PROTOCOL";
496
+ id: string;
497
497
  identifier: string;
498
498
  value: number;
499
499
  tvlRecordId: string;
500
500
  }[];
501
501
  } | undefined;
502
502
  rewardsRecord?: {
503
- id: string;
504
503
  total: number;
504
+ id: string;
505
505
  timestamp: string | bigint;
506
506
  breakdowns: {
507
- id: string;
508
507
  token: {
509
508
  price?: number | null | undefined;
510
509
  symbol: string;
511
- id: string;
512
510
  name: string | null;
511
+ id: string;
513
512
  icon: string;
514
513
  address: string;
515
514
  chainId: number;
@@ -519,21 +518,21 @@ export declare abstract class OpportunityService {
519
518
  isPoint: boolean;
520
519
  isPreTGE: boolean;
521
520
  };
521
+ id: string;
522
522
  value: number;
523
523
  campaignId: string;
524
524
  amount: string | bigint;
525
525
  dailyRewardsRecordId: string;
526
526
  }[];
527
527
  } | undefined;
528
- id: string;
529
- name: string;
530
- type: string;
531
528
  status: string;
529
+ type: string;
530
+ name: string;
532
531
  tokens: {
533
532
  price?: number | null | undefined;
534
533
  symbol: string;
535
- id: string;
536
534
  name: string | null;
535
+ id: string;
537
536
  icon: string;
538
537
  address: string;
539
538
  chainId: number;
@@ -544,11 +543,12 @@ export declare abstract class OpportunityService {
544
543
  isPreTGE: boolean;
545
544
  }[];
546
545
  description: string;
546
+ id: string;
547
547
  tags: string[];
548
548
  identifier: string;
549
549
  chain: {
550
- id: number;
551
550
  name: string;
551
+ id: number;
552
552
  icon: string;
553
553
  };
554
554
  action: string;
@@ -574,17 +574,17 @@ export declare abstract class OpportunityService {
574
574
  processingStarted: string | number;
575
575
  } | undefined;
576
576
  distributionChain?: {
577
- id: number;
578
577
  name: string;
578
+ id: number;
579
579
  icon: string;
580
580
  } | undefined;
581
- id: string;
582
581
  type: string;
582
+ id: string;
583
583
  params: any;
584
584
  subType: number | null;
585
585
  chain: {
586
- id: number;
587
586
  name: string;
587
+ id: number;
588
588
  icon: string;
589
589
  };
590
590
  computeChainId: number;
@@ -600,8 +600,8 @@ export declare abstract class OpportunityService {
600
600
  rewardToken: {
601
601
  price?: number | null | undefined;
602
602
  symbol: string;
603
- id: string;
604
603
  name: string | null;
604
+ id: string;
605
605
  icon: string;
606
606
  address: string;
607
607
  chainId: number;
@@ -644,8 +644,8 @@ export declare abstract class OpportunityService {
644
644
  total: number;
645
645
  timestamp: bigint;
646
646
  breakdowns: {
647
- id: string;
648
647
  type: import("@db/api").$Enums.TvlType;
648
+ id: string;
649
649
  identifier: string;
650
650
  value: number;
651
651
  tvlRecordId: string;
@@ -662,8 +662,8 @@ export declare abstract class OpportunityService {
662
662
  dailyRewardsRecordId: string;
663
663
  token: {
664
664
  symbol: string;
665
- id: string;
666
665
  name: string | null;
666
+ id: string;
667
667
  icon: string;
668
668
  address: string;
669
669
  chainId: number;
@@ -683,16 +683,16 @@ export declare abstract class OpportunityService {
683
683
  campaigns: {
684
684
  params: any;
685
685
  chain: {
686
- id: number;
687
686
  name: string;
687
+ id: number;
688
688
  icon: string;
689
689
  };
690
690
  endTimestamp: number;
691
691
  startTimestamp: number;
692
692
  rewardToken: {
693
693
  symbol: string;
694
- id: string;
695
694
  name: string | null;
695
+ id: string;
696
696
  icon: string;
697
697
  address: string;
698
698
  chainId: number;
@@ -706,15 +706,15 @@ export declare abstract class OpportunityService {
706
706
  price?: number | null | undefined;
707
707
  };
708
708
  distributionChain: {
709
- id: number;
710
709
  name: string;
710
+ id: number;
711
711
  icon: string;
712
712
  } | undefined;
713
713
  campaignStatus: {
714
714
  computedUntil: number;
715
715
  processingStarted: number;
716
- error: string;
717
716
  status: import("@db/api").$Enums.RunStatus;
717
+ error: string;
718
718
  details: Prisma.JsonValue;
719
719
  campaignId: string;
720
720
  } | undefined;
@@ -727,11 +727,11 @@ export declare abstract class OpportunityService {
727
727
  createdAt: string;
728
728
  description: string | undefined;
729
729
  Opportunity: {
730
- id: string;
731
- name: string;
732
- type: string;
733
730
  status: import("@db/api").$Enums.Status;
731
+ type: string;
732
+ name: string;
734
733
  description: string;
734
+ id: string;
735
735
  tags: string[];
736
736
  identifier: string;
737
737
  action: import("@db/api").$Enums.OpportunityAction;
@@ -746,8 +746,8 @@ export declare abstract class OpportunityService {
746
746
  dailyRewards: number;
747
747
  lastCampaignCreatedAt: Date;
748
748
  };
749
- id: string;
750
749
  type: string;
750
+ id: string;
751
751
  subType: number | null;
752
752
  computeChainId: number;
753
753
  distributionChainId: number;
@@ -763,8 +763,8 @@ export declare abstract class OpportunityService {
763
763
  lastCampaignCreatedAt: string;
764
764
  tokens: ({
765
765
  symbol: string;
766
- id: string;
767
766
  name: string | null;
767
+ id: string;
768
768
  icon: string;
769
769
  address: string;
770
770
  chainId: number;
@@ -778,21 +778,21 @@ export declare abstract class OpportunityService {
778
778
  price?: number | null | undefined;
779
779
  })[];
780
780
  chain: {
781
- id: number;
782
781
  name: string;
782
+ id: number;
783
783
  icon: string;
784
784
  };
785
785
  protocol: {
786
- id: string;
787
- name: string;
788
786
  url: string;
787
+ name: string;
789
788
  description: string;
789
+ id: string;
790
790
  tags: string[];
791
791
  icon: string;
792
792
  } | undefined;
793
- name: string;
794
- type: string;
795
793
  status: import("@db/api").$Enums.Status;
794
+ type: string;
795
+ name: string;
796
796
  description: string;
797
797
  tags: string[];
798
798
  identifier: string;
@@ -834,8 +834,8 @@ export declare abstract class OpportunityService {
834
834
  total: number;
835
835
  timestamp: bigint;
836
836
  breakdowns: {
837
- id: string;
838
837
  type: import("@db/api").$Enums.TvlType;
838
+ id: string;
839
839
  identifier: string;
840
840
  value: number;
841
841
  tvlRecordId: string;
@@ -852,8 +852,8 @@ export declare abstract class OpportunityService {
852
852
  dailyRewardsRecordId: string;
853
853
  token: {
854
854
  symbol: string;
855
- id: string;
856
855
  name: string | null;
856
+ id: string;
857
857
  icon: string;
858
858
  address: string;
859
859
  chainId: number;
@@ -873,16 +873,16 @@ export declare abstract class OpportunityService {
873
873
  campaigns: {
874
874
  params: any;
875
875
  chain: {
876
- id: number;
877
876
  name: string;
877
+ id: number;
878
878
  icon: string;
879
879
  };
880
880
  endTimestamp: number;
881
881
  startTimestamp: number;
882
882
  rewardToken: {
883
883
  symbol: string;
884
- id: string;
885
884
  name: string | null;
885
+ id: string;
886
886
  icon: string;
887
887
  address: string;
888
888
  chainId: number;
@@ -896,15 +896,15 @@ export declare abstract class OpportunityService {
896
896
  price?: number | null | undefined;
897
897
  };
898
898
  distributionChain: {
899
- id: number;
900
899
  name: string;
900
+ id: number;
901
901
  icon: string;
902
902
  } | undefined;
903
903
  campaignStatus: {
904
904
  computedUntil: number;
905
905
  processingStarted: number;
906
- error: string;
907
906
  status: import("@db/api").$Enums.RunStatus;
907
+ error: string;
908
908
  details: Prisma.JsonValue;
909
909
  campaignId: string;
910
910
  } | undefined;
@@ -917,11 +917,11 @@ export declare abstract class OpportunityService {
917
917
  createdAt: string;
918
918
  description: string | undefined;
919
919
  Opportunity: {
920
- id: string;
921
- name: string;
922
- type: string;
923
920
  status: import("@db/api").$Enums.Status;
921
+ type: string;
922
+ name: string;
924
923
  description: string;
924
+ id: string;
925
925
  tags: string[];
926
926
  identifier: string;
927
927
  action: import("@db/api").$Enums.OpportunityAction;
@@ -936,8 +936,8 @@ export declare abstract class OpportunityService {
936
936
  dailyRewards: number;
937
937
  lastCampaignCreatedAt: Date;
938
938
  };
939
- id: string;
940
939
  type: string;
940
+ id: string;
941
941
  subType: number | null;
942
942
  computeChainId: number;
943
943
  distributionChainId: number;
@@ -953,8 +953,8 @@ export declare abstract class OpportunityService {
953
953
  lastCampaignCreatedAt: string;
954
954
  tokens: ({
955
955
  symbol: string;
956
- id: string;
957
956
  name: string | null;
957
+ id: string;
958
958
  icon: string;
959
959
  address: string;
960
960
  chainId: number;
@@ -968,21 +968,21 @@ export declare abstract class OpportunityService {
968
968
  price?: number | null | undefined;
969
969
  })[];
970
970
  chain: {
971
- id: number;
972
971
  name: string;
972
+ id: number;
973
973
  icon: string;
974
974
  };
975
975
  protocol: {
976
- id: string;
977
- name: string;
978
976
  url: string;
977
+ name: string;
979
978
  description: string;
979
+ id: string;
980
980
  tags: string[];
981
981
  icon: string;
982
982
  } | undefined;
983
- name: string;
984
- type: string;
985
983
  status: import("@db/api").$Enums.Status;
984
+ type: string;
985
+ name: string;
986
986
  description: string;
987
987
  tags: string[];
988
988
  identifier: string;
@@ -1017,8 +1017,8 @@ export declare abstract class OpportunityService {
1017
1017
  total: number;
1018
1018
  timestamp: bigint;
1019
1019
  breakdowns: {
1020
- id: string;
1021
1020
  type: import("@db/api").$Enums.TvlType;
1021
+ id: string;
1022
1022
  identifier: string;
1023
1023
  value: number;
1024
1024
  tvlRecordId: string;
@@ -1035,8 +1035,8 @@ export declare abstract class OpportunityService {
1035
1035
  dailyRewardsRecordId: string;
1036
1036
  token: {
1037
1037
  symbol: string;
1038
- id: string;
1039
1038
  name: string | null;
1039
+ id: string;
1040
1040
  icon: string;
1041
1041
  address: string;
1042
1042
  chainId: number;
@@ -1056,16 +1056,16 @@ export declare abstract class OpportunityService {
1056
1056
  campaigns: {
1057
1057
  params: any;
1058
1058
  chain: {
1059
- id: number;
1060
1059
  name: string;
1060
+ id: number;
1061
1061
  icon: string;
1062
1062
  };
1063
1063
  endTimestamp: number;
1064
1064
  startTimestamp: number;
1065
1065
  rewardToken: {
1066
1066
  symbol: string;
1067
- id: string;
1068
1067
  name: string | null;
1068
+ id: string;
1069
1069
  icon: string;
1070
1070
  address: string;
1071
1071
  chainId: number;
@@ -1079,15 +1079,15 @@ export declare abstract class OpportunityService {
1079
1079
  price?: number | null | undefined;
1080
1080
  };
1081
1081
  distributionChain: {
1082
- id: number;
1083
1082
  name: string;
1083
+ id: number;
1084
1084
  icon: string;
1085
1085
  } | undefined;
1086
1086
  campaignStatus: {
1087
1087
  computedUntil: number;
1088
1088
  processingStarted: number;
1089
- error: string;
1090
1089
  status: import("@db/api").$Enums.RunStatus;
1090
+ error: string;
1091
1091
  details: Prisma.JsonValue;
1092
1092
  campaignId: string;
1093
1093
  } | undefined;
@@ -1100,11 +1100,11 @@ export declare abstract class OpportunityService {
1100
1100
  createdAt: string;
1101
1101
  description: string | undefined;
1102
1102
  Opportunity: {
1103
- id: string;
1104
- name: string;
1105
- type: string;
1106
1103
  status: import("@db/api").$Enums.Status;
1104
+ type: string;
1105
+ name: string;
1107
1106
  description: string;
1107
+ id: string;
1108
1108
  tags: string[];
1109
1109
  identifier: string;
1110
1110
  action: import("@db/api").$Enums.OpportunityAction;
@@ -1119,8 +1119,8 @@ export declare abstract class OpportunityService {
1119
1119
  dailyRewards: number;
1120
1120
  lastCampaignCreatedAt: Date;
1121
1121
  };
1122
- id: string;
1123
1122
  type: string;
1123
+ id: string;
1124
1124
  subType: number | null;
1125
1125
  computeChainId: number;
1126
1126
  distributionChainId: number;
@@ -1136,8 +1136,8 @@ export declare abstract class OpportunityService {
1136
1136
  lastCampaignCreatedAt: string;
1137
1137
  tokens: ({
1138
1138
  symbol: string;
1139
- id: string;
1140
1139
  name: string | null;
1140
+ id: string;
1141
1141
  icon: string;
1142
1142
  address: string;
1143
1143
  chainId: number;
@@ -1151,21 +1151,21 @@ export declare abstract class OpportunityService {
1151
1151
  price?: number | null | undefined;
1152
1152
  })[];
1153
1153
  chain: {
1154
- id: number;
1155
1154
  name: string;
1155
+ id: number;
1156
1156
  icon: string;
1157
1157
  };
1158
1158
  protocol: {
1159
- id: string;
1160
- name: string;
1161
1159
  url: string;
1160
+ name: string;
1162
1161
  description: string;
1162
+ id: string;
1163
1163
  tags: string[];
1164
1164
  icon: string;
1165
1165
  } | undefined;
1166
- name: string;
1167
- type: string;
1168
1166
  status: import("@db/api").$Enums.Status;
1167
+ type: string;
1168
+ name: string;
1169
1169
  description: string;
1170
1170
  tags: string[];
1171
1171
  identifier: string;
@@ -1182,8 +1182,8 @@ export declare abstract class OpportunityService {
1182
1182
  lastCampaignCreatedAt: string;
1183
1183
  tokens: ({
1184
1184
  symbol: string;
1185
- id: string;
1186
1185
  name: string | null;
1186
+ id: string;
1187
1187
  icon: string;
1188
1188
  address: string;
1189
1189
  chainId: number;
@@ -1197,21 +1197,21 @@ export declare abstract class OpportunityService {
1197
1197
  price?: number | null | undefined;
1198
1198
  })[];
1199
1199
  chain: {
1200
- id: number;
1201
1200
  name: string;
1201
+ id: number;
1202
1202
  icon: string;
1203
1203
  };
1204
1204
  protocol: {
1205
- id: string;
1206
- name: string;
1207
1205
  url: string;
1206
+ name: string;
1208
1207
  description: string;
1208
+ id: string;
1209
1209
  tags: string[];
1210
1210
  icon: string;
1211
1211
  } | undefined;
1212
- name: string;
1213
- type: string;
1214
1212
  status: import("@db/api").$Enums.Status;
1213
+ type: string;
1214
+ name: string;
1215
1215
  description: string;
1216
1216
  tags: string[];
1217
1217
  identifier: string;
@@ -1232,11 +1232,11 @@ export declare abstract class OpportunityService {
1232
1232
  max: string;
1233
1233
  }>;
1234
1234
  static update(id: string, data: Partial<Opportunity["raw"]>): Promise<{
1235
- id: string;
1236
- name: string;
1237
- type: string;
1238
1235
  status: import("@db/api").$Enums.Status;
1236
+ type: string;
1237
+ name: string;
1239
1238
  description: string;
1239
+ id: string;
1240
1240
  tags: string[];
1241
1241
  identifier: string;
1242
1242
  action: import("@db/api").$Enums.OpportunityAction;