@merkl/api 0.19.35 → 0.19.37

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.
@@ -1417,9 +1417,11 @@ declare const eden: {
1417
1417
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1418
1418
  200: number;
1419
1419
  }>>;
1420
- "by-type": {
1420
+ "by-types": {
1421
1421
  get: (options: {
1422
- headers?: Record<string, unknown> | undefined;
1422
+ headers: {
1423
+ authorization: string;
1424
+ };
1423
1425
  query: {
1424
1426
  type?: string | undefined;
1425
1427
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -1451,9 +1453,11 @@ declare const eden: {
1451
1453
  };
1452
1454
  }>>;
1453
1455
  };
1454
- "by-protocol": {
1456
+ "by-protocols": {
1455
1457
  get: (options: {
1456
- headers?: Record<string, unknown> | undefined;
1458
+ headers: {
1459
+ authorization: string;
1460
+ };
1457
1461
  query: {
1458
1462
  type?: string | undefined;
1459
1463
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -1490,7 +1494,9 @@ declare const eden: {
1490
1494
  campaignscount: {
1491
1495
  "by-chains": {
1492
1496
  get: (options: {
1493
- headers?: Record<string, unknown> | undefined;
1497
+ headers: {
1498
+ authorization: string;
1499
+ };
1494
1500
  query: {
1495
1501
  type?: string | undefined;
1496
1502
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -1970,6 +1976,74 @@ declare const eden: {
1970
1976
  amount: bigint;
1971
1977
  };
1972
1978
  }>>;
1979
+ distributed: {
1980
+ get: (options: {
1981
+ headers: {
1982
+ authorization: string;
1983
+ };
1984
+ query: {
1985
+ since: Date;
1986
+ };
1987
+ fetch?: RequestInit | undefined;
1988
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1989
+ 200: number;
1990
+ }>>;
1991
+ "by-opportunities": {
1992
+ get: (options: {
1993
+ headers: {
1994
+ authorization: string;
1995
+ };
1996
+ query: {
1997
+ since: Date;
1998
+ };
1999
+ fetch?: RequestInit | undefined;
2000
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2001
+ 200: string;
2002
+ }>>;
2003
+ };
2004
+ "by-chains": {
2005
+ get: (options: {
2006
+ headers: {
2007
+ authorization: string;
2008
+ };
2009
+ query: {
2010
+ since: Date;
2011
+ };
2012
+ fetch?: RequestInit | undefined;
2013
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2014
+ [x: string]: any;
2015
+ 200: any;
2016
+ }>>;
2017
+ };
2018
+ "by-types": {
2019
+ get: (options: {
2020
+ headers: {
2021
+ authorization: string;
2022
+ };
2023
+ query: {
2024
+ since: Date;
2025
+ };
2026
+ fetch?: RequestInit | undefined;
2027
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2028
+ [x: string]: any;
2029
+ 200: any;
2030
+ }>>;
2031
+ };
2032
+ "by-protocols": {
2033
+ get: (options: {
2034
+ headers: {
2035
+ authorization: string;
2036
+ };
2037
+ query: {
2038
+ since: Date;
2039
+ };
2040
+ fetch?: RequestInit | undefined;
2041
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
2042
+ [x: string]: any;
2043
+ 200: any;
2044
+ }>>;
2045
+ };
2046
+ };
1973
2047
  };
1974
2048
  count: {
1975
2049
  get: (options: {
@@ -5076,9 +5150,11 @@ declare const eden: {
5076
5150
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5077
5151
  200: number;
5078
5152
  }>>;
5079
- "by-type": {
5153
+ "by-types": {
5080
5154
  get: (options: {
5081
- headers?: Record<string, unknown> | undefined;
5155
+ headers: {
5156
+ authorization: string;
5157
+ };
5082
5158
  query: {
5083
5159
  type?: string | undefined;
5084
5160
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -5110,9 +5186,11 @@ declare const eden: {
5110
5186
  };
5111
5187
  }>>;
5112
5188
  };
5113
- "by-protocol": {
5189
+ "by-protocols": {
5114
5190
  get: (options: {
5115
- headers?: Record<string, unknown> | undefined;
5191
+ headers: {
5192
+ authorization: string;
5193
+ };
5116
5194
  query: {
5117
5195
  type?: string | undefined;
5118
5196
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -5149,7 +5227,9 @@ declare const eden: {
5149
5227
  campaignscount: {
5150
5228
  "by-chains": {
5151
5229
  get: (options: {
5152
- headers?: Record<string, unknown> | undefined;
5230
+ headers: {
5231
+ authorization: string;
5232
+ };
5153
5233
  query: {
5154
5234
  type?: string | undefined;
5155
5235
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -5629,6 +5709,74 @@ declare const eden: {
5629
5709
  amount: bigint;
5630
5710
  };
5631
5711
  }>>;
5712
+ distributed: {
5713
+ get: (options: {
5714
+ headers: {
5715
+ authorization: string;
5716
+ };
5717
+ query: {
5718
+ since: Date;
5719
+ };
5720
+ fetch?: RequestInit | undefined;
5721
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5722
+ 200: number;
5723
+ }>>;
5724
+ "by-opportunities": {
5725
+ get: (options: {
5726
+ headers: {
5727
+ authorization: string;
5728
+ };
5729
+ query: {
5730
+ since: Date;
5731
+ };
5732
+ fetch?: RequestInit | undefined;
5733
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5734
+ 200: string;
5735
+ }>>;
5736
+ };
5737
+ "by-chains": {
5738
+ get: (options: {
5739
+ headers: {
5740
+ authorization: string;
5741
+ };
5742
+ query: {
5743
+ since: Date;
5744
+ };
5745
+ fetch?: RequestInit | undefined;
5746
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5747
+ [x: string]: any;
5748
+ 200: any;
5749
+ }>>;
5750
+ };
5751
+ "by-types": {
5752
+ get: (options: {
5753
+ headers: {
5754
+ authorization: string;
5755
+ };
5756
+ query: {
5757
+ since: Date;
5758
+ };
5759
+ fetch?: RequestInit | undefined;
5760
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5761
+ [x: string]: any;
5762
+ 200: any;
5763
+ }>>;
5764
+ };
5765
+ "by-protocols": {
5766
+ get: (options: {
5767
+ headers: {
5768
+ authorization: string;
5769
+ };
5770
+ query: {
5771
+ since: Date;
5772
+ };
5773
+ fetch?: RequestInit | undefined;
5774
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5775
+ [x: string]: any;
5776
+ 200: any;
5777
+ }>>;
5778
+ };
5779
+ };
5632
5780
  };
5633
5781
  count: {
5634
5782
  get: (options: {
@@ -9733,7 +9881,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9733
9881
  withOpportunity?: boolean | undefined;
9734
9882
  createdAfter?: Date | null | undefined;
9735
9883
  };
9736
- headers: unknown;
9884
+ headers: {
9885
+ authorization: string;
9886
+ };
9737
9887
  response: {
9738
9888
  200: {
9739
9889
  [x: string]: number;
@@ -9745,7 +9895,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9745
9895
  } & {
9746
9896
  campaigns: {
9747
9897
  count: {
9748
- "by-type": {
9898
+ "by-types": {
9749
9899
  get: {
9750
9900
  body: unknown;
9751
9901
  params: {};
@@ -9773,7 +9923,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9773
9923
  withOpportunity?: boolean | undefined;
9774
9924
  createdAfter?: Date | null | undefined;
9775
9925
  };
9776
- headers: unknown;
9926
+ headers: {
9927
+ authorization: string;
9928
+ };
9777
9929
  response: {
9778
9930
  200: {
9779
9931
  [x: string]: number;
@@ -9786,7 +9938,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9786
9938
  } & {
9787
9939
  campaigns: {
9788
9940
  count: {
9789
- "by-protocol": {
9941
+ "by-protocols": {
9790
9942
  get: {
9791
9943
  body: unknown;
9792
9944
  params: {};
@@ -9814,7 +9966,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9814
9966
  withOpportunity?: boolean | undefined;
9815
9967
  createdAfter?: Date | null | undefined;
9816
9968
  };
9817
- headers: unknown;
9969
+ headers: {
9970
+ authorization: string;
9971
+ };
9818
9972
  response: {
9819
9973
  200: {
9820
9974
  [x: string]: number;
@@ -10642,6 +10796,117 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
10642
10796
  };
10643
10797
  };
10644
10798
  };
10799
+ } & {
10800
+ rewards: {
10801
+ total: {
10802
+ distributed: {
10803
+ get: {
10804
+ body: unknown;
10805
+ params: {};
10806
+ query: {
10807
+ since: Date;
10808
+ };
10809
+ headers: {
10810
+ authorization: string;
10811
+ };
10812
+ response: {
10813
+ 200: number;
10814
+ };
10815
+ };
10816
+ };
10817
+ };
10818
+ };
10819
+ } & {
10820
+ rewards: {
10821
+ total: {
10822
+ distributed: {
10823
+ "by-opportunities": {
10824
+ get: {
10825
+ body: unknown;
10826
+ params: {};
10827
+ query: {
10828
+ since: Date;
10829
+ };
10830
+ headers: {
10831
+ authorization: string;
10832
+ };
10833
+ response: {
10834
+ 200: string;
10835
+ };
10836
+ };
10837
+ };
10838
+ };
10839
+ };
10840
+ };
10841
+ } & {
10842
+ rewards: {
10843
+ total: {
10844
+ distributed: {
10845
+ "by-chains": {
10846
+ get: {
10847
+ body: unknown;
10848
+ params: {};
10849
+ query: {
10850
+ since: Date;
10851
+ };
10852
+ headers: {
10853
+ authorization: string;
10854
+ };
10855
+ response: {
10856
+ [x: string]: any;
10857
+ 200: any;
10858
+ };
10859
+ };
10860
+ };
10861
+ };
10862
+ };
10863
+ };
10864
+ } & {
10865
+ rewards: {
10866
+ total: {
10867
+ distributed: {
10868
+ "by-types": {
10869
+ get: {
10870
+ body: unknown;
10871
+ params: {};
10872
+ query: {
10873
+ since: Date;
10874
+ };
10875
+ headers: {
10876
+ authorization: string;
10877
+ };
10878
+ response: {
10879
+ [x: string]: any;
10880
+ 200: any;
10881
+ };
10882
+ };
10883
+ };
10884
+ };
10885
+ };
10886
+ };
10887
+ } & {
10888
+ rewards: {
10889
+ total: {
10890
+ distributed: {
10891
+ "by-protocols": {
10892
+ get: {
10893
+ body: unknown;
10894
+ params: {};
10895
+ query: {
10896
+ since: Date;
10897
+ };
10898
+ headers: {
10899
+ authorization: string;
10900
+ };
10901
+ response: {
10902
+ [x: string]: any;
10903
+ 200: any;
10904
+ };
10905
+ };
10906
+ };
10907
+ };
10908
+ };
10909
+ };
10645
10910
  };
10646
10911
  } & {
10647
10912
  v4: {
@@ -14803,9 +15068,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14803
15068
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14804
15069
  200: number;
14805
15070
  }>>;
14806
- "by-type": {
15071
+ "by-types": {
14807
15072
  get: (options: {
14808
- headers?: Record<string, unknown> | undefined;
15073
+ headers: {
15074
+ authorization: string;
15075
+ };
14809
15076
  query: {
14810
15077
  type?: string | undefined;
14811
15078
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -14837,9 +15104,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14837
15104
  };
14838
15105
  }>>;
14839
15106
  };
14840
- "by-protocol": {
15107
+ "by-protocols": {
14841
15108
  get: (options: {
14842
- headers?: Record<string, unknown> | undefined;
15109
+ headers: {
15110
+ authorization: string;
15111
+ };
14843
15112
  query: {
14844
15113
  type?: string | undefined;
14845
15114
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -14876,7 +15145,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14876
15145
  campaignscount: {
14877
15146
  "by-chains": {
14878
15147
  get: (options: {
14879
- headers?: Record<string, unknown> | undefined;
15148
+ headers: {
15149
+ authorization: string;
15150
+ };
14880
15151
  query: {
14881
15152
  type?: string | undefined;
14882
15153
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -15356,6 +15627,74 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15356
15627
  amount: bigint;
15357
15628
  };
15358
15629
  }>>;
15630
+ distributed: {
15631
+ get: (options: {
15632
+ headers: {
15633
+ authorization: string;
15634
+ };
15635
+ query: {
15636
+ since: Date;
15637
+ };
15638
+ fetch?: RequestInit | undefined;
15639
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15640
+ 200: number;
15641
+ }>>;
15642
+ "by-opportunities": {
15643
+ get: (options: {
15644
+ headers: {
15645
+ authorization: string;
15646
+ };
15647
+ query: {
15648
+ since: Date;
15649
+ };
15650
+ fetch?: RequestInit | undefined;
15651
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15652
+ 200: string;
15653
+ }>>;
15654
+ };
15655
+ "by-chains": {
15656
+ get: (options: {
15657
+ headers: {
15658
+ authorization: string;
15659
+ };
15660
+ query: {
15661
+ since: Date;
15662
+ };
15663
+ fetch?: RequestInit | undefined;
15664
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15665
+ [x: string]: any;
15666
+ 200: any;
15667
+ }>>;
15668
+ };
15669
+ "by-types": {
15670
+ get: (options: {
15671
+ headers: {
15672
+ authorization: string;
15673
+ };
15674
+ query: {
15675
+ since: Date;
15676
+ };
15677
+ fetch?: RequestInit | undefined;
15678
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15679
+ [x: string]: any;
15680
+ 200: any;
15681
+ }>>;
15682
+ };
15683
+ "by-protocols": {
15684
+ get: (options: {
15685
+ headers: {
15686
+ authorization: string;
15687
+ };
15688
+ query: {
15689
+ since: Date;
15690
+ };
15691
+ fetch?: RequestInit | undefined;
15692
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
15693
+ [x: string]: any;
15694
+ 200: any;
15695
+ }>>;
15696
+ };
15697
+ };
15359
15698
  };
15360
15699
  count: {
15361
15700
  get: (options: {
@@ -18462,9 +18801,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18462
18801
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
18463
18802
  200: number;
18464
18803
  }>>;
18465
- "by-type": {
18804
+ "by-types": {
18466
18805
  get: (options: {
18467
- headers?: Record<string, unknown> | undefined;
18806
+ headers: {
18807
+ authorization: string;
18808
+ };
18468
18809
  query: {
18469
18810
  type?: string | undefined;
18470
18811
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -18496,9 +18837,11 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18496
18837
  };
18497
18838
  }>>;
18498
18839
  };
18499
- "by-protocol": {
18840
+ "by-protocols": {
18500
18841
  get: (options: {
18501
- headers?: Record<string, unknown> | undefined;
18842
+ headers: {
18843
+ authorization: string;
18844
+ };
18502
18845
  query: {
18503
18846
  type?: string | undefined;
18504
18847
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -18535,7 +18878,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18535
18878
  campaignscount: {
18536
18879
  "by-chains": {
18537
18880
  get: (options: {
18538
- headers?: Record<string, unknown> | undefined;
18881
+ headers: {
18882
+ authorization: string;
18883
+ };
18539
18884
  query: {
18540
18885
  type?: string | undefined;
18541
18886
  status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
@@ -19015,6 +19360,74 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
19015
19360
  amount: bigint;
19016
19361
  };
19017
19362
  }>>;
19363
+ distributed: {
19364
+ get: (options: {
19365
+ headers: {
19366
+ authorization: string;
19367
+ };
19368
+ query: {
19369
+ since: Date;
19370
+ };
19371
+ fetch?: RequestInit | undefined;
19372
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19373
+ 200: number;
19374
+ }>>;
19375
+ "by-opportunities": {
19376
+ get: (options: {
19377
+ headers: {
19378
+ authorization: string;
19379
+ };
19380
+ query: {
19381
+ since: Date;
19382
+ };
19383
+ fetch?: RequestInit | undefined;
19384
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19385
+ 200: string;
19386
+ }>>;
19387
+ };
19388
+ "by-chains": {
19389
+ get: (options: {
19390
+ headers: {
19391
+ authorization: string;
19392
+ };
19393
+ query: {
19394
+ since: Date;
19395
+ };
19396
+ fetch?: RequestInit | undefined;
19397
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19398
+ [x: string]: any;
19399
+ 200: any;
19400
+ }>>;
19401
+ };
19402
+ "by-types": {
19403
+ get: (options: {
19404
+ headers: {
19405
+ authorization: string;
19406
+ };
19407
+ query: {
19408
+ since: Date;
19409
+ };
19410
+ fetch?: RequestInit | undefined;
19411
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19412
+ [x: string]: any;
19413
+ 200: any;
19414
+ }>>;
19415
+ };
19416
+ "by-protocols": {
19417
+ get: (options: {
19418
+ headers: {
19419
+ authorization: string;
19420
+ };
19421
+ query: {
19422
+ since: Date;
19423
+ };
19424
+ fetch?: RequestInit | undefined;
19425
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
19426
+ [x: string]: any;
19427
+ 200: any;
19428
+ }>>;
19429
+ };
19430
+ };
19018
19431
  };
19019
19432
  count: {
19020
19433
  get: (options: {
@@ -19,6 +19,8 @@ const factoryAddresses = {
19
19
  "0x35A338522a435D46f77Be32C70E215B813D0e3aC": tokenType.pendleYT, // Pendle YT Factory
20
20
  "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73": tokenType.pancakeswap, // PancakeSwap Factory BNB
21
21
  "0x70ee0A6DB4F5a2Dc4d9c0b57bE97B9987e75BAFD": tokenType.pendleYT, // Pendle YT Factory
22
+ "0x0582D93FD9c9d42f26bE5D86a5f75291F92102C2": tokenType.pendleYT, // Pendle Factory
23
+ "0xFeE31A6eC6eBefa0b5A594Bf5b1139e3c6fAA0fB": tokenType.pendle, // Pendle Factory
22
24
  "0xFD513630F697A9C1731F196185fb9ebA6eAAc20B": tokenType.cpmmGamma, // CPMMGAMMA Factory
23
25
  "0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10": tokenType.traderJoe, // Trader Joe Factory
24
26
  "0x5Ea9DD3b6f042A34Df818C6c1324BC5A7c61427a": tokenType.curve, // Curve Corn 2crypto Factory