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

Feat: add tip router merkle root upload support #128

Merged
merged 10 commits into from
Jan 17, 2025

Conversation

tomjohn1028
Copy link
Collaborator

@tomjohn1028 tomjohn1028 commented Jan 8, 2025

  • Changes made ensure backwards compatibility for validators
  • Instructions
    • InitializeMerkleRootUploadConfig - Initializes a singleton account for storing and override authority (that should be signer from TipRouter)
    • UpdateMerkleRootUploadConfig - Allows the Config.authority to update the override authority
    • MigrateTdaMerkleRootUploadAuthority - Allows permissionless change of any TipDistributionAccount.merkle_root_upload_authority to be the TipRouter's authority IF it's the current Jito authority (GZctHpWXmsZC1YHACTGGcHhYxjdRqQvTpYkb9LMvxDib)

@tomjohn1028 tomjohn1028 marked this pull request as ready for review January 9, 2025 19:20
@tomjohn1028 tomjohn1028 requested a review from ebatsell January 9, 2025 19:20
mev-programs/programs/tip-distribution/src/lib.rs Outdated Show resolved Hide resolved
mev-programs/programs/tip-distribution/src/state.rs Outdated Show resolved Hide resolved
mev-programs/programs/tip-distribution/src/state.rs Outdated Show resolved Hide resolved
@@ -471,6 +526,8 @@ pub struct Claim<'info> {
#[account(mut, rent_exempt = enforce)]
pub tip_distribution_account: Account<'info, TipDistributionAccount>,

pub merkle_root_upload_authority: Signer<'info>,
Copy link
Contributor

Choose a reason for hiding this comment

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

@buffalu worth having merkle_root_upload_authority as a separate signer here rather than just replacing the payer field with this? Changes the claim interface which is probably fine since any third party claimers would break with this change anyway

Copy link
Contributor

Choose a reason for hiding this comment

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

no strong feelings either way.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Keep me posted on the final verdict

mev-programs/programs/tip-distribution/src/lib.rs Outdated Show resolved Hide resolved
@tomjohn1028 tomjohn1028 merged commit 5046a3c into master Jan 17, 2025
2 checks passed
@tomjohn1028 tomjohn1028 deleted the add-tip-router-support branch January 17, 2025 13:19
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.

3 participants