@merkl/api 0.16.12 → 0.16.14

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 (44) hide show
  1. package/dist/src/backgroundJobs/jobs/priceUpdater.js +1 -1
  2. package/dist/src/eden/index.d.ts +90 -410
  3. package/dist/src/entities/opportunity.js +17 -0
  4. package/dist/src/index.d.ts +22 -82
  5. package/dist/src/libs/campaigns/campaignTypes/EncompassingDynamicData.d.ts +5 -0
  6. package/dist/src/libs/campaigns/campaignTypes/EncompassingDynamicData.js +34 -0
  7. package/dist/src/libs/campaigns/campaignsDynamicData.js +4 -0
  8. package/dist/src/libs/merklChainData.js +1 -1
  9. package/dist/src/libs/tokens/balances.js +1 -1
  10. package/dist/src/modules/v4/accounting/accounting.service.js +1 -1
  11. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1 -13
  12. package/dist/src/modules/v4/campaign/campaign.repository.js +2 -2
  13. package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -26
  14. package/dist/src/modules/v4/campaign/campaign.service.js +3 -3
  15. package/dist/src/modules/v4/claims/claims.controller.d.ts +1 -1
  16. package/dist/src/modules/v4/enso/enso.model.d.ts +1 -1
  17. package/dist/src/modules/v4/enso/enso.model.js +1 -1
  18. package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
  19. package/dist/src/modules/v4/enso/enso.service.js +2 -2
  20. package/dist/src/modules/v4/interaction/interaction.model.d.ts +1 -1
  21. package/dist/src/modules/v4/kyberzap/kyberzap.service.d.ts +1 -1
  22. package/dist/src/modules/v4/kyberzap/kyberzap.service.js +1 -1
  23. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +4 -40
  24. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -108
  25. package/dist/src/modules/v4/opportunity/opportunity.service.js +8 -5
  26. package/dist/src/modules/v4/opportunity/subservices/getAjnaMetadata.service.js +1 -1
  27. package/dist/src/modules/v4/opportunity/subservices/getBadgerMetadata.service.js +1 -1
  28. package/dist/src/modules/v4/opportunity/subservices/getEncompassingMetadata.service.d.ts +3 -0
  29. package/dist/src/modules/v4/opportunity/subservices/getEncompassingMetadata.service.js +35 -0
  30. package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
  31. package/dist/src/modules/v4/protocol/protocol.model.js +4 -0
  32. package/dist/src/modules/v4/protocol/protocol.service.js +6 -2
  33. package/dist/src/modules/v4/reward/reward.controller.js +3 -3
  34. package/dist/src/modules/v4/reward/reward.repository.js +2 -2
  35. package/dist/src/modules/v4/reward/reward.service.js +1 -1
  36. package/dist/src/modules/v4/router.d.ts +22 -82
  37. package/dist/src/modules/v4/token/token.controller.d.ts +16 -28
  38. package/dist/src/modules/v4/token/token.controller.js +2 -1
  39. package/dist/src/modules/v4/token/token.service.d.ts +5 -69
  40. package/dist/src/routes/v3/lostyield.js +1 -1
  41. package/dist/tsconfig.package.tsbuildinfo +1 -1
  42. package/package.json +1 -1
  43. package/dist/src/modules/v4/token/index.d.ts +0 -3
  44. package/dist/src/modules/v4/token/index.js +0 -3
@@ -115,20 +115,8 @@ declare const eden: {
115
115
  name: string;
116
116
  status: "PAST" | "LIVE" | "SOON";
117
117
  action: import("../../database/api/.generated").$Enums.OpportunityAction;
118
- tokens: ({
119
- symbol: string;
120
- name: string | null;
121
- id: string;
122
- icon: string;
123
- chainId: number;
124
- address: string;
125
- decimals: number;
126
- verified: boolean;
127
- isTest: boolean;
128
- } & {
129
- price?: number | null | undefined;
130
- })[];
131
- mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
118
+ tokens: any[];
119
+ mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | undefined;
132
120
  depositUrl: any;
133
121
  tags: string[];
134
122
  };
