Skip to content

Commit

Permalink
Remove simclient env dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpoyatt authored and mvpoyatt committed Aug 6, 2024
1 parent 1dba2f0 commit e24389e
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions app/utils/chains/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@ import { OptimismIcon, BaseIcon, MoltenIcon } from './icons';
export type CHAIN = 'optimism' | 'base' | 'molten';

let opDispatcher = process.env.DISPATCHER_ADDRESS_OPTIMISM!;
let opDispatcherSimClient = process.env.DISPATCHER_ADDRESS_OPTIMISM_SIMCLIENT!;
let baseDispatcher = process.env.DISPATCHER_ADDRESS_BASE!;
let baseDispatcherSimClient = process.env.DISPATCHER_ADDRESS_BASE_SIMCLIENT!;
let moltenDispatcher = process.env.DISPATCHER_ADDRESS_MOLTEN!;
let moltenDispatcherSimClient = process.env.DISPATCHER_ADDRESS_MOLTEN_SIMCLIENT!;

let opClientName = process.env.OPTIMISM_CLIENT_NAME!;
let opSimClientName = process.env.OPTIMISM_CLIENT_SIMCLIENT_NAME!;
let baseClientName = process.env.BASE_CLIENT_NAME!;
let baseSimClientName = process.env.BASE_CLIENT_SIMCLIENT_NAME!;
let moltenClientName = process.env.MOLTEN_CLIENT_NAME!;
let moltenSimClientName = process.env.MOLTEN_CLIENT_SIMCLIENT_NAME!;

let optimismRPC = process.env.OPTIMISM_RPC || 'https://opt-sepolia.g.alchemy.com/v2/jKvLhhXvtnWdNeZrKst0demxnwJcYH1o';
let baseRPC = process.env.BASE_RPC || 'https://base-sepolia.g.alchemy.com/v2/776dC6qT-NTtupdnxlUJuXGbUIKWWhLe';
Expand All @@ -29,8 +23,8 @@ export const CHAIN_CONFIGS: {
display: 'Optimism',
rpc: optimismRPC,
txUrl: 'https://optimism-sepolia.blockscout.com/',
dispatchers: [opDispatcher, opDispatcherSimClient],
clients: [opClientName, opSimClientName],
dispatchers: [opDispatcher],
clients: [opClientName],
blockTime: 2,
icon: OptimismIcon,
},
Expand All @@ -39,8 +33,8 @@ export const CHAIN_CONFIGS: {
display: 'Base',
rpc: baseRPC,
txUrl: 'https://base-sepolia.blockscout.com/',
dispatchers: [baseDispatcher, baseDispatcherSimClient],
clients: [baseClientName, baseSimClientName],
dispatchers: [baseDispatcher],
clients: [baseClientName],
blockTime: 2,
icon: BaseIcon,
},
Expand All @@ -49,8 +43,8 @@ export const CHAIN_CONFIGS: {
display: 'Molten',
rpc: moltenRPC,
txUrl: 'https://unidex-sepolia.explorer.caldera.xyz/',
dispatchers: [moltenDispatcher, moltenDispatcherSimClient],
clients: [moltenClientName, moltenSimClientName],
dispatchers: [moltenDispatcher],
clients: [moltenClientName],
blockTime: 2,
icon: MoltenIcon,
},
Expand Down

0 comments on commit e24389e

Please sign in to comment.