@merkl/api 0.10.316 → 0.10.318

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.
@@ -608,7 +608,64 @@ declare const eden: {
608
608
  sum: string;
609
609
  };
610
610
  }>>;
611
- }) & {};
611
+ }) & {
612
+ max: ((params: {
613
+ field: string | number;
614
+ }) => {
615
+ get: (options: {
616
+ headers?: Record<string, unknown> | undefined;
617
+ query: {
618
+ sort?: string | undefined;
619
+ name?: string | undefined;
620
+ tokens?: string | undefined;
621
+ status?: string | undefined;
622
+ items?: number | undefined;
623
+ tags?: string | undefined;
624
+ page?: number | undefined;
625
+ chainId?: string | undefined;
626
+ action?: string | undefined;
627
+ creatorAddress?: string | undefined;
628
+ mainProtocolId?: string | undefined;
629
+ order?: string | undefined;
630
+ test?: boolean | undefined;
631
+ minimumTvl?: number | undefined;
632
+ };
633
+ fetch?: RequestInit | undefined;
634
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
635
+ 200: {
636
+ max: string;
637
+ };
638
+ }>>;
639
+ }) & {};
640
+ min: ((params: {
641
+ field: string | number;
642
+ }) => {
643
+ get: (options: {
644
+ headers?: Record<string, unknown> | undefined;
645
+ query: {
646
+ sort?: string | undefined;
647
+ name?: string | undefined;
648
+ tokens?: string | undefined;
649
+ status?: string | undefined;
650
+ items?: number | undefined;
651
+ tags?: string | undefined;
652
+ page?: number | undefined;
653
+ chainId?: string | undefined;
654
+ action?: string | undefined;
655
+ creatorAddress?: string | undefined;
656
+ mainProtocolId?: string | undefined;
657
+ order?: string | undefined;
658
+ test?: boolean | undefined;
659
+ minimumTvl?: number | undefined;
660
+ };
661
+ fetch?: RequestInit | undefined;
662
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
663
+ 200: {
664
+ min: string;
665
+ };
666
+ }>>;
667
+ }) & {};
668
+ };
612
669
  };
613
670
  campaigns: {
614
671
  engine: {
@@ -2263,8 +2320,16 @@ declare const eden: {
2263
2320
  };
2264
2321
  fetch?: RequestInit | undefined;
2265
2322
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2266
- [x: string]: any;
2267
- 200: any;
2323
+ 200: {
2324
+ version: string;
2325
+ chainId: string;
2326
+ createdAt: number;
2327
+ meta: {
2328
+ name: string;
2329
+ txBuilderVersion: string;
2330
+ };
2331
+ transactions: import("../modules/v4/programPayload").transaction[];
2332
+ };
2268
2333
  }>>;
2269
2334
  };
2270
2335
  config: {
@@ -2320,8 +2385,16 @@ declare const eden: {
2320
2385
  };
2321
2386
  fetch?: RequestInit | undefined;
2322
2387
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2323
- [x: string]: any;
2324
- 200: any;
2388
+ 200: {
2389
+ version: string;
2390
+ chainId: string;
2391
+ createdAt: number;
2392
+ meta: {
2393
+ name: string;
2394
+ txBuilderVersion: string;
2395
+ };
2396
+ transactions: import("../modules/v4/programPayload").transaction[];
2397
+ } | null;
2325
2398
  }>>;
2326
2399
  withAmounts: {
2327
2400
  post: (body: {
@@ -2339,8 +2412,64 @@ declare const eden: {
2339
2412
  };
2340
2413
  fetch?: RequestInit | undefined;
2341
2414
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2342
- [x: string]: any;
2343
- 200: any;
2415
+ 200: {
2416
+ version: string;
2417
+ chainId: string;
2418
+ createdAt: number;
2419
+ meta: {
2420
+ name: string;
2421
+ txBuilderVersion: string;
2422
+ };
2423
+ transactions: import("../modules/v4/programPayload").transaction[];
2424
+ } | null;
2425
+ }>>;
2426
+ };
2427
+ };
2428
+ payload: {
2429
+ "from-config": {
2430
+ post: (body: {
2431
+ url?: string | undefined;
2432
+ endTimestamp?: number | undefined;
2433
+ poolAddress?: string | undefined;
2434
+ marketId?: string | undefined;
2435
+ strategy?: string | undefined;
2436
+ poolId?: string | undefined;
2437
+ contract?: string | undefined;
2438
+ forwarders?: {}[] | undefined;
2439
+ targetToken?: string | undefined;
2440
+ isOutOfRangeIncentivized?: boolean | undefined;
2441
+ weightFees?: number | undefined;
2442
+ weightToken0?: number | undefined;
2443
+ weightToken1?: number | undefined;
2444
+ usesBlockNumber?: boolean | undefined;
2445
+ snapshotTimestamp?: number | undefined;
2446
+ snapshotBlockNumber?: number | undefined;
2447
+ jsonUrl?: string | undefined;
2448
+ subCampaignType?: number | undefined;
2449
+ repository?: string | undefined;
2450
+ capInUSD?: string | undefined;
2451
+ compFork?: number | undefined;
2452
+ evkAddress?: string | undefined;
2453
+ collateralAddress?: string | undefined;
2454
+ hooks: {}[];
2455
+ creator: string;
2456
+ startTimestamp: number;
2457
+ computeChainId: number;
2458
+ distributionChainId: number;
2459
+ amount: string;
2460
+ blacklist: string[];
2461
+ rewardToken: string;
2462
+ campaignType: number;
2463
+ whitelist: string[];
2464
+ }, options?: {
2465
+ headers?: Record<string, unknown> | undefined;
2466
+ query?: Record<string, unknown> | undefined;
2467
+ fetch?: RequestInit | undefined;
2468
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2469
+ 200: {
2470
+ safePayload: import("../modules/v4/programPayload").safePayload;
2471
+ nonEncodedConfig: any;
2472
+ };
2344
2473
  }>>;
2345
2474
  };
2346
2475
  };
@@ -3627,6 +3756,80 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3627
3756
  };
3628
3757
  };