@@ -523,19 +511,7 @@ declare const eden: {
523
511
  };
524
512
  id: string;
525
513
  depositUrl: string | undefined;
526
- tokens: ({
527
- symbol: string;
528
- name: string | null;
529
- id: string;
530
- icon: string;
531
- chainId: number;
532
- address: string;
533
- decimals: number;
534
- verified: boolean;
535
- isTest: boolean;
536
- } & {
537
- price?: number | null | undefined;
538
- })[];
514
+ tokens: Token[];
539
515
  chain: {
540
516
  name: string;
541
517
  id: number;
@@ -701,19 +677,7 @@ declare const eden: {
701
677
  id: number;
702
678
  icon: string;
703
679
  };
704
- rewardToken: {
705
- symbol: string;
706
- name: string | null;
707
- id: string;
708
- icon: string;
709
- chainId: number;
710
- address: string;
711
- decimals: number;
712
- verified: boolean;
713
- isTest: boolean;
714
- } & {
715
- price?: number | null | undefined;
716
- };
680
+ rewardToken: Token;
717
681
  distributionChain: {
718
682
  name: string;
719
683
  id: number;
@@ -962,19 +926,7 @@ declare const eden: {
962
926
  id: number;
963
927
  icon: string;
964
928
  };
965
- rewardToken: {
966
- symbol: string;
967
- name: string | null;
968
- id: string;
969
- icon: string;
970
- chainId: number;
971
- address: string;
972
- decimals: number;
973
- verified: boolean;
974
- isTest: boolean;
975
- } & {
976
- price?: number | null | undefined;
977
- };
929
+ rewardToken: Token;
978
930
  distributionChain: {
979
931
  name: string;
980
932
  id: number;
@@ -1324,21 +1276,7 @@ declare const eden: {
1324
1276
  };
1325
1277
  fetch?: RequestInit | undefined;
1326
1278
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1327
- 200: ({
1328
- symbol: string;
1329
- name: string | null;
1330
- id: string;
1331
- icon: string;
1332
- chainId: number;
1333
- address: string;
1334
- decimals: number;
1335
- verified: boolean;
1336
- isTest: boolean;
1337
- } & {
1338
- price?: number | null | undefined;
1339
- } & {
1340
- balance: bigint;
1341
- })[];
1279
+ 200: any[];
1342
1280
  }>>;
1343
1281
  };
1344
1282
  index: {
@@ -1355,19 +1293,7 @@ declare const eden: {
1355
1293
  };
1356
1294
  fetch?: RequestInit | undefined;
1357
1295
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1358
- 200: ({
1359
- symbol: string;
1360
- name: string | null;
1361
- id: string;
1362
- icon: string;
1363
- chainId: number;
1364
- address: string;
1365
- decimals: number;
1366
- verified: boolean;
1367
- isTest: boolean;
1368
- } & {
1369
- price?: number | null | undefined;
1370
- })[];
1296
+ 200: Token[];
1371
1297
  }>>;
1372
1298
  post: (body: {
1373
1299
  isTest?: boolean | undefined;
@@ -1413,6 +1339,15 @@ declare const eden: {
1413
1339
  200: number;
1414
1340
  }>>;
1415
1341
  };
1342
+ sync: {
1343
+ get: (options?: {
1344
+ headers?: Record<string, unknown> | undefined;
1345
+ query?: Record<string, unknown> | undefined;
1346
+ fetch?: RequestInit | undefined;
1347
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1348
+ 200: void;
1349
+ }>>;
1350
+ };
1416
1351
  };
1417
1352
  rewards: {
1418
1353
  index: {
@@ -2783,7 +2718,7 @@ declare const eden: {
2783
2718
  fetch?: RequestInit | undefined;
2784
2719
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2785
2720
  200: (import("../modules/v4/claims").ClaimModel & {
2786
- token?: import("../modules/v4/token").Token["model"];
2721
+ token?: CampaignResource["model"];
2787
2722
  })[];
2788
2723
  }>>;
2789
2724
  }) & {};
@@ -3229,20 +3164,8 @@ declare const eden: {
3229
3164
  name: string;
3230
3165
  status: "PAST" | "LIVE" | "SOON";
3231
3166
  action: import("../../database/api/.generated").$Enums.OpportunityAction;
3232
- tokens: ({
3233
- symbol: string;
3234
- name: string | null;
3235
- id: string;
3236
- icon: string;
3237
- chainId: number;
3238
- address: string;
3239
- decimals: number;
3240
- verified: boolean;
3241
- isTest: boolean;
3242
- } & {
3243
- price?: number | null | undefined;
3244
- })[];
3245
- mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
3167
+ tokens: any[];
3168
+ mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | undefined;
3246
3169
  depositUrl: any;
3247
3170
  tags: string[];
3248
3171
  };
@@ -3637,19 +3560,7 @@ declare const eden: {
3637
3560
  };
3638
3561
  id: string;
3639
3562
  depositUrl: string | undefined;
3640
- tokens: ({
3641
- symbol: string;
3642
- name: string | null;
3643
- id: string;
3644
- icon: string;
3645
- chainId: number;
3646
- address: string;
3647
- decimals: number;
3648
- verified: boolean;
3649
- isTest: boolean;
3650
- } & {
3651
- price?: number | null | undefined;
3652
- })[];
3563
+ tokens: Token[];
3653
3564
  chain: {
3654
3565
  name: string;
3655
3566
  id: number;
@@ -3815,19 +3726,7 @@ declare const eden: {
3815
3726
  id: number;
3816
3727
  icon: string;
3817
3728
  };
3818
- rewardToken: {
3819
- symbol: string;
3820
- name: string | null;
3821
- id: string;
3822
- icon: string;
3823
- chainId: number;
3824
- address: string;
3825
- decimals: number;
3826
- verified: boolean;
3827
- isTest: boolean;
3828
- } & {
3829
- price?: number | null | undefined;
3830
- };
3729
+ rewardToken: Token;
3831
3730
  distributionChain: {
3832
3731
  name: string;
3833
3732
  id: number;
@@ -4076,19 +3975,7 @@ declare const eden: {
4076
3975
  id: number;
4077
3976
  icon: string;
4078
3977
  };
4079
- rewardToken: {
4080
- symbol: string;
4081
- name: string | null;
4082
- id: string;
4083
- icon: string;
4084
- chainId: number;
4085
- address: string;
4086
- decimals: number;
4087
- verified: boolean;
4088
- isTest: boolean;
4089
- } & {
4090
- price?: number | null | undefined;
4091
- };
3978
+ rewardToken: Token;
4092
3979
  distributionChain: {
4093
3980
  name: string;
4094
3981
  id: number;
@@ -4438,21 +4325,7 @@ declare const eden: {
4438
4325
  };
4439
4326
  fetch?: RequestInit | undefined;
4440
4327
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4441
- 200: ({
4442
- symbol: string;
4443
- name: string | null;
4444
- id: string;
4445
- icon: string;
4446
- chainId: number;
4447
- address: string;
4448
- decimals: number;
4449
- verified: boolean;
4450
- isTest: boolean;
4451
- } & {
4452
- price?: number | null | undefined;
4453
- } & {
4454
- balance: bigint;
4455
- })[];
4328
+ 200: any[];
4456
4329
  }>>;
4457
4330
  };
4458
4331
  index: {
@@ -4469,19 +4342,7 @@ declare const eden: {
4469
4342
  };
4470
4343
  fetch?: RequestInit | undefined;
4471
4344
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4472
- 200: ({
4473
- symbol: string;
4474
- name: string | null;
4475
- id: string;
4476
- icon: string;
4477
- chainId: number;
4478
- address: string;
4479
- decimals: number;
4480
- verified: boolean;
4481
- isTest: boolean;
4482
- } & {
4483
- price?: number | null | undefined;
4484
- })[];
4345
+ 200: Token[];
4485
4346
  }>>;
4486
4347
  post: (body: {
4487
4348
  isTest?: boolean | undefined;
@@ -4527,6 +4388,15 @@ declare const eden: {
4527
4388
  200: number;
4528
4389
  }>>;
4529
4390
  };
4391
+ sync: {
4392
+ get: (options?: {
4393
+ headers?: Record<string, unknown> | undefined;
4394
+ query?: Record<string, unknown> | undefined;
4395
+ fetch?: RequestInit | undefined;
4396
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4397
+ 200: void;
4398
+ }>>;
4399
+ };
4530
4400
  };
4531
4401
  rewards: {
4532
4402
  index: {
@@ -5897,7 +5767,7 @@ declare const eden: {
5897
5767
  fetch?: RequestInit | undefined;
5898
5768
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5899
5769
  200: (import("../modules/v4/claims").ClaimModel & {
5900
- token?: import("../modules/v4/token").Token["model"];
5770
+ token?: CampaignResource["model"];
5901
5771
  })[];
5902
5772
  }>>;
5903
5773
  }) & {};
@@ -7149,20 +7019,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7149
7019
  name: string;
7150
7020
  status: "PAST" | "LIVE" | "SOON";
7151
7021
  action: import("../../database/api/.generated").$Enums.OpportunityAction;
7152
- tokens: ({
7153
- symbol: string;
7154
- name: string | null;
7155
- id: string;
7156
- icon: string;
7157
- chainId: number;
7158
- address: string;
7159
- decimals: number;
7160
- verified: boolean;
7161
- isTest: boolean;
7162
- } & {
7163
- price?: number | null | undefined;
7164
- })[];
7165
- mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
7022
+ tokens: any[];
7023
+ mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | undefined;
7166
7024
  depositUrl: any;
7167
7025
  tags: string[];
7168
7026
  };
@@ -7247,19 +7105,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7247
7105
  };
7248
7106
  id: string;
7249
7107
  depositUrl: string | undefined;
7250
- tokens: ({
7251
- symbol: string;
7252
- name: string | null;
7253
- id: string;
7254
- icon: string;
7255
- chainId: number;
7256
- address: string;
7257
- decimals: number;
7258
- verified: boolean;
7259
- isTest: boolean;
7260
- } & {
7261
- price?: number | null | undefined;
7262
- })[];
7108
+ tokens: Token[];
7263
7109
  chain: {
7264
7110
  name: string;
7265
7111
  id: number;
@@ -7546,19 +7392,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7546
7392
  id: number;
7547
7393
  icon: string;
7548
7394
  };
7549
- rewardToken: {
7550
- symbol: string;
7551
- name: string | null;
7552
- id: string;
7553
- icon: string;
7554
- chainId: number;
7555
- address: string;
7556
- decimals: number;
7557
- verified: boolean;
7558
- isTest: boolean;
7559
- } & {
7560
- price?: number | null | undefined;
7561
- };
7395
+ rewardToken: Token;
7562
7396
  distributionChain: {
7563
7397
  name: string;
7564
7398
  id: number;
@@ -8038,19 +7872,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8038
7872
  id: number;
8039
7873
  icon: string;
8040
7874
  };
8041
- rewardToken: {
8042
- symbol: string;
8043
- name: string | null;
8044
- id: string;
8045
- icon: string;
8046
- chainId: number;
8047
- address: string;
8048
- decimals: number;
8049
- verified: boolean;
8050
- isTest: boolean;
8051
- } & {
8052
- price?: number | null | undefined;
8053
- };
7875
+ rewardToken: Token;
8054
7876
  distributionChain: {
8055
7877
  name: string;
8056
7878
  id: number;
@@ -8462,21 +8284,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8462
8284
  };
8463
8285
  headers: unknown;
8464
8286
  response: {
8465
- 200: ({
8466
- symbol: string;
8467
- name: string | null;
8468
- id: string;
8469
- icon: string;
8470
- chainId: number;
8471
- address: string;
8472
- decimals: number;
8473
- verified: boolean;
8474
- isTest: boolean;
8475
- } & {
8476
- price?: number | null | undefined;
8477
- } & {
8478
- balance: bigint;
8479
- })[];
8287
+ 200: any[];
8480
8288
  };
8481
8289
  };
8482
8290
  };
