Skip to content

Add TipCollectionToggler contract#439

Open
TucksonDev wants to merge 4 commits into
developfrom
add-tip-collection-toggler
Open

Add TipCollectionToggler contract#439
TucksonDev wants to merge 4 commits into
developfrom
add-tip-collection-toggler

Conversation

@TucksonDev

@TucksonDev TucksonDev commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

This PR adds a TipCollectionToggler contract that allows a trusted party to enable/disable tip collection in a chain (available from ArbOS 60), during a specified time. This contract should be added as a chain owner.

It also updates the pin of the precompiles submodule to include the ArbOwner method that needs to be called.

@TucksonDev TucksonDev changed the base branch from main to develop June 30, 2026 11:36
@TucksonDev TucksonDev requested a review from godzillaba June 30, 2026 11:55
Comment on lines +23 to +28
modifier onlyActivated() {
if (expiryTimestamp == 0) {
revert NotActivated();
}
_;
}

@godzillaba godzillaba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! just a nit about events

we should probably wait for a precompiles release before merging to develop though

if (block.timestamp < expiryTimestamp) {
revert NotExpired();
}
ARB_OWNER.removeChainOwner(address(this));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit but maybe we should add events to revoke and setCollectTips?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know ArbOwner emits them too but can't hurt

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! The removeChainOwner method already emits a specific ChainOwnerRemoved in nitro (since ArbOS 60). But I've added a CollectTipsUpdated(bool) event for the setCollectTips method, since nitro only emits the generic OwnerActs event.
What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants