Skip to content

Commit

Permalink
refactored e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aburkut committed Oct 11, 2023
1 parent 7a61614 commit 444b16e
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 235 deletions.
24 changes: 21 additions & 3 deletions src/dex/smardex/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DexParams } from './types';
import { DexConfigMap, AdapterMappings } from '../../types';
import { Network } from '../../constants';
import { Network, SwapSide } from '../../constants';

const GATEWAY_SUBGRAPH = 'https://subgraph.smardex.io';
const MAINNET_INIT_HASH =
Expand Down Expand Up @@ -44,6 +44,24 @@ export const SmardexConfig: DexConfigMap<DexParams> = {
};

export const Adapters: Record<number, AdapterMappings> = {
// This is an example
// [Network.MAINNET]: { [SwapSide.SELL]: [{ name: '', index: 0 }] },
[Network.MAINNET]: {
[SwapSide.SELL]: [{ name: '', index: 0 }],
[SwapSide.BUY]: [{ name: '', index: 0 }],
},
[Network.ARBITRUM]: {
[SwapSide.SELL]: [{ name: '', index: 0 }],
[SwapSide.BUY]: [{ name: '', index: 0 }],
},
[Network.BSC]: {
[SwapSide.SELL]: [{ name: '', index: 0 }],
[SwapSide.BUY]: [{ name: '', index: 0 }],
},
[Network.POLYGON]: {
[SwapSide.SELL]: [{ name: '', index: 0 }],
[SwapSide.BUY]: [{ name: '', index: 0 }],
},
[Network.BASE]: {
[SwapSide.SELL]: [{ name: '', index: 0 }],
[SwapSide.BUY]: [{ name: '', index: 0 }],
},
};
Loading

0 comments on commit 444b16e

Please sign in to comment.