@@ -8498,19 +8306,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8498
8306
  };
8499
8307
  headers: unknown;
8500
8308
  response: {
8501
- 200: ({
8502
- symbol: string;
8503
- name: string | null;
8504
- id: string;
8505
- icon: string;
8506
- chainId: number;
8507
- address: string;
8508
- decimals: number;
8509
- verified: boolean;
8510
- isTest: boolean;
8511
- } & {
8512
- price?: number | null | undefined;
8513
- })[];
8309
+ 200: Token[];
8514
8310
  };
8515
8311
  };
8516
8312
  };
@@ -8604,6 +8400,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8604
8400
  };
8605
8401
  };
8606
8402
  };
8403
+ } & {
8404
+ tokens: {
8405
+ sync: {
8406
+ get: {
8407
+ body: unknown;
8408
+ params: {};
8409
+ query: unknown;
8410
+ headers: unknown;
8411
+ response: {
8412
+ 200: void;
8413
+ };
8414
+ };
8415
+ };
8416
+ };
8607
8417
  };
8608
8418
  } & {
8609
8419
  v4: {
@@ -10353,7 +10163,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10353
10163
  headers: unknown;
10354
10164
  response: {
10355
10165
  200: (import("../modules/v4/claims").ClaimModel & {
10356
- token?: import("../modules/v4/token").Token["model"];
10166
+ token?: CampaignResource["model"];
10357
10167
  })[];
10358
10168
  };
10359
10169
  };
@@ -11808,20 +11618,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11808
11618
  name: string;
11809
11619
  status: "PAST" | "LIVE" | "SOON";
11810
11620
  action: import("../../database/api/.generated").$Enums.OpportunityAction;
11811
- tokens: ({
11812
- symbol: string;
11813
- name: string | null;
11814
- id: string;
11815
- icon: string;
11816
- chainId: number;
11817
- address: string;
11818
- decimals: number;
11819
- verified: boolean;
11820
- isTest: boolean;
11821
- } & {
11822
- price?: number | null | undefined;
11823
- })[];
11824
- mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
11621
+ tokens: any[];
11622
+ mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | undefined;
11825
11623
  depositUrl: any;
11826
11624
  tags: string[];
11827
11625
  };
