-
Notifications
You must be signed in to change notification settings - Fork 0
Closes AP-727, AP-791: EndowmentMultiSig proxy admin update & update EndowmentMultiSigFactory's registrar on new Registrar deployment #377
Conversation
AP-791 Update EndowmentMultiSigFactory's registrar address when deploying a new Registrar contract with task `deploy:Registrar`
|
|
||
/// @notice Get all EndowmentMultiSig proxy contract instantiations. | ||
/// @return Array of instantiation addresses. | ||
function getInstantiations() external view returns (address[] memory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need this to be able to update all of the instantiations' proxy admins
proxyAdmin = _proxyAdmin; | ||
emit ProxyAdminUpdated(_proxyAdmin); | ||
constructor(address _implementationAddress, address _proxyAdmin, address registrarAddress) { | ||
updateImplementation(_implementationAddress); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constructor behavior was the same as if these functions were called one-by-one
yes: boolean; | ||
}; | ||
|
||
task("manage:changeProxyAdmin", "Will update the proxy admin for all proxy contracts") | ||
task("manage:changeProxyAdmin", "Will update the proxy admin the target proxy contract") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the purpose of this task to focus on changing proxy admin for a single proxy contract.
See changeProxyAdminForAll task for a task doing this for all proxy contracts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved tho see my longer comments in the Solidity Crew chat about:
- Whether this needs to be a proxy
- Generally how we approach deciding what's worth changing for prod-deployed contracts
contracts/multisigs/endowment-multisig/EndowmentMultiSigFactory.sol
Outdated
Show resolved
Hide resolved
@stevieraykatz let me know which changes you think need to be reverted and will do on Monday |
re: EndowmentMultiSigFactory If we don't need this state, then I think all of the changes to re: import removal re: errors removal |
tasks/manage/endowmentMultiSigFactory/updateProxyAdmin/updateEndowmentProxiesAdmin.ts
Outdated
Show resolved
Hide resolved
re #377 (comment):
Will add those back then |
Explanation of the solution
EndowmentMultiSigFactory
's registrar update on newRegistrar
deployment - addressed thisEndowmentMultiSig
proxy admin update on callingEndowmentMultiSigFactory.updateProxyAdmin
EndowmentMultiSigFactory
Instructions on making this work
yarn
oryarn install
to install npm dependencies