@merkl/api 0.10.89 → 0.10.91

Sign up to get free protection for your applications and to get access to all the features.
@@ -1421,6 +1421,103 @@ declare const eden: {
1421
1421
  }) & {};
1422
1422
  }) & {};
1423
1423
  };
1424
+ campaignStatus: {
1425
+ engine: {
1426
+ post: (body: {
1427
+ status: {
1428
+ value: "SUCCESS";
1429
+ computedUntil: number;
1430
+ } | {
1431
+ value: "PROCESSING";
1432
+ } | {
1433
+ error: string;
1434
+ details: string;
1435
+ value: "SKIPPED";
1436
+ } | {
1437
+ error: string;
1438
+ details: string;
1439
+ value: "FAILED";
1440
+ };
1441
+ campaignId: string;
1442
+ distributionChain: number;
1443
+ }, options: {
1444
+ headers: {
1445
+ authorization: string;
1446
+ };
1447
+ query?: Record<string, unknown> | undefined;
1448
+ fetch?: RequestInit | undefined;
1449
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1450
+ 200: void;
1451
+ }>>;
1452
+ };
1453
+ index: {
1454
+ get: (options?: {
1455
+ headers?: Record<string, unknown> | undefined;
1456
+ query?: Record<string, unknown> | undefined;
1457
+ fetch?: RequestInit | undefined;
1458
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1459
+ 200: {
1460
+ campaignId: string;
1461
+ computedUntil: bigint;
1462
+ processingStarted: bigint;
1463
+ status: import("../../database/api/.generated").$Enums.RunStatus;
1464
+ error: string;
1465
+ details: import("../../database/api/.generated").Prisma.JsonValue;
1466
+ }[];
1467
+ }>>;
1468
+ };
1469
+ unique: {
1470
+ get: (options: {
1471
+ headers?: Record<string, unknown> | undefined;
1472
+ query: {
1473
+ campaignId: string;
1474
+ distributionChain: number;
1475
+ };
1476
+ fetch?: RequestInit | undefined;
1477
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1478
+ 200: {
1479
+ campaignId: string;
1480
+ computedUntil: bigint;
1481
+ processingStarted: bigint;
1482
+ status: import("../../database/api/.generated").$Enums.RunStatus;
1483
+ error: string;
1484
+ details: import("../../database/api/.generated").Prisma.JsonValue;
1485
+ };
1486
+ }>>;
1487
+ };
1488
+ computeChain: ((params: {
1489
+ chainId: string | number;
1490
+ }) => {
1491
+ get: (options?: {
1492
+ headers?: Record<string, unknown> | undefined;
1493
+ query?: Record<string, unknown> | undefined;
1494
+ fetch?: RequestInit | undefined;
1495
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1496
+ 200: {
1497
+ campaignId: string;
1498
+ computedUntil: bigint;
1499
+ processingStarted: bigint;
1500
+ status: import("../../database/api/.generated").$Enums.RunStatus;
1501
+ error: string;
1502
+ details: import("../../database/api/.generated").Prisma.JsonValue;
1503
+ }[];
1504
+ }>>;
1505
+ }) & {};
1506
+ overlaps: {
1507
+ get: (options: {
1508
+ headers: {
1509
+ authorization: string;
1510
+ };
1511
+ query: {
1512
+ campaignId: string;
1513
+ distributionChain: number;
1514
+ };
1515
+ fetch?: RequestInit | undefined;
1516
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1517
+ 200: boolean;
1518
+ }>>;
1519
+ };
1520
+ };
1424
1521
  };
1425
1522
  };
1426
1523
  type Api = typeof eden;
@@ -3218,6 +3315,130 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3218
3315
  };
3219
3316
  };
3220
3317
  };
