import { HardhatRuntimeEnvironment } from "hardhat/types" ; import { DeployFunction } from "hardhat-deploy/types" ; import { ethers , network } from "hardhat" ; import { ConfigEntity } from "../../../entities" ; import { BandPriceOracle__factory } from "../../../../typechain" ; const func = async function ( hre ) { const TOKEN_SYMBOL = "BNB" ; const TOKEN_ADDRESS = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c" ; const config = ConfigEntity . getConfig ( ) ; const bandPriceOracle = BandPriceOracle__factory . connect ( config . Oracle . BandPriceOracle . address , ( await ethers . getSigners ( ) ) [ 0 ] ) ; console . log ( ">> set TOKEN_SYMBOL" ) ; await bandPriceOracle . setTokenSymbol ( TOKEN_ADDRESS , TOKEN_SYMBOL ) ; console . log ( "✅ Done" ) ; } ; export default func ; func . tags = [ "SetTokenSymbol" ] ;