import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers , network } from "hardhat" ; import { ConfigEntity } from "../../../entities" ; import { StrictAlpacaOraclePriceFeed__factory } from "../../../../typechain" ; const func = async function ( hre ) { const config = ConfigEntity . getConfig ( ) ; const ADDR = "0x97ffe64668c39dcd0a0429dc21572ff617ab920b" ; const SECONDARY_ALPACA_ORACLE = config . Oracle . ChainLinkOracle . address ; const SECONDARY_TOKEN_0 = "0xe60fa777deb72c364447bb18c823c4731fbed671" ; const SECONDARY_TOKEN_1 = "0x115dffFFfffffffffFFFffffFFffFfFfFFFFfFff" ; const strictAlpacaOraclePriceFeed = StrictAlpacaOraclePriceFeed__factory . connect ( ADDR , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( ">> setSecondary" ) ; await strictAlpacaOraclePriceFeed . setSecondary ( SECONDARY_ALPACA_ORACLE , SECONDARY_TOKEN_0 , SECONDARY_TOKEN_1 ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "SetSecondary" ] ;