@merkl/api 0.17.29 → 0.17.30

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.
@@ -1,5 +1,6 @@
1
+ import { log } from "../../../utils/logger";
1
2
  import { RunStatus } from "../../../../database/api/.generated";
2
- import { HOUR, MAX_COMPUTE_JOB_TIME, getMultisigURL, registry } from "@sdk";
3
+ import { HOUR, MAX_COMPUTE_JOB_TIME, NETWORK_LABELS, getMultisigURL, registry } from "@sdk";
3
4
  import moment from "moment";
4
5
  import { CampaignService } from "../campaign";
5
6
  import { MerklRootService } from "../merklRoot";
@@ -86,9 +87,8 @@ export class StatusService {
86
87
  const chainId = Number.parseInt(chainIdString);
87
88
  const delayedCampaigns = delayedCampaignArray[index].status === "rejected" ? [] : delayedCampaignArray[index].value;
88
89
  const liveCampaigns = liveCampaignArray[index].status === "rejected" ? 0 : liveCampaignArray[index].value;
89
- if (!registry(chainId)?.Merkl?.DistributionCreator ||
90
- !registry(chainId)?.Merkl?.Distributor ||
91
- !registry(chainId)?.AngleLabs) {
90
+ if (!registry(chainId)?.Merkl?.DistributionCreator || !registry(chainId)?.Merkl?.Distributor) {
91
+ log.warn(`Missing registry for ${NETWORK_LABELS[chainId]}`);
92
92
  continue;
93
93
  }
94
94
  let adminUrl = undefined;
@@ -98,7 +98,7 @@ export class StatusService {
98
98
  catch { }
99
99
  res[chainId] = {
100
100
  ...merklRoots[chainId],
101
- admin: registry(chainId)?.AngleLabs,
101
+ admin: registry(chainId)?.AngleLabs ?? "0xb08AB4332AD871F89da24df4751968A61e58013c",
102
102
  adminUrl,
103
103
  distributor: registry(chainId)?.Merkl?.Distributor,
104
104
  distributionCreator: registry(chainId)?.Merkl?.DistributionCreator,
@@ -106,6 +106,7 @@ export class StatusService {
106
106
  delayed: delayedCampaigns,
107
107
  };
108
108
  }
109
+ console.log(res[146]);
109
110
  return res;
110
111
  }
111
112
  static async findManyDelay(query) {