@merkl/api 0.16.13 → 0.16.15

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 (51) hide show
  1. package/dist/src/backgroundJobs/jobs/priceUpdater.js +1 -1
  2. package/dist/src/eden/index.d.ts +363 -413
  3. package/dist/src/entities/opportunity.js +17 -0
  4. package/dist/src/index.d.ts +84 -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/referral/referral.controller.d.ts +82 -0
  34. package/dist/src/modules/v4/referral/referral.controller.js +25 -0
  35. package/dist/src/modules/v4/referral/referral.model.d.ts +10 -0
  36. package/dist/src/modules/v4/referral/referral.model.js +12 -0
  37. package/dist/src/modules/v4/referral/referral.service.d.ts +216 -0
  38. package/dist/src/modules/v4/referral/referral.service.js +170 -0
  39. package/dist/src/modules/v4/reward/reward.controller.js +3 -3
  40. package/dist/src/modules/v4/reward/reward.repository.js +2 -2
  41. package/dist/src/modules/v4/reward/reward.service.js +1 -1
  42. package/dist/src/modules/v4/router.d.ts +84 -82
  43. package/dist/src/modules/v4/router.js +3 -1
  44. package/dist/src/modules/v4/token/token.controller.d.ts +16 -28
  45. package/dist/src/modules/v4/token/token.controller.js +2 -1
  46. package/dist/src/modules/v4/token/token.service.d.ts +5 -69
  47. package/dist/src/routes/v3/lostyield.js +1 -1
  48. package/dist/tsconfig.package.tsbuildinfo +1 -1
  49. package/package.json +1 -1
  50. package/dist/src/modules/v4/token/index.d.ts +0 -3
  51. 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
  }) & {};
@@ -3207,6 +3142,58 @@ declare const eden: {
3207
3142
  }>>;
3208
3143
  };
3209
3144
  };
3145
+ referral: {
3146
+ code: {
3147
+ get: (options: {
3148
+ headers?: Record<string, unknown> | undefined;
3149
+ query: {
3150
+ chainId: number;
3151
+ address: string;
3152
+ referralKey: string;
3153
+ };
3154
+ fetch?: RequestInit | undefined;
3155
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3156
+ 200: {
3157
+ code: string;
3158
+ referrer: boolean;
3159
+ referredUsers: never[];
3160
+ transaction: {
3161
+ to: string;
3162
+ data: `0x${string}`;
3163
+ };
3164
+ } | {
3165
+ code: any;
3166
+ referrer: boolean;
3167
+ referredUsers: any;
3168
+ transaction?: undefined;
3169
+ };
3170
+ }>>;
3171
+ };
3172
+ redeem: {
3173
+ get: (options: {
3174
+ headers?: Record<string, unknown> | undefined;
3175
+ query: {
3176
+ code: string;
3177
+ chainId: number;
3178
+ referralKey: string;
3179
+ };
3180
+ fetch?: RequestInit | undefined;
3181
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
3182
+ 200: {
3183
+ code: string;
3184
+ referrer: any;
3185
+ transaction?: undefined;
3186
+ } | {
3187
+ code: string;
3188
+ referrer: any;
3189
+ transaction: {
3190
+ to: string;
3191
+ data: `0x${string}`;
3192
+ };
3193
+ };
3194
+ }>>;
3195
+ };
3196
+ };
3210
3197
  } | {
3211
3198
  derive: {};
3212
3199
  resolve: {};
@@ -3229,20 +3216,8 @@ declare const eden: {
3229
3216
  name: string;
3230
3217
  status: "PAST" | "LIVE" | "SOON";
3231
3218
  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;
3219
+ tokens: any[];
3220
+ 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
3221
  depositUrl: any;
3247
3222
  tags: string[];
3248
3223
  };
@@ -3637,19 +3612,7 @@ declare const eden: {
3637
3612
  };
3638
3613
  id: string;
3639
3614
  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
- })[];
3615
+ tokens: Token[];
3653
3616
  chain: {
3654
3617
  name: string;
3655
3618
  id: number;
@@ -3815,19 +3778,7 @@ declare const eden: {
3815
3778
  id: number;
3816
3779
  icon: string;
3817
3780
  };
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
- };
3781
+ rewardToken: Token;
3831
3782
  distributionChain: {
3832
3783
  name: string;
3833
3784
  id: number;
@@ -4076,19 +4027,7 @@ declare const eden: {
4076
4027
  id: number;
4077
4028
  icon: string;
4078
4029
  };
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
- };
4030
+ rewardToken: Token;
4092
4031
  distributionChain: {
4093
4032
  name: string;
4094
4033
  id: number;
@@ -4438,21 +4377,7 @@ declare const eden: {
4438
4377
  };
4439
4378
  fetch?: RequestInit | undefined;
4440
4379
  }) => 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
