grouping watchers
This commit is contained in:
parent
c6cfc3272d
commit
adc3ed1290
|
@ -3,7 +3,7 @@ import {
|
|||
createWatchers,
|
||||
getEnvironment,
|
||||
initializeEnvironment,
|
||||
} from "./infrastructure/environment";
|
||||
} from "./infrastructure/watchers/environment";
|
||||
import AbstractWatcher from "./infrastructure/watchers/AbstractWatcher";
|
||||
|
||||
async function run() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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 } = {
|
Loading…
Reference in New Issue