Skip to content

Commit

Permalink
fix: rename common file
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
  • Loading branch information
Reinis-FRP committed Dec 28, 2022
1 parent 9146c8a commit e674408
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/scripts/src/monitoring-dvm2.0/MonitorDeletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Logger } from "@uma/financial-templates-lib";
import { VotingV2Ethers } from "@uma/contracts-node";
import { logDeletionProposed } from "./MonitorLogger";
import { getContractInstanceByUrl } from "../utils/contracts";
import type { MonitoringParams } from "./common";
import type { MonitoringParams } from "./MonitorCommon";

export async function monitorDeletion(logger: typeof Logger, params: MonitoringParams): Promise<void> {
const votingV2 = await getContractInstanceByUrl<VotingV2Ethers>("VotingV2", params.jsonRpcUrl);
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/src/monitoring-dvm2.0/MonitorEmergency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Logger } from "@uma/financial-templates-lib";
import { EmergencyProposerEthers } from "@uma/contracts-node";
import { logEmergencyProposal } from "./MonitorLogger";
import { getContractInstanceByUrl } from "../utils/contracts";
import type { MonitoringParams } from "./common";
import type { MonitoringParams } from "./MonitorCommon";

export async function monitorEmergency(logger: typeof Logger, params: MonitoringParams): Promise<void> {
const emergencyProposer = await getContractInstanceByUrl<EmergencyProposerEthers>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Logger } from "@uma/financial-templates-lib";
import { GovernorV2Ethers } from "@uma/contracts-node";
import { logGovernanceProposal } from "./MonitorLogger";
import { getContractInstanceByUrl } from "../utils/contracts";
import type { MonitoringParams } from "./common";
import type { MonitoringParams } from "./MonitorCommon";

export async function monitorGovernance(logger: typeof Logger, params: MonitoringParams): Promise<void> {
const governorV2 = await getContractInstanceByUrl<GovernorV2Ethers>("GovernorV2", params.jsonRpcUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { VotingTokenEthers, getAddress } from "@uma/contracts-node";
import { utils } from "ethers";
import { logGovernorTransfer } from "./MonitorLogger";
import { getContractInstanceByUrl } from "../utils/contracts";
import type { MonitoringParams } from "./common";
import type { MonitoringParams } from "./MonitorCommon";

export async function monitorGovernorTransfers(logger: typeof Logger, params: MonitoringParams): Promise<void> {
const governorTransfersThreshold = utils.parseEther(process.env.GOVERNOR_TRANSFERS_THRESHOLD || "0");
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/src/monitoring-dvm2.0/MonitorMints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { VotingTokenEthers } from "@uma/contracts-node";
import { utils } from "ethers";
import { logMint } from "./MonitorLogger";
import { getContractInstanceByUrl } from "../utils/contracts";
import type { MonitoringParams } from "./common";
import type { MonitoringParams } from "./MonitorCommon";

export async function monitorMints(logger: typeof Logger, params: MonitoringParams): Promise<void> {
const mintsThreshold = utils.parseEther(process.env.MINTS_THRESHOLD || "0");
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/src/monitoring-dvm2.0/MonitorRolled.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Logger } from "@uma/financial-templates-lib";
import { VotingV2Ethers } from "@uma/contracts-node";
import { checkEndBlockVotingRound, getRequestId } from "./common";
import { checkEndBlockVotingRound, getRequestId } from "./MonitorCommon";
import { logRolled } from "./MonitorLogger";
import { getContractInstanceByUrl } from "../utils/contracts";
import type { MonitoringParams } from "./common";
import type { MonitoringParams } from "./MonitorCommon";

export async function monitorRolled(logger: typeof Logger, params: MonitoringParams): Promise<void> {
const votingV2 = await getContractInstanceByUrl<VotingV2Ethers>("VotingV2", params.jsonRpcUrl);
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/src/monitoring-dvm2.0/MonitorStakes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { VotingV2Ethers } from "@uma/contracts-node";
import { utils } from "ethers";
import { logLargeStake } from "./MonitorLogger";
import { getContractInstanceByUrl } from "../utils/contracts";
import type { MonitoringParams } from "./common";
import type { MonitoringParams } from "./MonitorCommon";

export async function monitorStakes(logger: typeof Logger, params: MonitoringParams): Promise<void> {
const stakeThreshold = utils.parseEther(process.env.STAKE_THRESHOLD || "0");
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/src/monitoring-dvm2.0/MonitorUnstakes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { VotingV2Ethers } from "@uma/contracts-node";
import { utils } from "ethers";
import { logLargeUnstake } from "./MonitorLogger";
import { getContractInstanceByUrl } from "../utils/contracts";
import type { MonitoringParams } from "./common";
import type { MonitoringParams } from "./MonitorCommon";

export async function monitorUnstakes(logger: typeof Logger, params: MonitoringParams): Promise<void> {
const unstakeThreshold = utils.parseEther(process.env.UNSTAKE_THRESHOLD || "0");
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/src/monitoring-dvm2.0/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { delay, Logger } from "@uma/financial-templates-lib";
import { initCommonEnvVars, updateBlockRange, startupLogLevel } from "./common";
import { initCommonEnvVars, updateBlockRange, startupLogLevel } from "./MonitorCommon";
import { monitorUnstakes } from "./MonitorUnstakes";
import { monitorStakes } from "./MonitorStakes";
import { monitorGovernance } from "./MonitorGovernance";
Expand Down

0 comments on commit e674408

Please sign in to comment.