Skip to content

Commit 509402e

Browse files
committed
fix: merge conflict
2 parents f961fec + 1c4b0e5 commit 509402e

19 files changed

+6354
-113
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## [2.15.0-dev.2](https://github.com/VenusProtocol/oracle/compare/v2.15.0-dev.1...v2.15.0-dev.2) (2025-10-20)
2+
3+
4+
### Bug Fixes
5+
6+
* enable sourcify ([3b3bc87](https://github.com/VenusProtocol/oracle/commit/3b3bc87c49d9c0024df4347fb77e9ca6fef5320f))
7+
* fixed etherscan verification ([757fd98](https://github.com/VenusProtocol/oracle/commit/757fd986c79425b87c0b61f936427e562f50b086))
8+
* fixed hardhat config ([f8a4683](https://github.com/VenusProtocol/oracle/commit/f8a4683ac3c5509bd60fdba450e2535212b75072))
9+
* fixed yarn.lock ([0bc0d7d](https://github.com/VenusProtocol/oracle/commit/0bc0d7d82baeac828e246339f36cb525bf56bd3d))
10+
* merge conflict ([f462ef3](https://github.com/VenusProtocol/oracle/commit/f462ef34044171dcd1230ca91c472775bf010855))
11+
* removed etherscan verify ([1961046](https://github.com/VenusProtocol/oracle/commit/1961046f585d35f8b4c70b18d6c5055e85d0676c))
12+
13+
## [2.15.0-dev.1](https://github.com/VenusProtocol/oracle/compare/v2.14.1-dev.1...v2.15.0-dev.1) (2025-10-16)
14+
15+
16+
### Features
17+
18+
* finish usdt chainlink oracle deployment script and corresponding deployment ([3756352](https://github.com/VenusProtocol/oracle/commit/37563526172c5c636623d7049849625262b5c947))
19+
* updating deployment files ([37a2bc6](https://github.com/VenusProtocol/oracle/commit/37a2bc614d178eb0b68fd56d31da3bc4a84fc13c))
20+
121
## [2.14.1-dev.1](https://github.com/VenusProtocol/oracle/compare/v2.14.0...v2.14.1-dev.1) (2025-09-29)
222

323

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ $ yarn hardhat export --network <network-name> --export ./deployments/<network-n
104104
## Verify Contracts
105105

106106
```
107-
npx hardhat etherscan-verify --network <network-name>
107+
npx hardhat verify --network <network-name> <contract-address> <constructor-arg1> <constructor-arg2>
108108
```
109109

110110
## Hardhat Commands
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import hre from "hardhat";
2+
import { DeployFunction } from "hardhat-deploy/dist/types";
3+
import { HardhatRuntimeEnvironment } from "hardhat/types";
4+
5+
import { ADDRESSES, SEQUENCER } from "../helpers/deploymentConfig";
6+
7+
const func: DeployFunction = async function ({ getNamedAccounts, deployments, network }: HardhatRuntimeEnvironment) {
8+
const { deploy } = deployments;
9+
const { deployer } = await getNamedAccounts();
10+
const proxyOwnerAddress = network.live ? ADDRESSES[network.name].timelock : deployer;
11+
const defaultProxyAdmin = await hre.artifacts.readArtifact(
12+
"hardhat-deploy/solc_0.8/openzeppelin/proxy/transparent/ProxyAdmin.sol:ProxyAdmin",
13+
);
14+
15+
const sequencer = SEQUENCER[network.name];
16+
let contractName = "ChainlinkOracle";
17+
if (sequencer !== undefined) contractName = "SequencerChainlinkOracle";
18+
19+
await deploy("USDTChainlinkOracle", {
20+
contract: network.live ? contractName : "MockChainlinkOracle",
21+
from: deployer,
22+
log: true,
23+
deterministicDeployment: false,
24+
skipIfAlreadyDeployed: true,
25+
args: sequencer ? [sequencer] : [],
26+
proxy: {
27+
owner: proxyOwnerAddress,
28+
proxyContract: "OptimizedTransparentUpgradeableProxy",
29+
execute: {
30+
methodName: "initialize",
31+
args: network.live ? [ADDRESSES[network.name].acm] : [],
32+
},
33+
viaAdminContract: {
34+
name: "DefaultProxyAdmin",
35+
artifact: defaultProxyAdmin,
36+
},
37+
},
38+
});
39+
40+
const usdtChainlinkOracle = await hre.ethers.getContract("USDTChainlinkOracle");
41+
const usdtChainlinkOracleOwner = await usdtChainlinkOracle.owner();
42+
43+
if (usdtChainlinkOracleOwner === deployer && network.live) {
44+
await usdtChainlinkOracle.transferOwnership(proxyOwnerAddress);
45+
console.log(`Ownership of ChainlinkOracle transfered from deployer to Timelock (${proxyOwnerAddress})`);
46+
}
47+
};
48+
49+
func.tags = ["deploy-usdt-chainlink-oracle"];
50+
func.skip = async env => !env.network.live;
51+
export default func;

0 commit comments

Comments
 (0)