3629
3758
  };
3759
+ } & {
3760
+ opportunities: {
3761
+ aggregate: {
3762
+ max: {
3763
+ ":field": {
3764
+ get: {
3765
+ body: unknown;
3766
+ params: {
3767
+ field: never;
3768
+ };
3769
+ query: {
3770
+ sort?: string | undefined;
3771
+ name?: string | undefined;
3772
+ tokens?: string | undefined;
3773
+ status?: string | undefined;
3774
+ items?: number | undefined;
3775
+ tags?: string | undefined;
3776
+ page?: number | undefined;
3777
+ chainId?: string | undefined;
3778
+ action?: string | undefined;
3779
+ creatorAddress?: string | undefined;
3780
+ mainProtocolId?: string | undefined;
3781
+ order?: string | undefined;
3782
+ test?: boolean | undefined;
3783
+ minimumTvl?: number | undefined;
3784
+ };
3785
+ headers: unknown;
3786
+ response: {
3787
+ 200: {
3788
+ max: string;
3789
+ };
3790
+ };
3791
+ };
3792
+ };
3793
+ };
3794
+ };
3795
+ };
3796
+ } & {
3797
+ opportunities: {
3798
+ aggregate: {
3799
+ min: {
3800
+ ":field": {
3801
+ get: {
3802
+ body: unknown;
3803
+ params: {
3804
+ field: never;
3805
+ };
3806
+ query: {
3807
+ sort?: string | undefined;
3808
+ name?: string | undefined;
3809
+ tokens?: string | undefined;
3810
+ status?: string | undefined;
3811
+ items?: number | undefined;
3812
+ tags?: string | undefined;
3813
+ page?: number | undefined;
3814
+ chainId?: string | undefined;
3815
+ action?: string | undefined;
3816
+ creatorAddress?: string | undefined;
3817
+ mainProtocolId?: string | undefined;
3818
+ order?: string | undefined;
3819
+ test?: boolean | undefined;
3820
+ minimumTvl?: number | undefined;
3821
+ };
3822
+ headers: unknown;
3823
+ response: {
3824
+ 200: {
3825
+ min: string;
3826
+ };
3827
+ };
3828
+ };
3829
+ };
3830
+ };
3831
+ };
3832
+ };
3630
3833
  } & {
3631
3834
  opportunities: {
3632
3835
  ":id": {
@@ -5756,8 +5959,16 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5756
5959
  };
5757
5960
  headers: unknown;
5758
5961
  response: {
5759
- [x: string]: any;
5760
- 200: any;
5962
+ 200: {
5963
+ version: string;
5964
+ chainId: string;
5965
+ createdAt: number;
5966
+ meta: {
5967
+ name: string;
5968
+ txBuilderVersion: string;
5969
+ };
5970
+ transactions: import("../modules/v4/programPayload").transaction[];
5971
+ };
5761
5972
  };
5762
5973
  };
5763
5974
  };
@@ -5828,8 +6039,16 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5828
6039
  };
5829
6040
  headers: unknown;
