-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(protocol): make more addresses in protocol immutable #18924
Conversation
TaikoInbox
and ProverSet
immutable
|
||
vm.startPrank(Alice); | ||
params.proposer = operator; | ||
vm.expectRevert(ITaikoInbox.NotInboxWrapper.selector); | ||
inbox.proposeBatch(abi.encode(params), "txList"); | ||
vm.stopPrank(); | ||
|
||
vm.startPrank(operator); | ||
params.proposer = address(0); | ||
vm.expectRevert(ITaikoInbox.CustomProposerMissing.selector); | ||
inbox.proposeBatch(abi.encode(params), "txList"); | ||
vm.stopPrank(); |
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.
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.
Sounds good. I will take a look at how to add them back.
store = deployProxy({ | ||
name: "forced_inclusion_store", | ||
impl: address( | ||
new ForcedInclusionStore( | ||
uint8(vm.envUint("INCLUSION_WINDOW")), | ||
uint64(vm.envUint("INCLUSION_FEE_IN_GWEI")), | ||
taikoInbox, | ||
taikoWrapper | ||
address(1) |
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.
Since there is a cycle dependency issue for ForcedInclusionStore.constructor
and TaikoWrapper.constructor
, so have to create a store with fake taikoWrapper address at first here, and do another proxy upgrade below @dantaik @xiaodino @YoGhurt111
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.
Actually we can deploy two empty proxies to get their addresses, then call upgradeToAndCall on both proxies.
TaikoInbox
and ProverSet
immutable
Why don't we continue using the resolver? |
ref: #18913
TaikoInbox
ProverSet
BridgedERC1155
/BridgedERC721