mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
mockswapper removed
This commit is contained in:
parent
a3e1ae3268
commit
5f6e6d9db4
|
@ -47,7 +47,6 @@ const {
|
||||||
|
|
||||||
export type MockTokenMap = {[symbol: string]: MintableERC20};
|
export type MockTokenMap = {[symbol: string]: MintableERC20};
|
||||||
import {ZERO_ADDRESS} from './constants';
|
import {ZERO_ADDRESS} from './constants';
|
||||||
import {MockSwapAdapter} from '../types/MockSwapAdapter';
|
|
||||||
import {signTypedData_v4, TypedData} from 'eth-sig-util';
|
import {signTypedData_v4, TypedData} from 'eth-sig-util';
|
||||||
import {fromRpcSig, ECDSASignature} from 'ethereumjs-util';
|
import {fromRpcSig, ECDSASignature} from 'ethereumjs-util';
|
||||||
import {SignerWithAddress} from '../test/helpers/make-suite';
|
import {SignerWithAddress} from '../test/helpers/make-suite';
|
||||||
|
@ -321,8 +320,6 @@ export const deployWalletBalancerProvider = async (
|
||||||
}
|
}
|
||||||
return instance;
|
return instance;
|
||||||
};
|
};
|
||||||
export const deployMockSwapAdapter = async (addressesProvider: tEthereumAddress) =>
|
|
||||||
await deployContract<MockSwapAdapter>(eContractid.MockSwapAdapter, [addressesProvider]);
|
|
||||||
|
|
||||||
export const deployAaveProtocolTestHelpers = async (
|
export const deployAaveProtocolTestHelpers = async (
|
||||||
addressesProvider: tEthereumAddress,
|
addressesProvider: tEthereumAddress,
|
||||||
|
@ -548,14 +545,6 @@ export const getMockFlashLoanReceiver = async (address?: tEthereumAddress) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getMockSwapAdapter = async (address?: tEthereumAddress) => {
|
|
||||||
return await getContract<MockSwapAdapter>(
|
|
||||||
eContractid.MockSwapAdapter,
|
|
||||||
address ||
|
|
||||||
(await getDb().get(`${eContractid.MockSwapAdapter}.${BRE.network.name}`).value()).address
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const getLendingRateOracle = async (address?: tEthereumAddress) => {
|
export const getLendingRateOracle = async (address?: tEthereumAddress) => {
|
||||||
return await getContract<LendingRateOracle>(
|
return await getContract<LendingRateOracle>(
|
||||||
eContractid.LendingRateOracle,
|
eContractid.LendingRateOracle,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user