mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix ci:test env
This commit is contained in:
parent
ee6d017439
commit
5b7b4c517f
|
@ -1,8 +1,8 @@
|
||||||
import {usePlugin, BuidlerConfig} from '@nomiclabs/buidler/config';
|
import {usePlugin} from '@nomiclabs/buidler/config';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {accounts} from './test-wallets.js';
|
import {accounts} from './test-wallets.js';
|
||||||
import {eEthereumNetwork} from './helpers/types';
|
import {eEthereumNetwork} from './helpers/types';
|
||||||
import { BUIDLEREVM_CHAINID, COVERAGE_CHAINID } from './helpers/constants';
|
import {BUIDLEREVM_CHAINID, COVERAGE_CHAINID} from './helpers/buidler-constants';
|
||||||
|
|
||||||
usePlugin('@nomiclabs/buidler-ethers');
|
usePlugin('@nomiclabs/buidler-ethers');
|
||||||
usePlugin('buidler-typechain');
|
usePlugin('buidler-typechain');
|
||||||
|
|
3
helpers/buidler-constants.ts
Normal file
3
helpers/buidler-constants.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export const TEST_SNAPSHOT_ID = '0x1';
|
||||||
|
export const BUIDLEREVM_CHAINID = 31337;
|
||||||
|
export const COVERAGE_CHAINID = 1337;
|
|
@ -1,22 +1,17 @@
|
||||||
import {
|
import {
|
||||||
iAssetBase,
|
|
||||||
iAavePoolAssets,
|
|
||||||
IMarketRates,
|
|
||||||
iAssetAggregatorBase,
|
|
||||||
AavePools,
|
AavePools,
|
||||||
|
eEthereumNetwork,
|
||||||
|
iAavePoolAssets,
|
||||||
|
iAssetAggregatorBase,
|
||||||
|
iAssetBase,
|
||||||
|
iBasicDistributionParams,
|
||||||
|
IMarketRates,
|
||||||
iMultiPoolsAssets,
|
iMultiPoolsAssets,
|
||||||
IReserveParams,
|
IReserveParams,
|
||||||
tEthereumAddress,
|
tEthereumAddress,
|
||||||
iBasicDistributionParams,
|
|
||||||
eEthereumNetwork,
|
|
||||||
} from './types';
|
} from './types';
|
||||||
import BigNumber from 'bignumber.js';
|
import BigNumber from 'bignumber.js';
|
||||||
import {getParamPerPool, getParamPerNetwork} from './contracts-helpers';
|
import {getParamPerNetwork, getParamPerPool} from './contracts-helpers';
|
||||||
|
|
||||||
export const TEST_SNAPSHOT_ID = '0x1';
|
|
||||||
|
|
||||||
export const BUIDLEREVM_CHAINID = 31337;
|
|
||||||
export const COVERAGE_CHAINID = 1337;
|
|
||||||
|
|
||||||
// ----------------
|
// ----------------
|
||||||
// MATH
|
// MATH
|
||||||
|
@ -536,17 +531,16 @@ export const getFeeDistributionParamsCommon = (
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getATokenDomainSeparatorPerNetwork = (
|
export const getATokenDomainSeparatorPerNetwork = (network: eEthereumNetwork): tEthereumAddress =>
|
||||||
network: eEthereumNetwork
|
|
||||||
): tEthereumAddress =>
|
|
||||||
getParamPerNetwork<tEthereumAddress>(
|
getParamPerNetwork<tEthereumAddress>(
|
||||||
{
|
{
|
||||||
[eEthereumNetwork.coverage]: "0x95b73a72c6ecf4ccbbba5178800023260bad8e75cdccdb8e4827a2977a37c820",
|
[eEthereumNetwork.coverage]:
|
||||||
|
'0x95b73a72c6ecf4ccbbba5178800023260bad8e75cdccdb8e4827a2977a37c820',
|
||||||
[eEthereumNetwork.buidlerevm]:
|
[eEthereumNetwork.buidlerevm]:
|
||||||
"0x76cbbf8aa4b11a7c207dd79ccf8c394f59475301598c9a083f8258b4fafcfa86",
|
'0x76cbbf8aa4b11a7c207dd79ccf8c394f59475301598c9a083f8258b4fafcfa86',
|
||||||
[eEthereumNetwork.kovan]: "",
|
[eEthereumNetwork.kovan]: '',
|
||||||
[eEthereumNetwork.ropsten]: "",
|
[eEthereumNetwork.ropsten]: '',
|
||||||
[eEthereumNetwork.main]: "",
|
[eEthereumNetwork.main]: '',
|
||||||
},
|
},
|
||||||
network
|
network
|
||||||
);
|
);
|
|
@ -2,7 +2,6 @@ import {
|
||||||
MAX_UINT_AMOUNT,
|
MAX_UINT_AMOUNT,
|
||||||
ZERO_ADDRESS,
|
ZERO_ADDRESS,
|
||||||
getATokenDomainSeparatorPerNetwork,
|
getATokenDomainSeparatorPerNetwork,
|
||||||
BUIDLEREVM_CHAINID,
|
|
||||||
} from '../helpers/constants';
|
} from '../helpers/constants';
|
||||||
import {buildPermitParams, getSignatureFromTypedData} from '../helpers/contracts-helpers';
|
import {buildPermitParams, getSignatureFromTypedData} from '../helpers/contracts-helpers';
|
||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
|
@ -11,6 +10,7 @@ import {eEthereumNetwork} from '../helpers/types';
|
||||||
import {makeSuite, TestEnv} from './helpers/make-suite';
|
import {makeSuite, TestEnv} from './helpers/make-suite';
|
||||||
import {BRE} from '../helpers/misc-utils';
|
import {BRE} from '../helpers/misc-utils';
|
||||||
import {waitForTx} from './__setup.spec';
|
import {waitForTx} from './__setup.spec';
|
||||||
|
import {BUIDLEREVM_CHAINID} from '../helpers/buidler-constants';
|
||||||
|
|
||||||
const {parseEther} = ethers.utils;
|
const {parseEther} = ethers.utils;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user