- })[];
4380
+ 200: any[];
4456
4381
  }>>;
4457
4382
  };
4458
4383
  index: {
@@ -4469,19 +4394,7 @@ declare const eden: {
4469
4394
  };
4470
4395
  fetch?: RequestInit | undefined;
4471
4396
  }) => 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
- })[];
4397
+ 200: Token[];
4485
4398
  }>>;
4486
4399
  post: (body: {
4487
4400
  isTest?: boolean | undefined;
@@ -4527,6 +4440,15 @@ declare const eden: {
4527
4440
  200: number;
4528
4441
  }>>;
4529
4442
  };
4443
+ sync: {
4444
+ get: (options?: {
4445
+ headers?: Record<string, unknown> | undefined;
4446
+ query?: Record<string, unknown> | undefined;
4447
+ fetch?: RequestInit | undefined;
4448
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4449
+ 200: void;
4450
+ }>>;
4451
+ };
4530
4452
  };
4531
4453
  rewards: {
4532
4454
  index: {
@@ -5897,7 +5819,7 @@ declare const eden: {
5897
5819
  fetch?: RequestInit | undefined;
5898
5820
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5899
5821
  200: (import("../modules/v4/claims").ClaimModel & {
5900
- token?: import("../modules/v4/token").Token["model"];
5822
+ token?: CampaignResource["model"];
5901
5823
  })[];
5902
5824
  }>>;
5903
5825
  }) & {};
@@ -6321,6 +6243,58 @@ declare const eden: {
6321
6243
  }>>;
6322
6244
  };
6323
6245
  };
6246
+ referral: {
6247
+ code: {
6248
+ get: (options: {
6249
+ headers?: Record<string, unknown> | undefined;
6250
+ query: {
6251
+ chainId: number;
6252
+ address: string;
6253
+ referralKey: string;
6254
+ };
6255
+ fetch?: RequestInit | undefined;
6256
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6257
+ 200: {
6258
+ code: string;
6259
+ referrer: boolean;
6260
+ referredUsers: never[];
6261
+ transaction: {
6262
+ to: string;
6263
+ data: `0x${string}`;
6264
+ };
6265
+ } | {
6266
+ code: any;
6267
+ referrer: boolean;
6268
+ referredUsers: any;
6269
+ transaction?: undefined;
6270
+ };
6271
+ }>>;
6272
+ };
6273
+ redeem: {
6274
+ get: (options: {
6275
+ headers?: Record<string, unknown> | undefined;
6276
+ query: {
6277
+ code: string;
6278
+ chainId: number;
6279
+ referralKey: string;
6280
+ };
6281
+ fetch?: RequestInit | undefined;
6282
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
6283
+ 200: {
6284
+ code: string;
6285
+ referrer: any;
6286
+ transaction?: undefined;
6287
+ } | {
6288
+ code: string;
6289
+ referrer: any;
6290
+ transaction: {
6291
+ to: string;
6292
+ data: `0x${string}`;
6293
+ };
6294
+ };
6295
+ }>>;
6296
+ };
6297
+ };
6324
6298
  };
6325
6299
  v3: {
6326
6300
  app: {
@@ -7149,20 +7123,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7149
7123
  name: string;
7150
7124
  status: "PAST" | "LIVE" | "SOON";
7151
7125
  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;
7126
+ tokens: any[];
7127
+ 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
7128
  depositUrl: any;
7167
7129
  tags: string[];
7168
7130
  };
@@ -7247,22 +7209,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7247
7209
  };
7248
7210
  id: string;
7249
7211
  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
- })[];
7263
- chain: {
7264
- name: string;
7265
- id: number;
7212
+ tokens: Token[];
7213
+ chain: {
7214
+ name: string;
7215
+ id: number;
7266
7216
  icon: string;
7267
7217
  };
7268
7218
  protocol: {
@@ -7546,19 +7496,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7546
7496
  id: number;
7547
7497
  icon: string;
7548
7498
  };
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
- };
7499
+ rewardToken: Token;
7562
7500
  distributionChain: {
7563
7501
  name: string;
7564
7502
  id: number;
@@ -8038,19 +7976,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8038
7976
  id: number;
8039
7977
  icon: string;
8040
7978
  };
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
- };
7979
+ rewardToken: Token;
8054
7980
  distributionChain: {
8055
7981
  name: string;
8056
7982
  id: number;
@@ -8462,21 +8388,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8462
8388
  };