5830
6041
  response: {
5831
- [x: string]: any;
5832
- 200: any;
6042
+ 200: {
6043
+ version: string;
6044
+ chainId: string;
6045
+ createdAt: number;
6046
+ meta: {
6047
+ name: string;
6048
+ txBuilderVersion: string;
6049
+ };
6050
+ transactions: import("../modules/v4/programPayload").transaction[];
6051
+ } | null;
5833
6052
  };
5834
6053
  };
5835
6054
  };
@@ -5854,8 +6073,69 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5854
6073
  };
5855
6074
  headers: unknown;
5856
6075
  response: {
5857
- [x: string]: any;
5858
- 200: any;
6076
+ 200: {
6077
+ version: string;
6078
+ chainId: string;
6079
+ createdAt: number;
6080
+ meta: {
6081
+ name: string;
6082
+ txBuilderVersion: string;
6083
+ };
6084
+ transactions: import("../modules/v4/programPayload").transaction[];
6085
+ } | null;
6086
+ };
6087
+ };
6088
+ };
6089
+ };
6090
+ };
6091
+ } & {
6092
+ "program-payload": {
6093
+ payload: {
6094
+ "from-config": {
6095
+ post: {
6096
+ body: {
6097
+ url?: string | undefined;
6098
+ endTimestamp?: number | undefined;
6099
+ poolAddress?: string | undefined;
6100
+ marketId?: string | undefined;
6101
+ strategy?: string | undefined;
6102
+ poolId?: string | undefined;
6103
+ contract?: string | undefined;
6104
+ forwarders?: {}[] | undefined;
6105
+ targetToken?: string | undefined;
6106
+ isOutOfRangeIncentivized?: boolean | undefined;
6107
+ weightFees?: number | undefined;
6108
+ weightToken0?: number | undefined;
6109
+ weightToken1?: number | undefined;
6110
+ usesBlockNumber?: boolean | undefined;
6111
+ snapshotTimestamp?: number | undefined;
6112
+ snapshotBlockNumber?: number | undefined;
6113
+ jsonUrl?: string | undefined;
6114
+ subCampaignType?: number | undefined;
6115
+ repository?: string | undefined;
6116
+ capInUSD?: string | undefined;
6117
+ compFork?: number | undefined;
6118
+ evkAddress?: string | undefined;
6119
+ collateralAddress?: string | undefined;
6120
+ hooks: {}[];
6121
+ creator: string;
6122
+ startTimestamp: number;
6123
+ computeChainId: number;
6124
+ distributionChainId: number;
6125
+ amount: string;
6126
+ blacklist: string[];
6127
+ rewardToken: string;
6128
+ campaignType: number;
6129
+ whitelist: string[];
6130
+ };
6131
+ params: {};
6132
+ query: unknown;
6133
+ headers: unknown;
6134
+ response: {
6135
+ 200: {
6136
+ safePayload: import("../modules/v4/programPayload").safePayload;
6137
+ nonEncodedConfig: any;
6138
+ };
5859
6139
  };
5860
6140
  };
5861
6141
  };
@@ -7254,7 +7534,64 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7254
7534
  sum: string;
7255
7535
  };
7256
7536
  }>>;
7257
- }) & {};
7537
+ }) & {
7538
+ max: ((params: {
7539
+ field: string | number;
7540
+ }) => {
7541
+ get: (options: {
7542
+ headers?: Record<string, unknown> | undefined;
7543
+ query: {
7544
+ sort?: string | undefined;
7545
+ name?: string | undefined;
7546
+ tokens?: string | undefined;
7547
+ status?: string | undefined;
7548
+ items?: number | undefined;
7549
+ tags?: string | undefined;
7550
+ page?: number | undefined;
7551
+ chainId?: string | undefined;
7552
+ action?: string | undefined;
7553
+ creatorAddress?: string | undefined;
7554
+ mainProtocolId?: string | undefined;
7555
+ order?: string | undefined;
7556
+ test?: boolean | undefined;
7557
+ minimumTvl?: number | undefined;
7558
+ };
7559
+ fetch?: RequestInit | undefined;
7560
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7561
+ 200: {
7562
+ max: string;
7563
+ };
7564
+ }>>;
7565
+ }) & {};
7566
+ min: ((params: {
7567
+ field: string | number;
7568
+ }) => {
7569
+ get: (options: {
7570
+ headers?: Record<string, unknown> | undefined;
7571
+ query: {
7572
+ sort?: string | undefined;
7573
+ name?: string | undefined;
7574
+ tokens?: string | undefined;
7575
+ status?: string | undefined;
7576
+ items?: number | undefined;
7577
+ tags?: string | undefined;
7578
+ page?: number | undefined;
7579
+ chainId?: string | undefined;
7580
+ action?: string | undefined;
7581
+ creatorAddress?: string | undefined;
7582
+ mainProtocolId?: string | undefined;
7583
+ order?: string | undefined;
7584
+ test?: boolean | undefined;
7585
+ minimumTvl?: number | undefined;
7586
+ };
7587
+ fetch?: RequestInit | undefined;
7588
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
7589
+ 200: {
7590
+ min: string;
7591
+ };
7592
+ }>>;
7593
+ }) & {};
7594
+ };
7258
7595
  };
7259
7596
  campaigns: {
7260
7597
  engine: {
@@ -8909,8 +9246,16 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8909
9246
  };
8910
9247
  fetch?: RequestInit | undefined;
8911
9248
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
8912
- [x: string]: any;
8913
- 200: any;
9249
+ 200: {
9250
+ version: string;
9251
+ chainId: string;
9252
+ createdAt: number;
9253
+ meta: {
9254
+ name: string;
9255
+ txBuilderVersion: string;
9256
+ };
9257
+ transactions: import("../modules/v4/programPayload").transaction[];
9258
+ };
8914
9259
  }>>;
8915
9260
  };
