Commit e0b89fcd authored by smartcontracts's avatar smartcontracts Committed by GitHub

fix(ctp): re-deploy RetroReceiver with new owner (#2683)

Re-deploys the RetroReceiver with a new default owner called the
Dedicated Deterministic Deployer address. When deploying authenticated
smart contracts deterministically to the same address on many chains,
it's necessary to have a known static owner that then transfers
ownership to the final owner after deployment (which can be different on
every chain). This PR re-deploys the original contract with that new
default owner, the DDD.
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent d9fec576
---
'@eth-optimism/contracts-periphery': patch
---
Re-deploy RetroReceiver
...@@ -2,8 +2,6 @@ import { DeployConfig } from '../../src' ...@@ -2,8 +2,6 @@ import { DeployConfig } from '../../src'
const config: DeployConfig = { const config: DeployConfig = {
ddd: '0x9C6373dE60c2D3297b18A8f964618ac46E011B58', ddd: '0x9C6373dE60c2D3297b18A8f964618ac46E011B58',
retroReceiverOwner: '0xc37f6a6c4AB335E20d10F034B90386E2fb70bbF5',
drippieOwner: '0xc37f6a6c4AB335E20d10F034B90386E2fb70bbF5',
} }
export default config export default config
...@@ -2,8 +2,6 @@ import { DeployConfig } from '../../src' ...@@ -2,8 +2,6 @@ import { DeployConfig } from '../../src'
const config: DeployConfig = { const config: DeployConfig = {
ddd: '0x9C6373dE60c2D3297b18A8f964618ac46E011B58', ddd: '0x9C6373dE60c2D3297b18A8f964618ac46E011B58',
retroReceiverOwner: '0xc37f6a6c4AB335E20d10F034B90386E2fb70bbF5',
drippieOwner: '0xc37f6a6c4AB335E20d10F034B90386E2fb70bbF5',
} }
export default config export default config
...@@ -11,7 +11,7 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -11,7 +11,7 @@ const deployFn: DeployFunction = async (hre) => {
const { deploy } = await hre.deployments.deterministic('AssetReceiver', { const { deploy } = await hre.deployments.deterministic('AssetReceiver', {
salt: hre.ethers.utils.solidityKeccak256(['string'], ['RetroReceiver']), salt: hre.ethers.utils.solidityKeccak256(['string'], ['RetroReceiver']),
from: deployer, from: deployer,
args: [config.retroReceiverOwner], args: [config.ddd],
log: true, log: true,
}) })
......
...@@ -11,7 +11,7 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -11,7 +11,7 @@ const deployFn: DeployFunction = async (hre) => {
const { deploy } = await hre.deployments.deterministic('Drippie', { const { deploy } = await hre.deployments.deterministic('Drippie', {
salt: hre.ethers.utils.solidityKeccak256(['string'], ['Drippie']), salt: hre.ethers.utils.solidityKeccak256(['string'], ['Drippie']),
from: deployer, from: deployer,
args: [config.drippieOwner], args: [config.ddd],
log: true, log: true,
}) })
......
...@@ -12,16 +12,6 @@ export interface DeployConfig { ...@@ -12,16 +12,6 @@ export interface DeployConfig {
* the DDD to transfer ownership to the final contract owner very quickly after deployment. * the DDD to transfer ownership to the final contract owner very quickly after deployment.
*/ */
ddd: string ddd: string
/**
* Initial RetroReceiver owner.
*/
retroReceiverOwner: string
/**
* Initial Drippie owner.
*/
drippieOwner: string
} }
/** /**
...@@ -36,12 +26,6 @@ const configSpec: { ...@@ -36,12 +26,6 @@ const configSpec: {
ddd: { ddd: {
type: 'address', type: 'address',
}, },
retroReceiverOwner: {
type: 'address',
},
drippieOwner: {
type: 'address',
},
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment