Skip to content

Commit 25d1806

Browse files
authored
add empty WOETH proxy (#1272)
* add empty WOETH proxy * mainnet deploy 50
1 parent d571f3c commit 25d1806

File tree

9 files changed

+831
-0
lines changed

9 files changed

+831
-0
lines changed

contracts/contracts/proxies/Proxies.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,10 @@ contract MorphoAaveStrategyProxy is InitializeGovernedUpgradeabilityProxy {
100100
contract OETHProxy is InitializeGovernedUpgradeabilityProxy {
101101

102102
}
103+
104+
/**
105+
* @notice WOETHProxy delegates calls to nowhere for now
106+
*/
107+
contract WOETHProxy is InitializeGovernedUpgradeabilityProxy {
108+
109+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// SPDX-License-Identifier: agpl-3.0
2+
pragma solidity ^0.8.0;
3+
4+
/**
5+
* @title OETH Token Contract
6+
* @author Origin Protocol Inc
7+
*/
8+
9+
contract WOETH {
10+
11+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
const { deploymentWithProposal } = require("../utils/deploy");
2+
const addresses = require("../utils/addresses");
3+
4+
module.exports = deploymentWithProposal(
5+
{ deployName: "050_woeth_proxy", forceDeploy: false, forceSkip: true },
6+
async ({ deployWithConfirmation, ethers, getTxOpts, withConfirmation }) => {
7+
const { deployerAddr, governorAddr } = await getNamedAccounts();
8+
const sDeployer = await ethers.provider.getSigner(deployerAddr);
9+
10+
// Deployer Actions
11+
// ----------------
12+
13+
// 1. Deploy new proxy
14+
// New WOETH proxy
15+
const dWoethProxy = await deployWithConfirmation("WOETHProxy");
16+
const cWoethProxy = await ethers.getContractAt(
17+
"WOETHProxy",
18+
dWoethProxy.address
19+
);
20+
21+
// 2. Deploy new implementation
22+
const dWOETHImpl = await deployWithConfirmation("WOETH");
23+
24+
// 3. Init the proxy to point at the implementation
25+
await withConfirmation(
26+
cWoethProxy
27+
.connect(sDeployer)
28+
["initialize(address,address,bytes)"](
29+
dWOETHImpl.address,
30+
deployerAddr,
31+
[],
32+
await getTxOpts()
33+
)
34+
);
35+
36+
// 5. Transfer governance
37+
await withConfirmation(
38+
cWoethProxy
39+
.connect(sDeployer)
40+
.transferGovernance(addresses.mainnet.Guardian, await getTxOpts())
41+
);
42+
43+
// Governance Actions
44+
// ----------------
45+
return {
46+
name: "Deploy an empty WOETH proxy",
47+
actions: [],
48+
};
49+
}
50+
);
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"address": "0xA539C0aA49c3D3a446ab0FFCd12413A7E0C5fE78",
3+
"abi": [],
4+
"transactionHash": "0xd93e1f5e16dc7f3448df3646d8e5cf5098a0ce8a54327b7f03c9fe4776a67210",
5+
"receipt": {
6+
"to": null,
7+
"from": "0xFD9E6005187F448957a0972a7d0C0A6dA2911236",
8+
"contractAddress": "0xA539C0aA49c3D3a446ab0FFCd12413A7E0C5fE78",
9+
"transactionIndex": 20,
10+
"gasUsed": "67066",
11+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
12+
"blockHash": "0x5f1d3d2fdb097beeed1bcdbe4c02d90a0315c57f7236273b25dda20907ee6343",
13+
"transactionHash": "0xd93e1f5e16dc7f3448df3646d8e5cf5098a0ce8a54327b7f03c9fe4776a67210",
14+
"logs": [],
15+
"blockNumber": 16950119,
16+
"cumulativeGasUsed": "1752324",
17+
"status": 1,
18+
"byzantium": true
19+
},
20+
"args": [],
21+
"solcInputHash": "10ba15c25ec4709637fa219eb96eda1a",
22+
"metadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"author\":\"Origin Protocol Inc\",\"kind\":\"dev\",\"methods\":{},\"title\":\"OETH Token Contract\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/token/WOETH.sol\":\"WOETH\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/token/WOETH.sol\":{\"content\":\"// SPDX-License-Identifier: agpl-3.0\\npragma solidity ^0.8.0;\\n\\n/**\\n * @title OETH Token Contract\\n * @author Origin Protocol Inc\\n */\\n\\ncontract WOETH {\\n\\n}\\n\",\"keccak256\":\"0x322ab3927b6e07bb4f8b3f24c0b944b322ddd1de8cfbf46e25e66b0b95c048ac\",\"license\":\"agpl-3.0\"}},\"version\":1}",
23+
"bytecode": "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea26469706673582212205e6224b2ea21da39a738c8e2c002dbffddc633a603f16a0a60c4792f9fa51af664736f6c63430008070033",
24+
"deployedBytecode": "0x6080604052600080fdfea26469706673582212205e6224b2ea21da39a738c8e2c002dbffddc633a603f16a0a60c4792f9fa51af664736f6c63430008070033",
25+
"devdoc": {
26+
"author": "Origin Protocol Inc",
27+
"kind": "dev",
28+
"methods": {},
29+
"title": "OETH Token Contract",
30+
"version": 1
31+
},
32+
"userdoc": {
33+
"kind": "user",
34+
"methods": {},
35+
"version": 1
36+
},
37+
"storageLayout": {
38+
"storage": [],
39+
"types": null
40+
}
41+
}

contracts/deployments/mainnet/WOETHProxy.json

Lines changed: 284 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"language": "Solidity",
3+
"sources": {
4+
"contracts/token/WOETH.sol": {
5+
"content": "// SPDX-License-Identifier: agpl-3.0\npragma solidity ^0.8.0;\n\n/**\n * @title OETH Token Contract\n * @author Origin Protocol Inc\n */\n\ncontract WOETH {\n\n}\n"
6+
}
7+
},
8+
"settings": {
9+
"optimizer": {
10+
"enabled": true,
11+
"runs": 200
12+
},
13+
"outputSelection": {
14+
"*": {
15+
"*": [
16+
"abi",
17+
"evm.bytecode",
18+
"evm.deployedBytecode",
19+
"evm.methodIdentifiers",
20+
"metadata",
21+
"devdoc",
22+
"userdoc",
23+
"storageLayout",
24+
"evm.gasEstimates"
25+
],
26+
"": [
27+
"ast"
28+
]
29+
}
30+
},
31+
"metadata": {
32+
"useLiteralContent": true
33+
}
34+
}
35+
}

contracts/deployments/mainnet/solcInputs/fadf91ec7715cd1de259dd372c94cbed.json

Lines changed: 395 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"storage": [],
3+
"types": {}
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"storage": [],
3+
"types": {}
4+
}

0 commit comments

Comments
 (0)