Skip to content
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

deployment/ccip/changeset: add transfer/accept ownership changeset #15409

Merged
merged 14 commits into from
Nov 28, 2024

Conversation

makramkd
Copy link
Contributor

@makramkd makramkd commented Nov 25, 2024

Ticket: https://smartcontract-it.atlassian.net/browse/CCIP-4396

This PR adds:

  • TransferOwnership changeset: this changeset would get executed after an initial deploy of all the contracts, that transfers ownership of them to the appropriate timelock on each chain.
  • AcceptOwnership changset: this changeset would get executed after TransferOwnership, and it generates the accept ownership proposal.

This PR also adds a test for the above changesets, and deletes some TODO'd code that does the same stuff as the above and updates the tests to use the changesets instead.

Copy link
Contributor

github-actions bot commented Nov 25, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@makramkd makramkd changed the title [WIP] deployment/ccip/changeset: add accept ownership changeset deployment/ccip/changeset: add accept ownership changeset Nov 26, 2024
@makramkd makramkd marked this pull request as ready for review November 26, 2024 07:54
@makramkd makramkd requested review from a team as code owners November 26, 2024 07:54
@makramkd makramkd changed the title deployment/ccip/changeset: add accept ownership changeset deployment/ccip/changeset: add transfer/accept ownership changeset Nov 26, 2024
deployment/ccip/changeset/accept_ownership.go Outdated Show resolved Hide resolved
deployment/ccip/changeset/accept_ownership.go Outdated Show resolved Hide resolved
)

func Test_NewAcceptOwnershipChangeset(t *testing.T) {
e := NewMemoryEnvironmentWithJobs(t, logger.TestLogger(t), 2, 4)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can just use a generic test for this if you are moving to common changeset

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I kept the CCIP test but moved the changeset to common

deployment/ccip/changeset/accept_ownership.go Outdated Show resolved Hide resolved
deployment/ccip/changeset/transfer_ownership.go Outdated Show resolved Hide resolved
AnieeG
AnieeG previously approved these changes Nov 27, 2024
connorwstein
connorwstein previously approved these changes Nov 27, 2024
the AddChainInbound test is consistently failing with a "message too
costly" error in exec; increasing the relative boost per wait hour
causes exec to significantly boost the paid fee so we can execute the
message.
@makramkd makramkd dismissed stale reviews from connorwstein and AnieeG via b10a0ad November 27, 2024 20:23
@makramkd makramkd enabled auto-merge November 27, 2024 20:52
return metaDataPerChain, nil
}

// Given batches of operations, we build the metadata and timelock addresses of those opartions
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Given batches of operations, we build the metadata and timelock addresses of those opartions
// Given batches of operations, we build the metadata and timelock addresses of those operations

@makramkd makramkd added this pull request to the merge queue Nov 28, 2024
Merged via the queue into develop with commit 9c7b487 Nov 28, 2024
174 checks passed
@makramkd makramkd deleted the mk/accept-ownership-proposal branch November 28, 2024 04:39
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.

5 participants