@@ -12216,19 +12014,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12216
12014
  };
12217
12015
  id: string;
12218
12016
  depositUrl: string | undefined;
12219
- tokens: ({
12220
- symbol: string;
12221
- name: string | null;
12222
- id: string;
12223
- icon: string;
12224
- chainId: number;
12225
- address: string;
12226
- decimals: number;
12227
- verified: boolean;
12228
- isTest: boolean;
12229
- } & {
12230
- price?: number | null | undefined;
12231
- })[];
12017
+ tokens: Token[];
12232
12018
  chain: {
12233
12019
  name: string;
12234
12020
  id: number;
@@ -12394,19 +12180,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12394
12180
  id: number;
12395
12181
  icon: string;
12396
12182
  };
12397
- rewardToken: {
12398
- symbol: string;
12399
- name: string | null;
12400
- id: string;
12401
- icon: string;
12402
- chainId: number;
12403
- address: string;
12404
- decimals: number;
12405
- verified: boolean;
12406
- isTest: boolean;
12407
- } & {
12408
- price?: number | null | undefined;
12409
- };
12183
+ rewardToken: Token;
12410
12184
  distributionChain: {
12411
12185
  name: string;
12412
12186
  id: number;
@@ -12655,19 +12429,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12655
12429
  id: number;
12656
12430
  icon: string;
12657
12431
  };