8463
8389
  headers: unknown;
8464
8390
  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
- })[];
8391
+ 200: any[];
8480
8392
  };
8481
8393
  };
8482
8394
  };
@@ -8498,19 +8410,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8498
8410
  };
8499
8411
  headers: unknown;
8500
8412
  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
- })[];
8413
+ 200: Token[];
8514
8414
  };
8515
8415
  };
8516
8416
  };
@@ -8604,6 +8504,20 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8604
8504
  };
8605
8505
  };
8606
8506
  };
8507
+ } & {
8508
+ tokens: {
8509
+ sync: {
8510
+ get: {
8511
+ body: unknown;
8512
+ params: {};
8513
+ query: unknown;
8514
+ headers: unknown;
8515
+ response: {
8516
+ 200: void;
8517
+ };
8518
+ };
8519
+ };
8520
+ };
8607
8521
  };
8608
8522
  } & {
8609
8523
  v4: {
@@ -10353,7 +10267,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10353
10267
  headers: unknown;
10354
10268
  response: {
10355
10269
  200: (import("../modules/v4/claims").ClaimModel & {
10356
- token?: import("../modules/v4/token").Token["model"];
10270
+ token?: CampaignResource["model"];
10357
10271
  })[];
10358
10272
  };
10359
10273
  };
@@ -10905,6 +10819,68 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10905
10819
  };
10906
10820
  };
10907
10821
  };
10822
+ } & {
10823
+ v4: {
10824
+ referral: {
10825
+ code: {
10826
+ get: {
10827
+ body: unknown;
10828
+ params: {};
10829
+ query: {
10830
+ chainId: number;
10831
+ address: string;
10832
+ referralKey: string;
10833
+ };
10834
+ headers: unknown;
10835
+ response: {
10836
+ 200: {
10837
+ code: string;
10838
+ referrer: boolean;
10839
+ referredUsers: never[];
10840
+ transaction: {
10841
+ to: string;
10842
+ data: `0x${string}`;
10843
+ };
10844
+ } | {
10845
+ code: any;
10846
+ referrer: boolean;
10847
+ referredUsers: any;
10848
+ transaction?: undefined;
10849
+ };
10850
+ };
10851
+ };
10852
+ };
10853
+ };
10854
+ } & {
10855
+ referral: {
10856
+ redeem: {
10857
+ get: {
10858
+ body: unknown;
10859
+ params: {};
10860
+ query: {
10861
+ code: string;
10862
+ chainId: number;
10863
+ referralKey: string;
10864
+ };
10865
+ headers: unknown;
10866
+ response: {
10867
+ 200: {
10868
+ code: string;
10869
+ referrer: any;
10870
+ transaction?: undefined;
10871
+ } | {
10872
+ code: string;
10873
+ referrer: any;
10874
+ transaction: {
10875
+ to: string;
10876
+ data: `0x${string}`;
10877
+ };
10878
+ };
10879
+ };
10880
+ };
10881
+ };
10882
+ };
10883
+ };
10908
10884
  } & {
10909
10885
  v3: {
10910
10886
  app: {
@@ -11808,20 +11784,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
11808
11784
  name: string;
11809
11785
  status: "PAST" | "LIVE" | "SOON";
11810
11786
  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;
11787
+ tokens: any[];
11788
+ 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
11789
  depositUrl: any;
11826
11790
  tags: string[];
11827
11791
  };
@@ -12216,19 +12180,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12216
12180
  };
12217
12181
  id: string;
12218
12182
  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
- })[];
12183
+ tokens: Token[];
12232
12184
  chain: {
12233
12185
  name: string;
12234
12186
  id: number;
@@ -12394,19 +12346,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12394
12346
  id: number;
12395
12347
  icon: string;
12396
12348
  };
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
- };
12349
+ rewardToken: Token;
12410
12350
  distributionChain: {
12411
12351
  name: string;
12412
12352
  id: number;
@@ -12655,19 +12595,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12655
12595
  id: number;
12656
12596
  icon: string;
12657
12597
  };
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
- };
12598
+ rewardToken: Token;
12671
12599
  distributionChain: {
12672
12600
  name: string;
12673
12601
  id: number;
@@ -13017,21 +12945,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13017
12945
  };
