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