@merkl/api 0.10.91 → 0.10.93

Sign up to get free protection for your applications and to get access to all the features.
@@ -833,24 +833,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
833
833
  query: unknown;
834
834
  headers: unknown;
835
835
  response: {
836
- 200: ({
837
- Explorer: {
836
+ 200: {
837
+ id: number;
838
+ name: string;
839
+ icon: string;
840
+ explorers: {
838
841
  id: string;
839
842
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
840
843
  url: string;
841
844
  chainId: number;
842
845
  }[];
843
- } & {
844
- id: number;
845
- name: string;
846
- icon: string;
847
- }) | null;
846
+ } | null;
848
847
  };
849
848
  };
850
849
  };
851
- };
852
- } & {
853
- chains: {
850
+ } & {
854
851
  index: {
855
852
  get: {
856
853
  body: unknown;
@@ -860,24 +857,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
860
857
  };
861
858
  headers: unknown;
862
859
  response: {
863
- 200: ({
864
- Explorer: {
860
+ 200: {
861
+ id: number;
862
+ name: string;
863
+ icon: string;
864
+ explorers: {
865
865
  id: string;
866
866
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
867
867
  url: string;
868
868
  chainId: number;
869
869
  }[];
870
- } & {
871
- id: number;
872
- name: string;
873
- icon: string;
874
- })[];
870
+ }[];
875
871
  };
876
872
  };
877
873
  };
878
- };
879
- } & {
880
- chains: {
874
+ } & {
881
875
  count: {
882
876
  get: {
883
877
  body: unknown;
@@ -891,6 +885,29 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
891
885
  };
892
886
  };
893
887
  };
888
+ } & {
889
+ explorers: {
890
+ post: {
891
+ body: {
892
+ type: "ETHERSCAN" | "BLOCKSCOUT";
893
+ url: string;
894
+ chainId: number;
895
+ };
896
+ params: Record<never, string>;
897
+ query: unknown;
898
+ headers: {
899
+ authorization: string;
900
+ };
901
+ response: {
902
+ 200: {
903
+ id: string;
904
+ type: import("../../../database/api/.generated").$Enums.ExplorerType;
905
+ url: string;
906
+ chainId: number;
907
+ };
908
+ };
909
+ };
910
+ };
894
911
  };
895
912
  };
896
913
  } & {
@@ -1850,6 +1867,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1850
1867
  };
1851
1868
  };
1852
1869
  };
1870
+ } & {
1871
+ campaignStatus: {
1872
+ status: {
1873
+ get: {
1874
+ body: unknown;
1875
+ params: Record<never, string>;
1876
+ query: {
1877
+ status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
1878
+ };
1879
+ headers: unknown;
1880
+ response: {
1881
+ 200: ({
1882
+ Campaign: {
1883
+ id: string;
1884
+ computeChainId: number;
1885
+ distributionChainId: number;
1886
+ campaignId: string;
1887
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1888
+ subType: number | null;
1889
+ rewardTokenId: string;
1890
+ amount: string;
1891
+ opportunityId: string;
1892
+ startTimestamp: bigint;
1893
+ endTimestamp: bigint;
1894
+ params: import("../../../database/api/.generated").Prisma.JsonValue;
1895
+ creatorAddress: string;
1896
+ };
1897
+ } & {
1898
+ campaignId: string;
1899
+ computedUntil: bigint;
1900
+ processingStarted: bigint;
1901
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1902
+ error: string;
1903
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1904
+ })[];
1905
+ };
1906
+ };
1907
+ };
1908
+ };
1853
1909
  } & {
1854
1910
  campaignStatus: {
1855
1911
  unique: {
@@ -824,24 +824,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
824
824
  query: unknown;
825
825
  headers: unknown;
826
826
  response: {
827
- 200: ({
828
- Explorer: {
827
+ 200: {
828
+ id: number;
829
+ name: string;
830
+ icon: string;
831
+ explorers: {
829
832
  id: string;
830
833
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
831
834
  url: string;
832
835
  chainId: number;
833
836
  }[];
834
- } & {
835
- id: number;
836
- name: string;
837
- icon: string;
838
- }) | null;
837
+ } | null;
839
838
  };
840
839
  };
841
840
  };
842
- };
843
- } & {
844
- chains: {
841
+ } & {
845
842
  index: {
846
843
  get: {
847
844
  body: unknown;
@@ -851,24 +848,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
851
848
  };
852
849
  headers: unknown;
853
850
  response: {
854
- 200: ({
855
- Explorer: {
851
+ 200: {
852
+ id: number;
853
+ name: string;
854
+ icon: string;
855
+ explorers: {
856
856
  id: string;
857
857
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
858
858
  url: string;
859
859
  chainId: number;
860
860
  }[];
861
- } & {
862
- id: number;
863
- name: string;
864
- icon: string;
865
- })[];
861
+ }[];
866
862
  };
867
863
  };
868
864
  };
869
- };
870
- } & {
871
- chains: {
865
+ } & {
872
866
  count: {
873
867
  get: {
874
868
  body: unknown;
@@ -882,6 +876,29 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
882
876
  };
883
877
  };
884
878
  };
879
+ } & {
880
+ explorers: {
881
+ post: {
882
+ body: {
883
+ type: "ETHERSCAN" | "BLOCKSCOUT";
884
+ url: string;
885
+ chainId: number;
886
+ };
887
+ params: Record<never, string>;
888
+ query: unknown;
889
+ headers: {
890
+ authorization: string;
891
+ };
892
+ response: {
893
+ 200: {
894
+ id: string;
895
+ type: import("../../../database/api/.generated").$Enums.ExplorerType;
896
+ url: string;
897
+ chainId: number;
898
+ };
899
+ };
900
+ };
901
+ };
885
902
  };
