grouping watchers

This commit is contained in:
matias martinez 2023-11-14 08:41:50 -03:00
parent c6cfc3272d
commit adc3ed1290
9 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import {
createWatchers,
getEnvironment,
initializeEnvironment,
} from "./infrastructure/environment";
} from "./infrastructure/watchers/environment";
import AbstractWatcher from "./infrastructure/watchers/AbstractWatcher";
async function run() {

View File

@ -1,5 +1,5 @@
import { ChainId, Network } from "@certusone/wormhole-sdk";
import AbstractHandler from "../handlers/AbstractHandler";
import AbstractHandler from "./handlers/AbstractHandler";
export default abstract class AbstractWatcher {
//store class fields from constructor

View File

@ -1,6 +1,6 @@
import { ChainId, Network } from "@certusone/wormhole-sdk";
import AbstractWatcher from "./AbstractWatcher";
import AbstractHandler from "../handlers/AbstractHandler";
import AbstractHandler from "./handlers/AbstractHandler";
export default class EvmWatcher extends AbstractWatcher {
constructor(

View File

@ -1,7 +1,7 @@
import { ChainId, ChainName, Network, toChainName } from "@certusone/wormhole-sdk";
import AbstractWatcher from "./watchers/AbstractWatcher";
import AbstractWatcher from "./AbstractWatcher";
import winston from "winston";
import EvmWatcher from "./watchers/EvmWatcher";
import EvmWatcher from "./EvmWatcher";
import AbstractHandler from "./handlers/AbstractHandler";
const MAINNET_RPCS: { [key in ChainName]?: string } = {