feat: add token pool ownership transfer #16596
Draft
+242
−25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update the ccip transfer ownership changeset to include 2 new configs. A slice for burn-mint token pools and a slice for lock-release token pools. The changeset will transfer the ownership of each of the provided token pools and include them in the accept ownership proposal
AI Summary
This pull request includes several changes to the
deployment/ccip/changeset/solana
module, focusing on improving ownership transfer functionality and adding support for new token pools. The most important changes include adding new functions for transferring ownership of burn-mint and lock-release token pools, updating test cases to reflect these changes, and modifying existing functions to accommodate additional parameters.Ownership transfer improvements:
deployment/ccip/changeset/solana/ownership_transfer_helpers.go
: Added functionstransferOwnershipBurnMintTokenPools
andtransferOwnershipLockReleaseTokenPools
to handle the ownership transfer of burn-mint and lock-release token pools.Test case updates:
deployment/ccip/changeset/solana/transfer_ccip_to_mcms_with_timelock_test.go
: Updated the testTestTransferCCIPToMCMSWithTimelockSolana
to include checks for the new token pools' ownership and added necessary setup steps. [1] [2]Function modifications:
deployment/ccip/changeset/testhelpers/test_helpers.go
: Modified theTransferOwnershipSolana
function to accept additional parameters for burn-mint and lock-release token pools. [1] [2]Codebase enhancements:
deployment/ccip/changeset/solana/transfer_ccip_to_mcms_with_timelock.go
: Updated theTransferCCIPToMCMSWithTimelockSolana
function to handle the new token pools and include them in the batch operations.Dependency additions:
deployment/ccip/changeset/solana/ownership_transfer_helpers.go
: Added new imports forexample_burnmint_token_pool
andexample_lockrelease_token_pool
to support the new functionalities.