From 67a85a805a90779d084ddd57a74a195aff1d6c90 Mon Sep 17 00:00:00 2001 From: npty Date: Mon, 4 Sep 2023 11:13:21 +0700 Subject: [PATCH] chore: change RelayerType to enum --- packages/axelar-local-dev/src/relay/Relayer.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/axelar-local-dev/src/relay/Relayer.ts b/packages/axelar-local-dev/src/relay/Relayer.ts index 97a53aeb..c89deea8 100644 --- a/packages/axelar-local-dev/src/relay/Relayer.ts +++ b/packages/axelar-local-dev/src/relay/Relayer.ts @@ -2,7 +2,12 @@ import { networks } from '../Network'; import { Command } from './Command'; import { CallContractArgs, CallContractWithTokenArgs, RelayCommand, RelayData } from './types'; -export type RelayerType = 'near' | 'aptos' | 'evm' | 'sui'; +export enum RelayerType { + Sui = 'sui', + Evm = 'evm', + Aptos = 'aptos', + Near = 'near', +} export type RelayerMap = Partial> & { [key: string]: Relayer | undefined }; export abstract class Relayer {