Skip to content

Implement full manual registration solana#1621

Open
agusaldasoro wants to merge 6 commits intomainfrom
solana-manual-reg
Open

Implement full manual registration solana#1621
agusaldasoro wants to merge 6 commits intomainfrom
solana-manual-reg

Conversation

@agusaldasoro
Copy link
Contributor

No description provided.

@agusaldasoro agusaldasoro changed the title Refactor Token Pool Ops Implement full manual registration solana Feb 2, 2026
@agusaldasoro agusaldasoro marked this pull request as ready for review February 4, 2026 12:56
@agusaldasoro agusaldasoro requested review from a team as code owners February 4, 2026 12:56
Copilot AI review requested due to automatic review settings February 4, 2026 12:56
@agusaldasoro agusaldasoro requested review from chris-de-leon-cll and tt-cll and removed request for PabloMansanet February 4, 2026 12:56
Copy link
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

This PR implements full manual registration functionality for Solana, enabling manual registration of tokens and token pools on Solana chains. The implementation adds initialization and ownership transfer operations for both BurnMint and LockRelease token pool types.

Changes:

  • Implemented token pool initialization (global config and per-token) for both BurnMint and LockRelease pools
  • Added ownership transfer operations for both pool types
  • Refactored code organization by moving shared utilities and LockRelease-specific operations to separate files

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
chains/solana/deployment/v1_6_0/sequences/tokens.go Completed the ManualRegistration sequence by implementing token pool initialization and ownership transfer logic
chains/solana/deployment/v1_6_0/operations/token_pools/utils.go Moved shared token pool types and utilities (Params, RemoteChainConfig, initGlobalConfigTokenPool) from burnmint.go
chains/solana/deployment/v1_6_0/operations/token_pools/lockrelease.go Added LockRelease-specific operations (Initialize, InitGlobalConfig, TransferOwnership, GetAuthority)
chains/solana/deployment/v1_6_0/operations/token_pools/burnmint.go Removed LockRelease operations and moved shared code to utils.go, renamed TransferOwnership to TransferOwnershipBurnMint

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

RMNRemote: solana.PublicKeyFromBytes(rmnRemoteAddr),
})
if err != nil {
return sequences.OnChainOutput{}, fmt.Errorf("failed to deploy token: %w", err)
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The error message 'failed to deploy token' is misleading - this operation is initializing a token pool, not deploying a token. The message should be 'failed to initialize token pool' to accurately reflect the operation.

Copilot uses AI. Check for mistakes.
return sequences.OnChainOutput{}, nil
}
configPDA, _, _ := state.FindConfigPDA(input.TokenPool)
ixn, err := lockrelease_token_pool.NewInitializeInstruction(
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

This instruction uses lockrelease_token_pool.NewInitializeInstruction but should use the correct instruction builder for LockRelease pools. The current implementation appears to be copied from BurnMint initialization (line 32 in burnmint.go uses burnmint_token_pool.NewInitializeInstruction), and this line is likely incorrect for LockRelease pools.

Suggested change
ixn, err := lockrelease_token_pool.NewInitializeInstruction(
ixn, err := lockrelease_token_pool.NewInitializeLockReleaseInstruction(

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Metric solana-manual-reg main
Coverage 70.0% 69.7%

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