12658
- rewardToken: {
12659
- symbol: string;
12660
- name: string | null;
12661
- id: string;
12662
- icon: string;
12663
- chainId: number;
12664
- address: string;
12665
- decimals: number;
12666
- verified: boolean;
12667
- isTest: boolean;
12668
- } & {
12669
- price?: number | null | undefined;
12670
- };
12432
+ rewardToken: Token;
12671
12433
  distributionChain: {
12672
12434
  name: string;
12673
12435
  id: number;
@@ -13017,21 +12779,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13017
12779
  };
13018
12780
  fetch?: RequestInit | undefined;
13019
12781
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13020
- 200: ({
13021
- symbol: string;
13022
- name: string | null;
13023
- id: string;
13024
- icon: string;
13025
- chainId: number;
13026
- address: string;
13027
- decimals: number;
13028
- verified: boolean;
13029
- isTest: boolean;
13030
- } & {
13031
- price?: number | null | undefined;
13032
- } & {
13033
- balance: bigint;
13034
- })[];
12782
+ 200: any[];
13035
12783
  }>>;
13036
12784
  };
13037
12785
  index: {
@@ -13048,19 +12796,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13048
12796
  };
13049
12797
  fetch?: RequestInit | undefined;
13050
12798
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13051
- 200: ({
13052
- symbol: string;
13053
- name: string | null;
13054
- id: string;
13055
- icon: string;
13056
- chainId: number;
13057
- address: string;
13058
- decimals: number;
13059
- verified: boolean;
13060
- isTest: boolean;
13061
- } & {
13062
- price?: number | null | undefined;
13063
- })[];
12799
+ 200: Token[];
13064
12800
  }>>;
