mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
14 lines
548 B
TypeScript
14 lines
548 B
TypeScript
import axios from 'axios';
|
|
import { Contract } from 'ethers/lib/ethers';
|
|
import { HardhatRuntimeEnvironment } from 'hardhat/types';
|
|
import { DRE } from './misc-utils';
|
|
import { ePolygonNetwork, EthereumNetworkNames } from './types';
|
|
|
|
const TASK_FLATTEN_GET_FLATTENED_SOURCE = 'flatten:get-flattened-sources';
|
|
const TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS = 'compile:solidity:get-source-paths';
|
|
|
|
/* Polygon Helpers */
|
|
|
|
export const usingPolygon = () =>
|
|
DRE && Object.keys(ePolygonNetwork).includes((DRE as HardhatRuntimeEnvironment).network.name);
|