13018
12946
  fetch?: RequestInit | undefined;
13019
12947
  }) => 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
- })[];
12948
+ 200: any[];
13035
12949
  }>>;
13036
12950
  };
13037
12951
  index: {
@@ -13048,19 +12962,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13048
12962
  };
13049
12963
  fetch?: RequestInit | undefined;
13050
12964
  }) => 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
- })[];
12965
+ 200: Token[];
13064
12966
  }>>;
13065
12967
  post: (body: {
13066
12968
  isTest?: boolean | undefined;
@@ -13106,6 +13008,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13106
13008
  200: number;
13107
13009
  }>>;
13108
13010
  };
13011
+ sync: {
13012
+ get: (options?: {
13013
+ headers?: Record<string, unknown> | undefined;
13014
+ query?: Record<string, unknown> | undefined;
13015
+ fetch?: RequestInit | undefined;
13016
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
13017
+ 200: void;
13018
+ }>>;
13019
+ };
13109
13020
  };
13110
13021
  rewards: {
13111
13022
  index: {
@@ -14476,7 +14387,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14476
14387
  fetch?: RequestInit | undefined;
14477
14388
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14478
14389
  200: (import("../modules/v4/claims").ClaimModel & {
14479
- token?: import("../modules/v4/token").Token["model"];
14390
+ token?: CampaignResource["model"];
14480
14391
  })[];
14481
14392
  }>>;
14482
14393
  }) & {};
@@ -14900,6 +14811,58 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14900
14811
  }>>;
14901
14812
  };
14902
14813
  };
14814
+ referral: {
14815
+ code: {
14816
+ get: (options: {
14817
+ headers?: Record<string, unknown> | undefined;
14818
+ query: {
14819
+ chainId: number;
14820
+ address: string;
14821
+ referralKey: string;
14822
+ };
14823
+ fetch?: RequestInit | undefined;
14824
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14825
+ 200: {
14826
+ code: string;
14827
+ referrer: boolean;
14828
+ referredUsers: never[];
14829
+ transaction: {
14830
+ to: string;
14831
+ data: `0x${string}`;
14832
+ };
14833
+ } | {
14834
+ code: any;
14835
+ referrer: boolean;
14836
+ referredUsers: any;
14837
+ transaction?: undefined;
14838
+ };
14839
+ }>>;
14840
+ };
14841
+ redeem: {
14842
+ get: (options: {
14843
+ headers?: Record<string, unknown> | undefined;
14844
+ query: {
14845
+ code: string;
14846
+ chainId: number;
14847
+ referralKey: string;
14848
+ };
14849
+ fetch?: RequestInit | undefined;
14850
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14851
+ 200: {
14852
+ code: string;
14853
+ referrer: any;
14854
+ transaction?: undefined;
14855
+ } | {
14856
+ code: string;
14857
+ referrer: any;
14858
+ transaction: {
14859
+ to: string;
14860
+ data: `0x${string}`;
14861
+ };
14862
+ };
14863
+ }>>;
14864
+ };
14865
+ };
14903
14866
  } | {
14904
14867
  derive: {};
14905
14868
  resolve: {};
@@ -14922,20 +14885,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14922
14885
  name: string;
14923
14886
  status: "PAST" | "LIVE" | "SOON";
14924
14887
  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;
14888
+ tokens: any[];
14889
+ 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
14890
  depositUrl: any;
14940
14891
  tags: string[];
14941
14892
  };
@@ -15330,19 +15281,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15330
15281
  };
