2022-10-13 17:09:52 -07:00
|
|
|
const loadEnv = require("../../scripts/loadEnv");
|
|
|
|
loadEnv("../../");
|
2022-09-20 09:24:57 -07:00
|
|
|
|
|
|
|
const PythUpgradable = artifacts.require("PythUpgradable");
|
|
|
|
const governanceChainId = process.env.GOVERNANCE_CHAIN_ID;
|
|
|
|
const governanceEmitter = process.env.GOVERNANCE_EMITTER;
|
|
|
|
|
|
|
|
console.log("governanceEmitter: " + governanceEmitter);
|
|
|
|
console.log("governanceChainId: " + governanceChainId);
|
|
|
|
|
|
|
|
const { upgradeProxy } = require("@openzeppelin/truffle-upgrades");
|
|
|
|
|
|
|
|
/**
|
2022-09-23 10:19:02 -07:00
|
|
|
* Version 1.1.0
|
2022-09-20 09:24:57 -07:00
|
|
|
*
|
|
|
|
* This change:
|
2022-09-23 10:19:02 -07:00
|
|
|
* - Use pyth-sdk-solidity 1.0.0 which simplifies the PriceFeed interface
|
2022-09-20 09:24:57 -07:00
|
|
|
*/
|
2022-09-23 10:19:02 -07:00
|
|
|
module.exports = async function (deployer) {
|
2022-09-20 09:24:57 -07:00
|
|
|
const proxy = await PythUpgradable.deployed();
|
2022-09-23 10:19:02 -07:00
|
|
|
await upgradeProxy(proxy.address, PythUpgradable, { deployer, unsafeSkipStorageCheck: true });
|
2022-09-20 09:24:57 -07:00
|
|
|
}
|