Skip to content

Commit

Permalink
fix: relayer proxy hub typings
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGorilla committed Mar 30, 2023
1 parent d4df22f commit d4af114
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 42 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/init-propagate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const PRIORITY_FEE = 2e9;

const envProxyHub: Record<Environment, RelayerProxyHub> = {
'mainnet': getMainnetSdk(txSigner).relayerProxyHub,
'testnet': getGoerliSdk(txSigner).relayerProxyHub,
'staging': getGoerliSdk(txSigner).relayerProxyHubStaging,
'testnet': getGoerliSdk(txSigner).relayerProxyHub as unknown as RelayerProxyHub,
'staging': getGoerliSdk(txSigner).relayerProxyHubStaging as unknown as RelayerProxyHub,
};
const proxyHub: RelayerProxyHub | undefined = envProxyHub[setup.environment];
if (!proxyHub) throw new Error('Invalid environment');
Expand Down
4 changes: 2 additions & 2 deletions src/shared/run-propagate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { SubgraphReader } from '@connext/nxtp-adapters-subgraph';

import { populateParamsForDomains } from '../utils/propagate';
import { InitialSetup } from '../utils/types';
import { MainnetSdk } from '@dethcrypto/eth-sdk-client';
import { RelayerProxyHub } from '.dethcrypto/eth-sdk-client/esm/types/mainnet';

export async function runPropagate(
jobContract: MainnetSdk['relayerProxyHub'],
jobContract: RelayerProxyHub,
setup: InitialSetup,
workMethod: string,
broadcastMethod: (props: BroadcastorProps) => Promise<void>
Expand Down

0 comments on commit d4af114

Please sign in to comment.