Skip to content

Commit

Permalink
CCIP deployment: Orient files around changesets (#15496)
Browse files Browse the repository at this point in the history
* Orient files around changesets

* Hide more API

* Add file naming convention

* Fix test
  • Loading branch information
connorwstein authored Dec 3, 2024
1 parent 88a6c75 commit 07bd33c
Show file tree
Hide file tree
Showing 30 changed files with 1,613 additions and 1,650 deletions.
10 changes: 6 additions & 4 deletions deployment/ccip/changeset/accept_ownership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ func Test_NewAcceptOwnershipChangeset(t *testing.T) {
source := allChains[0]
dest := allChains[1]

timelocks := map[uint64]*gethwrappers.RBACTimelock{
source: state.Chains[source].Timelock,
dest: state.Chains[dest].Timelock,
}

// at this point we have the initial deploys done, now we need to transfer ownership
// to the timelock contract
state, err = LoadOnchainState(e.Env)
require.NoError(t, err)

// compose the transfer ownership and accept ownership changesets
_, err = commonchangeset.ApplyChangesets(t, e.Env, map[uint64]*gethwrappers.RBACTimelock{
source: state.Chains[source].Timelock,
dest: state.Chains[dest].Timelock,
}, []commonchangeset.ChangesetApplication{
_, err = commonchangeset.ApplyChangesets(t, e.Env, timelocks, []commonchangeset.ChangesetApplication{
// note this doesn't have proposals.
{
Changeset: commonchangeset.WrapChangeSet(commonchangeset.NewTransferOwnershipChangeset),
Expand Down
136 changes: 0 additions & 136 deletions deployment/ccip/changeset/active_candidate.go

This file was deleted.

142 changes: 0 additions & 142 deletions deployment/ccip/changeset/active_candidate_helpers.go

This file was deleted.

13 changes: 0 additions & 13 deletions deployment/ccip/changeset/consts.go

This file was deleted.

Loading

0 comments on commit 07bd33c

Please sign in to comment.