Skip to content

feat: remove free airdrop #364

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

Merged
merged 6 commits into from
May 20, 2025
Merged

feat: remove free airdrop #364

merged 6 commits into from
May 20, 2025

Conversation

GabrielePicco
Copy link
Contributor

@GabrielePicco GabrielePicco commented May 13, 2025

Greptile Summary

Removed free airdrop functionality and payer configurations across the MagicBlock validator, transitioning towards a gasless transaction model.

  • Removed payer_init_lamports field and related configurations from configs/ephem-devnet.toml and configs/ephem-testnet.toml, eliminating automatic account funding
  • Simplified fee payer account cloning in magicblock-account-cloner/src/remote_account_cloner_worker.rs by using standard do_clone_undelegated_account method for non-charging validators
  • Removed Payer struct and related functionality from magicblock-config/src/accounts.rs, including configuration validation and environment variable handling
  • Modified account initialization logic in magicblock-api/src/magic_validator.rs to support gasless transactions while maintaining validator identity and faucet account funding

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

12 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

@bmuddha bmuddha left a comment

Choose a reason for hiding this comment

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

Looks legit, I'm not intimately familiar with all the internals of the feepayer workaround, but it looks like great care was taken to clean it up.

@GabrielePicco GabrielePicco merged commit 84f121c into feat/gasless May 20, 2025
8 checks passed
@GabrielePicco GabrielePicco deleted the feat/remove-airdrop branch May 20, 2025 14:45
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.

4 participants