3318
+ } & {
3319
+ v4: {
3320
+ campaignStatus: {
3321
+ engine: {
3322
+ post: {
3323
+ body: {
3324
+ status: {
3325
+ value: "SUCCESS";
3326
+ computedUntil: number;
3327
+ } | {
3328
+ value: "PROCESSING";
3329
+ } | {
3330
+ error: string;
3331
+ details: string;
3332
+ value: "SKIPPED";
3333
+ } | {
3334
+ error: string;
3335
+ details: string;
3336
+ value: "FAILED";
3337
+ };
3338
+ campaignId: string;
3339
+ distributionChain: number;
3340
+ };
3341
+ params: Record<never, string>;
3342
+ query: unknown;
3343
+ headers: {
3344
+ authorization: string;
3345
+ };
3346
+ response: {
3347
+ 200: void;
3348
+ };
3349
+ };
3350
+ };
3351
+ };
3352
+ } & {
3353
+ campaignStatus: {
3354
+ index: {
3355
+ get: {
3356
+ body: unknown;
3357
+ params: Record<never, string>;
3358
+ query: unknown;
3359
+ headers: unknown;
3360
+ response: {
3361
+ 200: {
3362
+ campaignId: string;
3363
+ computedUntil: bigint;
3364
+ processingStarted: bigint;
3365
+ status: import("../../database/api/.generated").$Enums.RunStatus;
3366
+ error: string;
3367
+ details: import("../../database/api/.generated").Prisma.JsonValue;
3368
+ }[];
3369
+ };
3370
+ };
3371
+ };
3372
+ };
3373
+ } & {
3374
+ campaignStatus: {
3375
+ unique: {
3376
+ get: {
3377
+ body: unknown;
3378
+ params: Record<never, string>;
3379
+ query: {
3380
+ campaignId: string;
3381
+ distributionChain: number;
3382
+ };
3383
+ headers: unknown;
3384
+ response: {
3385
+ 200: {
3386
+ campaignId: string;
3387
+ computedUntil: bigint;
3388
+ processingStarted: bigint;
3389
+ status: import("../../database/api/.generated").$Enums.RunStatus;
3390
+ error: string;
3391
+ details: import("../../database/api/.generated").Prisma.JsonValue;
3392
+ };
3393
+ };
3394
+ };
3395
+ };
3396
+ };
3397
+ } & {
3398
+ campaignStatus: {
3399
+ computeChain: {
3400
+ ":chainId": {
3401
+ get: {
3402
+ body: unknown;
3403
+ params: {
3404
+ chainId: number;
3405
+ };
3406
+ query: unknown;
3407
+ headers: unknown;
3408
+ response: {
3409
+ 200: {
3410
+ campaignId: string;
3411
+ computedUntil: bigint;
3412
+ processingStarted: bigint;
3413
+ status: import("../../database/api/.generated").$Enums.RunStatus;
3414
+ error: string;
3415
+ details: import("../../database/api/.generated").Prisma.JsonValue;
3416
+ }[];
3417
+ };
3418
+ };
3419
+ };
3420
+ };
3421
+ };
3422
+ } & {
3423
+ campaignStatus: {
3424
+ overlaps: {
3425
+ get: {
3426
+ body: unknown;
3427
+ params: Record<never, string>;
3428
+ query: {
3429
+ campaignId: string;
3430
+ distributionChain: number;
3431
+ };
3432
+ headers: {
3433
+ authorization: string;
3434
+ };
3435
+ response: {
3436
+ 200: boolean;
3437
+ };
3438
+ };
3439
+ };
3440
+ };
3441
+ };
3221
3442
  }, {
3222
3443
  derive: {};
3223
3444
  resolve: {};
@@ -4651,6 +4872,103 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4651
4872
  }) & {};
4652
4873
  }) & {};
4653
4874
  };
4875
+ campaignStatus: {
4876
+ engine: {
4877
+ post: (body: {
4878
+ status: {
4879
+ value: "SUCCESS";
4880
+ computedUntil: number;
4881
+ } | {
4882
+ value: "PROCESSING";
4883
+ } | {
4884
+ error: string;
4885
+ details: string;
4886
+ value: "SKIPPED";
4887
+ } | {
4888
+ error: string;
4889
+ details: string;
4890
+ value: "FAILED";
4891
+ };
4892
+ campaignId: string;
4893
+ distributionChain: number;
4894
+ }, options: {
4895
+ headers: {
4896
+ authorization: string;
4897
+ };
4898
+ query?: Record<string, unknown> | undefined;
4899
+ fetch?: RequestInit | undefined;
4900
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4901
+ 200: void;
4902
+ }>>;
4903
+ };
4904
+ index: {
4905
+ get: (options?: {
4906
+ headers?: Record<string, unknown> | undefined;
4907
+ query?: Record<string, unknown> | undefined;
4908
+ fetch?: RequestInit | undefined;
4909
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4910
+ 200: {
4911
+ campaignId: string;
4912
+ computedUntil: bigint;
4913
+ processingStarted: bigint;
4914
+ status: import("../../database/api/.generated").$Enums.RunStatus;
4915
+ error: string;
4916
+ details: import("../../database/api/.generated").Prisma.JsonValue;
4917
+ }[];
4918
+ }>>;
4919
+ };
4920
+ unique: {
4921
+ get: (options: {
4922
+ headers?: Record<string, unknown> | undefined;
4923
+ query: {
4924
+ campaignId: string;
4925
+ distributionChain: number;
4926
+ };
4927
+ fetch?: RequestInit | undefined;
4928
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4929
+ 200: {
4930
+ campaignId: string;
4931
+ computedUntil: bigint;
4932
+ processingStarted: bigint;
4933
+ status: import("../../database/api/.generated").$Enums.RunStatus;
4934
+ error: string;
4935
+ details: import("../../database/api/.generated").Prisma.JsonValue;
4936
+ };
4937
+ }>>;
4938
+ };
4939
+ computeChain: ((params: {
4940
+ chainId: string | number;
4941
+ }) => {
4942
+ get: (options?: {
4943
+ headers?: Record<string, unknown> | undefined;
4944
+ query?: Record<string, unknown> | undefined;
4945
+ fetch?: RequestInit | undefined;
4946
+ } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4947
+ 200: {
4948
+ campaignId: string;
4949
+ computedUntil: bigint;
4950
+ processingStarted: bigint;
4951
+ status: import("../../database/api/.generated").$Enums.RunStatus;
4952
+ error: string;
4953
+ details: import("../../database/api/.generated").Prisma.JsonValue;
4954
+ }[];
4955
+ }>>;
4956
+ }) & {};
4957
+ overlaps: {
4958
+ get: (options: {
4959
+ headers: {
4960
+ authorization: string;
4961
+ };
4962
+ query: {
4963
+ campaignId: string;
4964
+ distributionChain: number;
4965
+ };
4966
+ fetch?: RequestInit | undefined;
4967
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4968
+ 200: boolean;
4969
+ }>>;
4970
+ };
4971
+ };
4654
4972
  };
4655
4973
  };
4656
4974
  export type Opportunity = FromPromise<Api["v4"]["opportunities"]["index"]["get"]>;
@@ -1786,6 +1786,130 @@ declare const app: Elysia<"", false, {
1786
1786
  };
1787
1787
  };
1788
1788
  };
