test support for optimism

This commit is contained in:
Richa-iitr 2022-04-07 15:22:05 +05:30
parent 94e90252c8
commit b74492c4be
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import { impersonateAccounts } from "./impersonate";
import { tokenMapping as mainnetMapping } from "./mainnet/tokens"; import { tokenMapping as mainnetMapping } from "./mainnet/tokens";
import { tokenMapping as polygonMapping } from "./polygon/tokens"; import { tokenMapping as polygonMapping } from "./polygon/tokens";
import { tokenMapping as avalancheMapping } from "./avalanche/tokens"; import { tokenMapping as avalancheMapping } from "./avalanche/tokens";
import { tokenMapping as optimismMapping } from "./optimism/tokens";
const mineTx = async (tx: any) => { const mineTx = async (tx: any) => {
await (await tx).wait(); await (await tx).wait();
@ -12,7 +13,8 @@ const mineTx = async (tx: any) => {
const tokenMapping: Record<string, Record<string, any>> = { const tokenMapping: Record<string, Record<string, any>> = {
mainnet: mainnetMapping, mainnet: mainnetMapping,
polygon: polygonMapping, polygon: polygonMapping,
avalanche: avalancheMapping avalanche: avalancheMapping,
optimism: optimismMapping
}; };
export async function addLiquidity(tokenName: string, address: any, amt: any) { export async function addLiquidity(tokenName: string, address: any, amt: any) {

View File

@ -6,7 +6,7 @@ import { execScript } from "./command";
let start: number, end: number; let start: number, end: number;
async function testRunner() { async function testRunner() {
const chain = ["avalanche", "mainnet", "polygon", "arbitrum"]; const chain = ["avalanche", "mainnet", "polygon", "arbitrum", "optimism"];
start = Date.now(); start = Date.now();
for (let ch of chain) { for (let ch of chain) {