8916
9261
  config: {
@@ -8966,8 +9311,16 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8966
9311
  };
8967
9312
  fetch?: RequestInit | undefined;
8968
9313
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
8969
- [x: string]: any;
8970
- 200: any;
9314
+ 200: {
9315
+ version: string;
9316
+ chainId: string;
9317
+ createdAt: number;
9318
+ meta: {
9319
+ name: string;
9320
+ txBuilderVersion: string;
9321
+ };
9322
+ transactions: import("../modules/v4/programPayload").transaction[];
9323
+ } | null;
8971
9324
  }>>;
8972
9325
  withAmounts: {
8973
9326
  post: (body: {
@@ -8985,8 +9338,64 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8985
9338
  };
8986
9339
  fetch?: RequestInit | undefined;
8987
9340
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
8988
- [x: string]: any;
8989
- 200: any;
9341
+ 200: {
9342
+ version: string;
9343
+ chainId: string;
9344
+ createdAt: number;
9345
+ meta: {
9346
+ name: string;
9347
+ txBuilderVersion: string;
9348
+ };
9349
+ transactions: import("../modules/v4/programPayload").transaction[];
9350
+ } | null;
9351
+ }>>;
9352
+ };
9353
+ };
9354
+ payload: {
9355
+ "from-config": {
9356
+ post: (body: {
9357
+ url?: string | undefined;
9358
+ endTimestamp?: number | undefined;
9359
+ poolAddress?: string | undefined;
9360
+ marketId?: string | undefined;
9361
+ strategy?: string | undefined;
9362
+ poolId?: string | undefined;
9363
+ contract?: string | undefined;
9364
+ forwarders?: {}[] | undefined;
9365
+ targetToken?: string | undefined;
9366
+ isOutOfRangeIncentivized?: boolean | undefined;
9367
+ weightFees?: number | undefined;
9368
+ weightToken0?: number | undefined;
9369
+ weightToken1?: number | undefined;
9370
+ usesBlockNumber?: boolean | undefined;
9371
+ snapshotTimestamp?: number | undefined;
9372
+ snapshotBlockNumber?: number | undefined;
9373
+ jsonUrl?: string | undefined;
9374
+ subCampaignType?: number | undefined;
9375
+ repository?: string | undefined;
9376
+ capInUSD?: string | undefined;
9377
+ compFork?: number | undefined;
9378
+ evkAddress?: string | undefined;
9379
+ collateralAddress?: string | undefined;
9380
+ hooks: {}[];
9381
+ creator: string;
9382
+ startTimestamp: number;
9383
+ computeChainId: number;
9384
+ distributionChainId: number;
9385
+ amount: string;
9386
+ blacklist: string[];
9387
+ rewardToken: string;
9388
+ campaignType: number;
9389
+ whitelist: string[];
9390
+ }, options?: {
9391
+ headers?: Record<string, unknown> | undefined;
9392
+ query?: Record<string, unknown> | undefined;
9393
+ fetch?: RequestInit | undefined;
9394
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
9395
+ 200: {
9396
+ safePayload: import("../modules/v4/programPayload").safePayload;
9397
+ nonEncodedConfig: any;
9398
+ };
8990
9399
  }>>;
8991
9400
  };
8992
9401
  };