1789
+ } & {
1790
+ v4: {
1791
+ campaignStatus: {
1792
+ engine: {
1793
+ post: {
1794
+ body: {
1795
+ status: {
1796
+ value: "SUCCESS";
1797
+ computedUntil: number;
1798
+ } | {
1799
+ value: "PROCESSING";
1800
+ } | {
1801
+ error: string;
1802
+ details: string;
1803
+ value: "SKIPPED";
1804
+ } | {
1805
+ error: string;
1806
+ details: string;
1807
+ value: "FAILED";
1808
+ };
1809
+ campaignId: string;
1810
+ distributionChain: number;
1811
+ };
1812
+ params: Record<never, string>;
1813
+ query: unknown;
1814
+ headers: {
1815
+ authorization: string;
1816
+ };
1817
+ response: {
1818
+ 200: void;
1819
+ };
1820
+ };
1821
+ };
1822
+ };
1823
+ } & {
1824
+ campaignStatus: {
1825
+ index: {
1826
+ get: {
1827
+ body: unknown;
1828
+ params: Record<never, string>;
1829
+ query: unknown;
1830
+ headers: unknown;
1831
+ response: {
1832
+ 200: {
1833
+ campaignId: string;
1834
+ computedUntil: bigint;
1835
+ processingStarted: bigint;
1836
+ status: import("../database/api/.generated").$Enums.RunStatus;
1837
+ error: string;
1838
+ details: import("../database/api/.generated").Prisma.JsonValue;
1839
+ }[];
1840
+ };
1841
+ };
1842
+ };
1843
+ };
1844
+ } & {
1845
+ campaignStatus: {
1846
+ unique: {
1847
+ get: {
1848
+ body: unknown;
1849
+ params: Record<never, string>;
1850
+ query: {
1851
+ campaignId: string;
1852
+ distributionChain: number;
1853
+ };
1854
+ headers: unknown;
1855
+ response: {
1856
+ 200: {
1857
+ campaignId: string;
1858
+ computedUntil: bigint;
1859
+ processingStarted: bigint;
1860
+ status: import("../database/api/.generated").$Enums.RunStatus;
1861
+ error: string;
1862
+ details: import("../database/api/.generated").Prisma.JsonValue;
1863
+ };
1864
+ };
1865
+ };
1866
+ };
1867
+ };
1868
+ } & {
1869
+ campaignStatus: {
1870
+ computeChain: {
1871
+ ":chainId": {
1872
+ get: {
1873
+ body: unknown;
1874
+ params: {
1875
+ chainId: number;
1876
+ };
1877
+ query: unknown;
1878
+ headers: unknown;
1879
+ response: {
1880
+ 200: {
1881
+ campaignId: string;
1882
+ computedUntil: bigint;
1883
+ processingStarted: bigint;
1884
+ status: import("../database/api/.generated").$Enums.RunStatus;
1885
+ error: string;
1886
+ details: import("../database/api/.generated").Prisma.JsonValue;
1887
+ }[];
1888
+ };
1889
+ };
1890
+ };
1891
+ };
1892
+ };
1893
+ } & {
1894
+ campaignStatus: {
1895
+ overlaps: {
1896
+ get: {
1897
+ body: unknown;
1898
+ params: Record<never, string>;
1899
+ query: {
1900
+ campaignId: string;
1901
+ distributionChain: number;
1902
+ };
1903
+ headers: {
1904
+ authorization: string;
1905
+ };
1906
+ response: {
1907
+ 200: boolean;
1908
+ };
1909
+ };
1910
+ };
1911
+ };
1912
+ };
1789
1913
  }, {
1790
1914
  derive: {};
1791
1915
  resolve: {};
@@ -46,7 +46,8 @@ export declare enum tokenType {
46
46
  zerolend_lending = "zerolend_lending",
47
47
  ironclad_lending = "ironclad_lending",
48
48
  ironclad_borrowing = "ironclad_borrowing",
49
- pendle = "pendle"
49
+ pendle = "pendle",
50
+ ironcladStaking = "ironcladStaking"
50
51
  }
51
52
  export declare const tokenTypeToProtocol: {
52
53
  [key in tokenType]: {
@@ -1,4 +1,4 @@
1
1
  import type { Pricer } from "../../../../utils/pricer";
2
2
  import type { Campaign, CampaignParameters } from "@sdk";
3
- import type { tokenType, tokenTypeStruct } from "./helpers/tokenType";
3
+ import { tokenType, type tokenTypeStruct } from "./helpers/tokenType";
4
4
  export declare function getTokenPricesInfo(index: number, type: tokenType, typeInfo: any, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
@@ -1768,6 +1768,130 @@ export declare const v4: Elysia<"/v4", false, {
1768
1768
  };
1769
1769
  };
1770
1770
  };
1771
+ } & {
1772
+ v4: {
1773
+ campaignStatus: {
1774
+ engine: {
1775
+ post: {
1776
+ body: {
1777
+ status: {
1778
+ value: "SUCCESS";
1779
+ computedUntil: number;
1780
+ } | {
1781
+ value: "PROCESSING";
1782
+ } | {
1783
+ error: string;
1784
+ details: string;
1785
+ value: "SKIPPED";
1786
+ } | {
1787
+ error: string;
1788
+ details: string;
1789
+ value: "FAILED";
1790
+ };
1791
+ campaignId: string;
1792
+ distributionChain: number;
1793
+ };
1794
+ params: Record<never, string>;
1795
+ query: unknown;
1796
+ headers: {
1797
+ authorization: string;
1798
+ };
1799
+ response: {
1800
+ 200: void;
1801
+ };
1802
+ };
1803
+ };
1804
+ };
1805
+ } & {
1806
+ campaignStatus: {
1807
+ index: {
1808
+ get: {
1809
+ body: unknown;
1810
+ params: Record<never, string>;
1811
+ query: unknown;
1812
+ headers: unknown;
1813
+ response: {
1814
+ 200: {
1815
+ campaignId: string;
1816
+ computedUntil: bigint;
1817
+ processingStarted: bigint;
1818
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1819
+ error: string;
1820
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1821
+ }[];
1822
+ };
1823
+ };
1824
+ };
1825
+ };
1826
+ } & {
1827
+ campaignStatus: {
1828
+ unique: {
1829
+ get: {
1830
+ body: unknown;
1831
+ params: Record<never, string>;
1832
+ query: {
1833
+ campaignId: string;
1834
+ distributionChain: number;
1835
+ };
1836
+ headers: unknown;
1837
+ response: {
1838
+ 200: {
1839
+ campaignId: string;
1840
+ computedUntil: bigint;
1841
+ processingStarted: bigint;
1842
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1843
+ error: string;
1844
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1845
+ };
1846
+ };
1847
+ };
1848
+ };
1849
+ };
1850
+ } & {
1851
+ campaignStatus: {
1852
+ computeChain: {
1853
+ ":chainId": {
1854
+ get: {
1855
+ body: unknown;
1856
+ params: {
1857
+ chainId: number;
1858
+ };
1859
+ query: unknown;
1860
+ headers: unknown;
1861
+ response: {
1862
+ 200: {
1863
+ campaignId: string;
1864
+ computedUntil: bigint;
1865
+ processingStarted: bigint;
1866
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1867
+ error: string;
1868
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1869
+ }[];
1870
+ };
1871
+ };
1872
+ };
1873
+ };
1874
+ };
1875
+ } & {
1876
+ campaignStatus: {
1877
+ overlaps: {
1878
+ get: {
1879
+ body: unknown;
1880
+ params: Record<never, string>;
1881
+ query: {
1882
+ campaignId: string;
1883
+ distributionChain: number;
1884
+ };
1885
+ headers: {
1886
+ authorization: string;
1887
+ };
1888
+ response: {
1889
+ 200: boolean;
1890
+ };
1891
+ };
1892
+ };
1893
+ };
1894
+ };
1771
1895
  }, {
1772
1896
  derive: {};
1773
1897
  resolve: {};