13065
12801
  post: (body: {
13066
12802
  isTest?: boolean | undefined;
@@ -13106,6 +12842,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13106
12842
  200: number;
13107
12843
  }>>;
13108
12844
  };
12845
+ sync: {
12846
+ get: (options?: {
12847
+ headers?: Record<string, unknown> | undefined;
12848
+ query?: Record<string, unknown> | undefined;
12849
+ fetch?: RequestInit | undefined;
12850
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
12851
+ 200: void;
12852
+ }>>;
12853
+ };
13109
12854
  };
13110
12855
  rewards: {
13111
12856
  index: {
@@ -14476,7 +14221,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14476
14221
  fetch?: RequestInit | undefined;
14477
14222
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14478
14223
  200: (import("../modules/v4/claims").ClaimModel & {
14479
- token?: import("../modules/v4/token").Token["model"];
14224
+ token?: CampaignResource["model"];
14480
14225
  })[];
14481
14226
  }>>;
14482
14227
  }) & {};
@@ -14922,20 +14667,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14922
14667
  name: string;
14923
14668
  status: "PAST" | "LIVE" | "SOON";
14924
14669
  action: import("../../database/api/.generated").$Enums.OpportunityAction;
14925
- tokens: ({
14926
- symbol: string;
14927
- name: string | null;
14928
- id: string;
14929
- icon: string;
14930
- chainId: number;
14931
- address: string;
14932
- decimals: number;
14933
- verified: boolean;
14934
- isTest: boolean;
14935
- } & {
14936
- price?: number | null | undefined;
14937
- })[];
14938
- mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | undefined;
14670
+ tokens: any[];
14671
+ mainProtocol: "morpho" | "euler" | "ambient" | "arthswap" | "baseswap" | "camelot" | "crust" | "fenix" | "horiza" | "izumi" | "kim" | "pancakeswap-v3" | "quickswap-algebra" | "quickswap-uni" | "ramses" | "retro" | "stryke" | "stryke-pcs" | "stryke-sushi" | "sushiswap-v3" | "swapr" | "thruster" | "uniswap-v3" | "voltage" | "zero" | "koi" | "supswap-v3" | "zkswap" | "thirdtrade" | "uniswapv4" | "uniswap-v2" | "velodrome" | "aerodrome" | "balancer" | "curve" | "cross_curve" | "curveNPool" | "aura" | "akron" | "beefy" | "dragonswap" | "poolside" | "syncswap-v3" | "neptune" | "zkSwapThreePool" | "syncswap" | "rfx" | "radiant" | "aave" | "gearbox" | "compound" | "sturdy" | "frax" | "ionic" | "moonwell" | "fluid" | "silo" | "coumpound" | "dolomite" | "badger" | "ajna" | "layerbank" | "ion" | "venus" | "woofi" | "reactor_fusion" | "eigenlayer" | "vest" | "zerolend" | "hyperdrive" | "gamma" | "oku" | "hourglass" | "veda" | "kyo" | "sonex" | undefined;
14939
14672
  depositUrl: any;
