Skip to content

feat: move transfer ownership solana to cld-changesets#59

Closed
ajaskolski wants to merge 1 commit into
mainfrom
hore-move-transfer-ownership-solana-from-core
Closed

feat: move transfer ownership solana to cld-changesets#59
ajaskolski wants to merge 1 commit into
mainfrom
hore-move-transfer-ownership-solana-from-core

Conversation

@ajaskolski
Copy link
Copy Markdown
Contributor

@ajaskolski ajaskolski commented May 18, 2026

@ajaskolski ajaskolski force-pushed the hore-move-transfer-ownership-solana-from-core branch from 1f15936 to e548d17 Compare May 18, 2026 16:16
@ajaskolski ajaskolski force-pushed the hore-move-transfer-ownership-solana-from-core branch from e548d17 to 626e10f Compare May 18, 2026 16:24
@ajaskolski ajaskolski marked this pull request as ready for review May 18, 2026 16:28
@ajaskolski ajaskolski requested a review from a team as a code owner May 18, 2026 16:28
Copilot AI review requested due to automatic review settings May 18, 2026 16:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Ports the Solana “transfer ownership to timelock” workflow into the legacy/mcms/changesets area, including an integration-style test that deploys MCMS+Timelock and validates ownership transfer via a proposal execution.

Changes:

  • Added a Solana ownership transfer changeset that submits on-chain transfer instructions and builds an MCMS timelock proposal for accept-ownership.
  • Added a test that deploys MCMS+Timelock in a Solana test environment, executes the transfer changeset, and asserts the new owner is the timelock signer PDA.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
legacy/mcms/changesets/transfer_ownership_solana.go Adds Solana ownership transfer changeset + helper instruction builders for seeded/seedless programs.
legacy/mcms/changesets/transfer_ownership_solana_test.go Adds runtime-based Solana test verifying transfer + accept ownership end-to-end.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +313 to +322
timelocks := map[uint64]string{}
proposers := map[uint64]string{}
inspectors := map[uint64]mcmssdk.Inspector{}
instructions := make([]solana.Instruction, 0, 1)
chainSelector := solChain.ChainSelector()

timelocks[chainSelector] = solanaAddress(chainState.TimelockProgram, mcmssolanasdk.PDASeed(chainState.TimelockSeed))
proposers[chainSelector] = solanaAddress(chainState.McmProgram, mcmssolanasdk.PDASeed(chainState.ProposerMcmSeed))
inspectors[chainSelector] = mcmssolanasdk.NewInspector(solChain.Client)

Comment thread legacy/mcms/changesets/transfer_ownership_solana.go
Comment thread legacy/mcms/changesets/transfer_ownership_solana.go
Comment thread legacy/mcms/changesets/transfer_ownership_solana.go
Comment thread legacy/mcms/changesets/transfer_ownership_solana.go
Comment thread legacy/mcms/changesets/transfer_ownership_solana.go
@ajaskolski ajaskolski changed the title chore: move transfer ownership solana to cld-changesets feat: move transfer ownership solana to cld-changesets May 18, 2026
@ajaskolski ajaskolski closed this May 18, 2026
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.

2 participants