15331
15282
  id: string;
15332
15283
  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
- })[];
15284
+ tokens: Token[];
15346
15285
  chain: {
15347
15286
  name: string;
15348
15287
  id: number;
@@ -15508,19 +15447,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15508
15447
  id: number;
15509
15448
  icon: string;
15510
15449
  };
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
- };
15450
+ rewardToken: Token;
15524
15451
  distributionChain: {
15525
15452
  name: string;
15526
15453
  id: number;
@@ -15769,19 +15696,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15769
15696
  id: number;
15770
15697
  icon: string;
15771
15698
  };
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
- };
15699
+ rewardToken: Token;
15785
15700
  distributionChain: {
15786
15701
  name: string;
15787
15702
  id: number;
@@ -16131,21 +16046,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16131
16046
  };
16132
16047
  fetch?: RequestInit | undefined;
16133
16048
  }) => 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
- })[];
16049
+ 200: any[];
16149
16050
  }>>;
16150
16051
  };
16151
16052
  index: {
@@ -16162,19 +16063,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16162
16063
  };
16163
16064
  fetch?: RequestInit | undefined;
16164
16065
  }) => 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
- })[];
16066
+ 200: Token[];
16178
16067
  }>>;
16179
16068
  post: (body: {
16180
16069
  isTest?: boolean | undefined;
@@ -16220,6 +16109,15 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
16220
16109
  200: number;
16221
16110
  }>>;
16222
16111
  };
16112
+ sync: {
16113
+ get: (options?: {
16114
+ headers?: Record<string, unknown> | undefined;
16115
+ query?: Record<string, unknown> | undefined;
16116
+ fetch?: RequestInit | undefined;
16117
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
16118
+ 200: void;
16119
+ }>>;
16120
+ };
16223
16121
  };
16224
16122
  rewards: {
16225
16123
  index: {
@@ -17590,7 +17488,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17590
17488
  fetch?: RequestInit | undefined;
17591
17489
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17592
17490
  200: (import("../modules/v4/claims").ClaimModel & {
17593
- token?: import("../modules/v4/token").Token["model"];
17491
+ token?: CampaignResource["model"];
17594
17492
  })[];
17595
17493
  }>>;
17596
17494
  }) & {};
@@ -18014,6 +17912,58 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18014
17912
  }>>;
18015
17913
  };
18016
17914
  };
17915
+ referral: {
17916
+ code: {
17917
+ get: (options: {
17918
+ headers?: Record<string, unknown> | undefined;
17919
+ query: {
17920
+ chainId: number;
17921
+ address: string;
17922
+ referralKey: string;
17923
+ };
17924
+ fetch?: RequestInit | undefined;
17925
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17926
+ 200: {
17927
+ code: string;
17928
+ referrer: boolean;
17929
+ referredUsers: never[];
17930
+ transaction: {
17931
+ to: string;
17932
+ data: `0x${string}`;
17933
+ };
17934
+ } | {
17935
+ code: any;
17936
+ referrer: boolean;
17937
+ referredUsers: any;
17938
+ transaction?: undefined;
17939
+ };
17940
+ }>>;
17941
+ };
17942
+ redeem: {
17943
+ get: (options: {
17944
+ headers?: Record<string, unknown> | undefined;
17945
+ query: {
17946
+ code: string;
17947
+ chainId: number;
17948
+ referralKey: string;
17949
+ };
17950
+ fetch?: RequestInit | undefined;
17951
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
17952
+ 200: {
17953
+ code: string;
17954
+ referrer: any;
17955
+ transaction?: undefined;
17956
+ } | {
17957
+ code: string;
17958
+ referrer: any;
17959
+ transaction: {
17960
+ to: string;
17961
+ data: `0x${string}`;
17962
+ };
17963
+ };
17964
+ }>>;
17965
+ };
17966
+ };
18017
17967
  };
18018
17968
  v3: {
18019
17969
  app: {