Skip to content

Commit

Permalink
fix: remove streamline event πŸš‡
Browse files Browse the repository at this point in the history
  • Loading branch information
Namaskar-1F64F committed Aug 5, 2024
1 parent 012a1d2 commit ee3387f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/actions/minipool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
MINIPOOL_STAKING_TEMPLATE,
MINIPOOL_STREAMLINE_TEMPLATE,
MINIPOOL_WITHDRAWABLE_TEMPLATE,
SLACK_STREAMLINED_MINIPOOL_LAUNCH_TEMPLATE,
} from "./templates";
import { getMatchingEvents } from "./logParsing";
import {
Expand Down Expand Up @@ -184,27 +183,6 @@ export const minipoolStatusChange = async (context: Context, event: Event) => {
owner,
MinipoolStatus.STREAMLINE_PRELAUNCH
);
const { pubKey, sig } = decodeBLSKeys(minipool.blsPubkeyAndSig);
workflowData = {
transactionHash: transactionEvent.hash,
blsKey: pubKey,
blsSig: sig,
nodeID: nodeHexToID(minipool.nodeID),
nodeIDHex: minipool.nodeID,
duration: duration.toString(),
startTime: startTime.toString(),
owner: minipool.owner,
hardwareProviderContract:
streamlinedMinipoolMadeEvent[0]?.hardwareProviderContract,
};
const slackMessage = await SLACK_STREAMLINED_MINIPOOL_LAUNCH_TEMPLATE(
workflowData
);

workflowData = {
...slackMessage,
...workflowData,
};
} else {
message = await getMessageFromStatusChangedEvent(
statusChangedEvents[0],
Expand All @@ -230,4 +208,3 @@ export const minipoolStatusChange = async (context: Context, event: Event) => {
}
await emitter.emit(message, workflowData);
};

0 comments on commit ee3387f

Please sign in to comment.