Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,9 @@ import {
eNetwork,
ePolygonNetwork,
eXDaiNetwork,
eNeonNetwork,
} from './helpers/types';
import { BUIDLEREVM_CHAINID, COVERAGE_CHAINID } from './helpers/buidler-constants';
import {
NETWORKS_RPC_URL,
NETWORKS_DEFAULT_GAS,
BLOCK_TO_FORK,
buildForkConfig,
} from './helper-hardhat-config';
import { NETWORKS_RPC_URL, NETWORKS_DEFAULT_GAS, buildForkConfig } from './helper-hardhat-config';

require('dotenv').config();

Expand All @@ -28,7 +22,6 @@ import 'hardhat-gas-reporter';
import 'hardhat-typechain';
import '@tenderly/hardhat-tenderly';
import 'solidity-coverage';
import { fork } from 'child_process';

const SKIP_LOAD = process.env.SKIP_LOAD === 'true';
const DEFAULT_BLOCK_GAS_LIMIT = 8000000;
Expand Down Expand Up @@ -70,8 +63,6 @@ const getCommonNetworkConfig = (networkName: eNetwork, networkId: number) => ({
},
});

let forkMode;

const buidlerConfig: HardhatUserConfig = {
solidity: {
version: '0.6.12',
Expand Down Expand Up @@ -158,11 +149,11 @@ const buidlerConfig: HardhatUserConfig = {
allowUnlimitedContractSize: false,
timeout: 100000000,
// @ts-ignore
isFork: true
isFork: true,
},
devnet: {
url: 'https://proxy.devnet.neonlabs.org/solana',
// url: 'https://devnet.neonevm.org',
// url: 'https://proxy.devnet.neonlabs.org/solana',
url: 'https://devnet.neonevm.org',
accounts: [
'0x41167312f8c46439b2bcc5e5a6af929262efcd20357a56ebcbc455d835d9f084',
'0x41167312f8c46439b2bcc5e5a6af929262efcd20357a56ebcbc455d835d9f081',
Expand All @@ -177,8 +168,8 @@ const buidlerConfig: HardhatUserConfig = {
// allowUnlimitedContractSize: false,
timeout: 100000000,
// @ts-ignore
isFork: true
}
isFork: true,
},
},
};

Expand Down
2 changes: 1 addition & 1 deletion helpers/contracts-deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export const deployAllMockTokens = async (verify?: boolean) => {
for (const tokenSymbol of Object.keys(TokenContractId)) {
let decimals = '18';

if (i > 2) break;
if (i > 1) break;
i += 1;

let configData = (<any>protoConfigData)[tokenSymbol];
Expand Down
1 change: 0 additions & 1 deletion helpers/contracts-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const withSaveAndVerify = async <ContractType extends Contract>(
args: (string | string[])[],
verify?: boolean
): Promise<ContractType> => {
// console.log('Here: ', instance.deployTransaction.hash);
await waitForTx(instance.deployTransaction);
await registerContractInJsonDb(id, instance);
if (verify) {
Expand Down
1 change: 0 additions & 1 deletion tasks/migrations/aave.neon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ task('aave:neon', 'Test scenarios on NEON')

let DAI = await getMintableERC20(reserves[0]);
let AAVE = await getMintableERC20(reserves[1]);
let TUSD = await getMintableERC20(reserves[2]);

await DAI.connect(user1).mint(DRE.ethers.utils.parseUnits('10', 6));
await AAVE.connect(user2).mint(DRE.ethers.utils.parseUnits('10', 6));
Expand Down