886
903
  };
887
904
  } & {
@@ -1841,6 +1858,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1841
1858
  };
1842
1859
  };
1843
1860
  };
1861
+ } & {
1862
+ campaignStatus: {
1863
+ status: {
1864
+ get: {
1865
+ body: unknown;
1866
+ params: Record<never, string>;
1867
+ query: {
1868
+ status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
1869
+ };
1870
+ headers: unknown;
1871
+ response: {
1872
+ 200: ({
1873
+ Campaign: {
1874
+ id: string;
1875
+ computeChainId: number;
1876
+ distributionChainId: number;
1877
+ campaignId: string;
1878
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1879
+ subType: number | null;
1880
+ rewardTokenId: string;
1881
+ amount: string;
1882
+ opportunityId: string;
1883
+ startTimestamp: bigint;
1884
+ endTimestamp: bigint;
1885
+ params: import("../../../database/api/.generated").Prisma.JsonValue;
1886
+ creatorAddress: string;
1887
+ };
1888
+ } & {
1889
+ campaignId: string;
1890
+ computedUntil: bigint;
1891
+ processingStarted: bigint;
1892
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1893
+ error: string;
1894
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1895
+ })[];
1896
+ };
1897
+ };
1898
+ };
1899
+ };
1844
1900
  } & {
1845
1901
  campaignStatus: {
1846
1902
  unique: {
@@ -829,24 +829,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
829
829
  query: unknown;
830
830
  headers: unknown;
831
831
  response: {
832
- 200: ({
833
- Explorer: {
832
+ 200: {
833
+ id: number;
834
+ name: string;
835
+ icon: string;
836
+ explorers: {
834
837
  id: string;
835
838
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
836
839
  url: string;
837
840
  chainId: number;
838
841
  }[];
839
- } & {
840
- id: number;
841
- name: string;
842
- icon: string;
843
- }) | null;
842
+ } | null;
844
843
  };
845
844
  };
846
845
  };
847
- };
848
- } & {
849
- chains: {
846
+ } & {
850
847
  index: {
851
848
  get: {
852
849
  body: unknown;
@@ -856,24 +853,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
856
853
  };
857
854
  headers: unknown;
858
855
  response: {
859
- 200: ({
860
- Explorer: {
856
+ 200: {
857
+ id: number;
858
+ name: string;
859
+ icon: string;
860
+ explorers: {
861
861
  id: string;
862
862
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
863
863
  url: string;
864
864
  chainId: number;
865
865
  }[];
866
- } & {
867
- id: number;
868
- name: string;
869
- icon: string;
870
- })[];
866
+ }[];
871
867
  };
872
868
  };
873
869
  };
874
- };
875
- } & {
876
- chains: {
870
+ } & {
877
871
  count: {
878
872
  get: {
879
873
  body: unknown;
@@ -887,6 +881,29 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
887
881
  };
888
882
  };
889
883
  };
884
+ } & {
885
+ explorers: {
886
+ post: {
887
+ body: {
888
+ type: "ETHERSCAN" | "BLOCKSCOUT";
889
+ url: string;
890
+ chainId: number;
891
+ };
892
+ params: Record<never, string>;
893
+ query: unknown;
894
+ headers: {
895
+ authorization: string;
896
+ };
897
+ response: {
898
+ 200: {
899
+ id: string;
900
+ type: import("../../../database/api/.generated").$Enums.ExplorerType;
901
+ url: string;
902
+ chainId: number;
903
+ };
904
+ };
905
+ };
906
+ };
890
907
  };
891
908
  };
892
909
  } & {
@@ -1846,6 +1863,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1846
1863
  };
1847
1864
  };
1848
1865
  };
