mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
test support for optimism
This commit is contained in:
parent
94e90252c8
commit
b74492c4be
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user