14940
14673
  tags: string[];
14941
14674
  };
@@ -15330,19 +15063,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15330
15063
  };
15331
15064
  id: string;
15332
15065
  depositUrl: string | undefined;
15333
- tokens: ({
15334
- symbol: string;
15335
- name: string | null;
15336
- id: string;
15337
- icon: string;
15338
- chainId: number;
15339
- address: string;
15340
- decimals: number;
15341
- verified: boolean;
15342
- isTest: boolean;
15343
- } & {
15344
- price?: number | null | undefined;
15345
- })[];
15066
+ tokens: Token[];
15346
15067
  chain: {
15347
15068
  name: string;
15348
15069
  id: number;
@@ -15508,19 +15229,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15508
15229
  id: number;
15509
15230
  icon: string;
15510
15231
  };
15511
- rewardToken: {
15512
- symbol: string;
15513
- name: string | null;
15514
- id: string;
15515
- icon: string;
15516
- chainId: number;
15517
- address: string;
15518
- decimals: number;
15519
- verified: boolean;
15520
- isTest: boolean;
15521
- } & {
15522
- price?: number | null | undefined;
15523
- };
15232
+ rewardToken: Token;
15524
15233
  distributionChain: {
15525
15234
  name: string;
15526
15235
  id: number;
@@ -15769,19 +15478,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15769
15478
  id: number;
15770
15479
  icon: string;
15771
15480
  };
15772
- rewardToken: {
15773
- symbol: string;
15774
- name: string | null;
15775
- id: string;
15776
- icon: string;
15777
- chainId: number;
15778
- address: string;
15779
- decimals: number;
15780
- verified: boolean;
15781
- isTest: boolean;
15782
- } & {
15783
- price?: number | null | undefined;
15784
- };
15481
+ rewardToken: Token;
15785
15482
  distributionChain: {
15786
15483
  name: string;
15787
15484
  id: number;
@@ -16131,21 +15828,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16131
15828
  };
16132
15829
  fetch?: RequestInit | undefined;
16133
15830
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16134
- 200: ({
16135
- symbol: string;
16136
- name: string | null;
16137
- id: string;
16138
- icon: string;
16139
- chainId: number;
16140
- address: string;
16141
- decimals: number;
16142
- verified: boolean;
16143
- isTest: boolean;
16144
- } & {
16145
- price?: number | null | undefined;
16146
- } & {
16147
- balance: bigint;
16148
- })[];
15831
+ 200: any[];
16149
15832
  }>>;
16150
15833
  };
16151
15834
  index: {
@@ -16162,19 +15845,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16162
15845
  };
16163
15846
  fetch?: RequestInit | undefined;
16164
15847
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16165
- 200: ({
16166
- symbol: string;
16167
- name: string | null;
16168
- id: string;
16169
- icon: string;
16170
- chainId: number;
16171
- address: string;
16172
- decimals: number;
16173
- verified: boolean;
16174
- isTest: boolean;
16175
- } & {
16176
- price?: number | null | undefined;
16177
- })[];
15848
+ 200: Token[];
16178
15849
  }>>;
16179
15850
  post: (body: {
16180
15851
  isTest?: boolean | undefined;
@@ -16220,6 +15891,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16220
15891
  200: number;
16221
15892
  }>>;
16222
15893
  };
15894
+ sync: {
15895
+ get: (options?: {
15896
+ headers?: Record<string, unknown> | undefined;
15897
+ query?: Record<string, unknown> | undefined;
15898
+ fetch?: RequestInit | undefined;
15899
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15900
+ 200: void;
15901
+ }>>;
15902
+ };
16223
15903
  };
16224
15904
  rewards: {
16225
15905
  index: {
@@ -17590,7 +17270,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17590
17270
  fetch?: RequestInit | undefined;
17591
17271
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17592
17272
  200: (import("../modules/v4/claims").ClaimModel & {
17593
- token?: import("../modules/v4/token").Token["model"];
17273
+ token?: CampaignResource["model"];
17594
17274
  })[];
17595
17275
  }>>;
17596
17276
  }) & {};