1866
+ } & {
1867
+ campaignStatus: {
1868
+ status: {
1869
+ get: {
1870
+ body: unknown;
1871
+ params: Record<never, string>;
1872
+ query: {
1873
+ status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
1874
+ };
1875
+ headers: unknown;
1876
+ response: {
1877
+ 200: ({
1878
+ Campaign: {
1879
+ id: string;
1880
+ computeChainId: number;
1881
+ distributionChainId: number;
1882
+ campaignId: string;
1883
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1884
+ subType: number | null;
1885
+ rewardTokenId: string;
1886
+ amount: string;
1887
+ opportunityId: string;
1888
+ startTimestamp: bigint;
1889
+ endTimestamp: bigint;
1890
+ params: import("../../../database/api/.generated").Prisma.JsonValue;
1891
+ creatorAddress: string;
1892
+ };
1893
+ } & {
1894
+ campaignId: string;
1895
+ computedUntil: bigint;
1896
+ processingStarted: bigint;
1897
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1898
+ error: string;
1899
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1900
+ })[];
1901
+ };
1902
+ };
1903
+ };
1904
+ };
1849
1905
  } & {
1850
1906
  campaignStatus: {
1851
1907
  unique: {
@@ -847,24 +847,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
847
847
  query: unknown;
848
848
  headers: unknown;
849
849
  response: {
850
- 200: ({
851
- Explorer: {
850
+ 200: {
851
+ id: number;
852
+ name: string;
853
+ icon: string;
854
+ explorers: {
852
855
  id: string;
853
856
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
854
857
  url: string;
855
858
  chainId: number;
856
859
  }[];
857
- } & {
858
- id: number;
859
- name: string;
860
- icon: string;
861
- }) | null;
860
+ } | null;
862
861
  };
863
862
  };
864
863
  };
865
- };
866
- } & {
867
- chains: {
864
+ } & {
868
865
  index: {
869
866
  get: {
870
867
  body: unknown;
@@ -874,24 +871,21 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
874
871
  };
875
872
  headers: unknown;
876
873
  response: {
877
- 200: ({
878
- Explorer: {
874
+ 200: {
875
+ id: number;
876
+ name: string;
877
+ icon: string;
878
+ explorers: {
879
879
  id: string;
880
880
  type: import("../../../database/api/.generated").$Enums.ExplorerType;
881
881
  url: string;
882
882
  chainId: number;
883
883
  }[];
884
- } & {
885
- id: number;
886
- name: string;
887
- icon: string;
888
- })[];
884
+ }[];
889
885
  };
890
886
  };
891
887
  };
892
- };
893
- } & {
894
- chains: {
888
+ } & {
895
889
  count: {
896
890
  get: {
897
891
  body: unknown;
@@ -905,6 +899,29 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
905
899
  };
906
900
  };
907
901
  };
902
+ } & {
903
+ explorers: {
904
+ post: {
905
+ body: {
906
+ type: "ETHERSCAN" | "BLOCKSCOUT";
907
+ url: string;
908
+ chainId: number;
909
+ };
910
+ params: Record<never, string>;
911
+ query: unknown;
912
+ headers: {
913
+ authorization: string;
914
+ };
915
+ response: {
916
+ 200: {
917
+ id: string;
918
+ type: import("../../../database/api/.generated").$Enums.ExplorerType;
919
+ url: string;
920
+ chainId: number;
921
+ };
922
+ };
923
+ };
924
+ };
908
925
  };
909
926
  };
910
927
  } & {
@@ -1864,6 +1881,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1864
1881
  };
1865
1882
  };
1866
1883
  };
1884
+ } & {
1885
+ campaignStatus: {
1886
+ status: {
1887
+ get: {
1888
+ body: unknown;
1889
+ params: Record<never, string>;
1890
+ query: {
1891
+ status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
1892
+ };
1893
+ headers: unknown;
1894
+ response: {
1895
+ 200: ({
1896
+ Campaign: {
1897
+ id: string;
1898
+ computeChainId: number;
1899
+ distributionChainId: number;
1900
+ campaignId: string;
1901
+ type: import("../../../database/api/.generated").$Enums.CampaignType;
1902
+ subType: number | null;
1903
+ rewardTokenId: string;
1904
+ amount: string;
1905
+ opportunityId: string;
1906
+ startTimestamp: bigint;
1907
+ endTimestamp: bigint;
1908
+ params: import("../../../database/api/.generated").Prisma.JsonValue;
1909
+ creatorAddress: string;
1910
+ };
1911
+ } & {
1912
+ campaignId: string;
1913
+ computedUntil: bigint;
1914
+ processingStarted: bigint;
1915
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
1916
+ error: string;
1917
+ details: import("../../../database/api/.generated").Prisma.JsonValue;
1918
+ })[];
1919
+ };
1920
+ };
1921
+ };
1922
+ };
1867
1923
  } & {
1868
1924
  campaignStatus: {
1869
1925
  unique: {