import { Signer } from "ethers" ; import { Address } from "../types" ; import { BigNumber } from "ethers" ; import { CTokenOracle , YearnVaultOracle } from "../contracts" ; import { CTokenOracle__factory } from "../../typechain/factories/CTokenOracle__factory" ; import { YearnVaultOracle__factory } from "../../typechain/factories/YearnVaultOracle__factory" ; export default class DeployOracles { private _deployerSigner : Signer ; constructor ( deployerSigner ) { this . _deployerSigner = deployerSigner ; } public async deployCTokenOracle ( cToken , underlyingOracle , cTokenFullUnit , underlyingFullUnit , dataDescription ) { return await new CTokenOracle__factory ( this . _deployerSigner ) . deploy ( cToken , underlyingOracle , cTokenFullUnit , underlyingFullUnit , dataDescription ) ; } public async deployYearnVaultOracle ( vault , underlyingOracle , underlyingFullUnit , dataDescription ) { return await new YearnVaultOracle__factory ( this . _deployerSigner ) . deploy ( vault , underlyingOracle , underlyingFullUnit , dataDescription ) ; } }